Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metric for MongoDB jumbo chunks #1128

Closed
wants to merge 1 commit into from
Closed

Conversation

victorgp
Copy link
Contributor

MongoDB jumbo chunks can be an important problem in your cluster, if they exist your shard will be unevenly balanced. This is normally caused by a bad sharding key, so proper monitoring of jumbo chunks is needed.

@victorgp victorgp force-pushed the master branch 6 times, most recently from 6554386 to 4ea8a85 Compare April 29, 2016 16:40
jumbo_chunks := 0
jumbo_chunks, err = s.Session.DB("config").C("chunks").Find(bson.M{"jumbo": true}).Count()
if err != nil {
log.Println("Not gathering jumbo chunks metric, this is not a config server or mongos")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't want to log this every time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants