sui
sui copied to clipboard
remove blocking rpc and use a separate tokio runtime for jsonrpc server
- reverted marking RPC methods as "blocking"
- using separate tokio runtime for the RPC server, worker size is defaulted to 1/2 of the CPU core, can be changed using
RPC_WORKER_THREADenv variable. - use tokio::spawn for some of the long running rocksdb calls to unblock the request handling task.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
@patrickkuo have we tried to move all the
spawnto the jsonrpc layer? I'm a bit concerned the changes in authority.rs could impact validator performance. It could be in a bad or even good way, but hard to tell without experimenting first.
sure, I will limit the change to RPC layer