Mirror of Apache CouchDB

Clone this repo:
  1. 4472611 Fix `catch` warnings for OTP 29 by Jiahui Li · 2 days ago main
  2. 75e4a92 Replace khash with erlang maps by Artúr Poór · 5 months ago
  3. 999e7b4 Add error handling for `noproc` by Jiahui Li · 1 year, 3 months ago
  4. e0f9ba4 Make sure to handle `other` priority in ioq's new bypass/2 API by Nick Vatamaniuc · 1 year, 9 months ago 2.1.6
  5. 8fd9ce2 Add ioq:bypass/2 API by Nick Vatamaniuc · 1 year, 10 months ago 2.1.5

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.