Connection lost
Trying to reconnect…
Server didn't respond
Recovering…
CockroachDB
v0.1.2Investigate a CockroachDB cluster over the `cockroach` CLI — node liveness / store capacity, under-replicated & unavailable ranges, running queries / sessions / transactions, contention & locks, jobs, statement statistics, table sizes, and cluster settings — plus a few gated operators (cancel a query / session / job, pause / resume a job, decommission / recommission a node). Reads are SQL against crdb_internal / SHOW statements; mutators use SQL or `cockroach node`.
cockroach
Install
emisar pack install
validates the pack and verifies its content hash before copying it into /etc/emisar/packs.
The --hash
below pins the
install to the exact bytes on this page — a tampered copy is rejected. After
install, reload the runner; it re-reads the catalog and advertises every action.
content hash: sha256:3e35471ca174a81481cf72251d04e60a8dc2006415d5413198d3d811dcce1959
sudo emisar pack install cockroach \ --hash sha256:3e35471ca174a81481cf72251d04e60a8dc2006415d5413198d3d811dcce1959 \ --dest /etc/emisar/packs # Reload so the runner re-reads the catalog: sudo systemctl reload emisar
Actions 26 total
View on GitHub-
Cancel a job (CANCEL JOB)
-
Cancel a running query (CANCEL QUERY)
-
Cancel a session (CANCEL SESSION)
-
Show running queries cluster-wide
-
Show open sessions cluster-wide
-
Show cluster settings
-
Show open transactions cluster-wide
-
Show who is blocking whom (contention events)
-
Show most-contended objects
-
List databases (SHOW DATABASES)
-
Show recent / running jobs
-
Show contended locks (lock table)
-
Decommission a node (cockroach node decommission)
-
Show node liveness / draining / decommissioning
-
Recommission a node (cockroach node recommission)
-
Show node status (liveness, ranges, decommission, disk)
-
Show status for one node
-
Pause a job (PAUSE JOB)
-
Show replication constraint violations
-
Show under-replicated / unavailable range counts
-
Resume a paused job (RESUME JOB)
-
Set a cluster setting (SET CLUSTER SETTING)
-
Show top statement fingerprints by exec count
-
Show per-store disk capacity / range counts
-
Show range count + size for one table
-
Show estimated row counts per table