nickva commented on code in PR #5014:
URL: https://github.com/apache/couchdb/pull/5014#discussion_r1556328641


##########
rel/overlay/etc/default.ini:
##########
@@ -930,3 +930,99 @@ url = {{nouveau_url}}
 ;max_objects = 10000
 ;max_idle = 600000
 ;enable = true
+
+[couch_scanner]
+; How often to check for configuration changes and start/stop plugins
+;interval_sec = 5
+
+; Minimum time to force a plugin to wait before running again after a crash
+;min_penalty_sec = 30
+
+; Maximum time to force a plugin to wait after repeated crashes (8 hours 
default)
+;max_penalty_sec = 28800
+
+; If plugin runs successfully without crashing for this long, reset its
+; repeated error count
+;heal_threshold_sec = 300
+
+; Database processing rate limit per second. This will also be the
+; rate at which design documents are fetched. The rate is shared
+; across all running plugins.
+;db_rate_limit = 50
+
+; Limits the rate per second at which plugins may open db shard files
+; on a node. The rate is shared across all running plugins.
+;shard_rate_limit = 50
+
+; Limit the rate per second at which plugins open documents. The rate
+; is shared across all running plugins.
+;doc_rate_limit = 1000
+
+[couch_scanner_plugins]
+;couch_scanner_plugin_ddoc_features = false
+;couch_scanner_plugin_find = false
+
+; The following [$plugin*] settings apply to all plugins
+
+;[$plugin]
+; Run plugin on or after this time. The default is to run once after the
+; node starts. Times are in UTC. Possible time formats are:
+;  * Unix seconds: 1712338014
+;  * Date/Time: YYYY-MM-DDTHH, YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SS, 
YYYY-MM-DDTHH:MM:SSZ
+;after = restart
+; Run the plugin periodically. By default it will run once after node the node 
starts.
+; Possible period formats are:
+;  * $num_$timeunit: 1000_sec, 30_min, 8_hours, 24_hour, 2_days, 3_weeks, 
1_month
+;  * $weekday: mon, monday, Thu, thursdays
+;repeat = restart
+
+;[$plugin.skips_dbs]
+; Skip over databases if their names contain any of the strings in this 
section.
+;string1 = true
+;string2 = true

Review Comment:
   I was thinking of cases with a larger number of various dbs to skip and not 
having to build a long single string by hand concatenated with `|` and having 
to manage those with configuration management. That's why thought allowing 
multiple entries might be more ergonomic. For instance:
   
   ```ini
   [$plugin.skip_dbs]
   custdbs = customer_orders_
   accounts = account_many_
   testingstuff = test_data_foo_
   random1 = _random_stuff_
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to