[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-cockroachdb-setting-up-local-cluster":3,"mdc--jzm0o7-key":36,"related-repo-cockroachdb-setting-up-local-cluster":1946,"related-org-cockroachdb-setting-up-local-cluster":2042},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":31,"sourceUrl":34,"mdContent":35},"setting-up-local-cluster","set up local CockroachDB clusters","Downloads and starts a local CockroachDB cluster for development using the official binary. Use when a developer needs a local CockroachDB instance, when no cluster is available, or when setting up a new development environment.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"cockroachdb","CockroachDB","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fcockroachdb.png",[12,16,19],{"name":13,"slug":14,"type":15},"Local Development","local-development","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"Engineering","engineering",3,"https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fclaude-plugin","2026-07-12T07:56:44.438654",null,2,[28,29,8,30],"claude","cockroach-cloud","developer-tools",{"repoUrl":23,"stars":22,"forks":26,"topics":32,"description":33},[28,29,8,30],"CockroachDB development plugin for Claude","https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fclaude-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fcockroachdb-onboarding-and-migrations\u002Fsetting-up-local-cluster","---\nname: setting-up-local-cluster\ndescription: Downloads and starts a local CockroachDB cluster for development using the official binary. Use when a developer needs a local CockroachDB instance, when no cluster is available, or when setting up a new development environment.\n---\n\n# Setting Up a Local CockroachDB Cluster\n\nGuides you through downloading, installing, and starting a local CockroachDB cluster for development. Uses the official binary -- no Docker or external runtime dependencies required.\n\n## When to Use This Skill\n\n- Developer asks to \"set up CockroachDB\" or \"start a local database\"\n- No CockroachDB cluster is reachable\n- Developer wants to build an app with CockroachDB from scratch\n- Setting up a new development environment\n\n## Prerequisites\n\n- macOS (Intel or Apple Silicon), Linux (Intel or ARM), or Windows (Intel)\n- `curl` or `wget` available for downloading the binary\n- ~500 MB disk space per node\n- Ports 26257-26259 (SQL), 26357-26359 (RPC), and 8080-8082 (DB Console) available for a 3-node cluster\n\n## Step 1: Detect Platform and Download\n\nDetect the OS and architecture, then download the appropriate binary.\n\n### Download URLs\n\nBase URL: `https:\u002F\u002Fbinaries.cockroachdb.com\u002F`\n\n| OS | Architecture | Filename Pattern |\n|----|-------------|-----------------|\n| Linux | Intel (amd64) | `cockroach-v{VERSION}.linux-amd64.tgz` |\n| Linux | ARM (arm64) | `cockroach-v{VERSION}.linux-arm64.tgz` |\n| macOS | Intel (amd64) | `cockroach-v{VERSION}.darwin-10.9-amd64.tgz` |\n| macOS | Apple Silicon (arm64) | `cockroach-v{VERSION}.darwin-11.0-arm64.tgz` |\n| Windows | Intel (amd64) | `cockroach-v{VERSION}.windows-6.2-amd64.zip` |\n\nReplace `{VERSION}` with the desired release (e.g., `25.4.9`). See [CockroachDB Releases](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Freleases\u002F) for the latest GA version.\n\n### Installation\n\n```bash\n# Example: macOS Apple Silicon, v25.4.9\ncurl -fsSL https:\u002F\u002Fbinaries.cockroachdb.com\u002Fcockroach-v25.4.9.darwin-11.0-arm64.tgz | tar xz\nmkdir -p ~\u002F.cockroachdb\u002Fbin\ncp cockroach-v25.4.9.darwin-11.0-arm64\u002Fcockroach ~\u002F.cockroachdb\u002Fbin\u002F\nexport PATH=\"$HOME\u002F.cockroachdb\u002Fbin:$PATH\"\n```\n\nIf `cockroach` is already on PATH, skip the download.\n\n## Step 2: Start the Cluster\n\nA 3-node cluster is recommended for development because it exercises replication, range distribution, leaseholder balancing, and survival goals -- core CockroachDB capabilities that a single node cannot demonstrate.\n\n### 3-Node Cluster (Recommended)\n\n```bash\n# Start 3 nodes with separate SQL, RPC, and HTTP ports.\n# Use $HOME instead of ~ in --store \u002F --log-dir \u002F --pid-file: tilde does not\n# expand inside --flag=~\u002F... in bash or zsh.\ncockroach start --insecure --listen-addr=localhost:26357 --sql-addr=localhost:26257 \\\n  --http-addr=localhost:8080 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode1 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\ncockroach start --insecure --listen-addr=localhost:26358 --sql-addr=localhost:26258 \\\n  --http-addr=localhost:8081 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode2 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode2 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode2\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\ncockroach start --insecure --listen-addr=localhost:26359 --sql-addr=localhost:26259 \\\n  --http-addr=localhost:8082 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode3 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode3 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode3\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\n# Initialize the cluster (only needed on first start)\ncockroach init --insecure --host=localhost:26357\n```\n\n### Single-Node (Lightweight)\n\nFor minimal resource usage when full cluster capabilities are not needed:\n\n```bash\ncockroach start-single-node --insecure --listen-addr=localhost:26257 \\\n  --http-addr=localhost:8080 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode1 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid --background\n```\n\n## Step 3: Verify the Cluster\n\n```bash\n# Check SQL connectivity\ncockroach sql --insecure --host=localhost:26257 -e \"SELECT version();\"\n\n# Verify all nodes joined (3-node cluster)\ncockroach node status --insecure --host=localhost:26257\n\n# Check replication factor (should show num_replicas = 3)\ncockroach sql --insecure --host=localhost:26257 \\\n  -e \"SHOW ZONE CONFIGURATION FOR RANGE default;\"\n```\n\n## Connection Details\n\n| Property | Value |\n|----------|-------|\n| SQL URL | `postgresql:\u002F\u002Froot@localhost:26257\u002Fdefaultdb?sslmode=disable` |\n| DB Console | `http:\u002F\u002Flocalhost:8080` |\n| User | `root` (no password in insecure mode) |\n| Database | `defaultdb` |\n\n### Environment Variables for MCP Toolbox\n\n```bash\nexport COCKROACHDB_HOST=localhost\nexport COCKROACHDB_PORT=26257\nexport COCKROACHDB_USER=root\nexport COCKROACHDB_PASSWORD=\nexport COCKROACHDB_DATABASE=defaultdb\nexport COCKROACHDB_SSLMODE=disable\n```\n\n## Stopping the Cluster\n\n```bash\n# Graceful shutdown via PID files\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode2\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode3\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\n```\n\n## Destroying All Data\n\n```bash\nrm -rf $HOME\u002F.cockroachdb\u002Fdata $HOME\u002F.cockroachdb\u002Flogs\n```\n\n## Air-Gapped \u002F Restricted Environments\n\nFor environments without internet access:\n\n1. Pre-download the binary on an allowed machine\n2. Transfer to the target machine via approved channels\n3. Place at `~\u002F.cockroachdb\u002Fbin\u002Fcockroach` or any PATH location\n\n## What a 3-Node Cluster Enables\n\n| Capability | Single Node | 3-Node |\n|-----------|-------------|--------|\n| SQL execution | Yes | Yes |\n| Replication (num_replicas=3) | No | Yes |\n| Range distribution | No | Yes |\n| Leaseholder balancing | No | Yes |\n| Node failure simulation | No | Yes |\n| `SHOW RANGES` with real distribution | No | Yes |\n| Survival goals (`SURVIVE ZONE FAILURE`) | No | Yes |\n| Contention between nodes | No | Yes |\n\n## Safety Considerations\n\n- The cluster runs in **insecure mode** (no TLS, no authentication) -- suitable for local development only.\n- Data persists in `$HOME\u002F.cockroachdb\u002Fdata` across restarts.\n- The binary and data are user-local (`~\u002F.cockroachdb\u002F`) -- no `sudo` or system modifications.\n- A 3-node cluster uses approximately 750 MB of RAM total.\n\n## References\n\n- [Install CockroachDB](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Finstall-cockroachdb.html)\n- [Start a Local Cluster](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fstart-a-local-cluster.html)\n- [CockroachDB Releases](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Freleases\u002F)\n- [cockroach start](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fcockroach-start.html)\n- [cockroach init](https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fcockroach-init.html)\n",{"data":37,"body":38},{"name":4,"description":6},{"type":39,"children":40},"root",[41,50,56,63,88,94,132,138,143,150,161,300,332,338,479,492,498,503,509,933,939,944,1037,1043,1198,1204,1294,1300,1430,1436,1564,1570,1608,1614,1619,1646,1652,1822,1828,1883,1889,1940],{"type":42,"tag":43,"props":44,"children":46},"element","h1",{"id":45},"setting-up-a-local-cockroachdb-cluster",[47],{"type":48,"value":49},"text","Setting Up a Local CockroachDB Cluster",{"type":42,"tag":51,"props":52,"children":53},"p",{},[54],{"type":48,"value":55},"Guides you through downloading, installing, and starting a local CockroachDB cluster for development. Uses the official binary -- no Docker or external runtime dependencies required.",{"type":42,"tag":57,"props":58,"children":60},"h2",{"id":59},"when-to-use-this-skill",[61],{"type":48,"value":62},"When to Use This Skill",{"type":42,"tag":64,"props":65,"children":66},"ul",{},[67,73,78,83],{"type":42,"tag":68,"props":69,"children":70},"li",{},[71],{"type":48,"value":72},"Developer asks to \"set up CockroachDB\" or \"start a local database\"",{"type":42,"tag":68,"props":74,"children":75},{},[76],{"type":48,"value":77},"No CockroachDB cluster is reachable",{"type":42,"tag":68,"props":79,"children":80},{},[81],{"type":48,"value":82},"Developer wants to build an app with CockroachDB from scratch",{"type":42,"tag":68,"props":84,"children":85},{},[86],{"type":48,"value":87},"Setting up a new development environment",{"type":42,"tag":57,"props":89,"children":91},{"id":90},"prerequisites",[92],{"type":48,"value":93},"Prerequisites",{"type":42,"tag":64,"props":95,"children":96},{},[97,102,122,127],{"type":42,"tag":68,"props":98,"children":99},{},[100],{"type":48,"value":101},"macOS (Intel or Apple Silicon), Linux (Intel or ARM), or Windows (Intel)",{"type":42,"tag":68,"props":103,"children":104},{},[105,112,114,120],{"type":42,"tag":106,"props":107,"children":109},"code",{"className":108},[],[110],{"type":48,"value":111},"curl",{"type":48,"value":113}," or ",{"type":42,"tag":106,"props":115,"children":117},{"className":116},[],[118],{"type":48,"value":119},"wget",{"type":48,"value":121}," available for downloading the binary",{"type":42,"tag":68,"props":123,"children":124},{},[125],{"type":48,"value":126},"~500 MB disk space per node",{"type":42,"tag":68,"props":128,"children":129},{},[130],{"type":48,"value":131},"Ports 26257-26259 (SQL), 26357-26359 (RPC), and 8080-8082 (DB Console) available for a 3-node cluster",{"type":42,"tag":57,"props":133,"children":135},{"id":134},"step-1-detect-platform-and-download",[136],{"type":48,"value":137},"Step 1: Detect Platform and Download",{"type":42,"tag":51,"props":139,"children":140},{},[141],{"type":48,"value":142},"Detect the OS and architecture, then download the appropriate binary.",{"type":42,"tag":144,"props":145,"children":147},"h3",{"id":146},"download-urls",[148],{"type":48,"value":149},"Download URLs",{"type":42,"tag":51,"props":151,"children":152},{},[153,155],{"type":48,"value":154},"Base URL: ",{"type":42,"tag":106,"props":156,"children":158},{"className":157},[],[159],{"type":48,"value":160},"https:\u002F\u002Fbinaries.cockroachdb.com\u002F",{"type":42,"tag":162,"props":163,"children":164},"table",{},[165,189],{"type":42,"tag":166,"props":167,"children":168},"thead",{},[169],{"type":42,"tag":170,"props":171,"children":172},"tr",{},[173,179,184],{"type":42,"tag":174,"props":175,"children":176},"th",{},[177],{"type":48,"value":178},"OS",{"type":42,"tag":174,"props":180,"children":181},{},[182],{"type":48,"value":183},"Architecture",{"type":42,"tag":174,"props":185,"children":186},{},[187],{"type":48,"value":188},"Filename Pattern",{"type":42,"tag":190,"props":191,"children":192},"tbody",{},[193,216,237,258,279],{"type":42,"tag":170,"props":194,"children":195},{},[196,202,207],{"type":42,"tag":197,"props":198,"children":199},"td",{},[200],{"type":48,"value":201},"Linux",{"type":42,"tag":197,"props":203,"children":204},{},[205],{"type":48,"value":206},"Intel (amd64)",{"type":42,"tag":197,"props":208,"children":209},{},[210],{"type":42,"tag":106,"props":211,"children":213},{"className":212},[],[214],{"type":48,"value":215},"cockroach-v{VERSION}.linux-amd64.tgz",{"type":42,"tag":170,"props":217,"children":218},{},[219,223,228],{"type":42,"tag":197,"props":220,"children":221},{},[222],{"type":48,"value":201},{"type":42,"tag":197,"props":224,"children":225},{},[226],{"type":48,"value":227},"ARM (arm64)",{"type":42,"tag":197,"props":229,"children":230},{},[231],{"type":42,"tag":106,"props":232,"children":234},{"className":233},[],[235],{"type":48,"value":236},"cockroach-v{VERSION}.linux-arm64.tgz",{"type":42,"tag":170,"props":238,"children":239},{},[240,245,249],{"type":42,"tag":197,"props":241,"children":242},{},[243],{"type":48,"value":244},"macOS",{"type":42,"tag":197,"props":246,"children":247},{},[248],{"type":48,"value":206},{"type":42,"tag":197,"props":250,"children":251},{},[252],{"type":42,"tag":106,"props":253,"children":255},{"className":254},[],[256],{"type":48,"value":257},"cockroach-v{VERSION}.darwin-10.9-amd64.tgz",{"type":42,"tag":170,"props":259,"children":260},{},[261,265,270],{"type":42,"tag":197,"props":262,"children":263},{},[264],{"type":48,"value":244},{"type":42,"tag":197,"props":266,"children":267},{},[268],{"type":48,"value":269},"Apple Silicon (arm64)",{"type":42,"tag":197,"props":271,"children":272},{},[273],{"type":42,"tag":106,"props":274,"children":276},{"className":275},[],[277],{"type":48,"value":278},"cockroach-v{VERSION}.darwin-11.0-arm64.tgz",{"type":42,"tag":170,"props":280,"children":281},{},[282,287,291],{"type":42,"tag":197,"props":283,"children":284},{},[285],{"type":48,"value":286},"Windows",{"type":42,"tag":197,"props":288,"children":289},{},[290],{"type":48,"value":206},{"type":42,"tag":197,"props":292,"children":293},{},[294],{"type":42,"tag":106,"props":295,"children":297},{"className":296},[],[298],{"type":48,"value":299},"cockroach-v{VERSION}.windows-6.2-amd64.zip",{"type":42,"tag":51,"props":301,"children":302},{},[303,305,311,313,319,321,330],{"type":48,"value":304},"Replace ",{"type":42,"tag":106,"props":306,"children":308},{"className":307},[],[309],{"type":48,"value":310},"{VERSION}",{"type":48,"value":312}," with the desired release (e.g., ",{"type":42,"tag":106,"props":314,"children":316},{"className":315},[],[317],{"type":48,"value":318},"25.4.9",{"type":48,"value":320},"). See ",{"type":42,"tag":322,"props":323,"children":327},"a",{"href":324,"rel":325},"https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Freleases\u002F",[326],"nofollow",[328],{"type":48,"value":329},"CockroachDB Releases",{"type":48,"value":331}," for the latest GA version.",{"type":42,"tag":144,"props":333,"children":335},{"id":334},"installation",[336],{"type":48,"value":337},"Installation",{"type":42,"tag":339,"props":340,"children":345},"pre",{"className":341,"code":342,"language":343,"meta":344,"style":344},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Example: macOS Apple Silicon, v25.4.9\ncurl -fsSL https:\u002F\u002Fbinaries.cockroachdb.com\u002Fcockroach-v25.4.9.darwin-11.0-arm64.tgz | tar xz\nmkdir -p ~\u002F.cockroachdb\u002Fbin\ncp cockroach-v25.4.9.darwin-11.0-arm64\u002Fcockroach ~\u002F.cockroachdb\u002Fbin\u002F\nexport PATH=\"$HOME\u002F.cockroachdb\u002Fbin:$PATH\"\n","bash","",[346],{"type":42,"tag":106,"props":347,"children":348},{"__ignoreMap":344},[349,361,396,414,433],{"type":42,"tag":350,"props":351,"children":354},"span",{"class":352,"line":353},"line",1,[355],{"type":42,"tag":350,"props":356,"children":358},{"style":357},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[359],{"type":48,"value":360},"# Example: macOS Apple Silicon, v25.4.9\n",{"type":42,"tag":350,"props":362,"children":363},{"class":352,"line":26},[364,369,375,380,386,391],{"type":42,"tag":350,"props":365,"children":367},{"style":366},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[368],{"type":48,"value":111},{"type":42,"tag":350,"props":370,"children":372},{"style":371},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[373],{"type":48,"value":374}," -fsSL",{"type":42,"tag":350,"props":376,"children":377},{"style":371},[378],{"type":48,"value":379}," https:\u002F\u002Fbinaries.cockroachdb.com\u002Fcockroach-v25.4.9.darwin-11.0-arm64.tgz",{"type":42,"tag":350,"props":381,"children":383},{"style":382},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[384],{"type":48,"value":385}," |",{"type":42,"tag":350,"props":387,"children":388},{"style":366},[389],{"type":48,"value":390}," tar",{"type":42,"tag":350,"props":392,"children":393},{"style":371},[394],{"type":48,"value":395}," xz\n",{"type":42,"tag":350,"props":397,"children":398},{"class":352,"line":22},[399,404,409],{"type":42,"tag":350,"props":400,"children":401},{"style":366},[402],{"type":48,"value":403},"mkdir",{"type":42,"tag":350,"props":405,"children":406},{"style":371},[407],{"type":48,"value":408}," -p",{"type":42,"tag":350,"props":410,"children":411},{"style":371},[412],{"type":48,"value":413}," ~\u002F.cockroachdb\u002Fbin\n",{"type":42,"tag":350,"props":415,"children":417},{"class":352,"line":416},4,[418,423,428],{"type":42,"tag":350,"props":419,"children":420},{"style":366},[421],{"type":48,"value":422},"cp",{"type":42,"tag":350,"props":424,"children":425},{"style":371},[426],{"type":48,"value":427}," cockroach-v25.4.9.darwin-11.0-arm64\u002Fcockroach",{"type":42,"tag":350,"props":429,"children":430},{"style":371},[431],{"type":48,"value":432}," ~\u002F.cockroachdb\u002Fbin\u002F\n",{"type":42,"tag":350,"props":434,"children":436},{"class":352,"line":435},5,[437,443,449,454,459,464,469,474],{"type":42,"tag":350,"props":438,"children":440},{"style":439},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[441],{"type":48,"value":442},"export",{"type":42,"tag":350,"props":444,"children":446},{"style":445},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[447],{"type":48,"value":448}," PATH",{"type":42,"tag":350,"props":450,"children":451},{"style":382},[452],{"type":48,"value":453},"=",{"type":42,"tag":350,"props":455,"children":456},{"style":382},[457],{"type":48,"value":458},"\"",{"type":42,"tag":350,"props":460,"children":461},{"style":445},[462],{"type":48,"value":463},"$HOME",{"type":42,"tag":350,"props":465,"children":466},{"style":371},[467],{"type":48,"value":468},"\u002F.cockroachdb\u002Fbin:",{"type":42,"tag":350,"props":470,"children":471},{"style":445},[472],{"type":48,"value":473},"$PATH",{"type":42,"tag":350,"props":475,"children":476},{"style":382},[477],{"type":48,"value":478},"\"\n",{"type":42,"tag":51,"props":480,"children":481},{},[482,484,490],{"type":48,"value":483},"If ",{"type":42,"tag":106,"props":485,"children":487},{"className":486},[],[488],{"type":48,"value":489},"cockroach",{"type":48,"value":491}," is already on PATH, skip the download.",{"type":42,"tag":57,"props":493,"children":495},{"id":494},"step-2-start-the-cluster",[496],{"type":48,"value":497},"Step 2: Start the Cluster",{"type":42,"tag":51,"props":499,"children":500},{},[501],{"type":48,"value":502},"A 3-node cluster is recommended for development because it exercises replication, range distribution, leaseholder balancing, and survival goals -- core CockroachDB capabilities that a single node cannot demonstrate.",{"type":42,"tag":144,"props":504,"children":506},{"id":505},"_3-node-cluster-recommended",[507],{"type":48,"value":508},"3-Node Cluster (Recommended)",{"type":42,"tag":339,"props":510,"children":512},{"className":341,"code":511,"language":343,"meta":344,"style":344},"# Start 3 nodes with separate SQL, RPC, and HTTP ports.\n# Use $HOME instead of ~ in --store \u002F --log-dir \u002F --pid-file: tilde does not\n# expand inside --flag=~\u002F... in bash or zsh.\ncockroach start --insecure --listen-addr=localhost:26357 --sql-addr=localhost:26257 \\\n  --http-addr=localhost:8080 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode1 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\ncockroach start --insecure --listen-addr=localhost:26358 --sql-addr=localhost:26258 \\\n  --http-addr=localhost:8081 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode2 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode2 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode2\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\ncockroach start --insecure --listen-addr=localhost:26359 --sql-addr=localhost:26259 \\\n  --http-addr=localhost:8082 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode3 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode3 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode3\u002Fcockroach.pid \\\n  --join=localhost:26357,localhost:26358,localhost:26359 --background\n\n# Initialize the cluster (only needed on first start)\ncockroach init --insecure --host=localhost:26357\n",[513],{"type":42,"tag":106,"props":514,"children":515},{"__ignoreMap":344},[516,524,532,540,572,598,620,642,656,666,696,722,743,764,776,784,814,840,861,882,894,902,911],{"type":42,"tag":350,"props":517,"children":518},{"class":352,"line":353},[519],{"type":42,"tag":350,"props":520,"children":521},{"style":357},[522],{"type":48,"value":523},"# Start 3 nodes with separate SQL, RPC, and HTTP ports.\n",{"type":42,"tag":350,"props":525,"children":526},{"class":352,"line":26},[527],{"type":42,"tag":350,"props":528,"children":529},{"style":357},[530],{"type":48,"value":531},"# Use $HOME instead of ~ in --store \u002F --log-dir \u002F --pid-file: tilde does not\n",{"type":42,"tag":350,"props":533,"children":534},{"class":352,"line":22},[535],{"type":42,"tag":350,"props":536,"children":537},{"style":357},[538],{"type":48,"value":539},"# expand inside --flag=~\u002F... in bash or zsh.\n",{"type":42,"tag":350,"props":541,"children":542},{"class":352,"line":416},[543,547,552,557,562,567],{"type":42,"tag":350,"props":544,"children":545},{"style":366},[546],{"type":48,"value":489},{"type":42,"tag":350,"props":548,"children":549},{"style":371},[550],{"type":48,"value":551}," start",{"type":42,"tag":350,"props":553,"children":554},{"style":371},[555],{"type":48,"value":556}," --insecure",{"type":42,"tag":350,"props":558,"children":559},{"style":371},[560],{"type":48,"value":561}," --listen-addr=localhost:26357",{"type":42,"tag":350,"props":563,"children":564},{"style":371},[565],{"type":48,"value":566}," --sql-addr=localhost:26257",{"type":42,"tag":350,"props":568,"children":569},{"style":445},[570],{"type":48,"value":571}," \\\n",{"type":42,"tag":350,"props":573,"children":574},{"class":352,"line":435},[575,580,585,589,594],{"type":42,"tag":350,"props":576,"children":577},{"style":371},[578],{"type":48,"value":579},"  --http-addr=localhost:8080",{"type":42,"tag":350,"props":581,"children":582},{"style":371},[583],{"type":48,"value":584}," --store=",{"type":42,"tag":350,"props":586,"children":587},{"style":445},[588],{"type":48,"value":463},{"type":42,"tag":350,"props":590,"children":591},{"style":371},[592],{"type":48,"value":593},"\u002F.cockroachdb\u002Fdata\u002Fnode1",{"type":42,"tag":350,"props":595,"children":596},{"style":445},[597],{"type":48,"value":571},{"type":42,"tag":350,"props":599,"children":601},{"class":352,"line":600},6,[602,607,611,616],{"type":42,"tag":350,"props":603,"children":604},{"style":371},[605],{"type":48,"value":606},"  --log-dir=",{"type":42,"tag":350,"props":608,"children":609},{"style":445},[610],{"type":48,"value":463},{"type":42,"tag":350,"props":612,"children":613},{"style":371},[614],{"type":48,"value":615},"\u002F.cockroachdb\u002Flogs\u002Fnode1",{"type":42,"tag":350,"props":617,"children":618},{"style":445},[619],{"type":48,"value":571},{"type":42,"tag":350,"props":621,"children":623},{"class":352,"line":622},7,[624,629,633,638],{"type":42,"tag":350,"props":625,"children":626},{"style":371},[627],{"type":48,"value":628},"  --pid-file=",{"type":42,"tag":350,"props":630,"children":631},{"style":445},[632],{"type":48,"value":463},{"type":42,"tag":350,"props":634,"children":635},{"style":371},[636],{"type":48,"value":637},"\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid",{"type":42,"tag":350,"props":639,"children":640},{"style":445},[641],{"type":48,"value":571},{"type":42,"tag":350,"props":643,"children":645},{"class":352,"line":644},8,[646,651],{"type":42,"tag":350,"props":647,"children":648},{"style":371},[649],{"type":48,"value":650},"  --join=localhost:26357,localhost:26358,localhost:26359",{"type":42,"tag":350,"props":652,"children":653},{"style":371},[654],{"type":48,"value":655}," --background\n",{"type":42,"tag":350,"props":657,"children":659},{"class":352,"line":658},9,[660],{"type":42,"tag":350,"props":661,"children":663},{"emptyLinePlaceholder":662},true,[664],{"type":48,"value":665},"\n",{"type":42,"tag":350,"props":667,"children":669},{"class":352,"line":668},10,[670,674,678,682,687,692],{"type":42,"tag":350,"props":671,"children":672},{"style":366},[673],{"type":48,"value":489},{"type":42,"tag":350,"props":675,"children":676},{"style":371},[677],{"type":48,"value":551},{"type":42,"tag":350,"props":679,"children":680},{"style":371},[681],{"type":48,"value":556},{"type":42,"tag":350,"props":683,"children":684},{"style":371},[685],{"type":48,"value":686}," --listen-addr=localhost:26358",{"type":42,"tag":350,"props":688,"children":689},{"style":371},[690],{"type":48,"value":691}," --sql-addr=localhost:26258",{"type":42,"tag":350,"props":693,"children":694},{"style":445},[695],{"type":48,"value":571},{"type":42,"tag":350,"props":697,"children":699},{"class":352,"line":698},11,[700,705,709,713,718],{"type":42,"tag":350,"props":701,"children":702},{"style":371},[703],{"type":48,"value":704},"  --http-addr=localhost:8081",{"type":42,"tag":350,"props":706,"children":707},{"style":371},[708],{"type":48,"value":584},{"type":42,"tag":350,"props":710,"children":711},{"style":445},[712],{"type":48,"value":463},{"type":42,"tag":350,"props":714,"children":715},{"style":371},[716],{"type":48,"value":717},"\u002F.cockroachdb\u002Fdata\u002Fnode2",{"type":42,"tag":350,"props":719,"children":720},{"style":445},[721],{"type":48,"value":571},{"type":42,"tag":350,"props":723,"children":725},{"class":352,"line":724},12,[726,730,734,739],{"type":42,"tag":350,"props":727,"children":728},{"style":371},[729],{"type":48,"value":606},{"type":42,"tag":350,"props":731,"children":732},{"style":445},[733],{"type":48,"value":463},{"type":42,"tag":350,"props":735,"children":736},{"style":371},[737],{"type":48,"value":738},"\u002F.cockroachdb\u002Flogs\u002Fnode2",{"type":42,"tag":350,"props":740,"children":741},{"style":445},[742],{"type":48,"value":571},{"type":42,"tag":350,"props":744,"children":746},{"class":352,"line":745},13,[747,751,755,760],{"type":42,"tag":350,"props":748,"children":749},{"style":371},[750],{"type":48,"value":628},{"type":42,"tag":350,"props":752,"children":753},{"style":445},[754],{"type":48,"value":463},{"type":42,"tag":350,"props":756,"children":757},{"style":371},[758],{"type":48,"value":759},"\u002F.cockroachdb\u002Fdata\u002Fnode2\u002Fcockroach.pid",{"type":42,"tag":350,"props":761,"children":762},{"style":445},[763],{"type":48,"value":571},{"type":42,"tag":350,"props":765,"children":767},{"class":352,"line":766},14,[768,772],{"type":42,"tag":350,"props":769,"children":770},{"style":371},[771],{"type":48,"value":650},{"type":42,"tag":350,"props":773,"children":774},{"style":371},[775],{"type":48,"value":655},{"type":42,"tag":350,"props":777,"children":779},{"class":352,"line":778},15,[780],{"type":42,"tag":350,"props":781,"children":782},{"emptyLinePlaceholder":662},[783],{"type":48,"value":665},{"type":42,"tag":350,"props":785,"children":787},{"class":352,"line":786},16,[788,792,796,800,805,810],{"type":42,"tag":350,"props":789,"children":790},{"style":366},[791],{"type":48,"value":489},{"type":42,"tag":350,"props":793,"children":794},{"style":371},[795],{"type":48,"value":551},{"type":42,"tag":350,"props":797,"children":798},{"style":371},[799],{"type":48,"value":556},{"type":42,"tag":350,"props":801,"children":802},{"style":371},[803],{"type":48,"value":804}," --listen-addr=localhost:26359",{"type":42,"tag":350,"props":806,"children":807},{"style":371},[808],{"type":48,"value":809}," --sql-addr=localhost:26259",{"type":42,"tag":350,"props":811,"children":812},{"style":445},[813],{"type":48,"value":571},{"type":42,"tag":350,"props":815,"children":817},{"class":352,"line":816},17,[818,823,827,831,836],{"type":42,"tag":350,"props":819,"children":820},{"style":371},[821],{"type":48,"value":822},"  --http-addr=localhost:8082",{"type":42,"tag":350,"props":824,"children":825},{"style":371},[826],{"type":48,"value":584},{"type":42,"tag":350,"props":828,"children":829},{"style":445},[830],{"type":48,"value":463},{"type":42,"tag":350,"props":832,"children":833},{"style":371},[834],{"type":48,"value":835},"\u002F.cockroachdb\u002Fdata\u002Fnode3",{"type":42,"tag":350,"props":837,"children":838},{"style":445},[839],{"type":48,"value":571},{"type":42,"tag":350,"props":841,"children":843},{"class":352,"line":842},18,[844,848,852,857],{"type":42,"tag":350,"props":845,"children":846},{"style":371},[847],{"type":48,"value":606},{"type":42,"tag":350,"props":849,"children":850},{"style":445},[851],{"type":48,"value":463},{"type":42,"tag":350,"props":853,"children":854},{"style":371},[855],{"type":48,"value":856},"\u002F.cockroachdb\u002Flogs\u002Fnode3",{"type":42,"tag":350,"props":858,"children":859},{"style":445},[860],{"type":48,"value":571},{"type":42,"tag":350,"props":862,"children":864},{"class":352,"line":863},19,[865,869,873,878],{"type":42,"tag":350,"props":866,"children":867},{"style":371},[868],{"type":48,"value":628},{"type":42,"tag":350,"props":870,"children":871},{"style":445},[872],{"type":48,"value":463},{"type":42,"tag":350,"props":874,"children":875},{"style":371},[876],{"type":48,"value":877},"\u002F.cockroachdb\u002Fdata\u002Fnode3\u002Fcockroach.pid",{"type":42,"tag":350,"props":879,"children":880},{"style":445},[881],{"type":48,"value":571},{"type":42,"tag":350,"props":883,"children":885},{"class":352,"line":884},20,[886,890],{"type":42,"tag":350,"props":887,"children":888},{"style":371},[889],{"type":48,"value":650},{"type":42,"tag":350,"props":891,"children":892},{"style":371},[893],{"type":48,"value":655},{"type":42,"tag":350,"props":895,"children":897},{"class":352,"line":896},21,[898],{"type":42,"tag":350,"props":899,"children":900},{"emptyLinePlaceholder":662},[901],{"type":48,"value":665},{"type":42,"tag":350,"props":903,"children":905},{"class":352,"line":904},22,[906],{"type":42,"tag":350,"props":907,"children":908},{"style":357},[909],{"type":48,"value":910},"# Initialize the cluster (only needed on first start)\n",{"type":42,"tag":350,"props":912,"children":914},{"class":352,"line":913},23,[915,919,924,928],{"type":42,"tag":350,"props":916,"children":917},{"style":366},[918],{"type":48,"value":489},{"type":42,"tag":350,"props":920,"children":921},{"style":371},[922],{"type":48,"value":923}," init",{"type":42,"tag":350,"props":925,"children":926},{"style":371},[927],{"type":48,"value":556},{"type":42,"tag":350,"props":929,"children":930},{"style":371},[931],{"type":48,"value":932}," --host=localhost:26357\n",{"type":42,"tag":144,"props":934,"children":936},{"id":935},"single-node-lightweight",[937],{"type":48,"value":938},"Single-Node (Lightweight)",{"type":42,"tag":51,"props":940,"children":941},{},[942],{"type":48,"value":943},"For minimal resource usage when full cluster capabilities are not needed:",{"type":42,"tag":339,"props":945,"children":947},{"className":341,"code":946,"language":343,"meta":344,"style":344},"cockroach start-single-node --insecure --listen-addr=localhost:26257 \\\n  --http-addr=localhost:8080 --store=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1 \\\n  --log-dir=$HOME\u002F.cockroachdb\u002Flogs\u002Fnode1 \\\n  --pid-file=$HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid --background\n",[948],{"type":42,"tag":106,"props":949,"children":950},{"__ignoreMap":344},[951,976,999,1018],{"type":42,"tag":350,"props":952,"children":953},{"class":352,"line":353},[954,958,963,967,972],{"type":42,"tag":350,"props":955,"children":956},{"style":366},[957],{"type":48,"value":489},{"type":42,"tag":350,"props":959,"children":960},{"style":371},[961],{"type":48,"value":962}," start-single-node",{"type":42,"tag":350,"props":964,"children":965},{"style":371},[966],{"type":48,"value":556},{"type":42,"tag":350,"props":968,"children":969},{"style":371},[970],{"type":48,"value":971}," --listen-addr=localhost:26257",{"type":42,"tag":350,"props":973,"children":974},{"style":445},[975],{"type":48,"value":571},{"type":42,"tag":350,"props":977,"children":978},{"class":352,"line":26},[979,983,987,991,995],{"type":42,"tag":350,"props":980,"children":981},{"style":371},[982],{"type":48,"value":579},{"type":42,"tag":350,"props":984,"children":985},{"style":371},[986],{"type":48,"value":584},{"type":42,"tag":350,"props":988,"children":989},{"style":445},[990],{"type":48,"value":463},{"type":42,"tag":350,"props":992,"children":993},{"style":371},[994],{"type":48,"value":593},{"type":42,"tag":350,"props":996,"children":997},{"style":445},[998],{"type":48,"value":571},{"type":42,"tag":350,"props":1000,"children":1001},{"class":352,"line":22},[1002,1006,1010,1014],{"type":42,"tag":350,"props":1003,"children":1004},{"style":371},[1005],{"type":48,"value":606},{"type":42,"tag":350,"props":1007,"children":1008},{"style":445},[1009],{"type":48,"value":463},{"type":42,"tag":350,"props":1011,"children":1012},{"style":371},[1013],{"type":48,"value":615},{"type":42,"tag":350,"props":1015,"children":1016},{"style":445},[1017],{"type":48,"value":571},{"type":42,"tag":350,"props":1019,"children":1020},{"class":352,"line":416},[1021,1025,1029,1033],{"type":42,"tag":350,"props":1022,"children":1023},{"style":371},[1024],{"type":48,"value":628},{"type":42,"tag":350,"props":1026,"children":1027},{"style":445},[1028],{"type":48,"value":463},{"type":42,"tag":350,"props":1030,"children":1031},{"style":371},[1032],{"type":48,"value":637},{"type":42,"tag":350,"props":1034,"children":1035},{"style":371},[1036],{"type":48,"value":655},{"type":42,"tag":57,"props":1038,"children":1040},{"id":1039},"step-3-verify-the-cluster",[1041],{"type":48,"value":1042},"Step 3: Verify the Cluster",{"type":42,"tag":339,"props":1044,"children":1046},{"className":341,"code":1045,"language":343,"meta":344,"style":344},"# Check SQL connectivity\ncockroach sql --insecure --host=localhost:26257 -e \"SELECT version();\"\n\n# Verify all nodes joined (3-node cluster)\ncockroach node status --insecure --host=localhost:26257\n\n# Check replication factor (should show num_replicas = 3)\ncockroach sql --insecure --host=localhost:26257 \\\n  -e \"SHOW ZONE CONFIGURATION FOR RANGE default;\"\n",[1047],{"type":42,"tag":106,"props":1048,"children":1049},{"__ignoreMap":344},[1050,1058,1098,1105,1113,1139,1146,1154,1177],{"type":42,"tag":350,"props":1051,"children":1052},{"class":352,"line":353},[1053],{"type":42,"tag":350,"props":1054,"children":1055},{"style":357},[1056],{"type":48,"value":1057},"# Check SQL connectivity\n",{"type":42,"tag":350,"props":1059,"children":1060},{"class":352,"line":26},[1061,1065,1070,1074,1079,1084,1089,1094],{"type":42,"tag":350,"props":1062,"children":1063},{"style":366},[1064],{"type":48,"value":489},{"type":42,"tag":350,"props":1066,"children":1067},{"style":371},[1068],{"type":48,"value":1069}," sql",{"type":42,"tag":350,"props":1071,"children":1072},{"style":371},[1073],{"type":48,"value":556},{"type":42,"tag":350,"props":1075,"children":1076},{"style":371},[1077],{"type":48,"value":1078}," --host=localhost:26257",{"type":42,"tag":350,"props":1080,"children":1081},{"style":371},[1082],{"type":48,"value":1083}," -e",{"type":42,"tag":350,"props":1085,"children":1086},{"style":382},[1087],{"type":48,"value":1088}," \"",{"type":42,"tag":350,"props":1090,"children":1091},{"style":371},[1092],{"type":48,"value":1093},"SELECT version();",{"type":42,"tag":350,"props":1095,"children":1096},{"style":382},[1097],{"type":48,"value":478},{"type":42,"tag":350,"props":1099,"children":1100},{"class":352,"line":22},[1101],{"type":42,"tag":350,"props":1102,"children":1103},{"emptyLinePlaceholder":662},[1104],{"type":48,"value":665},{"type":42,"tag":350,"props":1106,"children":1107},{"class":352,"line":416},[1108],{"type":42,"tag":350,"props":1109,"children":1110},{"style":357},[1111],{"type":48,"value":1112},"# Verify all nodes joined (3-node cluster)\n",{"type":42,"tag":350,"props":1114,"children":1115},{"class":352,"line":435},[1116,1120,1125,1130,1134],{"type":42,"tag":350,"props":1117,"children":1118},{"style":366},[1119],{"type":48,"value":489},{"type":42,"tag":350,"props":1121,"children":1122},{"style":371},[1123],{"type":48,"value":1124}," node",{"type":42,"tag":350,"props":1126,"children":1127},{"style":371},[1128],{"type":48,"value":1129}," status",{"type":42,"tag":350,"props":1131,"children":1132},{"style":371},[1133],{"type":48,"value":556},{"type":42,"tag":350,"props":1135,"children":1136},{"style":371},[1137],{"type":48,"value":1138}," --host=localhost:26257\n",{"type":42,"tag":350,"props":1140,"children":1141},{"class":352,"line":600},[1142],{"type":42,"tag":350,"props":1143,"children":1144},{"emptyLinePlaceholder":662},[1145],{"type":48,"value":665},{"type":42,"tag":350,"props":1147,"children":1148},{"class":352,"line":622},[1149],{"type":42,"tag":350,"props":1150,"children":1151},{"style":357},[1152],{"type":48,"value":1153},"# Check replication factor (should show num_replicas = 3)\n",{"type":42,"tag":350,"props":1155,"children":1156},{"class":352,"line":644},[1157,1161,1165,1169,1173],{"type":42,"tag":350,"props":1158,"children":1159},{"style":366},[1160],{"type":48,"value":489},{"type":42,"tag":350,"props":1162,"children":1163},{"style":371},[1164],{"type":48,"value":1069},{"type":42,"tag":350,"props":1166,"children":1167},{"style":371},[1168],{"type":48,"value":556},{"type":42,"tag":350,"props":1170,"children":1171},{"style":371},[1172],{"type":48,"value":1078},{"type":42,"tag":350,"props":1174,"children":1175},{"style":445},[1176],{"type":48,"value":571},{"type":42,"tag":350,"props":1178,"children":1179},{"class":352,"line":658},[1180,1185,1189,1194],{"type":42,"tag":350,"props":1181,"children":1182},{"style":371},[1183],{"type":48,"value":1184},"  -e",{"type":42,"tag":350,"props":1186,"children":1187},{"style":382},[1188],{"type":48,"value":1088},{"type":42,"tag":350,"props":1190,"children":1191},{"style":371},[1192],{"type":48,"value":1193},"SHOW ZONE CONFIGURATION FOR RANGE default;",{"type":42,"tag":350,"props":1195,"children":1196},{"style":382},[1197],{"type":48,"value":478},{"type":42,"tag":57,"props":1199,"children":1201},{"id":1200},"connection-details",[1202],{"type":48,"value":1203},"Connection Details",{"type":42,"tag":162,"props":1205,"children":1206},{},[1207,1223],{"type":42,"tag":166,"props":1208,"children":1209},{},[1210],{"type":42,"tag":170,"props":1211,"children":1212},{},[1213,1218],{"type":42,"tag":174,"props":1214,"children":1215},{},[1216],{"type":48,"value":1217},"Property",{"type":42,"tag":174,"props":1219,"children":1220},{},[1221],{"type":48,"value":1222},"Value",{"type":42,"tag":190,"props":1224,"children":1225},{},[1226,1243,1260,1278],{"type":42,"tag":170,"props":1227,"children":1228},{},[1229,1234],{"type":42,"tag":197,"props":1230,"children":1231},{},[1232],{"type":48,"value":1233},"SQL URL",{"type":42,"tag":197,"props":1235,"children":1236},{},[1237],{"type":42,"tag":106,"props":1238,"children":1240},{"className":1239},[],[1241],{"type":48,"value":1242},"postgresql:\u002F\u002Froot@localhost:26257\u002Fdefaultdb?sslmode=disable",{"type":42,"tag":170,"props":1244,"children":1245},{},[1246,1251],{"type":42,"tag":197,"props":1247,"children":1248},{},[1249],{"type":48,"value":1250},"DB Console",{"type":42,"tag":197,"props":1252,"children":1253},{},[1254],{"type":42,"tag":106,"props":1255,"children":1257},{"className":1256},[],[1258],{"type":48,"value":1259},"http:\u002F\u002Flocalhost:8080",{"type":42,"tag":170,"props":1261,"children":1262},{},[1263,1268],{"type":42,"tag":197,"props":1264,"children":1265},{},[1266],{"type":48,"value":1267},"User",{"type":42,"tag":197,"props":1269,"children":1270},{},[1271,1276],{"type":42,"tag":106,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":48,"value":39},{"type":48,"value":1277}," (no password in insecure mode)",{"type":42,"tag":170,"props":1279,"children":1280},{},[1281,1285],{"type":42,"tag":197,"props":1282,"children":1283},{},[1284],{"type":48,"value":17},{"type":42,"tag":197,"props":1286,"children":1287},{},[1288],{"type":42,"tag":106,"props":1289,"children":1291},{"className":1290},[],[1292],{"type":48,"value":1293},"defaultdb",{"type":42,"tag":144,"props":1295,"children":1297},{"id":1296},"environment-variables-for-mcp-toolbox",[1298],{"type":48,"value":1299},"Environment Variables for MCP Toolbox",{"type":42,"tag":339,"props":1301,"children":1303},{"className":341,"code":1302,"language":343,"meta":344,"style":344},"export COCKROACHDB_HOST=localhost\nexport COCKROACHDB_PORT=26257\nexport COCKROACHDB_USER=root\nexport COCKROACHDB_PASSWORD=\nexport COCKROACHDB_DATABASE=defaultdb\nexport COCKROACHDB_SSLMODE=disable\n",[1304],{"type":42,"tag":106,"props":1305,"children":1306},{"__ignoreMap":344},[1307,1328,1350,1371,1388,1409],{"type":42,"tag":350,"props":1308,"children":1309},{"class":352,"line":353},[1310,1314,1319,1323],{"type":42,"tag":350,"props":1311,"children":1312},{"style":439},[1313],{"type":48,"value":442},{"type":42,"tag":350,"props":1315,"children":1316},{"style":445},[1317],{"type":48,"value":1318}," COCKROACHDB_HOST",{"type":42,"tag":350,"props":1320,"children":1321},{"style":382},[1322],{"type":48,"value":453},{"type":42,"tag":350,"props":1324,"children":1325},{"style":445},[1326],{"type":48,"value":1327},"localhost\n",{"type":42,"tag":350,"props":1329,"children":1330},{"class":352,"line":26},[1331,1335,1340,1344],{"type":42,"tag":350,"props":1332,"children":1333},{"style":439},[1334],{"type":48,"value":442},{"type":42,"tag":350,"props":1336,"children":1337},{"style":445},[1338],{"type":48,"value":1339}," COCKROACHDB_PORT",{"type":42,"tag":350,"props":1341,"children":1342},{"style":382},[1343],{"type":48,"value":453},{"type":42,"tag":350,"props":1345,"children":1347},{"style":1346},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1348],{"type":48,"value":1349},"26257\n",{"type":42,"tag":350,"props":1351,"children":1352},{"class":352,"line":22},[1353,1357,1362,1366],{"type":42,"tag":350,"props":1354,"children":1355},{"style":439},[1356],{"type":48,"value":442},{"type":42,"tag":350,"props":1358,"children":1359},{"style":445},[1360],{"type":48,"value":1361}," COCKROACHDB_USER",{"type":42,"tag":350,"props":1363,"children":1364},{"style":382},[1365],{"type":48,"value":453},{"type":42,"tag":350,"props":1367,"children":1368},{"style":445},[1369],{"type":48,"value":1370},"root\n",{"type":42,"tag":350,"props":1372,"children":1373},{"class":352,"line":416},[1374,1378,1383],{"type":42,"tag":350,"props":1375,"children":1376},{"style":439},[1377],{"type":48,"value":442},{"type":42,"tag":350,"props":1379,"children":1380},{"style":445},[1381],{"type":48,"value":1382}," COCKROACHDB_PASSWORD",{"type":42,"tag":350,"props":1384,"children":1385},{"style":382},[1386],{"type":48,"value":1387},"=\n",{"type":42,"tag":350,"props":1389,"children":1390},{"class":352,"line":435},[1391,1395,1400,1404],{"type":42,"tag":350,"props":1392,"children":1393},{"style":439},[1394],{"type":48,"value":442},{"type":42,"tag":350,"props":1396,"children":1397},{"style":445},[1398],{"type":48,"value":1399}," COCKROACHDB_DATABASE",{"type":42,"tag":350,"props":1401,"children":1402},{"style":382},[1403],{"type":48,"value":453},{"type":42,"tag":350,"props":1405,"children":1406},{"style":445},[1407],{"type":48,"value":1408},"defaultdb\n",{"type":42,"tag":350,"props":1410,"children":1411},{"class":352,"line":600},[1412,1416,1421,1425],{"type":42,"tag":350,"props":1413,"children":1414},{"style":439},[1415],{"type":48,"value":442},{"type":42,"tag":350,"props":1417,"children":1418},{"style":445},[1419],{"type":48,"value":1420}," COCKROACHDB_SSLMODE",{"type":42,"tag":350,"props":1422,"children":1423},{"style":382},[1424],{"type":48,"value":453},{"type":42,"tag":350,"props":1426,"children":1427},{"style":445},[1428],{"type":48,"value":1429},"disable\n",{"type":42,"tag":57,"props":1431,"children":1433},{"id":1432},"stopping-the-cluster",[1434],{"type":48,"value":1435},"Stopping the Cluster",{"type":42,"tag":339,"props":1437,"children":1439},{"className":341,"code":1438,"language":343,"meta":344,"style":344},"# Graceful shutdown via PID files\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode1\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode2\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\nkill $(cat $HOME\u002F.cockroachdb\u002Fdata\u002Fnode3\u002Fcockroach.pid) 2>\u002Fdev\u002Fnull\n",[1440],{"type":42,"tag":106,"props":1441,"children":1442},{"__ignoreMap":344},[1443,1451,1494,1529],{"type":42,"tag":350,"props":1444,"children":1445},{"class":352,"line":353},[1446],{"type":42,"tag":350,"props":1447,"children":1448},{"style":357},[1449],{"type":48,"value":1450},"# Graceful shutdown via PID files\n",{"type":42,"tag":350,"props":1452,"children":1453},{"class":352,"line":26},[1454,1460,1465,1470,1475,1479,1484,1489],{"type":42,"tag":350,"props":1455,"children":1457},{"style":1456},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1458],{"type":48,"value":1459},"kill",{"type":42,"tag":350,"props":1461,"children":1462},{"style":382},[1463],{"type":48,"value":1464}," $(",{"type":42,"tag":350,"props":1466,"children":1467},{"style":366},[1468],{"type":48,"value":1469},"cat",{"type":42,"tag":350,"props":1471,"children":1472},{"style":445},[1473],{"type":48,"value":1474}," $HOME",{"type":42,"tag":350,"props":1476,"children":1477},{"style":371},[1478],{"type":48,"value":637},{"type":42,"tag":350,"props":1480,"children":1481},{"style":382},[1482],{"type":48,"value":1483},")",{"type":42,"tag":350,"props":1485,"children":1486},{"style":382},[1487],{"type":48,"value":1488}," 2>",{"type":42,"tag":350,"props":1490,"children":1491},{"style":371},[1492],{"type":48,"value":1493},"\u002Fdev\u002Fnull\n",{"type":42,"tag":350,"props":1495,"children":1496},{"class":352,"line":22},[1497,1501,1505,1509,1513,1517,1521,1525],{"type":42,"tag":350,"props":1498,"children":1499},{"style":1456},[1500],{"type":48,"value":1459},{"type":42,"tag":350,"props":1502,"children":1503},{"style":382},[1504],{"type":48,"value":1464},{"type":42,"tag":350,"props":1506,"children":1507},{"style":366},[1508],{"type":48,"value":1469},{"type":42,"tag":350,"props":1510,"children":1511},{"style":445},[1512],{"type":48,"value":1474},{"type":42,"tag":350,"props":1514,"children":1515},{"style":371},[1516],{"type":48,"value":759},{"type":42,"tag":350,"props":1518,"children":1519},{"style":382},[1520],{"type":48,"value":1483},{"type":42,"tag":350,"props":1522,"children":1523},{"style":382},[1524],{"type":48,"value":1488},{"type":42,"tag":350,"props":1526,"children":1527},{"style":371},[1528],{"type":48,"value":1493},{"type":42,"tag":350,"props":1530,"children":1531},{"class":352,"line":416},[1532,1536,1540,1544,1548,1552,1556,1560],{"type":42,"tag":350,"props":1533,"children":1534},{"style":1456},[1535],{"type":48,"value":1459},{"type":42,"tag":350,"props":1537,"children":1538},{"style":382},[1539],{"type":48,"value":1464},{"type":42,"tag":350,"props":1541,"children":1542},{"style":366},[1543],{"type":48,"value":1469},{"type":42,"tag":350,"props":1545,"children":1546},{"style":445},[1547],{"type":48,"value":1474},{"type":42,"tag":350,"props":1549,"children":1550},{"style":371},[1551],{"type":48,"value":877},{"type":42,"tag":350,"props":1553,"children":1554},{"style":382},[1555],{"type":48,"value":1483},{"type":42,"tag":350,"props":1557,"children":1558},{"style":382},[1559],{"type":48,"value":1488},{"type":42,"tag":350,"props":1561,"children":1562},{"style":371},[1563],{"type":48,"value":1493},{"type":42,"tag":57,"props":1565,"children":1567},{"id":1566},"destroying-all-data",[1568],{"type":48,"value":1569},"Destroying All Data",{"type":42,"tag":339,"props":1571,"children":1573},{"className":341,"code":1572,"language":343,"meta":344,"style":344},"rm -rf $HOME\u002F.cockroachdb\u002Fdata $HOME\u002F.cockroachdb\u002Flogs\n",[1574],{"type":42,"tag":106,"props":1575,"children":1576},{"__ignoreMap":344},[1577],{"type":42,"tag":350,"props":1578,"children":1579},{"class":352,"line":353},[1580,1585,1590,1594,1599,1603],{"type":42,"tag":350,"props":1581,"children":1582},{"style":366},[1583],{"type":48,"value":1584},"rm",{"type":42,"tag":350,"props":1586,"children":1587},{"style":371},[1588],{"type":48,"value":1589}," -rf",{"type":42,"tag":350,"props":1591,"children":1592},{"style":445},[1593],{"type":48,"value":1474},{"type":42,"tag":350,"props":1595,"children":1596},{"style":371},[1597],{"type":48,"value":1598},"\u002F.cockroachdb\u002Fdata",{"type":42,"tag":350,"props":1600,"children":1601},{"style":445},[1602],{"type":48,"value":1474},{"type":42,"tag":350,"props":1604,"children":1605},{"style":371},[1606],{"type":48,"value":1607},"\u002F.cockroachdb\u002Flogs\n",{"type":42,"tag":57,"props":1609,"children":1611},{"id":1610},"air-gapped-restricted-environments",[1612],{"type":48,"value":1613},"Air-Gapped \u002F Restricted Environments",{"type":42,"tag":51,"props":1615,"children":1616},{},[1617],{"type":48,"value":1618},"For environments without internet access:",{"type":42,"tag":1620,"props":1621,"children":1622},"ol",{},[1623,1628,1633],{"type":42,"tag":68,"props":1624,"children":1625},{},[1626],{"type":48,"value":1627},"Pre-download the binary on an allowed machine",{"type":42,"tag":68,"props":1629,"children":1630},{},[1631],{"type":48,"value":1632},"Transfer to the target machine via approved channels",{"type":42,"tag":68,"props":1634,"children":1635},{},[1636,1638,1644],{"type":48,"value":1637},"Place at ",{"type":42,"tag":106,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":48,"value":1643},"~\u002F.cockroachdb\u002Fbin\u002Fcockroach",{"type":48,"value":1645}," or any PATH location",{"type":42,"tag":57,"props":1647,"children":1649},{"id":1648},"what-a-3-node-cluster-enables",[1650],{"type":48,"value":1651},"What a 3-Node Cluster Enables",{"type":42,"tag":162,"props":1653,"children":1654},{},[1655,1676],{"type":42,"tag":166,"props":1656,"children":1657},{},[1658],{"type":42,"tag":170,"props":1659,"children":1660},{},[1661,1666,1671],{"type":42,"tag":174,"props":1662,"children":1663},{},[1664],{"type":48,"value":1665},"Capability",{"type":42,"tag":174,"props":1667,"children":1668},{},[1669],{"type":48,"value":1670},"Single Node",{"type":42,"tag":174,"props":1672,"children":1673},{},[1674],{"type":48,"value":1675},"3-Node",{"type":42,"tag":190,"props":1677,"children":1678},{},[1679,1696,1713,1729,1745,1761,1783,1806],{"type":42,"tag":170,"props":1680,"children":1681},{},[1682,1687,1692],{"type":42,"tag":197,"props":1683,"children":1684},{},[1685],{"type":48,"value":1686},"SQL execution",{"type":42,"tag":197,"props":1688,"children":1689},{},[1690],{"type":48,"value":1691},"Yes",{"type":42,"tag":197,"props":1693,"children":1694},{},[1695],{"type":48,"value":1691},{"type":42,"tag":170,"props":1697,"children":1698},{},[1699,1704,1709],{"type":42,"tag":197,"props":1700,"children":1701},{},[1702],{"type":48,"value":1703},"Replication (num_replicas=3)",{"type":42,"tag":197,"props":1705,"children":1706},{},[1707],{"type":48,"value":1708},"No",{"type":42,"tag":197,"props":1710,"children":1711},{},[1712],{"type":48,"value":1691},{"type":42,"tag":170,"props":1714,"children":1715},{},[1716,1721,1725],{"type":42,"tag":197,"props":1717,"children":1718},{},[1719],{"type":48,"value":1720},"Range distribution",{"type":42,"tag":197,"props":1722,"children":1723},{},[1724],{"type":48,"value":1708},{"type":42,"tag":197,"props":1726,"children":1727},{},[1728],{"type":48,"value":1691},{"type":42,"tag":170,"props":1730,"children":1731},{},[1732,1737,1741],{"type":42,"tag":197,"props":1733,"children":1734},{},[1735],{"type":48,"value":1736},"Leaseholder balancing",{"type":42,"tag":197,"props":1738,"children":1739},{},[1740],{"type":48,"value":1708},{"type":42,"tag":197,"props":1742,"children":1743},{},[1744],{"type":48,"value":1691},{"type":42,"tag":170,"props":1746,"children":1747},{},[1748,1753,1757],{"type":42,"tag":197,"props":1749,"children":1750},{},[1751],{"type":48,"value":1752},"Node failure simulation",{"type":42,"tag":197,"props":1754,"children":1755},{},[1756],{"type":48,"value":1708},{"type":42,"tag":197,"props":1758,"children":1759},{},[1760],{"type":48,"value":1691},{"type":42,"tag":170,"props":1762,"children":1763},{},[1764,1775,1779],{"type":42,"tag":197,"props":1765,"children":1766},{},[1767,1773],{"type":42,"tag":106,"props":1768,"children":1770},{"className":1769},[],[1771],{"type":48,"value":1772},"SHOW RANGES",{"type":48,"value":1774}," with real distribution",{"type":42,"tag":197,"props":1776,"children":1777},{},[1778],{"type":48,"value":1708},{"type":42,"tag":197,"props":1780,"children":1781},{},[1782],{"type":48,"value":1691},{"type":42,"tag":170,"props":1784,"children":1785},{},[1786,1798,1802],{"type":42,"tag":197,"props":1787,"children":1788},{},[1789,1791,1797],{"type":48,"value":1790},"Survival goals (",{"type":42,"tag":106,"props":1792,"children":1794},{"className":1793},[],[1795],{"type":48,"value":1796},"SURVIVE ZONE FAILURE",{"type":48,"value":1483},{"type":42,"tag":197,"props":1799,"children":1800},{},[1801],{"type":48,"value":1708},{"type":42,"tag":197,"props":1803,"children":1804},{},[1805],{"type":48,"value":1691},{"type":42,"tag":170,"props":1807,"children":1808},{},[1809,1814,1818],{"type":42,"tag":197,"props":1810,"children":1811},{},[1812],{"type":48,"value":1813},"Contention between nodes",{"type":42,"tag":197,"props":1815,"children":1816},{},[1817],{"type":48,"value":1708},{"type":42,"tag":197,"props":1819,"children":1820},{},[1821],{"type":48,"value":1691},{"type":42,"tag":57,"props":1823,"children":1825},{"id":1824},"safety-considerations",[1826],{"type":48,"value":1827},"Safety Considerations",{"type":42,"tag":64,"props":1829,"children":1830},{},[1831,1844,1857,1878],{"type":42,"tag":68,"props":1832,"children":1833},{},[1834,1836,1842],{"type":48,"value":1835},"The cluster runs in ",{"type":42,"tag":1837,"props":1838,"children":1839},"strong",{},[1840],{"type":48,"value":1841},"insecure mode",{"type":48,"value":1843}," (no TLS, no authentication) -- suitable for local development only.",{"type":42,"tag":68,"props":1845,"children":1846},{},[1847,1849,1855],{"type":48,"value":1848},"Data persists in ",{"type":42,"tag":106,"props":1850,"children":1852},{"className":1851},[],[1853],{"type":48,"value":1854},"$HOME\u002F.cockroachdb\u002Fdata",{"type":48,"value":1856}," across restarts.",{"type":42,"tag":68,"props":1858,"children":1859},{},[1860,1862,1868,1870,1876],{"type":48,"value":1861},"The binary and data are user-local (",{"type":42,"tag":106,"props":1863,"children":1865},{"className":1864},[],[1866],{"type":48,"value":1867},"~\u002F.cockroachdb\u002F",{"type":48,"value":1869},") -- no ",{"type":42,"tag":106,"props":1871,"children":1873},{"className":1872},[],[1874],{"type":48,"value":1875},"sudo",{"type":48,"value":1877}," or system modifications.",{"type":42,"tag":68,"props":1879,"children":1880},{},[1881],{"type":48,"value":1882},"A 3-node cluster uses approximately 750 MB of RAM total.",{"type":42,"tag":57,"props":1884,"children":1886},{"id":1885},"references",[1887],{"type":48,"value":1888},"References",{"type":42,"tag":64,"props":1890,"children":1891},{},[1892,1902,1912,1920,1930],{"type":42,"tag":68,"props":1893,"children":1894},{},[1895],{"type":42,"tag":322,"props":1896,"children":1899},{"href":1897,"rel":1898},"https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Finstall-cockroachdb.html",[326],[1900],{"type":48,"value":1901},"Install CockroachDB",{"type":42,"tag":68,"props":1903,"children":1904},{},[1905],{"type":42,"tag":322,"props":1906,"children":1909},{"href":1907,"rel":1908},"https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fstart-a-local-cluster.html",[326],[1910],{"type":48,"value":1911},"Start a Local Cluster",{"type":42,"tag":68,"props":1913,"children":1914},{},[1915],{"type":42,"tag":322,"props":1916,"children":1918},{"href":324,"rel":1917},[326],[1919],{"type":48,"value":329},{"type":42,"tag":68,"props":1921,"children":1922},{},[1923],{"type":42,"tag":322,"props":1924,"children":1927},{"href":1925,"rel":1926},"https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fcockroach-start.html",[326],[1928],{"type":48,"value":1929},"cockroach start",{"type":42,"tag":68,"props":1931,"children":1932},{},[1933],{"type":42,"tag":322,"props":1934,"children":1937},{"href":1935,"rel":1936},"https:\u002F\u002Fwww.cockroachlabs.com\u002Fdocs\u002Fstable\u002Fcockroach-init.html",[326],[1938],{"type":48,"value":1939},"cockroach init",{"type":42,"tag":1941,"props":1942,"children":1943},"style",{},[1944],{"type":48,"value":1945},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1947,"total":2041},[1948,1962,1977,1994,2007,2020,2031],{"slug":1949,"name":1949,"fn":1950,"description":1951,"org":1952,"tags":1953,"stars":22,"repoUrl":23,"updatedAt":1961},"analyzing-range-distribution","analyze CockroachDB range distribution and health","Analyzes CockroachDB range distribution across tables and indexes using SHOW RANGES to identify range count, size patterns, leaseholder placement, and replication health. Use when investigating hotspots, uneven data distribution, range fragmentation, or validating zone configuration effects without DB Console access.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1954,1955,1958],{"name":17,"slug":18,"type":15},{"name":1956,"slug":1957,"type":15},"Monitoring","monitoring",{"name":1959,"slug":1960,"type":15},"Performance","performance","2026-07-12T07:57:18.753533",{"slug":1963,"name":1963,"fn":1964,"description":1965,"org":1966,"tags":1967,"stars":22,"repoUrl":23,"updatedAt":1976},"analyzing-schema-change-storage-risk","analyze schema change storage requirements","Estimates storage requirements for CockroachDB online schema change backfills using SHOW RANGES WITH DETAILS, KEYS, INDEXES. Use before CREATE INDEX, ADD COLUMN with INDEX\u002FUNIQUE, ALTER PRIMARY KEY, CREATE MATERIALIZED VIEW, CREATE TABLE AS, REFRESH, or SET LOCALITY on tables with large per-index footprints, to avoid mid-backfill disk exhaustion.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1968,1971,1972,1973],{"name":1969,"slug":1970,"type":15},"Data Modeling","data-modeling",{"name":17,"slug":18,"type":15},{"name":1959,"slug":1960,"type":15},{"name":1974,"slug":1975,"type":15},"SQL","sql","2026-07-12T07:57:22.763788",{"slug":1978,"name":1978,"fn":1979,"description":1980,"org":1981,"tags":1982,"stars":22,"repoUrl":23,"updatedAt":1993},"auditing-cis-benchmark","audit CockroachDB clusters against CIS benchmarks","Audits a self-hosted CockroachDB cluster against the CIS CockroachDB Benchmark v1.0.0 Level 1 controls. Supports two audit depths — quick automated scans and full CIS audit procedures. Produces a structured PASS\u002FFAIL\u002FMANUAL report covering installation, system hardening, logging, user access, data protection, and CockroachDB settings. Use when preparing for CIS compliance assessments, hardening self-hosted deployments, or validating security posture against industry benchmarks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1983,1986,1989,1990],{"name":1984,"slug":1985,"type":15},"Audit","audit",{"name":1987,"slug":1988,"type":15},"Compliance","compliance",{"name":17,"slug":18,"type":15},{"name":1991,"slug":1992,"type":15},"Security","security","2026-07-18T05:48:00.862384",{"slug":1995,"name":1995,"fn":1996,"description":1997,"org":1998,"tags":1999,"stars":22,"repoUrl":23,"updatedAt":2006},"auditing-cloud-cluster-security","audit CockroachDB cluster security posture","Audits the security posture of a CockroachDB cluster (Cloud or self-hosted) across network, authentication, authorization, encryption, audit logging, and backup dimensions. Use when assessing cluster security readiness, preparing for compliance reviews, or investigating security configuration gaps.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2000,2001,2002,2005],{"name":1984,"slug":1985,"type":15},{"name":17,"slug":18,"type":15},{"name":2003,"slug":2004,"type":15},"Operations","operations",{"name":1991,"slug":1992,"type":15},"2026-07-12T07:57:01.506735",{"slug":2008,"name":2008,"fn":2009,"description":2010,"org":2011,"tags":2012,"stars":22,"repoUrl":23,"updatedAt":2019},"auditing-table-statistics","audit optimizer table statistics","Audits optimizer table statistics for staleness, missing coverage, and data quality issues using SHOW STATISTICS. Use when diagnosing poor query performance, unexpected plan changes, or after bulk data changes to identify stale statistics requiring refresh via CREATE STATISTICS.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2013,2014,2017,2018],{"name":1984,"slug":1985,"type":15},{"name":2015,"slug":2016,"type":15},"Data Analysis","data-analysis",{"name":17,"slug":18,"type":15},{"name":1959,"slug":1960,"type":15},"2026-07-12T07:57:16.190081",{"slug":2021,"name":2021,"fn":2022,"description":2023,"org":2024,"tags":2025,"stars":22,"repoUrl":23,"updatedAt":2030},"benchmarking-transaction-patterns","benchmark CockroachDB transaction patterns","Guides benchmarking and comparing explicit multi-statement transactions versus single-statement CTE transactions in CockroachDB, with fair test methodology, contention analysis, and performance interpretation. Use when comparing transaction formulations, benchmarking CockroachDB workloads under contention, investigating retry pressure, or deciding whether to rewrite multi-step application flows into single SQL statements.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2026,2027,2028,2029],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":1959,"slug":1960,"type":15},{"name":1974,"slug":1975,"type":15},"2026-07-12T07:57:26.543278",{"slug":2032,"name":2032,"fn":2033,"description":2034,"org":2035,"tags":2036,"stars":22,"repoUrl":23,"updatedAt":2040},"cockroachdb-sql","write and optimize CockroachDB SQL","Use when writing, generating, or optimizing SQL for CockroachDB, designing CockroachDB schemas, or when the user asks about CockroachDB-specific SQL patterns, type mappings, and distributed database best practices. Also use when encountering CockroachDB anti-patterns like missing primary keys, sequential ID hotspots, or incorrect type usage.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2037,2038,2039],{"name":17,"slug":18,"type":15},{"name":1959,"slug":1960,"type":15},{"name":1974,"slug":1975,"type":15},"2026-07-25T05:31:22.562808",34,{"items":2043,"total":2163},[2044,2061,2075,2090,2101,2111,2122,2128,2135,2142,2149,2156],{"slug":2045,"name":2045,"fn":2046,"description":2047,"org":2048,"tags":2049,"stars":2058,"repoUrl":2059,"updatedAt":2060},"collecting-cockroachdb-operator-escalation-packet","collect CockroachDB operator escalation packets","Collects a complete CockroachDB Operator escalation packet for TSC\u002FTSE or operator-team handoff, including Helm state, Kubernetes resources, logs, operation-specific evidence, pprof goroutine dumps, metrics, and a customer action timeline. Use when general diagnosis cannot resolve an operator-managed CockroachDB Helm issue or before restarting a stuck operator.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2050,2051,2054,2057],{"name":17,"slug":18,"type":15},{"name":2052,"slug":2053,"type":15},"Incident Response","incident-response",{"name":2055,"slug":2056,"type":15},"Kubernetes","kubernetes",{"name":1956,"slug":1957,"type":15},105,"https:\u002F\u002Fgithub.com\u002Fcockroachdb\u002Fhelm-charts","2026-07-12T07:57:25.288146",{"slug":2062,"name":2062,"fn":2063,"description":2064,"org":2065,"tags":2066,"stars":2058,"repoUrl":2059,"updatedAt":2074},"configuring-cockroachdb-helm-tls","configure TLS for CockroachDB Helm charts","Selects and validates TLS settings for CockroachDB Helm chart deployments, including self-signer, cert-manager, and external certificate modes. Use when a customer needs secure CockroachDB Helm values, certificate secret mapping, cert-manager integration, or TLS install troubleshooting before deploying the chart.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2067,2070,2073],{"name":2068,"slug":2069,"type":15},"Deployment","deployment",{"name":2071,"slug":2072,"type":15},"Encryption","encryption",{"name":1991,"slug":1992,"type":15},"2026-07-12T07:56:37.675396",{"slug":2076,"name":2076,"fn":2077,"description":2078,"org":2079,"tags":2080,"stars":2058,"repoUrl":2059,"updatedAt":2089},"debugging-cockroachdb-operator-migrations","debug CockroachDB Operator migration scenarios","Debugs CockroachDB Operator migration scenarios, including Helm StatefulSet to v1beta1 CrdbNode migration and public operator v1alpha1 to v1beta1 migration. Use when migration labels, migration phases, source StatefulSet ownership, converted CRDs, PVC ownership, or post-migration reconciliation are unclear or stuck.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2081,2082,2085,2086],{"name":17,"slug":18,"type":15},{"name":2083,"slug":2084,"type":15},"Debugging","debugging",{"name":2055,"slug":2056,"type":15},{"name":2087,"slug":2088,"type":15},"Migration","migration","2026-07-12T07:56:48.360871",{"slug":2091,"name":2091,"fn":2092,"description":2093,"org":2094,"tags":2095,"stars":2058,"repoUrl":2059,"updatedAt":2100},"diagnosing-cockroachdb-helm-deployments","diagnose CockroachDB Helm chart deployments","Diagnoses failed or unhealthy CockroachDB Helm chart deployments by checking Helm release state, operator health, CrdbCluster and CrdbNode status, pod readiness, RBAC, webhooks, TLS, upgrades, scaling, PVCs, DNS, and multi-region assumptions. Use when Helm install or upgrade fails, pods are not Ready, or the operator is not reconciling.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2096,2097,2098,2099],{"name":17,"slug":18,"type":15},{"name":2083,"slug":2084,"type":15},{"name":2068,"slug":2069,"type":15},{"name":2055,"slug":2056,"type":15},"2026-07-12T07:57:24.018818",{"slug":2102,"name":2102,"fn":2103,"description":2104,"org":2105,"tags":2106,"stars":2058,"repoUrl":2059,"updatedAt":2110},"installing-cockroachdb-with-helm","install CockroachDB using Helm","Guides customer-facing installation of CockroachDB on Kubernetes using the CockroachDB split Helm charts and operator-managed v1beta1 resources. Use when installing CockroachDB with Helm, choosing between published and local split charts, verifying a new install, or helping an agent complete first-time Kubernetes onboarding.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2107,2108,2109],{"name":17,"slug":18,"type":15},{"name":2068,"slug":2069,"type":15},{"name":2055,"slug":2056,"type":15},"2026-07-12T07:56:45.777567",{"slug":2112,"name":2112,"fn":2113,"description":2114,"org":2115,"tags":2116,"stars":2058,"repoUrl":2059,"updatedAt":2121},"validating-cockroachdb-helm-multiregion","validate CockroachDB multi-region Helm deployments","Validates CockroachDB Helm chart values and Kubernetes prerequisites for operator-managed multi-region deployments. Use before adding a region, deploying CockroachDB across multiple Kubernetes clusters, checking region DNS domains, or confirming that all regions share certificate and networking assumptions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2117,2118,2119,2120],{"name":17,"slug":18,"type":15},{"name":2068,"slug":2069,"type":15},{"name":2055,"slug":2056,"type":15},{"name":2003,"slug":2004,"type":15},"2026-07-12T07:56:47.082609",{"slug":1949,"name":1949,"fn":1950,"description":1951,"org":2123,"tags":2124,"stars":22,"repoUrl":23,"updatedAt":1961},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2125,2126,2127],{"name":17,"slug":18,"type":15},{"name":1956,"slug":1957,"type":15},{"name":1959,"slug":1960,"type":15},{"slug":1963,"name":1963,"fn":1964,"description":1965,"org":2129,"tags":2130,"stars":22,"repoUrl":23,"updatedAt":1976},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2131,2132,2133,2134],{"name":1969,"slug":1970,"type":15},{"name":17,"slug":18,"type":15},{"name":1959,"slug":1960,"type":15},{"name":1974,"slug":1975,"type":15},{"slug":1978,"name":1978,"fn":1979,"description":1980,"org":2136,"tags":2137,"stars":22,"repoUrl":23,"updatedAt":1993},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2138,2139,2140,2141],{"name":1984,"slug":1985,"type":15},{"name":1987,"slug":1988,"type":15},{"name":17,"slug":18,"type":15},{"name":1991,"slug":1992,"type":15},{"slug":1995,"name":1995,"fn":1996,"description":1997,"org":2143,"tags":2144,"stars":22,"repoUrl":23,"updatedAt":2006},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2145,2146,2147,2148],{"name":1984,"slug":1985,"type":15},{"name":17,"slug":18,"type":15},{"name":2003,"slug":2004,"type":15},{"name":1991,"slug":1992,"type":15},{"slug":2008,"name":2008,"fn":2009,"description":2010,"org":2150,"tags":2151,"stars":22,"repoUrl":23,"updatedAt":2019},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2152,2153,2154,2155],{"name":1984,"slug":1985,"type":15},{"name":2015,"slug":2016,"type":15},{"name":17,"slug":18,"type":15},{"name":1959,"slug":1960,"type":15},{"slug":2021,"name":2021,"fn":2022,"description":2023,"org":2157,"tags":2158,"stars":22,"repoUrl":23,"updatedAt":2030},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2159,2160,2161,2162],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":1959,"slug":1960,"type":15},{"name":1974,"slug":1975,"type":15},40]