managing-cluster-settings
Reviews, audits, and modifies CockroachDB cluster settings. Self-Hosted has full control over all settings and start flags. Advanced/BYOC can modify most SQL-level settings but infrastructure settings are managed by CRL. Standard has limited settings access — session variables are the primary tuning mechanism. Basic has minimal settings — use session variables and Cloud Console. Use when auditing configuration, tuning performance, or troubleshooting settings-related issues.
What this skill does
# Managing Cluster Settings Reviews, audits, and modifies CockroachDB cluster settings. Before providing procedures, this skill gathers context to determine which settings are available and which modification approach to recommend for the operator's tier. ## When to Use This Skill - Auditing cluster configuration for production readiness - Identifying settings that deviate from defaults - Tuning performance, replication, or admission control - Verifying settings after an upgrade or incident - Understanding which settings are modifiable on your tier - Managing enterprise license installation and renewal (Self-Hosted) **For version management:** Use [upgrading-cluster-version](../upgrading-cluster-version/SKILL.md) — do not change settings during an upgrade. **For health checks:** Use [reviewing-cluster-health](../reviewing-cluster-health/SKILL.md). --- ## Step 1: Gather Context ### Required Context | Question | Options | Why It Matters | |----------|---------|----------------| | **Deployment tier?** | Self-Hosted, Advanced, BYOC, Standard, Basic | Determines which settings are viewable and modifiable | | **Goal?** | Audit/review, Tune performance, Fix specific issue, Post-upgrade verification | Directs which queries and procedures to use | ### Additional Context (by tier) **If Self-Hosted:** | Question | Options | Why It Matters | |----------|---------|----------------| | **SQL access level?** | admin, MODIFYCLUSTERSETTING, VIEWCLUSTERSETTING | Determines available operations | | **Specific setting or area?** | e.g., "timeout", "replication", "gc" | Narrows search to relevant settings | | **Currently mid-upgrade?** | Yes, No | Settings must NOT be changed during rolling upgrades | **If Advanced or BYOC:** | Question | Options | Why It Matters | |----------|---------|----------------| | **SQL access level?** | admin, limited | Determines available operations | | **Specific setting or area?** | e.g., "timeout", "rangefeed" | Narrows search | **If Standard or Basic:** No additional context needed — settings access is limited. Session variables are the primary tuning mechanism. ### Context-Driven Routing | Tier | Settings Access | Go To | |------|----------------|-------| | Self-Hosted | Full | [Self-Hosted Settings](#self-hosted-settings) | | Advanced / BYOC | Most (some restricted) | [Advanced / BYOC Settings](#advanced--byoc-settings) | | Standard | Limited | [Standard Settings](#standard-settings) | | Basic | Minimal | [Basic Settings](#basic-settings) | --- ## Audit Queries (All Tiers) These read-only queries work on Self-Hosted and Advanced/BYOC. Standard and Basic may have restricted visibility — see tier-specific sections below. ### Non-Default Settings ```sql SELECT variable, value, setting_type, description FROM [SHOW ALL CLUSTER SETTINGS] WHERE value != default_value ORDER BY variable; ``` ### Production-Critical Settings ```sql SELECT variable, value FROM [SHOW ALL CLUSTER SETTINGS] WHERE variable IN ( 'kv.rangefeed.enabled', 'sql.stats.automatic_collection.enabled', 'server.time_until_store_dead', 'admission.kv.enabled', 'cluster.preserve_downgrade_option', 'sql.defaults.idle_in_transaction_session_timeout' ) ORDER BY variable; ``` `gc.ttlseconds` is a zone-config parameter, not a cluster setting; check with `SHOW ZONE CONFIGURATION FOR ...` against the relevant table/database/range. ### Search by Keyword ```sql SELECT variable, value, description FROM [SHOW ALL CLUSTER SETTINGS] WHERE variable LIKE '%<keyword>%' OR description LIKE '%<keyword>%' ORDER BY variable; ``` See [sql-queries reference](references/sql-queries.md) for additional audit queries. See [recommended-values reference](references/recommended-values.md) for production-recommended settings. --- ## Self-Hosted Settings **Applies when:** Tier = Self-Hosted Full control over all cluster settings and node-level start flags. ### Modify a Setting ```sql SHOW CLUSTER SETTING <name>; -- Document current value first SET CLUSTER SETTING <name> = <value>; -- Apply SHOW CLUSTER SETTING <name>; -- Verify ``` ### Reset to Default ```sql RESET CLUSTER SETTING <name>; ``` ### Node-Level Settings (require node restart) Node-level settings are `cockroach start` flags and cannot be changed at runtime. To change: drain the node, stop the process, update flags, restart. See [performing-cluster-maintenance](../performing-cluster-maintenance/SKILL.md). See [node-level-settings reference](references/node-level-settings.md) for the complete list of start flags. ### License Management CockroachDB Self-Hosted requires an enterprise license for features like backup/restore, changefeeds, encryption at rest, and multi-region capabilities. The license is stored as a cluster setting. **Check current license:** ```sql SHOW CLUSTER SETTING cluster.organization; SHOW CLUSTER SETTING enterprise.license; ``` **Install or renew a license:** ```sql SET CLUSTER SETTING cluster.organization = '<organization-name>'; SET CLUSTER SETTING enterprise.license = '<license-key>'; ``` **Verify license is active:** ```sql SELECT * FROM [SHOW CLUSTER SETTING enterprise.license]; ``` **License expiry:** Expired licenses do not cause data loss or cluster unavailability. Enterprise features (backups, CDC, EAR) stop working until renewed. Core features remain available. Monitor license expiry proactively. **CockroachDB Core (free):** If running without an enterprise license, no license management is needed. Core features are always available. --- ## Advanced / BYOC Settings **Applies when:** Tier = Advanced or BYOC Most SQL-level cluster settings are modifiable. Infrastructure-level settings are managed by Cockroach Labs. ### Modifiable (common examples) ```sql SET CLUSTER SETTING sql.defaults.idle_in_transaction_session_timeout = '300s'; SET CLUSTER SETTING sql.defaults.statement_timeout = '30s'; SET CLUSTER SETTING kv.rangefeed.enabled = true; -- gc.ttlseconds is a zone configuration parameter, not a cluster setting ALTER RANGE default CONFIGURE ZONE USING gc.ttlseconds = 86400; ``` ### Restricted (managed by CRL) Settings managed by Cockroach Labs that cannot be modified: - `server.time_until_store_dead` - `kv.snapshot_rebalance.max_rate` - `cluster.preserve_downgrade_option` (use Cloud Console for upgrades) - Node-level flags (`--cache`, `--max-sql-memory`) — managed by CRL If a modification is rejected, the error will indicate the setting is managed by CockroachDB Cloud. Use Cloud Console or contact support. **License:** Enterprise license is managed automatically by Cockroach Labs on Advanced/BYOC. No customer action needed. See [cloud-restricted-settings reference](references/cloud-restricted-settings.md) for the full list. --- ## Standard Settings **Applies when:** Tier = Standard Standard is a multi-tenant managed service. Most cluster settings are not modifiable because changes could affect other tenants. Use **session variables** as the primary tuning mechanism. ### Session Variables (recommended approach) ```sql -- Per-session SET statement_timeout = '30s'; -- Default for all sessions (preferred over sql.defaults.*) ALTER ROLE ALL SET statement_timeout = '30s'; ALTER ROLE ALL SET idle_in_transaction_session_timeout = '300s'; ``` ### What You Can Configure - Session-level timeouts and defaults via `SET` and `ALTER ROLE` - SQL-level behavior through session variables ### What Is Managed by CRL - All infrastructure settings (replication, admission control, storage) - Compute and networking — configured via Cloud Console **Note:** `SHOW ALL CLUSTER SETTINGS` may return a limited set of settings on Standard. --- ## Basic Settings **Applies when:** Tier = Basic Basic is a serverless offering with minimal settings access. Infrastructure is fully managed and auto-scales. Use session variables for SQL-level tuning. ### Session Variables ```sql SET statement_timeout = '30s'; ALTER ROLE ALL SET statement_timeout = '30s'; ``` ###
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.