Cluster settings apply to all nodes of a CockroachDB cluster and control, for example, whether or not to share diagnostic details with Cockroach Labs as well as advanced options for debugging and cluster tuning.
They can be updated anytime after a cluster has been started, but only by a member of the admin
role, to which the root
user belongs by default.
In contrast to cluster-wide settings, node-level settings apply to a single node. They are defined by flags passed to the cockroach start
command when starting a node and cannot be changed without stopping and restarting the node. For more details, see Start a Node.
Settings
These cluster settings have a broad impact on CockroachDB internals and affect all applications, workloads, and users running on a CockroachDB cluster. For some settings, a session setting could be a more appropriate scope.
Use ALTER ROLE ALL SET {sessionvar} = {val}
instead of the sql.defaults.*
cluster settings. This allows you to set a default value for all users for any session variable that applies during login, making the sql.defaults.*
cluster settings redundant.
Setting | Type | Default | Description | Supported Deployments |
---|---|---|---|---|
admission.disk_bandwidth_tokens.elastic.enabled | boolean | true | when true, and provisioned bandwidth for the disk corresponding to a store is configured, tokens for elastic work will be limited if disk bandwidth becomes a bottleneck | Dedicated/Self-Hosted |
admission.epoch_lifo.enabled | boolean | false | when true, epoch-LIFO behavior is enabled when there is significant delay in admission | Serverless/Dedicated/Self-Hosted |
admission.epoch_lifo.epoch_closing_delta_duration | duration | 5ms | the delta duration before closing an epoch, for epoch-LIFO admission control ordering | Serverless/Dedicated/Self-Hosted |
admission.epoch_lifo.epoch_duration | duration | 100ms | the duration of an epoch, for epoch-LIFO admission control ordering | Serverless/Dedicated/Self-Hosted |
admission.epoch_lifo.queue_delay_threshold_to_switch_to_lifo | duration | 105ms | the queue delay encountered by a (tenant,priority) for switching to epoch-LIFO ordering | Serverless/Dedicated/Self-Hosted |
admission.kv.enabled | boolean | true | when true, work performed by the KV layer is subject to admission control | Dedicated/Self-Hosted |
admission.sql_kv_response.enabled | boolean | true | when true, work performed by the SQL layer when receiving a KV response is subject to admission control | Serverless/Dedicated/Self-Hosted |
admission.sql_sql_response.enabled | boolean | true | when true, work performed by the SQL layer when receiving a DistSQL response is subject to admission control | Serverless/Dedicated/Self-Hosted |
bulkio.backup.deprecated_full_backup_with_subdir.enabled | boolean | false | when true, a backup command with a user specified subdirectory will create a full backup at the subdirectory if no backup already exists at that subdirectory | Serverless/Dedicated/Self-Hosted |
bulkio.backup.file_size | byte size | 128 MiB | target size for individual data files produced during BACKUP | Serverless/Dedicated/Self-Hosted |
bulkio.backup.read_timeout | duration | 5m0s | amount of time after which a read attempt is considered timed out, which causes the backup to fail | Serverless/Dedicated/Self-Hosted |
bulkio.backup.read_with_priority_after | duration | 1m0s | amount of time since the read-as-of time above which a BACKUP should use priority when retrying reads | Serverless/Dedicated/Self-Hosted |
physical_replication.consumer.minimum_flush_interval | duration | 5s | the minimum timestamp between flushes; flushes may still occur if internal buffers fill up | Dedicated/Self-Hosted |
changefeed.aggregator.flush_jitter | float | 0.1 | jitter aggregator flushes as a fraction of min_checkpoint_frequency. This setting has no effect if min_checkpoint_frequency is set to 0. | Serverless/Dedicated/Self-Hosted |
changefeed.backfill.concurrent_scan_requests | integer | 0 | number of concurrent scan requests per node issued during a backfill | Serverless/Dedicated/Self-Hosted |
changefeed.backfill.scan_request_size | integer | 524288 | the maximum number of bytes returned by each scan request | Serverless/Dedicated/Self-Hosted |
changefeed.batch_reduction_retry.enabled | boolean | false | if true, kafka changefeeds upon erroring on an oversized batch will attempt to resend the messages with progressively lower batch sizes | Serverless/Dedicated/Self-Hosted |
changefeed.default_range_distribution_strategy | enumeration | default | configures how work is distributed among nodes for a given changefeed. for the most balanced distribution, use `balanced_simple`. changing this setting will not override locality restrictions [default = 0, balanced_simple = 1] | Serverless/Dedicated/Self-Hosted |
changefeed.event_consumer_worker_queue_size | integer | 16 | if changefeed.event_consumer_workers is enabled, this setting sets the maxmimum number of events which a worker can buffer | Serverless/Dedicated/Self-Hosted |
changefeed.event_consumer_workers | integer | 0 | the number of workers to use when processing events: <0 disables, 0 assigns a reasonable default, >0 assigns the setting value. for experimental/core changefeeds and changefeeds using parquet format, this is disabled | Serverless/Dedicated/Self-Hosted |
changefeed.fast_gzip.enabled | boolean | true | use fast gzip implementation | Serverless/Dedicated/Self-Hosted |
changefeed.frontier_highwater_lag_checkpoint_threshold | duration | 10m0s | controls the maximum the high-water mark is allowed to lag behind the leading spans of the frontier before per-span checkpointing is enabled; if 0, checkpointing due to high-water lag is disabled | Serverless/Dedicated/Self-Hosted |
changefeed.memory.per_changefeed_limit | byte size | 512 MiB | controls amount of data that can be buffered per changefeed | Serverless/Dedicated/Self-Hosted |
changefeed.min_highwater_advance | duration | 0s | minimum amount of time the changefeed high water mark must advance for it to be eligible for checkpointing; Default of 0 will checkpoint every time frontier advances, as long as the rate of checkpointing keeps up with the rate of frontier changes | Serverless/Dedicated/Self-Hosted |
changefeed.node_throttle_config | string |
| specifies node level throttling configuration for all changefeeeds | Serverless/Dedicated/Self-Hosted |
changefeed.protect_timestamp.max_age | duration | 96h0m0s | fail the changefeed if the protected timestamp age exceeds this threshold; 0 disables expiration | Serverless/Dedicated/Self-Hosted |
changefeed.protect_timestamp_interval | duration | 10m0s | controls how often the changefeed forwards its protected timestamp to the resolved timestamp | Serverless/Dedicated/Self-Hosted |
changefeed.schema_feed.read_with_priority_after | duration | 1m0s | retry with high priority if we were not able to read descriptors for too long; 0 disables | Serverless/Dedicated/Self-Hosted |
changefeed.sink_io_workers | integer | 0 | the number of workers used by changefeeds when sending requests to the sink (currently the batching versions of webhook, pubsub, and kafka sinks that are enabled by changefeed.new_<sink type>_sink_enabled only): <0 disables, 0 assigns a reasonable default, >0 assigns the setting value | Serverless/Dedicated/Self-Hosted |
cloudstorage.azure.concurrent_upload_buffers | integer | 1 | controls the number of concurrent buffers that will be used by the Azure client when uploading chunks.Each buffer can buffer up to cloudstorage.write_chunk.size of memory during an upload | Serverless/Dedicated/Self-Hosted |
cloudstorage.azure.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.azure.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.azure.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.azure.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.gs.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.gs.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.gs.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.gs.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.http.custom_ca | string |
| custom root CA (appended to system's default CAs) for verifying certificates when interacting with HTTPS storage | Serverless/Dedicated/Self-Hosted |
cloudstorage.http.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.http.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.http.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.http.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nodelocal.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nodelocal.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nodelocal.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nodelocal.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nullsink.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nullsink.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nullsink.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.nullsink.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.s3.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.s3.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.s3.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.s3.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.timeout | duration | 10m0s | the timeout for import/export storage operations | Serverless/Dedicated/Self-Hosted |
cloudstorage.userfile.read.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.userfile.read.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.userfile.write.node_burst_limit | byte size | 0 B | burst limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cloudstorage.userfile.write.node_rate_limit | byte size | 0 B | limit on number of bytes per second per node across operations writing to the designated cloud storage provider if non-zero | Serverless/Dedicated/Self-Hosted |
cluster.auto_upgrade.enabled | boolean | true | disable automatic cluster version upgrade until reset | Serverless/Dedicated/Self-Hosted |
cluster.organization | string |
| organization name | Dedicated/Self-hosted (read-write); Serverless (read-only) |
cluster.preserve_downgrade_option | string |
| disable (automatic or manual) cluster version upgrade from the specified version until reset | Serverless/Dedicated/Self-Hosted |
debug.zip.redact_addresses.enabled | boolean | false | enables the redaction of hostnames and ip addresses in debug zip | Serverless/Dedicated/Self-Hosted |
diagnostics.active_query_dumps.enabled | boolean | true | experimental: enable dumping of anonymized active queries to disk when node is under memory pressure | Dedicated/Self-hosted (read-write); Serverless (read-only) |
diagnostics.forced_sql_stat_reset.interval | duration | 2h0m0s | interval after which the reported SQL Stats are reset even if not collected by telemetry reporter. It has a max value of 24H. | Serverless/Dedicated/Self-Hosted |
diagnostics.memory_monitoring_dumps.enabled | boolean | true | enable dumping of memory monitoring state at the same time as heap profiles are taken | Dedicated/Self-hosted (read-write); Serverless (read-only) |
diagnostics.reporting.enabled | boolean | true | enable reporting diagnostic metrics to cockroach labs, but is ignored for Trial or Free licenses | Serverless/Dedicated/Self-Hosted |
diagnostics.reporting.interval | duration | 1h0m0s | interval at which diagnostics data should be reported | Serverless/Dedicated/Self-Hosted |
enterprise.license | string |
| the encoded cluster license | Dedicated/Self-hosted (read-write); Serverless (read-only) |
external.graphite.endpoint | string |
| if nonempty, push server metrics to the Graphite or Carbon server at the specified host:port | Serverless/Dedicated/Self-Hosted |
external.graphite.interval | duration | 10s | the interval at which metrics are pushed to Graphite (if enabled) | Serverless/Dedicated/Self-Hosted |
feature.backup.enabled | boolean | true | set to true to enable backups, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.changefeed.enabled | boolean | true | set to true to enable changefeeds, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.export.enabled | boolean | true | set to true to enable exports, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.import.enabled | boolean | true | set to true to enable imports, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.restore.enabled | boolean | true | set to true to enable restore, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.schema_change.enabled | boolean | true | set to true to enable schema changes, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
feature.stats.enabled | boolean | true | set to true to enable CREATE STATISTICS/ANALYZE, false to disable; default is true | Serverless/Dedicated/Self-Hosted |
jobs.retention_time | duration | 336h0m0s | the amount of time for which records for completed jobs are retained | Serverless/Dedicated/Self-Hosted |
kv.allocator.lease_rebalance_threshold | float | 0.05 | minimum fraction away from the mean a store's lease count can be before it is considered for lease-transfers | Dedicated/Self-Hosted |
kv.allocator.load_based_lease_rebalancing.enabled | boolean | true | set to enable rebalancing of range leases based on load and latency | Dedicated/Self-Hosted |
kv.allocator.load_based_rebalancing | enumeration | leases and replicas | whether to rebalance based on the distribution of load across stores [off = 0, leases = 1, leases and replicas = 2] | Dedicated/Self-Hosted |
kv.allocator.load_based_rebalancing.objective | enumeration | cpu | what objective does the cluster use to rebalance; if set to `qps` the cluster will attempt to balance qps among stores, if set to `cpu` the cluster will attempt to balance cpu usage among stores [qps = 0, cpu = 1] | Dedicated/Self-Hosted |
kv.allocator.load_based_rebalancing_interval | duration | 1m0s | the rough interval at which each store will check for load-based lease / replica rebalancing opportunities | Dedicated/Self-Hosted |
kv.allocator.qps_rebalance_threshold | float | 0.1 | minimum fraction away from the mean a store's QPS (such as queries per second) can be before it is considered overfull or underfull | Dedicated/Self-Hosted |
kv.allocator.range_rebalance_threshold | float | 0.05 | minimum fraction away from the mean a store's range count can be before it is considered overfull or underfull | Dedicated/Self-Hosted |
kv.allocator.store_cpu_rebalance_threshold | float | 0.1 | minimum fraction away from the mean a store's cpu usage can be before it is considered overfull or underfull | Dedicated/Self-Hosted |
kv.bulk_io_write.max_rate | byte size | 1.0 TiB | the rate limit (bytes/sec) to use for writes to disk on behalf of bulk io ops | Dedicated/Self-Hosted |
kv.bulk_sst.max_allowed_overage | byte size | 64 MiB | if positive, allowed size in excess of target size for SSTs from export requests; export requests (i.e. BACKUP) may buffer up to the sum of kv.bulk_sst.target_size and kv.bulk_sst.max_allowed_overage in memory | Dedicated/Self-Hosted |
kv.bulk_sst.target_size | byte size | 16 MiB | target size for SSTs emitted from export requests; export requests (i.e. BACKUP) may buffer up to the sum of kv.bulk_sst.target_size and kv.bulk_sst.max_allowed_overage in memory | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.closed_timestamp.follower_reads.enabled | boolean | true | allow (all) replicas to serve consistent historical reads based on closed timestamp information | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.closed_timestamp.lead_for_global_reads_override | duration | 0s | if nonzero, overrides the lead time that global_read ranges use to publish closed timestamps | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.closed_timestamp.side_transport_interval | duration | 200ms | the interval at which the closed timestamp side-transport attempts to advance each range's closed timestamp; set to 0 to disable the side-transport | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.closed_timestamp.target_duration | duration | 3s | if nonzero, attempt to provide closed timestamp notifications for timestamps trailing cluster time by approximately this duration | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.dist_sender.circuit_breaker.cancellation.enabled | boolean | true | when enabled, in-flight requests will be cancelled when the circuit breaker trips | Serverless/Dedicated/Self-Hosted |
kv.dist_sender.circuit_breaker.cancellation.write_grace_period | duration | 10s | how long after the circuit breaker trips to cancel write requests (these can't retry internally, so should be long enough to allow quorum/lease recovery) | Serverless/Dedicated/Self-Hosted |
kv.dist_sender.circuit_breaker.probe.interval | duration | 3s | interval between replica probes | Serverless/Dedicated/Self-Hosted |
kv.dist_sender.circuit_breaker.probe.threshold | duration | 3s | duration of errors or stalls after which a replica will be probed | Serverless/Dedicated/Self-Hosted |
kv.dist_sender.circuit_breaker.probe.timeout | duration | 3s | timeout for replica probes | Serverless/Dedicated/Self-Hosted |
kv.dist_sender.circuit_breakers.mode | enumeration | liveness range only | set of ranges to trip circuit breakers for failing or stalled replicas [no ranges = 0, liveness range only = 1, all ranges = 2] | Serverless/Dedicated/Self-Hosted |
kv.lease_transfer_read_summary.global_budget | byte size | 0 B | controls the maximum number of bytes that will be used to summarize the global segment of the timestamp cache during lease transfers and range merges. A smaller budget will result in loss of precision. | Dedicated/Self-Hosted |
kv.lease_transfer_read_summary.local_budget | byte size | 4.0 MiB | controls the maximum number of bytes that will be used to summarize the local segment of the timestamp cache during lease transfers and range merges. A smaller budget will result in loss of precision. | Dedicated/Self-Hosted |
kv.log_range_and_node_events.enabled | boolean | true | set to true to transactionally log range events (e.g., split, merge, add/remove voter/non-voter) into system.rangelogand node join and restart events into system.eventolog | Dedicated/Self-Hosted |
kv.protectedts.reconciliation.interval | duration | 5m0s | the frequency for reconciling jobs with protected timestamp records | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.raft.leader_fortification.fraction_enabled | float | 0 | controls the fraction of ranges for which the raft leader fortification protocol is enabled. Leader fortification is needed for a range to use a Leader lease. Set to 0.0 to disable leader fortification and, by extension, Leader leases. Set to 1.0 to enable leader fortification for all ranges and, by extension, use Leader leases for all ranges which do not require expiration-based leases. Set to a value between 0.0 and 1.0 to gradually roll out Leader leases across the ranges in a cluster. | Dedicated/Self-Hosted |
kv.range.range_size_hard_cap | byte size | 8.0 GiB | hard cap on the maximum size a range is allowed to grow to withoutsplitting before writes to the range are blocked. Takes precedence over all other configurations | Dedicated/Self-Hosted |
kv.range_split.by_load.enabled | boolean | true | allow automatic splits of ranges based on where load is concentrated | Dedicated/Self-Hosted |
kv.range_split.load_cpu_threshold | duration | 500ms | the CPU use per second over which, the range becomes a candidate for load based splitting | Dedicated/Self-Hosted |
kv.range_split.load_qps_threshold | integer | 2500 | the QPS over which, the range becomes a candidate for load based splitting | Dedicated/Self-Hosted |
kv.rangefeed.client.stream_startup_rate | integer | 100 | controls the rate per second the client will initiate new rangefeed stream for a single range; 0 implies unlimited | Serverless/Dedicated/Self-Hosted |
kv.rangefeed.closed_timestamp_refresh_interval | duration | 3s | the interval at which closed-timestamp updatesare delivered to rangefeeds; set to 0 to use kv.closed_timestamp.side_transport_interval | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.rangefeed.enabled | boolean | false | if set, rangefeed registration is enabled | Dedicated/Self-hosted (read-write); Serverless (read-only) |
kv.replica_circuit_breaker.slow_replication_threshold | duration | 1m0s | duration after which slow proposals trip the per-Replica circuit breaker (zero duration disables breakers) | Dedicated/Self-Hosted |
kv.replica_stats.addsst_request_size_factor | integer | 50000 | the divisor that is applied to addsstable request sizes, then recorded in a leaseholders QPS; 0 means all requests are treated as cost 1 | Dedicated/Self-Hosted |
kv.replication_reports.interval | duration | 1m0s | the frequency for generating the replication_constraint_stats, replication_stats_report and replication_critical_localities reports (set to 0 to disable) | Dedicated/Self-Hosted |
kv.snapshot_rebalance.max_rate | byte size | 32 MiB | the rate limit (bytes/sec) to use for rebalance and upreplication snapshots | Dedicated/Self-Hosted |
kv.snapshot_receiver.excise.enabled | boolean | true | set to false to disable excises in place of range deletions for KV snapshots | Dedicated/Self-Hosted |
kv.transaction.max_intents_bytes | integer | 4194304 | maximum number of bytes used to track locks in transactions | Serverless/Dedicated/Self-Hosted |
kv.transaction.max_refresh_spans_bytes | integer | 4194304 | maximum number of bytes used to track refresh spans in serializable transactions | Serverless/Dedicated/Self-Hosted |
kv.transaction.randomized_anchor_key.enabled | boolean | false | dictates whether a transactions anchor key is randomized or not | Serverless/Dedicated/Self-Hosted |
kv.transaction.reject_over_max_intents_budget.enabled | boolean | false | if set, transactions that exceed their lock tracking budget (kv.transaction.max_intents_bytes) are rejected instead of having their lock spans imprecisely compressed | Serverless/Dedicated/Self-Hosted |
kv.transaction.write_pipelining.locking_reads.enabled | boolean | true | if enabled, transactional locking reads are pipelined through Raft consensus | Serverless/Dedicated/Self-Hosted |
kv.transaction.write_pipelining.ranged_writes.enabled | boolean | true | if enabled, transactional ranged writes are pipelined through Raft consensus | Serverless/Dedicated/Self-Hosted |
kv.transaction.write_pipelining.enabled | boolean | true | if enabled, transactional writes are pipelined through Raft consensus | Serverless/Dedicated/Self-Hosted |
kv.transaction.write_pipelining.max_batch_size | integer | 128 | if non-zero, defines that maximum size batch that will be pipelined through Raft consensus | Serverless/Dedicated/Self-Hosted |
kvadmission.store.provisioned_bandwidth | byte size | 0 B | if set to a non-zero value, this is used as the provisioned bandwidth (in bytes/s), for each store. It can be overridden on a per-store basis using the --store flag. Note that setting the provisioned bandwidth to a positive value may enable disk bandwidth based admission control, since admission.disk_bandwidth_tokens.elastic.enabled defaults to true | Dedicated/Self-Hosted |
kvadmission.store.snapshot_ingest_bandwidth_control.enabled | boolean | false | if set to true, snapshot ingests will be subject to disk write control in AC | Dedicated/Self-Hosted |
obs.tablemetadata.automatic_updates.enabled | boolean | false | enables automatic updates of the table metadata cache system.table_metadata | Serverless/Dedicated/Self-Hosted |
obs.tablemetadata.data_valid_duration | duration | 20m0s | the duration for which the data in system.table_metadata is considered valid | Serverless/Dedicated/Self-Hosted |
schedules.backup.gc_protection.enabled | boolean | true | enable chaining of GC protection across backups run as part of a schedule | Serverless/Dedicated/Self-Hosted |
security.client_cert.subject_required.enabled | boolean | false | mandates a requirement for subject role to be set for db user | Dedicated/Self-hosted (read-write); Serverless (read-only) |
security.ocsp.mode | enumeration | off | use OCSP to check whether TLS certificates are revoked. If the OCSP server is unreachable, in strict mode all certificates will be rejected and in lax mode all certificates will be accepted. [off = 0, lax = 1, strict = 2] | Serverless/Dedicated/Self-Hosted |
security.ocsp.timeout | duration | 3s | timeout before considering the OCSP server unreachable | Serverless/Dedicated/Self-Hosted |
server.auth_log.sql_connections.enabled | boolean | false | if set, log SQL client connect and disconnect events to the SESSIONS log channel (note: may hinder performance on loaded nodes) | Serverless/Dedicated/Self-Hosted |
server.auth_log.sql_sessions.enabled | boolean | false | if set, log verbose SQL session authentication events to the SESSIONS log channel (note: may hinder performance on loaded nodes). Session start and end events are always logged regardless of this setting; disable the SESSIONS log channel to suppress them. | Serverless/Dedicated/Self-Hosted |
server.authentication_cache.enabled | boolean | true | enables a cache used during authentication to avoid lookups to system tables when retrieving per-user authentication-related information | Serverless/Dedicated/Self-Hosted |
server.child_metrics.enabled | boolean | false | enables the exporting of child metrics, additional prometheus time series with extra labels | Serverless/Dedicated/Self-Hosted |
server.client_cert_expiration_cache.capacity | integer | 1000 | the maximum number of client cert expirations stored | Serverless/Dedicated/Self-Hosted |
server.clock.forward_jump_check.enabled | boolean | false | if enabled, forward clock jumps > max_offset/2 will cause a panic | Serverless/Dedicated/Self-Hosted |
server.clock.persist_upper_bound_interval | duration | 0s | the interval between persisting the wall time upper bound of the clock. The clock does not generate a wall time greater than the persisted timestamp and will panic if it sees a wall time greater than this value. When cockroach starts, it waits for the wall time to catch-up till this persisted timestamp. This guarantees monotonic wall time across server restarts. Not setting this or setting a value of 0 disables this feature. | Serverless/Dedicated/Self-Hosted |
server.consistency_check.max_rate | byte size | 8.0 MiB | the rate limit (bytes/sec) to use for consistency checks; used in conjunction with server.consistency_check.interval to control the frequency of consistency checks. Note that setting this too high can negatively impact performance. | Dedicated/Self-Hosted |
server.eventlog.enabled | boolean | true | if set, logged notable events are also stored in the table system.eventlog | Serverless/Dedicated/Self-Hosted |
server.eventlog.ttl | duration | 2160h0m0s | if nonzero, entries in system.eventlog older than this duration are periodically purged | Serverless/Dedicated/Self-Hosted |
server.host_based_authentication.configuration | string |
| host-based authentication configuration to use during connection authentication | Serverless/Dedicated/Self-Hosted |
server.hot_ranges_request.node.timeout | duration | 5m0s | the duration allowed for a single node to return hot range data before the request is cancelled; if set to 0, there is no timeout | Serverless/Dedicated/Self-Hosted |
server.hsts.enabled | boolean | false | if true, HSTS headers will be sent along with all HTTP requests. The headers will contain a max-age setting of one year. Browsers honoring the header will always use HTTPS to access the DB Console. Ensure that TLS is correctly configured prior to enabling. | Serverless/Dedicated/Self-Hosted |
server.http.base_path | string | / | path to redirect the user to upon succcessful login | Serverless/Dedicated/Self-Hosted |
server.identity_map.configuration | string |
| system-identity to database-username mappings | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.audience | string |
| sets accepted audience values for JWT logins over the SQL interface | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.claim | string |
| sets the JWT claim that is parsed to get the username | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.client.timeout | duration | 15s | sets the client timeout for external calls made during JWT authentication (e.g. fetching JWKS, etc.) | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.enabled | boolean | false | enables or disables JWT login for the SQL interface | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.issuers.configuration | string |
| sets accepted issuer values for JWT logins over the SQL interface which can be a single issuer URL string or a JSON string containing an array of issuer URLs or a JSON object containing map of issuer URLS to JWKS URIs | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.issuers.custom_ca | string |
| sets the PEM encoded custom root CA for verifying certificates while fetching JWKS | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.jwks | string | {"keys":[]} | sets the public key set for JWT logins over the SQL interface (JWKS format) | Serverless/Dedicated/Self-Hosted |
server.jwt_authentication.jwks_auto_fetch.enabled | boolean | false | enables or disables automatic fetching of JWKS from the issuer's well-known endpoint or JWKS URI set in JWTAuthIssuersConfig. If this is enabled, the server.jwt_authentication.jwks will be ignored. | Serverless/Dedicated/Self-Hosted |
server.ldap_authentication.client.tls_certificate | string |
| sets the client certificate PEM for establishing mTLS connection with LDAP server | Serverless/Dedicated/Self-Hosted |
server.ldap_authentication.client.tls_key | string |
| sets the client key PEM for establishing mTLS connection with LDAP server | Serverless/Dedicated/Self-Hosted |
server.ldap_authentication.domain.custom_ca | string |
| sets the PEM encoded custom root CA for verifying domain certificates when establishing connection with LDAP server | Serverless/Dedicated/Self-Hosted |
server.log_gc.max_deletions_per_cycle | integer | 1000 | the maximum number of entries to delete on each purge of log-like system tables | Serverless/Dedicated/Self-Hosted |
server.log_gc.period | duration | 1h0m0s | the period at which log-like system tables are checked for old entries | Serverless/Dedicated/Self-Hosted |
server.max_connections_per_gateway | integer | -1 | the maximum number of SQL connections per gateway allowed at a given time (note: this will only limit future connection attempts and will not affect already established connections). Negative values result in unlimited number of connections. Superusers are not affected by this limit. | Serverless/Dedicated/Self-Hosted |
server.max_open_transactions_per_gateway | integer | -1 | the maximum number of open SQL transactions per gateway allowed at a given time. Negative values result in unlimited number of connections. Superusers are not affected by this limit. | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.autologin.enabled | boolean | false | if true, logged-out visitors to the DB Console will be automatically redirected to the OIDC login endpoint | Serverless/Dedicated/Self-Hosted |
string | Log in with your OIDC provider | text to show on button on DB Console login page to login with your OIDC provider (only shown if OIDC is enabled) | Serverless/Dedicated/Self-Hosted | |
server.oidc_authentication.claim_json_key | string |
| sets JSON key of principal to extract from payload after OIDC authentication completes (usually email or sid) | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.client.timeout | duration | 15s | sets the client timeout for external calls made during OIDC authentication (e.g. authorization code flow, etc.) | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.client_id | string |
| sets OIDC client id | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.client_secret | string |
| sets OIDC client secret | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.enabled | boolean | false | enables or disabled OIDC login for the DB Console | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.principal_regex | string | (.+) | regular expression to apply to extracted principal (see claim_json_key setting) to translate to SQL user (golang regex format, must include 1 grouping to extract) | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.provider_url | string |
| sets OIDC provider URL ({provider_url}/.well-known/openid-configuration must resolve) | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.redirect_url | string | https://localhost:8080/oidc/v1/callback | sets OIDC redirect URL via a URL string or a JSON string containing a required `redirect_urls` key with an object that maps from region keys to URL strings (URLs should point to your load balancer and must route to the path /oidc/v1/callback) | Serverless/Dedicated/Self-Hosted |
server.oidc_authentication.scopes | string | openid | sets OIDC scopes to include with authentication request (space delimited list of strings, required to start with `openid`) | Serverless/Dedicated/Self-Hosted |
server.rangelog.ttl | duration | 720h0m0s | if nonzero, entries in system.rangelog older than this duration are periodically purged | Dedicated/Self-Hosted |
server.redact_sensitive_settings.enabled | boolean | false | enables or disables the redaction of sensitive settings in the output of SHOW CLUSTER SETTINGS and SHOW ALL CLUSTER SETTINGS for users without the MODIFYCLUSTERSETTING privilege | Serverless/Dedicated/Self-Hosted |
server.shutdown.connections.timeout | duration | 0s | the maximum amount of time a server waits for all SQL connections to be closed before proceeding with a drain. (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) | Serverless/Dedicated/Self-Hosted |
server.shutdown.initial_wait | duration | 0s | the amount of time a server waits in an unready state before proceeding with a drain (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting. --drain-wait is to specify the duration of the whole draining process, while server.shutdown.initial_wait is to set the wait time for health probes to notice that the node is not ready.) | Serverless/Dedicated/Self-Hosted |
server.shutdown.lease_transfer_iteration.timeout | duration | 5s | the timeout for a single iteration of the range lease transfer phase of draining (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) | Dedicated/Self-Hosted |
server.shutdown.transactions.timeout | duration | 10s | the timeout for waiting for active transactions to finish during a drain (note that the --drain-wait parameter for cockroach node drain may need adjustment after changing this setting) | Serverless/Dedicated/Self-Hosted |
server.sql_tcp_keep_alive.count | integer | 3 | maximum number of probes that will be sent out before a connection is dropped because it's unresponsive (Linux and Darwin only) | Serverless/Dedicated/Self-Hosted |
server.sql_tcp_keep_alive.interval | duration | 10s | time between keep alive probes and idle time before probes are sent out | Serverless/Dedicated/Self-Hosted |
server.time_until_store_dead | duration | 5m0s | the time after which if there is no new gossiped information about a store, it is considered dead | Serverless/Dedicated/Self-Hosted |
server.user_login.cert_password_method.auto_scram_promotion.enabled | boolean | true | whether to automatically promote cert-password authentication to use SCRAM | Serverless/Dedicated/Self-Hosted |
server.user_login.downgrade_scram_stored_passwords_to_bcrypt.enabled | boolean | true | if server.user_login.password_encryption=crdb-bcrypt, this controls whether to automatically re-encode stored passwords using scram-sha-256 to crdb-bcrypt | Serverless/Dedicated/Self-Hosted |
server.user_login.min_password_length | integer | 1 | the minimum length accepted for passwords set in cleartext via SQL. Note that a value lower than 1 is ignored: passwords cannot be empty in any case. This setting only applies when adding new users or altering an existing user's password; it will not affect existing logins. | Serverless/Dedicated/Self-Hosted |
server.user_login.password_encryption | enumeration | scram-sha-256 | which hash method to use to encode cleartext passwords passed via ALTER/CREATE USER/ROLE WITH PASSWORD [crdb-bcrypt = 2, scram-sha-256 = 3] | Serverless/Dedicated/Self-Hosted |
server.user_login.password_hashes.default_cost.crdb_bcrypt | integer | 10 | the hashing cost to use when storing passwords supplied as cleartext by SQL clients with the hashing method crdb-bcrypt (allowed range: 4-31) | Serverless/Dedicated/Self-Hosted |
server.user_login.password_hashes.default_cost.scram_sha_256 | integer | 10610 | the hashing cost to use when storing passwords supplied as cleartext by SQL clients with the hashing method scram-sha-256 (allowed range: 4096-240000000000) | Serverless/Dedicated/Self-Hosted |
server.user_login.rehash_scram_stored_passwords_on_cost_change.enabled | boolean | true | if server.user_login.password_hashes.default_cost.scram_sha_256 differs from, the cost in a stored hash, this controls whether to automatically re-encode stored passwords using scram-sha-256 with the new default cost | Serverless/Dedicated/Self-Hosted |
server.user_login.timeout | duration | 10s | timeout after which client authentication times out if some system range is unavailable (0 = no timeout) | Serverless/Dedicated/Self-Hosted |
server.user_login.upgrade_bcrypt_stored_passwords_to_scram.enabled | boolean | true | if server.user_login.password_encryption=scram-sha-256, this controls whether to automatically re-encode stored passwords using crdb-bcrypt to scram-sha-256 | Serverless/Dedicated/Self-Hosted |
server.web_session.purge.ttl | duration | 1h0m0s | if nonzero, entries in system.web_sessions older than this duration are periodically purged | Serverless/Dedicated/Self-Hosted |
server.web_session.timeout | duration | 168h0m0s | the duration that a newly created web session will be valid | Serverless/Dedicated/Self-Hosted |
spanconfig.bounds.enabled | boolean | true | dictates whether span config bounds are consulted when serving span configs for secondary tenants | Dedicated/Self-Hosted |
spanconfig.range_coalescing.system.enabled | boolean | true | collapse adjacent ranges with the same span configs, for the ranges specific to the system tenant | Dedicated/Self-Hosted |
spanconfig.range_coalescing.application.enabled | boolean | true | collapse adjacent ranges with the same span configs across all secondary tenant keyspaces | Dedicated/Self-Hosted |
sql.auth.change_own_password.enabled | boolean | false | controls whether a user is allowed to change their own password, even if they have no other privileges | Serverless/Dedicated/Self-Hosted |
sql.auth.grant_option_for_owner.enabled | boolean | true | determines whether the GRANT OPTION for privileges is implicitly given to the owner of an object | Serverless/Dedicated/Self-Hosted |
sql.auth.grant_option_inheritance.enabled | boolean | true | determines whether the GRANT OPTION for privileges is inherited through role membership | Serverless/Dedicated/Self-Hosted |
sql.auth.public_schema_create_privilege.enabled | boolean | true | determines whether to grant all users the CREATE privileges on the public schema when it is created | Serverless/Dedicated/Self-Hosted |
sql.closed_session_cache.capacity | integer | 1000 | the maximum number of sessions in the cache | Serverless/Dedicated/Self-Hosted |
sql.closed_session_cache.time_to_live | integer | 3600 | the maximum time to live, in seconds | Serverless/Dedicated/Self-Hosted |
sql.contention.event_store.capacity | byte size | 64 MiB | the in-memory storage capacity per-node of contention event store | Serverless/Dedicated/Self-Hosted |
sql.contention.event_store.duration_threshold | duration | 0s | minimum contention duration to cause the contention events to be collected into crdb_internal.transaction_contention_events | Serverless/Dedicated/Self-Hosted |
sql.contention.record_serialization_conflicts.enabled | boolean | true | enables recording 40001 errors with conflicting txn meta as SERIALIZATION_CONFLICTcontention events into crdb_internal.transaction_contention_events | Serverless/Dedicated/Self-Hosted |
sql.contention.txn_id_cache.max_size | byte size | 64 MiB | the maximum byte size TxnID cache will use (set to 0 to disable) | Serverless/Dedicated/Self-Hosted |
sql.cross_db_fks.enabled | boolean | false | if true, creating foreign key references across databases is allowed | Serverless/Dedicated/Self-Hosted |
sql.cross_db_sequence_owners.enabled | boolean | false | if true, creating sequences owned by tables from other databases is allowed | Serverless/Dedicated/Self-Hosted |
sql.cross_db_sequence_references.enabled | boolean | false | if true, sequences referenced by tables from other databases are allowed | Serverless/Dedicated/Self-Hosted |
sql.cross_db_views.enabled | boolean | false | if true, creating views that refer to other databases is allowed | Serverless/Dedicated/Self-Hosted |
sql.defaults.cost_scans_with_default_col_size.enabled | boolean | false | setting to true uses the same size for all columns to compute scan cost This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.datestyle | enumeration | iso, mdy | default value for DateStyle session setting [iso, mdy = 0, iso, dmy = 1, iso, ymd = 2] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.default_hash_sharded_index_bucket_count | integer | 16 | used as bucket count if bucket count is not specified in hash sharded index definition This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.default_int_size | integer | 8 | the size, in bytes, of an INT type This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.disallow_full_table_scans.enabled | boolean | false | setting to true rejects queries that have planned a full table scan; set large_full_scan_rows > 0 to allow small full table scans estimated to read fewer than large_full_scan_rows This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.distsql | enumeration | auto | default distributed SQL execution mode [off = 0, auto = 1, on = 2, always = 3] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.experimental_alter_column_type.enabled | boolean | false | default value for experimental_alter_column_type session setting; enables the use of ALTER COLUMN TYPE for general conversions This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.experimental_distsql_planning | enumeration | off | default experimental_distsql_planning mode; enables experimental opt-driven DistSQL planning [off = 0, on = 1] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.experimental_enable_unique_without_index_constraints.enabled | boolean | false | default value for experimental_enable_unique_without_index_constraints session setting;disables unique without index constraints by default This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.experimental_implicit_column_partitioning.enabled | boolean | false | default value for experimental_enable_temp_tables; allows for the use of implicit column partitioning This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.experimental_temporary_tables.enabled | boolean | false | default value for experimental_enable_temp_tables; allows for use of temporary tables by default This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.foreign_key_cascades_limit | integer | 10000 | default value for foreign_key_cascades_limit session setting; limits the number of cascading operations that run as part of a single query This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.idle_in_session_timeout | duration | 0s | default value for the idle_in_session_timeout; default value for the idle_in_session_timeout session setting; controls the duration a session is permitted to idle before the session is terminated; if set to 0, there is no timeout This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.idle_in_transaction_session_timeout | duration | 0s | default value for the idle_in_transaction_session_timeout; controls the duration a session is permitted to idle in a transaction before the session is terminated; if set to 0, there is no timeout This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.implicit_select_for_update.enabled | boolean | true | default value for enable_implicit_select_for_update session setting; enables FOR UPDATE locking during the row-fetch phase of mutation statements This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.insert_fast_path.enabled | boolean | true | default value for enable_insert_fast_path session setting; enables a specialized insert path This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.intervalstyle | enumeration | postgres | default value for IntervalStyle session setting [postgres = 0, iso_8601 = 1, sql_standard = 2] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.large_full_scan_rows | float | 0 | default value for large_full_scan_rows session variable which determines the table size at which full scans are considered large and disallowed when disallow_full_table_scans is set to true; set to 0 to reject all full table or full index scans when disallow_full_table_scans is true This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.locality_optimized_partitioned_index_scan.enabled | boolean | true | default value for locality_optimized_partitioned_index_scan session setting; enables searching for rows in the current region before searching remote regions This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.lock_timeout | duration | 0s | default value for the lock_timeout; default value for the lock_timeout session setting; controls the duration a query is permitted to wait while attempting to acquire a lock on a key or while blocking on an existing lock in order to perform a non-locking read on a key; if set to 0, there is no timeout This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.on_update_rehome_row.enabled | boolean | true | default value for on_update_rehome_row; enables ON UPDATE rehome_row() expressions to trigger on updates This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.optimizer_use_histograms.enabled | boolean | true | default value for optimizer_use_histograms session setting; enables usage of histograms in the optimizer by default This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.optimizer_use_multicol_stats.enabled | boolean | true | default value for optimizer_use_multicol_stats session setting; enables usage of multi-column stats in the optimizer by default This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.override_alter_primary_region_in_super_region.enabled | boolean | false | default value for override_alter_primary_region_in_super_region; allows for altering the primary region even if the primary region is a member of a super region This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.override_multi_region_zone_config.enabled | boolean | false | default value for override_multi_region_zone_config; allows for overriding the zone configs of a multi-region table or database This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.prefer_lookup_joins_for_fks.enabled | boolean | false | default value for prefer_lookup_joins_for_fks session setting; causes foreign key operations to use lookup joins when possible This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.primary_region | string |
| if not empty, all databases created without a PRIMARY REGION will implicitly have the given PRIMARY REGION This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.reorder_joins_limit | integer | 8 | default number of joins to reorder This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.require_explicit_primary_keys.enabled | boolean | false | default value for requiring explicit primary keys in CREATE TABLE statements This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.results_buffer.size | byte size | 512 KiB | default size of the buffer that accumulates results for a statement or a batch of statements before they are sent to the client. This can be overridden on an individual connection with the 'results_buffer_size' parameter. Note that auto-retries generally only happen while no results have been delivered to the client, so reducing this size can increase the number of retriable errors a client receives. On the other hand, increasing the buffer size can increase the delay until the client receives the first result row. Updating the setting only affects new connections. Setting to 0 disables any buffering. This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.serial_normalization | enumeration | rowid | default handling of SERIAL in table definitions [rowid = 0, virtual_sequence = 1, sql_sequence = 2, sql_sequence_cached = 3, unordered_rowid = 4, sql_sequence_cached_node = 5] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.statement_timeout | duration | 0s | default value for the statement_timeout; default value for the statement_timeout session setting; controls the duration a query is permitted to run before it is canceled; if set to 0, there is no timeout This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.stub_catalog_tables.enabled | boolean | true | default value for stub_catalog_tables session setting This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.super_regions.enabled | boolean | false | default value for enable_super_regions; allows for the usage of super regions This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.transaction_rows_read_err | integer | 0 | the limit for the number of rows read by a SQL transaction which - once exceeded - will fail the transaction (or will trigger a logging event to SQL_INTERNAL_PERF for internal transactions); use 0 to disable This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.transaction_rows_read_log | integer | 0 | the threshold for the number of rows read by a SQL transaction which - once exceeded - will trigger a logging event to SQL_PERF (or SQL_INTERNAL_PERF for internal transactions); use 0 to disable This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.transaction_rows_written_err | integer | 0 | the limit for the number of rows written by a SQL transaction which - once exceeded - will fail the transaction (or will trigger a logging event to SQL_INTERNAL_PERF for internal transactions); use 0 to disable This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.transaction_rows_written_log | integer | 0 | the threshold for the number of rows written by a SQL transaction which - once exceeded - will trigger a logging event to SQL_PERF (or SQL_INTERNAL_PERF for internal transactions); use 0 to disable This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.use_declarative_schema_changer | enumeration | on | default value for use_declarative_schema_changer session setting;disables new schema changer by default [off = 0, on = 1, unsafe = 2, unsafe_always = 3] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.vectorize | enumeration | on | default vectorize mode [on = 0, on = 1, on = 2, experimental_always = 3, off = 4] This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.defaults.zigzag_join.enabled | boolean | false | default value for enable_zigzag_join session setting; disallows use of zig-zag join by default This cluster setting is being kept to preserve backwards-compatibility. This session variable default should now be configured using ALTER ROLE... SET | Serverless/Dedicated/Self-Hosted |
sql.distsql.temp_storage.workmem | byte size | 64 MiB | maximum amount of memory in bytes a processor can use before falling back to temp storage | Serverless/Dedicated/Self-Hosted |
sql.guardrails.max_row_size_err | byte size | 512 MiB | maximum size of row (or column family if multiple column families are in use) that SQL can write to the database, above which an error is returned; use 0 to disable | Serverless/Dedicated/Self-Hosted |
sql.guardrails.max_row_size_log | byte size | 64 MiB | maximum size of row (or column family if multiple column families are in use) that SQL can write to the database, above which an event is logged to SQL_PERF (or SQL_INTERNAL_PERF if the mutating statement was internal); use 0 to disable | Serverless/Dedicated/Self-Hosted |
sql.hash_sharded_range_pre_split.max | integer | 16 | max pre-split ranges to have when adding hash sharded index to an existing table | Serverless/Dedicated/Self-Hosted |
sql.index_recommendation.drop_unused_duration | duration | 168h0m0s | the index unused duration at which we begin to recommend dropping the index | Serverless/Dedicated/Self-Hosted |
sql.insights.anomaly_detection.enabled | boolean | true | enable per-fingerprint latency recording and anomaly detection | Serverless/Dedicated/Self-Hosted |
sql.insights.anomaly_detection.latency_threshold | duration | 50ms | statements must surpass this threshold to trigger anomaly detection and identification | Serverless/Dedicated/Self-Hosted |
sql.insights.anomaly_detection.memory_limit | byte size | 1.0 MiB | the maximum amount of memory allowed for tracking statement latencies | Serverless/Dedicated/Self-Hosted |
sql.insights.execution_insights_capacity | integer | 1000 | the size of the per-node store of execution insights | Serverless/Dedicated/Self-Hosted |
sql.insights.high_retry_count.threshold | integer | 10 | the number of retries a slow statement must have undergone for its high retry count to be highlighted as a potential problem | Serverless/Dedicated/Self-Hosted |
sql.insights.latency_threshold | duration | 100ms | amount of time after which an executing statement is considered slow. Use 0 to disable. | Serverless/Dedicated/Self-Hosted |
sql.log.slow_query.experimental_full_table_scans.enabled | boolean | false | when set to true, statements that perform a full table/index scan will be logged to the slow query log even if they do not meet the latency threshold. Must have the slow query log enabled for this setting to have any effect. | Serverless/Dedicated/Self-Hosted |
sql.log.slow_query.internal_queries.enabled | boolean | false | when set to true, internal queries which exceed the slow query log threshold are logged to a separate log. Must have the slow query log enabled for this setting to have any effect. | Serverless/Dedicated/Self-Hosted |
sql.log.slow_query.latency_threshold | duration | 0s | when set to non-zero, log statements whose service latency exceeds the threshold to a secondary logger on each node | Serverless/Dedicated/Self-Hosted |
sql.log.user_audit | string |
| user/role-based audit logging configuration. An enterprise license is required for this cluster setting to take effect. | Serverless/Dedicated/Self-Hosted |
sql.log.user_audit.reduced_config.enabled | boolean | false | enables logic to compute a reduced audit configuration, computing the audit configuration only once at session start instead of at each SQL event. The tradeoff with the increase in performance (~5%), is that changes to the audit configuration (user role memberships/cluster setting) are not reflected within session. Users will need to start a new session to see these changes in their auditing behaviour. | Serverless/Dedicated/Self-Hosted |
sql.metrics.index_usage_stats.enabled | boolean | true | collect per index usage statistics | Serverless/Dedicated/Self-Hosted |
sql.metrics.max_mem_reported_stmt_fingerprints | integer | 100000 | the maximum number of reported statement fingerprints stored in memory | Serverless/Dedicated/Self-Hosted |
sql.metrics.max_mem_reported_txn_fingerprints | integer | 100000 | the maximum number of reported transaction fingerprints stored in memory | Serverless/Dedicated/Self-Hosted |
sql.metrics.max_mem_stmt_fingerprints | integer | 7500 | the maximum number of statement fingerprints stored in memory | Serverless/Dedicated/Self-Hosted |
sql.metrics.max_mem_txn_fingerprints | integer | 7500 | the maximum number of transaction fingerprints stored in memory | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.dump_to_logs.enabled | boolean | false | dump collected statement statistics to node logs when periodically cleared | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.enabled | boolean | true | collect per-statement query statistics | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.gateway_node.enabled | boolean | false | save the gateway node for each statement fingerprint. If false, the value will be stored as 0. | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.index_recommendation_collection.enabled | boolean | true | generate an index recommendation for each fingerprint ID | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.max_mem_reported_idx_recommendations | integer | 5000 | the maximum number of reported index recommendation info stored in memory | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.plan_collection.enabled | boolean | false | periodically save a logical plan for each fingerprint | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.plan_collection.period | duration | 5m0s | the time until a new logical plan is collected | Serverless/Dedicated/Self-Hosted |
sql.metrics.statement_details.threshold | duration | 0s | minimum execution time to cause statement statistics to be collected. If configured, no transaction stats are collected. | Serverless/Dedicated/Self-Hosted |
sql.metrics.transaction_details.enabled | boolean | true | collect per-application transaction statistics | Serverless/Dedicated/Self-Hosted |
sql.multiple_modifications_of_table.enabled | boolean | false | if true, allow statements containing multiple INSERT ON CONFLICT, UPSERT, UPDATE, or DELETE subqueries modifying the same table, at the risk of data corruption if the same row is modified multiple times by a single statement (multiple INSERT subqueries without ON CONFLICT cannot cause corruption and are always allowed) | Serverless/Dedicated/Self-Hosted |
sql.multiregion.drop_primary_region.enabled | boolean | true | allows dropping the PRIMARY REGION of a database if it is the last region | Serverless/Dedicated/Self-Hosted |
sql.notices.enabled | boolean | true | enable notices in the server/client protocol being sent | Serverless/Dedicated/Self-Hosted |
sql.optimizer.uniqueness_checks_for_gen_random_uuid.enabled | boolean | false | if enabled, uniqueness checks may be planned for mutations of UUID columns updated with gen_random_uuid(); otherwise, uniqueness is assumed due to near-zero collision probability | Serverless/Dedicated/Self-Hosted |
sql.schema.telemetry.recurrence | string | @weekly | cron-tab recurrence for SQL schema telemetry job | Dedicated/Self-hosted (read-write); Serverless (read-only) |
sql.spatial.experimental_box2d_comparison_operators.enabled | boolean | false | enables the use of certain experimental box2d comparison operators | Serverless/Dedicated/Self-Hosted |
sql.stats.activity.persisted_rows.max | integer | 200000 | maximum number of rows of statement and transaction activity that will be persisted in the system tables | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_collection.enabled | boolean | true | automatic statistics collection mode | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_collection.fraction_stale_rows | float | 0.2 | target fraction of stale rows per table that will trigger a statistics refresh | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_collection.min_stale_rows | integer | 500 | target minimum number of stale rows per table that will trigger a statistics refresh | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_partial_collection.enabled | boolean | false | automatic partial statistics collection mode | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_partial_collection.fraction_stale_rows | float | 0.05 | target fraction of stale rows per table that will trigger a partial statistics refresh | Serverless/Dedicated/Self-Hosted |
sql.stats.automatic_partial_collection.min_stale_rows | integer | 100 | target minimum number of stale rows per table that will trigger a partial statistics refresh | Serverless/Dedicated/Self-Hosted |
sql.stats.cleanup.recurrence | string | @hourly | cron-tab recurrence for SQL Stats cleanup job | Serverless/Dedicated/Self-Hosted |
sql.stats.flush.enabled | boolean | true | if set, SQL execution statistics are periodically flushed to disk | Serverless/Dedicated/Self-Hosted |
sql.stats.flush.interval | duration | 10m0s | the interval at which SQL execution statistics are flushed to disk, this value must be less than or equal to 1 hour | Serverless/Dedicated/Self-Hosted |
sql.stats.forecasts.enabled | boolean | true | when true, enables generation of statistics forecasts by default for all tables | Serverless/Dedicated/Self-Hosted |
sql.stats.forecasts.max_decrease | float | 0.3333333333333333 | the most a prediction is allowed to decrease, expressed as the minimum ratio of the prediction to the lowest prior observation | Serverless/Dedicated/Self-Hosted |
sql.stats.forecasts.min_goodness_of_fit | float | 0.95 | the minimum R² (goodness of fit) measurement required from all predictive models to use a forecast | Serverless/Dedicated/Self-Hosted |
sql.stats.forecasts.min_observations | integer | 3 | the mimimum number of observed statistics required to produce a statistics forecast | Serverless/Dedicated/Self-Hosted |
sql.stats.histogram_buckets.count | integer | 200 | maximum number of histogram buckets to build during table statistics collection | Serverless/Dedicated/Self-Hosted |
sql.stats.histogram_buckets.include_most_common_values.enabled | boolean | true | whether to include most common values as histogram buckets | Serverless/Dedicated/Self-Hosted |
sql.stats.histogram_buckets.max_fraction_most_common_values | float | 0.1 | maximum fraction of histogram buckets to use for most common values | Serverless/Dedicated/Self-Hosted |
sql.stats.histogram_collection.enabled | boolean | true | histogram collection mode | Serverless/Dedicated/Self-Hosted |
sql.stats.histogram_samples.count | integer | 0 | number of rows sampled for histogram construction during table statistics collection. Not setting this or setting a value of 0 means that a reasonable sample size will be automatically picked based on the table size. | Serverless/Dedicated/Self-Hosted |
sql.stats.multi_column_collection.enabled | boolean | true | multi-column statistics collection mode | Serverless/Dedicated/Self-Hosted |
sql.stats.non_default_columns.min_retention_period | duration | 24h0m0s | minimum retention period for table statistics collected on non-default columns | Serverless/Dedicated/Self-Hosted |
sql.stats.persisted_rows.max | integer | 1000000 | maximum number of rows of statement and transaction statistics that will be persisted in the system tables before compaction begins | Serverless/Dedicated/Self-Hosted |
sql.stats.post_events.enabled | boolean | false | if set, an event is logged for every CREATE STATISTICS job | Serverless/Dedicated/Self-Hosted |
sql.stats.response.max | integer | 20000 | the maximum number of statements and transaction stats returned in a CombinedStatements request | Serverless/Dedicated/Self-Hosted |
sql.stats.response.show_internal.enabled | boolean | false | controls if statistics for internal executions should be returned by the CombinedStatements and if internal sessions should be returned by the ListSessions endpoints. These endpoints are used to display statistics on the SQL Activity pages | Serverless/Dedicated/Self-Hosted |
sql.stats.system_tables.enabled | boolean | true | when true, enables use of statistics on system tables by the query optimizer | Serverless/Dedicated/Self-Hosted |
sql.stats.system_tables_autostats.enabled | boolean | true | when true, enables automatic collection of statistics on system tables | Serverless/Dedicated/Self-Hosted |
sql.stats.virtual_computed_columns.enabled | boolean | true | set to true to collect table statistics on virtual computed columns | Serverless/Dedicated/Self-Hosted |
sql.telemetry.query_sampling.enabled | boolean | false | when set to true, executed queries will emit an event on the telemetry logging channel | Serverless/Dedicated/Self-Hosted |
sql.telemetry.query_sampling.internal.enabled | boolean | false | when set to true, internal queries will be sampled in telemetry logging | Serverless/Dedicated/Self-Hosted |
sql.telemetry.query_sampling.max_event_frequency | integer | 8 | the max event frequency (events per second) at which we sample executions for telemetry, note that it is recommended that this value shares a log-line limit of 10 logs per second on the telemetry pipeline with all other telemetry events. If sampling mode is set to 'transaction', this value is ignored. | Serverless/Dedicated/Self-Hosted |
sql.telemetry.query_sampling.mode | enumeration | statement | the execution level used for telemetry sampling. If set to 'statement', events are sampled at the statement execution level. If set to 'transaction', events are sampled at the transaction execution level, i.e. all statements for a transaction will be logged and are counted together as one sampled event (events are still emitted one per statement). [statement = 0, transaction = 1] | Serverless/Dedicated/Self-Hosted |
sql.telemetry.transaction_sampling.max_event_frequency | integer | 8 | the max event frequency (events per second) at which we sample transactions for telemetry. If sampling mode is set to 'statement', this setting is ignored. In practice, this means that we only sample a transaction if 1/max_event_frequency seconds have elapsed since the last transaction was sampled. | Serverless/Dedicated/Self-Hosted |
sql.telemetry.transaction_sampling.statement_events_per_transaction.max | integer | 50 | the maximum number of statement events to log for every sampled transaction. Note that statements that are logged by force do not adhere to this limit. | Serverless/Dedicated/Self-Hosted |
sql.temp_object_cleaner.cleanup_interval | duration | 30m0s | how often to clean up orphaned temporary objects | Serverless/Dedicated/Self-Hosted |
sql.temp_object_cleaner.wait_interval | duration | 30m0s | how long after creation a temporary object will be cleaned up | Serverless/Dedicated/Self-Hosted |
sql.log.all_statements.enabled | boolean | false | set to true to enable logging of all executed statements | Serverless/Dedicated/Self-Hosted |
sql.trace.stmt.enable_threshold | duration | 0s | enables tracing on all statements; statements executing for longer than this duration will have their trace logged (set to 0 to disable); note that enabling this may have a negative performance impact; this setting applies to individual statements within a transaction and is therefore finer-grained than sql.trace.txn.enable_threshold | Serverless/Dedicated/Self-Hosted |
sql.trace.txn.enable_threshold | duration | 0s | enables tracing on all transactions; transactions open for longer than this duration will have their trace logged (set to 0 to disable); note that enabling this may have a negative performance impact; this setting is coarser-grained than sql.trace.stmt.enable_threshold because it applies to all statements within a transaction as well as client communication (e.g. retries) | Serverless/Dedicated/Self-Hosted |
sql.ttl.changefeed_replication.disabled | boolean | false | if true, deletes issued by TTL will not be replicated via changefeeds (this setting will be ignored by changefeeds that have the ignore_disable_changefeed_replication option set; such changefeeds will continue to replicate all TTL deletes) | Serverless/Dedicated/Self-Hosted |
sql.ttl.default_delete_batch_size | integer | 100 | default amount of rows to delete in a single query during a TTL job | Serverless/Dedicated/Self-Hosted |
sql.ttl.default_delete_rate_limit | integer | 100 | default delete rate limit (rows per second) per node for each TTL job. Use 0 to signify no rate limit. | Serverless/Dedicated/Self-Hosted |
sql.ttl.default_select_batch_size | integer | 500 | default amount of rows to select in a single query during a TTL job | Serverless/Dedicated/Self-Hosted |
sql.ttl.default_select_rate_limit | integer | 0 | default select rate limit (rows per second) per node for each TTL job. Use 0 to signify no rate limit. | Serverless/Dedicated/Self-Hosted |
sql.ttl.job.enabled | boolean | true | whether the TTL job is enabled | Serverless/Dedicated/Self-Hosted |
sql.txn.read_committed_isolation.enabled | boolean | true | set to true to allow transactions to use the READ COMMITTED isolation level if specified by BEGIN/SET commands | Serverless/Dedicated/Self-Hosted |
sql.txn.repeatable_read_isolation.enabled | boolean | false | set to true to allow transactions to use the REPEATABLE READ isolation level if specified by BEGIN/SET commands | Serverless/Dedicated/Self-Hosted |
sql.txn_fingerprint_id_cache.capacity | integer | 100 | the maximum number of txn fingerprint IDs stored | Serverless/Dedicated/Self-Hosted |
storage.delete_compaction_excise.enabled | boolean | true | set to false to direct Pebble to not partially excise sstables in delete-only compactions | Dedicated/Self-hosted (read-write); Serverless (read-only) |
storage.experimental.eventually_file_only_snapshots.enabled | boolean | true | set to false to disable eventually-file-only-snapshots (kv.snapshot_receiver.excise.enabled must also be false) | Dedicated/Self-Hosted |
storage.ingest_split.enabled | boolean | true | set to false to disable ingest-time splitting that lowers write-amplification | Dedicated/Self-Hosted |
storage.ingestion.value_blocks.enabled | boolean | true | set to true to enable writing of value blocks in ingestion sstables | Serverless/Dedicated/Self-Hosted |
storage.max_sync_duration | duration | 20s | maximum duration for disk operations; any operations that take longer than this setting trigger a warning log entry or process crash | Dedicated/Self-hosted (read-write); Serverless (read-only) |
storage.max_sync_duration.fatal.enabled | boolean | true | if true, fatal the process when a disk operation exceeds storage.max_sync_duration | Serverless/Dedicated/Self-Hosted |
storage.sstable.compression_algorithm | enumeration | snappy | determines the compression algorithm to use when compressing sstable data blocks for use in a Pebble store; [snappy = 1, zstd = 2, none = 3] | Dedicated/Self-hosted (read-write); Serverless (read-only) |
storage.sstable.compression_algorithm_backup_storage | enumeration | snappy | determines the compression algorithm to use when compressing sstable data blocks for backup row data storage; [snappy = 1, zstd = 2, none = 3] | Dedicated/Self-hosted (read-write); Serverless (read-only) |
storage.sstable.compression_algorithm_backup_transport | enumeration | snappy | determines the compression algorithm to use when compressing sstable data blocks for backup transport; [snappy = 1, zstd = 2, none = 3] | Dedicated/Self-hosted (read-write); Serverless (read-only) |
storage.wal_failover.unhealthy_op_threshold | duration | 100ms | the latency of a WAL write considered unhealthy and triggers a failover to a secondary WAL location | Dedicated/Self-Hosted |
timeseries.storage.enabled | boolean | true | if set, periodic timeseries data is stored within the cluster; disabling is not recommended unless you are storing the data elsewhere | Dedicated/Self-Hosted |
timeseries.storage.resolution_10s.ttl | duration | 240h0m0s | the maximum age of time series data stored at the 10 second resolution. Data older than this is subject to rollup and deletion. | Dedicated/Self-hosted (read-write); Serverless (read-only) |
timeseries.storage.resolution_30m.ttl | duration | 2160h0m0s | the maximum age of time series data stored at the 30 minute resolution. Data older than this is subject to deletion. | Dedicated/Self-hosted (read-write); Serverless (read-only) |
trace.debug_http_endpoint.enabled | boolean | false | if set, traces for recent requests can be seen at https://<ui>/debug/requests | Serverless/Dedicated/Self-Hosted |
trace.opentelemetry.collector | string |
| address of an OpenTelemetry trace collector to receive traces using the otel gRPC protocol, as <host>:<port>. If no port is specified, 4317 will be used. | Serverless/Dedicated/Self-Hosted |
trace.snapshot.rate | duration | 0s | if non-zero, interval at which background trace snapshots are captured | Serverless/Dedicated/Self-Hosted |
trace.span_registry.enabled | boolean | true | if set, ongoing traces can be seen at https://<ui>/#/debug/tracez | Serverless/Dedicated/Self-Hosted |
trace.zipkin.collector | string |
| the address of a Zipkin instance to receive traces, as <host>:<port>. If no port is specified, 9411 will be used. | Serverless/Dedicated/Self-Hosted |
ui.display_timezone | enumeration | etc/utc | the timezone used to format timestamps in the ui [etc/utc = 0, america/new_york = 1] | Serverless/Dedicated/Self-Hosted |
version | version | 24.3 | set the active cluster version in the format '<major>.<minor>' | Serverless/Dedicated/Self-Hosted |
View current cluster settings
Use the SHOW CLUSTER SETTING
statement.
Change a cluster setting
Use the SET CLUSTER SETTING
statement.
Before changing a cluster setting, note the following:
Changing a cluster setting is not instantaneous, as the change must be propagated to other nodes in the cluster.
Do not change cluster settings while upgrading to a new version of CockroachDB. Wait until all nodes have been upgraded before you make the change.