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:
Vlad Lazar
2024-10-10 20:30:17 +02:00
parent 1cbbc35957
commit eafae92795

View File

@@ -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,