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

Compacting Settings cause more harm than good

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • Morpheus
    • 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.5.1, 6.6.0, 6.6.1, 6.6.2, 6.5.2, 6.5.0, 6.6.3, 6.6.4, 6.6.5, 7.0.0, 7.0.1, 7.0.2, 7.0.3
    • couchbase-bucket, ns_server, UI
    • None
    • Untriaged
    • 1
    • No

    Description

      Problem
      A number of users over the years have managed to misconfigured compaction which has causes outages.

      Common cases are:

      • Compaction schedule is set for too short of a period
      • Compaction threshold is too high
      • Metadata purge is set too low (causes issues with backup, XDCR and indexing)

      For 99% of cases the defaults are pretty good, so I don't know why people are changing these settings.

      Notes

      I do feel that schedule compaction is a hack, it's saying the cluster is not sized suitable for the workload and it can catch up during off peak times. I would also add when Compaction schedule was added the impact compaction had the cluster was much bigger.

      Suggestions

      There are a few different options here:

      1. In the UI throw a warning and have explanations on what the settings do and how misconfiguration can cause outages
      2. Hide or move some of the compaction settings so they're not front and centre
        1. Compaction schedule and Metadata purge are the two I would move.
      3. Take the settings as recommendations and not hard rules. It will do compaction if disk space gets too low
      4. For metadata purge, it would be nice if the system could automatically handle this and only purge when it really needs.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            pvarley Patrick Varley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty