Reduce admin rpc service thread count from the number of available cores to 3 (#25306)

This commit is contained in:
Michael Vines 2022-05-17 19:40:13 -07:00 committed by GitHub
parent b27125815a
commit 0bdc4cdb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ pub fn run(ledger_path: &Path, metadata: AdminRpcRequestMetadata) {
let event_loop = tokio::runtime::Builder::new_multi_thread()
.thread_name("sol-adminrpc-el")
.worker_threads(3) // Three still seems like a lot, and better than the default of available core count
.enable_all()
.build()
.unwrap();