Skip to content

Instantly share code, notes, and snippets.

@khapota
Last active August 25, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khapota/62e8b67f0d47b448d1d0836c23de5a8b to your computer and use it in GitHub Desktop.
Save khapota/62e8b67f0d47b448d1d0836c23de5a8b to your computer and use it in GitHub Desktop.
Mongo Performance check and tune
@khapota
Copy link
Author

khapota commented Aug 21, 2017

Need to check write concern and replica configuration

@khapota
Copy link
Author

khapota commented Aug 23, 2017

@khapota
Copy link
Author

khapota commented Aug 23, 2017

@khapota
Copy link
Author

khapota commented Aug 24, 2017

Notice that each db has separated profiler, so remember to set for all databases.

@khapota
Copy link
Author

khapota commented Aug 24, 2017

Mongo 2.6 build index in background of primary, then all secondaries.

@khapota
Copy link
Author

khapota commented Aug 25, 2017

Try to split read and write. It is better for debugging and finding slow queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment