• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CTOP ("top" for Cassandra) - See what's going on in real-time

CTOP ("Top for Cassandra")

Build Status

CTOP is a tool which allows you to quickly find out what's happening on a machine running Cassandra. It is particularly useful on a cluster with multiple-tenants, multiple-applications, and large numbers of tables. If you suspect that the performance is not good, then you can use this to figure out which table is giving you trouble.

Screenshots:

Ordered by read-latency Ordered by disk-space Ordered by write-rate

Installation (deb):

  • Download a DEB file from the releases section
  • Install mx4j "apt-get install libmx4j-java"
  • Install CTOP "dpkg -i ctop_1.3_amd64.deb"
  • Find out what's killing your Cassandra cluster

Installation (binary):

  • Download a binary (or compile one yourself)
  • Install mx4j jars in the java/cassandra classpath (download from here)
  • Re-start cassandra
  • Run CTOP

How to use it:

  • Run the binary
  • Allow CTOP some time to collect metrics, then press SPACE to refresh the display. You will see your tables listed by Reads/s (in descending order).
  • You can press SPACE at any time to refresh the display
  • The numbers 1 through 5 change the sorting order: 1: Order by Reads/s 2: Order by Writes/s 3: Order by the amount of disk-space used (in Bytes) 4: Order by read-latency (in miliseconds) 5: Order by write-latency (in miliseconds)
  • Pressing "Q" will quit
  • Metrics are for one node only (not cluster-wide)

Notes

  • CTOP should run on anything. Originally was developed on Ubuntu, and it's reported to run on CentOS and MacOS X.

Pre-requisites:

  • CTOP uses "libmx4j-java" (an HTTP -> JMX) to retrieve JMX metrics from Cassandra (there was no easy way to query JMX directly), so this needs to be in the class-path where Cassandra can find it upon startup (with Ubuntu it is enough to do "apt-get install libmx4j-java", then to re-start Cassandra).
  • Cassandra needs to be told how to run MX4J (the default is to listen to the interface that Cassandra listens on):
  MX4J_ADDRESS="-Dmx4jaddress=127.0.0.1"  
  MX4J_PORT="-Dmx4jport=8081"  
  JVM_OPTS="$JVM_OPTS $MX4J_ADDRESS"  
  JVM_OPTS="$JVM_OPTS $MX4J_PORT"  

More Repositories

1

protoc-gen-jsonschema

Protobuf to JSON-Schema compiler
Go
489
star
2

nsq-to-s3

Stream an NSQ channel to S3
Go
33
star
3

prometheus_webhook_snmptrapper

Generates SNMP traps from Prometheus AlertManager WebHooks
Go
30
star
4

telegraf-cassandra

Config for monitoring Cassandra using Telegraf's "Jolokia" plugin
Python
12
star
5

devops-manifesto

Opinionated DevOps Philosophies
Shell
10
star
6

terraform-multipart-userdata

Cruft for Terraform
Go
9
star
7

openapi2jsonschema

Produce JSONSchemas from OpenAPI2 (Swagger) & OpenAPI3 definitions
Go
7
star
8

go-circle-to-polygon

Go library to convert a circle to a polygon
Go
6
star
9

go-mono

Toolkit for Golang monorepos
Go
6
star
10

lambda-dns

AWS Lambda function to maintain Route53 DNS records from autoscaling events
JavaScript
5
star
11

google-pubsub-logging

DataFlows to store logs centralised with Google PUB/SUB
Java
4
star
12

dns-from-gce

Populate a Google Cloud-DNS zone from the list of VM Instances in your GCE Project
Go
4
star
13

puppet-kapacitor

Puppet module for Kapacitor
HTML
3
star
14

go-tableprinter

Print a formatted table from GoLang interfaces
Go
3
star
15

kafka-cli

A powerful and easy-to-use CLI tool for Kafka
Go
1
star
16

tail-pubsub

Tail a Google PUB/SUB topic
Go
1
star
17

micro-pingpong

Ping and Pong services using Go-Micro
Go
1
star
18

dns-from-aws

Populate a DNS zone from the list of EC2 instances in your AWS account
Go
1
star
19

api-proxy

Routes requests to your API services (by the URL path)
Go
1
star
20

loosejson

Loose JSON unmarshalling (for when your JSON arrives in the wrong type but you still want the data)
Go
1
star