feat(e2e): configurable querier circuit breakers

Allow the querier's circuit breaker thresholds to be configured in test
runs - this helps speed up tests that involve hitting offline ingesters.
pull/24376/head
Dom Dwyer 2023-07-03 14:56:21 +02:00
parent de9392c019
commit 4e38fbc887
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
1 changed files with 10 additions and 0 deletions

View File

@ -155,6 +155,16 @@ impl TestConfig {
Self::new(ServerType::AllInOne, dsn, random_catalog_schema_name()).with_new_object_store()
}
/// Set the number of failed ingester queries before the querier considers
/// the ingester to be dead.
pub fn with_querier_circuit_breaker_threshold(self, count: usize) -> Self {
assert!(count > 0);
self.with_env(
"INFLUXDB_IOX_INGESTER_CIRCUIT_BREAKER_THRESHOLD",
count.to_string(),
)
}
/// Configure tracing capture
pub fn with_tracing(self, udp_capture: &UdpCapture) -> Self {
self.with_env("TRACES_EXPORTER", "jaeger")