pageserver: add enforce_circuit_breakers tenant config

This commit is contained in:
John Spray
2024-02-13 11:33:46 +00:00
parent fe21c7fe19
commit 661d5b7c68
5 changed files with 49 additions and 6 deletions

View File

@@ -400,6 +400,11 @@ impl PageServerNode {
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'lazy_slru_download' as bool")?,
enforce_circuit_breakers: settings
.remove("enforce_circuit_breakers")
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'enforce_circuit_breakers' as bool")?,
};
if !settings.is_empty() {
bail!("Unrecognized tenant settings: {settings:?}")
@@ -505,6 +510,11 @@ impl PageServerNode {
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'lazy_slru_download' as bool")?,
enforce_circuit_breakers: settings
.remove("enforce_circuit_breakers")
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'enforce_circuit_breakers' as bool")?,
}
};