简体   繁体   中英

What should be the memory usage alert criteria for Cockroachdb running in Kubernetes?

I am using cockroach DB cluster on GKE and I'm monitoring with Prometheus and have imported this Grafana Dashboard

However, there are 4 types of RAM usage within the graph(RSS, goallocated,gototal,cgo allocated), therefore I'm not able to decide on which parameter there is possibility of high RAM usage and how can I set an alert?

Can you please guide If anyone of you have used this before?

You want to monitor RSS ( Resident set size ) and compare it against the maximum amount of virtual memory you want CockroachDB to use.

The others metrics as documented here are:

  • RSS : Total memory in use by CockroachDB.
  • Go Allocated : Memory allocated by the Go layer.
  • Go Total : Total memory managed by the Go layer.
  • CGo Allocated : Memory allocated by the C layer.
  • CGo Total : Total memory managed by the C layer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM