Skip to main content

mz_adapter_dyncfgs/
bootstrap_builtin_cluster_config.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! Types for bootstrap builtin cluster configuration.
11
12#[derive(Debug, Clone)]
13pub struct BootstrapBuiltinClusterConfig {
14    pub size: String,
15    pub replication_factor: u32,
16}
17
18pub const DEFAULT_REPLICATION_FACTOR: u32 = 1;
19pub const SYSTEM_CLUSTER_DEFAULT_REPLICATION_FACTOR: u32 = 1;
20pub const CATALOG_SERVER_CLUSTER_DEFAULT_REPLICATION_FACTOR: u32 = 1;
21pub const PROBE_CLUSTER_DEFAULT_REPLICATION_FACTOR: u32 = 1;
22// Support and analytics clusters are ephemeral - they are only spun up temporarily when needed.
23// Since they are short-lived, they don't need replication by default.
24pub const SUPPORT_CLUSTER_DEFAULT_REPLICATION_FACTOR: u32 = 0;
25pub const ANALYTICS_CLUSTER_DEFAULT_REPLICATION_FACTOR: u32 = 0;