This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# readahead set readhead for specific block devices | |
# | |
# chkconfig: 35 85 15 | |
# description: set readhead for specific block devices | |
# processname: | |
# | |
### BEGIN INIT INFO | |
# Provides: readahead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MongoDB cheat sheet */ | |
// replication lag via serverStatus() | |
db._adminCommand( { serverStatus : 1 , repl ; 2 } ) | |
// stats | |
db.stats() | |
db.foo.stats() | |
// size of BSON of some query |