add configurables for frontend pool options

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-11-28 07:20:43 +00:00
1 parent 3ad6aa59f9
commit 2a9bb1ce11
4 files changed
+44 -10

No files matched your search

+6 -1
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)?,
}))
}