=================
Finds DB shards exceeding size
and provides the SUP command to compact
[root@db002-dev BigCouch]# ./large_shards.sh 10M
sup couch_compactor_fsm compact_db "[email protected]" "services"
sup couch_compactor_fsm compact_db "[email protected]" "ratedeck"
sup couch_compactor_fsm compact_db "[email protected]" "signups"
sup couch_compactor_fsm compact_db "[email protected]" "offnet"
sup couch_compactor_fsm compact_db "[email protected]" "webhooks"
sup couch_compactor_fsm compact_db "[email protected]" "accounts"
sup couch_compactor_fsm compact_db "[email protected]" "ratedeck"
Returns the ratio of disk to data size for all shards exceeding size
.
Note: Requires bc yum install -y bc
[root@db002-dev BigCouch]# ./shard_ratio.sh 10M
13154786 signups
8253836 ratedeck
8253836 ratedeck
1538251 offnet
1453137 webhooks
265489 acdc
223425 accounts
223425 accounts
144278 services
144278 services