Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

managing-cluster-settings管理集群设置

Agent Skill

managing-cluster-settings 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

423

周安装

18

GitHub Stars

9

下载量

148
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:managing-cluster-settings(管理集群设置)
来源仓库:https://github.com/cockroachlabs/cockroachdb-skills
仓库路径:skills/managing-cluster-settings
安装命令:
npx skills add https://github.com/cockroachlabs/cockroachdb-skills --skill managing-cluster-settings
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cockroachlabs/cockroachdb-skills --skill managing-cluster-settings

简介

managing-cluster-settings 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 核验具体用法后再部署到生产环境。

SKILL.md

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 — do not change settings during an upgrade. For health checks: Use reviewing-cluster-health.


Step 1: Gather Context

Required Context

QuestionOptionsWhy It Matters
Deployment tier?Self-Hosted, Advanced, BYOC, Standard, BasicDetermines which settings are viewable and modifiable
Goal?Audit/review, Tune performance, Fix specific issue, Post-upgrade verificationDirects which queries and procedures to use

Additional Context (by tier)

If Self-Hosted:

QuestionOptionsWhy It Matters
SQL access level?admin, MODIFYCLUSTERSETTING, VIEWCLUSTERSETTINGDetermines available operations
Specific setting or area?e.g., "timeout", "replication", "gc"Narrows search to relevant settings
Currently mid-upgrade?Yes, NoSettings must NOT be changed during rolling upgrades

If Advanced or BYOC:

QuestionOptionsWhy It Matters
SQL access level?admin, limitedDetermines 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

TierSettings AccessGo To
Self-HostedFullSelf-Hosted Settings
Advanced / BYOCMost (some restricted)Advanced / BYOC Settings
StandardLimitedStandard Settings
BasicMinimalBasic 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

SELECT variable, value, setting_type, description
FROM [SHOW ALL CLUSTER SETTINGS]
WHERE value != default_value ORDER BY variable;

Production-Critical Settings

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',
  'gc.ttlseconds', 'cluster.preserve_downgrade_option',
  'sql.defaults.idle_in_transaction_session_timeout'
) ORDER BY variable;

Search by Keyword

SELECT variable, value, description FROM [SHOW ALL CLUSTER SETTINGS]
WHERE variable LIKE '%<keyword>%' OR description LIKE '%<keyword>%'
ORDER BY variable;

See sql-queries reference for additional audit queries. See recommended-values reference 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

SHOW CLUSTER SETTING <name>;          -- Document current value first
SET CLUSTER SETTING <name> = <value>; -- Apply
SHOW CLUSTER SETTING <name>;          -- Verify

Reset to Default

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.

See node-level-settings reference 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:

SHOW CLUSTER SETTING cluster.organization;
SHOW CLUSTER SETTING enterprise.license;

Install or renew a license:

SET CLUSTER SETTING cluster.organization = '<organization-name>';
SET CLUSTER SETTING enterprise.license = '<license-key>';

Verify license is active:

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)

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 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)

-- 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

SET statement_timeout = '30s';
ALTER ROLE ALL SET statement_timeout = '30s';

Cloud Console Configuration

  • Spending limits
  • IP allowlists
  • Region selection

All other configuration is managed by Cockroach Labs. If more control over settings is needed, consider upgrading to Standard or Advanced.


Safety Considerations

Read-only queries are safe on all tiers.

Before modifying any setting:

  1. Document the current value (for rollback)
  2. Verify you are NOT mid-upgrade
  3. Understand the impact (check description field)
  4. Change one setting at a time
  5. Monitor for 15-30 minutes before making additional changes

Risk levels:

  • Low: sql.defaults.statement_timeout, diagnostics.reporting.enabled
  • Medium: gc.ttlseconds, kv.snapshot_rebalance.max_rate
  • High: cluster.preserve_downgrade_option, admission.kv.enabled

Critical: Never change settings during a rolling upgrade. Cluster settings affect ALL workloads on the cluster — prefer session variables for narrower scope when possible.

See safety-guide reference for detailed risk assessments per setting.

Troubleshooting

IssueTierFix
"permission denied" on SETSH/ADV/BYOCGrant MODIFYCLUSTERSETTING or use admin role
"managed by Cloud" errorADV/BYOCSetting restricted on this tier; use Cloud Console or contact support
Setting not visibleSTD/BASExpected — limited settings visibility on multi-tenant/serverless tiers
No visible effectSH/ADV/BYOCCheck for session variable override; verify with SHOW
Setting reverted after upgradeSHRe-apply; document in operational runbook
Enterprise features stopped workingSHLicense expired; renew with SET CLUSTER SETTING enterprise.license
"enterprise license required" errorSHInstall license or use core-only alternative

References

Skill references:

Related skills:

Official CockroachDB Documentation:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.15%
按下载量换算54

Claude

27.79%
按下载量换算41

Cursor

18.04%
按下载量换算27

Gemini CLI

8.6%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills