mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-06 21:50:37 +00:00
pageserver: make io serial by default
One can configure this via the NEON_PAGESERVER_VALUE_RECONSTRUCT_IO_CONCURRENCY env var. A config is possible as well, but it's more work and this is enough for experimentation.
This commit is contained in:
@@ -195,7 +195,8 @@ impl ValuesReconstructState {
|
||||
io_concurrency: {
|
||||
static IO_CONCURRENCY: once_cell::sync::Lazy<String> =
|
||||
once_cell::sync::Lazy::new(|| {
|
||||
std::env::var("NEON_PAGESERVER_VALUE_RECONSTRUCT_IO_CONCURRENCY").unwrap()
|
||||
std::env::var("NEON_PAGESERVER_VALUE_RECONSTRUCT_IO_CONCURRENCY")
|
||||
.unwrap_or_else(|_| "serial".to_string())
|
||||
});
|
||||
match IO_CONCURRENCY.as_str() {
|
||||
"parallel" => IoConcurrency::Parallel,
|
||||
|
||||
Reference in New Issue
Block a user