solana-with-rpc-optimizations/net-utils
steviez 79e316eb56
Reduce the default number of IP echo server threads (#354)
The IP echo server currently spins up a worker thread for every thread
on the machine. Observing some data for nodes,
- MNB validators and RPC nodes look to get several hundred of these
  requests per day
- MNB entrypoint nodes look to get 2-3 requests per second on average

In both instances, the current threadpool is severely overprovisioned
which is a waste of resources. This PR plumnbs a flag to control the
number of worker threads for this pool as well as setting a default of
two threads for this server. Two threads allow for one thread to always
listen on the TCP port while the other thread processes requests
2024-04-01 10:24:59 -05:00
..
src Reduce the default number of IP echo server threads (#354) 2024-04-01 10:24:59 -05:00
.gitignore
Cargo.toml Reduce the default number of IP echo server threads (#354) 2024-04-01 10:24:59 -05:00