chore: all cst mode for router to the all-in-one commands

Passes the bool to the generated router config, which enables us to run in cst mdoe when we don't use the clapblock flags for the router config
pull/24376/head
wiedld 2023-04-18 10:42:05 -07:00
parent 1d2003d385
commit c123971113
1 changed files with 13 additions and 1 deletions

View File

@ -185,6 +185,17 @@ pub struct Config {
#[clap(flatten)]
pub(crate) tracing_config: TracingConfig,
/// Differential handling based upon deployment to CST vs MT.
///
/// At minimum, differs in supports of v1 endpoint. But also includes
/// differences in namespace handling, etc.
#[clap(
long = "single-tenancy",
env = "INFLUXDB_IOX_SINGLE_TENANCY",
default_value = "false"
)]
pub single_tenant_deployment: bool,
/// Maximum size of HTTP requests.
#[clap(
long = "max-http-request-size",
@ -371,6 +382,7 @@ impl Config {
querier_max_concurrent_queries,
exec_mem_pool_bytes,
authz_config,
single_tenant_deployment,
} = self;
// Determine where to store files (wal and possibly catalog
@ -469,7 +481,7 @@ impl Config {
topic: QUERY_POOL_NAME.to_string(),
rpc_write_timeout_seconds: Duration::new(3, 0),
rpc_write_replicas: None,
single_tenant_deployment: false,
single_tenant_deployment,
rpc_write_max_outgoing_bytes: ingester_config.rpc_write_max_incoming_bytes,
};