Skip to main content

MZ_CLUSTER_REPLICA_SIZE_INTERNAL

Static MZ_CLUSTER_REPLICA_SIZE_INTERNAL 

Source
pub static MZ_CLUSTER_REPLICA_SIZE_INTERNAL: LazyLock<BuiltinTable>
Expand description

System-only sidecar to mz_cluster_replica_sizes, exposing per-size configuration that the cluster MaterializedViews need to compute the disk column.

mz_clusters.disk and mz_cluster_replicas.disk are computed as NOT swap_enabled AND disk_bytes != 0. The orchestrator-supplied swap_enabled flag wasn’t SQL-visible before the table→MV conversion, so this table is locked down with access: vec![] (same pattern as mz_catalog_raw): builtin MVs read it at bootstrap, but direct user SELECT is denied.

Unlike mz_cluster_replica_sizes, this table includes rows for sizes flagged disabledCatalogState::cluster_replica_size_has_disk indexed the in-memory map without checking disabled, so a managed cluster pinned to a disabled size still resolved its disk column from the size’s real swap_enabled / disk_limit. Including disabled sizes here preserves that behavior.