Description
This is being repeated every 30 seconds in the logs:
[ns_server:debug,2013-04-16T10:42:07.538,ns_1@10.105.22.156:compaction_daemon<0.6708.0>:compaction_daemon:handle_info:399]Starting compaction for the following buckets:
[<<"testing">>,<<"default">>]
[ns_server:info,2013-04-16T10:42:07.538,ns_1@10.105.22.156:<0.2781.70>:compaction_daemon:try_to_cleanup_indexes:604]Cleaning up indexes for bucket `testing`
[ns_server:info,2013-04-16T10:42:07.538,ns_1@10.105.22.156:<0.2781.70>:compaction_daemon:spawn_bucket_compactor:563]Compacting bucket testing with config:
[{database_fragmentation_threshold,{30,undefined}},
{view_fragmentation_threshold,{30,undefined}}]
[ns_server:debug,2013-04-16T10:42:07.538,ns_1@10.105.22.156:<0.2784.70>:compaction_daemon:bucket_needs_compaction:966]`testing` data size is 95325, disk size is 8443950
[ns_server:info,2013-04-16T10:42:07.554,ns_1@10.105.22.156:<0.2785.70>:compaction_daemon:try_to_cleanup_indexes:604]Cleaning up indexes for bucket `default`
[ns_server:info,2013-04-16T10:42:07.554,ns_1@10.105.22.156:<0.2785.70>:compaction_daemon:spawn_bucket_compactor:563]Compacting bucket default with config:
[{database_fragmentation_threshold,{30,undefined}},
{view_fragmentation_threshold,{30,undefined}}]
[ns_server:debug,2013-04-16T10:42:07.554,ns_1@10.105.22.156:<0.2788.70>:compaction_daemon:bucket_needs_compaction:966]`default` data size is 3472892, disk size is 30523027
[ns_server:debug,2013-04-16T10:42:07.554,ns_1@10.105.22.156:<0.2790.70>:compaction_daemon:view_needs_compaction:1123]`default/_design/dev_allbets/main` data_size is 0, disk_size is 13077
[ns_server:debug,2013-04-16T10:42:07.554,ns_1@10.105.22.156:compaction_daemon<0.6708.0>:compaction_daemon:handle_info:457]Finished compaction iteration.
[ns_server:debug,2013-04-16T10:42:07.554,ns_1@10.105.22.156:compaction_daemon<0.6708.0>:compaction_daemon:schedule_next_compaction:1442]Finished compaction too soon. Next run will be in 30s
Aside from fixing this constantly running compaction, we should also be implementing a bit of logic that looks at how much data will actually be saved. 30% of 400mb is only 120mb...that's not really going to save much disk.