Mirror of Apache CouchDB

Clone this repo:
  1. 4612e9f Merge pull request #22 from noahshaw11/add-editors-magic-lines by iilyak · 2 weeks ago main
  2. 6326899 Merge pull request #21 from apache/add-search-ioq-server by Russell Branca · 2 weeks ago
  3. fb49e09 Add IOQ2 pid for search traffic by Russell Branca · 4 weeks ago add-search-ioq-server
  4. 0baa19f Add editors magic lines by Noah Shaw · 3 weeks ago
  5. 3c379fe Merge pull request #19 from apache/4101-add-iopriority by Russell Branca · 3 weeks ago

IOQ classes

The following are the list of IOQ classes:

  • interactive
  • db_update
  • view_update
  • db_compact
  • view_compact
  • internal_repl
  • low

Bypassing IOQ

One can configure an ioq bypass, which removes an IO class from prioritization, as below:

config:set("ioq.bypass", "view_update", "true")

Note that setting an IOQ bypass can effectively trump all other classes, especially in the case of an interactive bypass v. compaction. This can lead to high disk usage.

Setting priorities

The priority for a class can also be set ala:

config:set("ioq", "compaction", "0.3")

Or globally, using snippet/rpc:

s:set_config("ioq", "compaction", "0.314", global)
rpc:multicall(config, set, ["ioq", "compaction", "0.217"])

As the interactive class is ‘everything else’ its priority cannot be directly set.