Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-8106

Compaction seems too aggressive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • 2.1.0
    • 2.0.1
    • ns_server
    • Security Level: Public
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            perry Perry Krug
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty