add configurables for frontend pool options

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-28 06:52:23 +00:00
parent 3ad6aa59f9
commit 2a9bb1ce11
4 changed files with 44 additions and 10 deletions

View file

@ -103,6 +103,11 @@ impl Engine {
"Opened database."
);
let pool_opts = pool::Opts {
queue_size: config.db_pool_queue_size,
worker_num: config.db_pool_workers,
};
Ok(Arc::new(Self {
server: server.clone(),
row_cache,
@ -114,7 +119,7 @@ impl Engine {
corks: AtomicU32::new(0),
read_only: config.rocksdb_read_only,
secondary: config.rocksdb_secondary,
pool: Pool::new(&pool::Opts::default())?,
pool: Pool::new(&pool_opts)?,
}))
}