default.ini 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. ; Upgrading CouchDB will overwrite this file.
  2. [vendor]
  3. name = The Apache Software Foundation
  4. [couchdb]
  5. uuid =
  6. database_dir = ./data
  7. view_index_dir = ./data
  8. ; util_driver_dir =
  9. ; plugin_dir =
  10. ;os_process_timeout = 5000 ; 5 seconds. for view servers.
  11. ; Maximum number of .couch files to open at once.
  12. ; The actual limit may be slightly lower depending on how
  13. ; many schedulers you have as the allowance is divided evenly
  14. ; among them.
  15. ;max_dbs_open = 500
  16. ; Method used to compress everything that is appended to database and view index files, except
  17. ; for attachments (see the attachments section). Available methods are:
  18. ;
  19. ; none - no compression
  20. ; snappy - use google snappy, a very fast compressor/decompressor
  21. ; deflate_N - use zlib's deflate, N is the compression level which ranges from 1 (fastest,
  22. ; lowest compression ratio) to 9 (slowest, highest compression ratio)
  23. ;file_compression = snappy
  24. ; Higher values may give better read performance due to less read operations
  25. ; and/or more OS page cache hits, but they can also increase overall response
  26. ; time for writes when there are many attachment write requests in parallel.
  27. ;attachment_stream_buffer_size = 4096
  28. ; Default security object for databases if not explicitly set
  29. ; everyone - same as couchdb 1.0, everyone can read/write
  30. ; admin_only - only admins can read/write
  31. ; admin_local - sharded dbs on :5984 are read/write for everyone,
  32. ; local dbs on :5986 are read/write for admins only
  33. ;default_security = admin_only
  34. ; btree_chunk_size = 1279
  35. ; maintenance_mode = false
  36. ; stem_interactive_updates = true
  37. ; uri_file =
  38. ; The speed of processing the _changes feed with doc_ids filter can be
  39. ; influenced directly with this setting - increase for faster processing at the
  40. ; expense of more memory usage.
  41. ;changes_doc_ids_optimization_threshold = 100
  42. ; Maximum document ID length. Can be set to an integer or 'infinity'.
  43. ;max_document_id_length = infinity
  44. ;
  45. ; Limit maximum document size. Requests to create / update documents with a body
  46. ; size larger than this will fail with a 413 http error. This limit applies to
  47. ; requests which update a single document as well as individual documents from
  48. ; a _bulk_docs request. The size limit is approximate due to the nature of JSON
  49. ; encoding.
  50. ;max_document_size = 8000000 ; bytes
  51. ;
  52. ; Maximum attachment size.
  53. ; max_attachment_size = 1073741824 ; 1 gibibyte
  54. ;
  55. ; Do not update the least recently used DB cache on reads, only writes
  56. ;update_lru_on_read = false
  57. ;
  58. ; The default storage engine to use when creating databases
  59. ; is set as a key into the [couchdb_engines] section.
  60. ;default_engine = couch
  61. ;
  62. ; Enable this to only "soft-delete" databases when DELETE /{db} requests are
  63. ; made. This will place a .recovery directory in your data directory and
  64. ; move deleted databases/shards there instead. You can then manually delete
  65. ; these files later, as desired.
  66. ;enable_database_recovery = false
  67. ;
  68. ; Set the maximum size allowed for a partition. This helps users avoid
  69. ; inadvertently abusing partitions resulting in hot shards. The default
  70. ; is 10GiB. A value of 0 or less will disable partition size checks.
  71. ;max_partition_size = 10737418240
  72. ;
  73. ; When true, system databases _users and _replicator are created immediately
  74. ; on startup if not present.
  75. ;single_node = false
  76. ; Allow edits on the _security object in the user db. By default, it's disabled.
  77. ;users_db_security_editable = false
  78. [purge]
  79. ; Allowed maximum number of documents in one purge request
  80. ;max_document_id_number = 100
  81. ;
  82. ; Allowed maximum number of accumulated revisions in one purge request
  83. ;max_revisions_number = 1000
  84. ;
  85. ; Allowed durations when index is not updated for local purge checkpoint
  86. ; document. Default is 24 hours.
  87. ;index_lag_warn_seconds = 86400
  88. [couchdb_engines]
  89. ; The keys in this section are the filename extension that
  90. ; the specified engine module will use. This is important so
  91. ; that couch_server is able to find an existing database without
  92. ; having to ask every configured engine.
  93. couch = couch_bt_engine
  94. [process_priority]
  95. ; Selectively disable altering process priorities for modules that request it.
  96. ; * NOTE: couch_server priority has been shown to lead to CouchDB hangs and
  97. ; failures on Erlang releases 21.0 - 21.3.8.12 and 22.0 -> 22.2.4. Do not
  98. ; enable when running with those versions.
  99. ;couch_server = false
  100. [cluster]
  101. ;q=2
  102. ;n=3
  103. ; placement = metro-dc-a:2,metro-dc-b:1
  104. ; Supply a comma-delimited list of node names that this node should
  105. ; contact in order to join a cluster. If a seedlist is configured the ``_up``
  106. ; endpoint will return a 404 until the node has successfully contacted at
  107. ; least one of the members of the seedlist and replicated an up-to-date copy
  108. ; of the ``_nodes``, ``_dbs``, and ``_users`` system databases.
  109. ; seedlist = couchdb@node1.example.com,couchdb@node2.example.com
  110. [chttpd]
  111. ; These settings affect the main, clustered port (5984 by default).
  112. port = 5984
  113. bind_address = 127.0.0.1
  114. ;backlog = 512
  115. ;socket_options = [{sndbuf, 262144}, {nodelay, true}]
  116. ;server_options = [{recbuf, undefined}]
  117. ;require_valid_user = false
  118. ; require_valid_user_except_for_up = false
  119. ; List of headers that will be kept when the header Prefer: return=minimal is included in a request.
  120. ; If Server header is left out, Mochiweb will add its own one in.
  121. ;prefer_minimal = Cache-Control, Content-Length, Content-Range, Content-Type, ETag, Server, Transfer-Encoding, Vary
  122. ;
  123. ; Limit maximum number of databases when tying to get detailed information using
  124. ; _dbs_info in a request
  125. ;max_db_number_for_dbs_info_req = 100
  126. ; set to true to delay the start of a response until the end has been calculated
  127. ;buffer_response = false
  128. ; authentication handlers
  129. ; authentication_handlers = {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, default_authentication_handler}
  130. ; uncomment the next line to enable proxy authentication
  131. ; authentication_handlers = {chttpd_auth, proxy_authentication_handler}, {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, default_authentication_handler}
  132. ; uncomment the next line to enable JWT authentication
  133. ; authentication_handlers = {chttpd_auth, jwt_authentication_handler}, {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, default_authentication_handler}
  134. ; prevent non-admins from accessing /_all_dbs
  135. ; admin_only_all_dbs = true
  136. ; These options are moved from [httpd]
  137. ;secure_rewrites = true
  138. ;allow_jsonp = false
  139. ;enable_cors = false
  140. ;enable_xframe_options = false
  141. ; CouchDB can optionally enforce a maximum uri length;
  142. ;max_uri_length = 8000
  143. ;changes_timeout = 60000
  144. ;config_whitelist =
  145. ;rewrite_limit = 100
  146. ;x_forwarded_host = X-Forwarded-Host
  147. ;x_forwarded_proto = X-Forwarded-Proto
  148. ;x_forwarded_ssl = X-Forwarded-Ssl
  149. ; Maximum allowed http request size. Applies to both clustered and local port.
  150. ;max_http_request_size = 4294967296 ; 4GB
  151. ; Set to true to decode + to space in db and doc_id parts.
  152. ; decode_plus_to_space = true
  153. ;[jwt_auth]
  154. ; List of claims to validate
  155. ; can be the name of a claim like "exp" or a tuple if the claim requires
  156. ; a parameter
  157. ; required_claims = exp, {iss, "IssuerNameHere"}
  158. ; roles_claim_name = https://example.com/roles
  159. ;
  160. ; [jwt_keys]
  161. ; Configure at least one key here if using the JWT auth handler.
  162. ; If your JWT tokens do not include a "kid" attribute, use "_default"
  163. ; as the config key, otherwise use the kid as the config key.
  164. ; Examples
  165. ; hmac:_default = aGVsbG8=
  166. ; hmac:foo = aGVsbG8=
  167. ; The config values can represent symmetric and asymmetrics keys.
  168. ; For symmetrics keys, the value is base64 encoded;
  169. ; hmac:_default = aGVsbG8= # base64-encoded form of "hello"
  170. ; For asymmetric keys, the value is the PEM encoding of the public
  171. ; key with newlines replaced with the escape sequence \n.
  172. ; rsa:foo = -----BEGIN PUBLIC KEY-----\nMIIBIjAN...IDAQAB\n-----END PUBLIC KEY-----\n
  173. ; ec:bar = -----BEGIN PUBLIC KEY-----\nMHYwEAYHK...AzztRs\n-----END PUBLIC KEY-----\n
  174. [couch_peruser]
  175. ; If enabled, couch_peruser ensures that a private per-user database
  176. ; exists for each document in _users. These databases are writable only
  177. ; by the corresponding user. Databases are in the following form:
  178. ; userdb-{hex encoded username}
  179. ;enable = false
  180. ; If set to true and a user is deleted, the respective database gets
  181. ; deleted as well.
  182. ;delete_dbs = false
  183. ; Set a default q value for peruser-created databases that is different from
  184. ; cluster / q
  185. ;q = 1
  186. ; prefix for user databases. If you change this after user dbs have been
  187. ; created, the existing databases won't get deleted if the associated user
  188. ; gets deleted because of the then prefix mismatch.
  189. ;database_prefix = userdb-
  190. [httpd]
  191. port = 5986
  192. bind_address = 127.0.0.1
  193. ;authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}
  194. ; Options for the MochiWeb HTTP server.
  195. ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
  196. ; For more socket options, consult Erlang's module 'inet' man page.
  197. ;socket_options = [{recbuf, undefined}, {sndbuf, 262144}, {nodelay, true}]
  198. ;socket_options = [{sndbuf, 262144}]
  199. ; These settings were moved to [chttpd]
  200. ; secure_rewrites, allow_jsonp, enable_cors, enable_xframe_options,
  201. ; max_uri_length, changes_timeout, config_whitelist, rewrite_limit,
  202. ; x_forwarded_host, x_forwarded_proto, x_forwarded_ssl, max_http_request_size
  203. ; [httpd_design_handlers]
  204. ; _view =
  205. ; [ioq]
  206. ; concurrency = 10
  207. ; ratio = 0.01
  208. [ssl]
  209. ;port = 6984
  210. [chttpd_auth]
  211. ;authentication_db = _users
  212. ; These options are moved from [couch_httpd_auth]
  213. ;authentication_redirect = /_utils/session.html
  214. ;require_valid_user = false
  215. ;timeout = 600 ; number of seconds before automatic logout
  216. ;auth_cache_size = 50 ; size is number of cache entries
  217. ;allow_persistent_cookies = true ; set to false to disallow persistent cookies
  218. ;iterations = 10 ; iterations for password hashing
  219. ;min_iterations = 1
  220. ;max_iterations = 1000000000
  221. ;password_scheme = pbkdf2
  222. ; List of Erlang RegExp or tuples of RegExp and an optional error message.
  223. ; Where a new password must match all RegExp.
  224. ; Example: [{".{10,}", "Password min length is 10 characters."}, "\\d+"]
  225. ;password_regexp = []
  226. ;proxy_use_secret = false
  227. ; comma-separated list of public fields, 404 if empty
  228. ;public_fields =
  229. ;secret =
  230. ;users_db_public = false
  231. ;cookie_domain = example.com
  232. ; Set the SameSite cookie property for the auth cookie. If empty, the SameSite property is not set.
  233. ;same_site =
  234. ; [chttpd_auth_cache]
  235. ; max_lifetime = 600000
  236. ; max_objects =
  237. ; max_size = 104857600
  238. ; [mem3]
  239. ; nodes_db = _nodes
  240. ; shard_cache_size = 25000
  241. ; shards_db = _dbs
  242. ; sync_concurrency = 10
  243. ; [fabric]
  244. ; all_docs_concurrency = 10
  245. ; changes_duration =
  246. ; shard_timeout_factor = 2
  247. ; shard_timeout_min_msec = 100
  248. ; uuid_prefix_len = 7
  249. ; request_timeout = 60000
  250. ; all_docs_timeout = 10000
  251. ; attachments_timeout = 60000
  252. ; view_timeout = 3600000
  253. ; partition_view_timeout = 3600000
  254. ; [rexi]
  255. ; buffer_count = 2000
  256. ; server_per_node = true
  257. ; stream_limit = 5
  258. ;
  259. ; Use a single message to kill a group of remote workers This is
  260. ; mostly is an upgrade clause to allow operating in a mixed cluster of
  261. ; 2.x and 3.x nodes. After upgrading switch to true to save some
  262. ; network bandwidth
  263. ;use_kill_all = false
  264. ; [global_changes]
  265. ; max_event_delay = 25
  266. ; max_write_delay = 500
  267. ; update_db = true
  268. ; [view_updater]
  269. ; min_writer_items = 100
  270. ; min_writer_size = 16777216
  271. [couch_httpd_auth]
  272. ; WARNING! This only affects the node-local port (5986 by default).
  273. ; You probably want the settings under [chttpd].
  274. authentication_db = _users
  275. ; These settings were moved to [chttpd_auth]
  276. ; authentication_redirect, require_valid_user, timeout,
  277. ; auth_cache_size, allow_persistent_cookies, iterations, min_iterations,
  278. ; max_iterations, password_scheme, password_regexp, proxy_use_secret,
  279. ; public_fields, secret, users_db_public, cookie_domain, same_site
  280. ; CSP (Content Security Policy) Support
  281. [csp]
  282. ;utils_enable = true
  283. ;utils_header_value = default-src 'self'; img-src 'self'; font-src *; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline';
  284. ;attachments_enable = true
  285. ;attachments_header_value = sandbox
  286. ;showlist_enable = true
  287. ;showlist_header_value = sandbox
  288. [cors]
  289. ;credentials = false
  290. ; List of origins separated by a comma, * means accept all
  291. ; Origins must include the scheme: http://example.com
  292. ; You can't set origins: * and credentials = true at the same time.
  293. ;origins = *
  294. ; List of accepted headers separated by a comma
  295. ; headers =
  296. ; List of accepted methods
  297. ; methods =
  298. ; Configuration for a vhost
  299. ;[cors:http://example.com]
  300. ; credentials = false
  301. ; List of origins separated by a comma
  302. ; Origins must include the scheme: http://example.com
  303. ; You can't set origins: * and credentials = true at the same time.
  304. ;origins =
  305. ; List of accepted headers separated by a comma
  306. ; headers =
  307. ; List of accepted methods
  308. ; methods =
  309. ; Configuration for the design document cache
  310. ;[ddoc_cache]
  311. ; The maximum size of the cache in bytes
  312. ;max_size = 104857600 ; 100MiB
  313. ; The period each cache entry should wait before
  314. ; automatically refreshing in milliseconds
  315. ;refresh_timeout = 67000
  316. [x_frame_options]
  317. ; Settings same-origin will return X-Frame-Options: SAMEORIGIN.
  318. ; If same origin is set, it will ignore the hosts setting
  319. ; same_origin = true
  320. ; Settings hosts will return X-Frame-Options: ALLOW-FROM https://example.com/
  321. ; List of hosts separated by a comma. * means accept all
  322. ; hosts =
  323. [native_query_servers]
  324. ; erlang query server
  325. ; enable_erlang_query_server = false
  326. ; Changing reduce_limit to false will disable reduce_limit.
  327. ; If you think you're hitting reduce_limit with a "good" reduce function,
  328. ; please let us know on the mailing list so we can fine tune the heuristic.
  329. [query_server_config]
  330. ; commit_freq = 5
  331. ;reduce_limit = true
  332. ;os_process_limit = 100
  333. ; os_process_idle_limit = 300
  334. ; os_process_soft_limit = 100
  335. ; Timeout for how long a response from a busy view group server can take.
  336. ; "infinity" is also a valid configuration value.
  337. ;group_info_timeout = 5000
  338. ;query_limit = 268435456
  339. ;partition_query_limit = 268435456
  340. [mango]
  341. ; Set to true to disable the "index all fields" text index, which can lead
  342. ; to out of memory issues when users have documents with nested array fields.
  343. ;index_all_disabled = false
  344. ; Default limit value for mango _find queries.
  345. ;default_limit = 25
  346. ; Ratio between documents scanned and results matched that will
  347. ; generate a warning in the _find response. Setting this to 0 disables
  348. ; the warning.
  349. ;index_scan_warning_threshold = 10
  350. [indexers]
  351. couch_mrview = true
  352. [feature_flags]
  353. ; This enables any database to be created as a partitioned databases (except system db's).
  354. ; Setting this to false will stop the creation of paritioned databases.
  355. ; paritioned||allowed* = true will scope the creation of partitioned databases
  356. ; to databases with 'allowed' prefix.
  357. partitioned||* = true
  358. [uuids]
  359. ; Known algorithms:
  360. ; random - 128 bits of random awesome
  361. ; All awesome, all the time.
  362. ; sequential - monotonically increasing ids with random increments
  363. ; First 26 hex characters are random. Last 6 increment in
  364. ; random amounts until an overflow occurs. On overflow, the
  365. ; random prefix is regenerated and the process starts over.
  366. ; utc_random - Time since Jan 1, 1970 UTC with microseconds
  367. ; First 14 characters are the time in hex. Last 18 are random.
  368. ; utc_id - Time since Jan 1, 1970 UTC with microseconds, plus utc_id_suffix string
  369. ; First 14 characters are the time in hex. uuids/utc_id_suffix string value is appended to these.
  370. ;algorithm = sequential
  371. ; The utc_id_suffix value will be appended to uuids generated by the utc_id algorithm.
  372. ; Replicating instances should have unique utc_id_suffix values to ensure uniqueness of utc_id ids.
  373. ;utc_id_suffix =
  374. # Maximum number of UUIDs retrievable from /_uuids in a single request
  375. ;max_count = 1000
  376. [attachments]
  377. ;compression_level = 8 ; from 1 (lowest, fastest) to 9 (highest, slowest), 0 to disable compression
  378. ;compressible_types = text/*, application/javascript, application/json, application/xml
  379. [replicator]
  380. ; Random jitter applied on replication job startup (milliseconds)
  381. ;startup_jitter = 5000
  382. ; Number of actively running replications
  383. ;max_jobs = 500
  384. ;Scheduling interval in milliseconds. During each reschedule cycle
  385. ;interval = 60000
  386. ; Maximum number of replications to start and stop during rescheduling.
  387. ;max_churn = 20
  388. ; More worker processes can give higher network throughput but can also
  389. ; imply more disk and network IO.
  390. ;worker_processes = 4
  391. ; With lower batch sizes checkpoints are done more frequently. Lower batch sizes
  392. ; also reduce the total amount of used RAM memory.
  393. ;worker_batch_size = 500
  394. ; Maximum number of HTTP connections per replication.
  395. ;http_connections = 20
  396. ; HTTP connection timeout per replication.
  397. ; Even for very fast/reliable networks it might need to be increased if a remote
  398. ; database is too busy.
  399. ;connection_timeout = 30000
  400. ; Request timeout
  401. ;request_timeout = infinity
  402. ; If a request fails, the replicator will retry it up to N times.
  403. ;retries_per_request = 5
  404. ; Use checkpoints
  405. ;use_checkpoints = true
  406. ; Checkpoint interval
  407. ;checkpoint_interval = 30000
  408. ; Some socket options that might boost performance in some scenarios:
  409. ; {nodelay, boolean()}
  410. ; {sndbuf, integer()}
  411. ; {recbuf, integer()}
  412. ; {priority, integer()}
  413. ; See the `inet` Erlang module's man page for the full list of options.
  414. ;socket_options = [{keepalive, true}, {nodelay, false}]
  415. ; Path to a file containing the user's certificate.
  416. ;cert_file = /full/path/to/server_cert.pem
  417. ; Path to file containing user's private PEM encoded key.
  418. ;key_file = /full/path/to/server_key.pem
  419. ; String containing the user's password. Only used if the private keyfile is password protected.
  420. ;password = somepassword
  421. ; Set to true to validate peer certificates.
  422. ;verify_ssl_certificates = false
  423. ; File containing a list of peer trusted certificates (in the PEM format).
  424. ;ssl_trusted_certificates_file = /etc/ssl/certs/ca-certificates.crt
  425. ; Maximum peer certificate depth (must be set even if certificate validation is off).
  426. ;ssl_certificate_max_depth = 3
  427. ; Maximum document ID length for replication.
  428. ;max_document_id_length = infinity
  429. ; How much time to wait before retrying after a missing doc exception. This
  430. ; exception happens if the document was seen in the changes feed, but internal
  431. ; replication hasn't caught up yet, and fetching document's revisions
  432. ; fails. This a common scenario when source is updated while continous
  433. ; replication is running. The retry period would depend on how quickly internal
  434. ; replication is expected to catch up. In general this is an optimisation to
  435. ; avoid crashing the whole replication job, which would consume more resources
  436. ; and add log noise.
  437. ;missing_doc_retry_msec = 2000
  438. ; Wait this many seconds after startup before attaching changes listeners
  439. ; cluster_start_period = 5
  440. ; Re-check cluster state at least every cluster_quiet_period seconds
  441. ; cluster_quiet_period = 60
  442. ; List of replicator client authentication plugins to try. Plugins will be
  443. ; tried in order. The first to initialize successfully will be used for that
  444. ; particular endpoint (source or target). Normally couch_replicator_auth_noop
  445. ; would be used at the end of the list as a "catch-all". It doesn't do anything
  446. ; and effectively implements the previous behavior of using basic auth.
  447. ; There are currently two plugins available:
  448. ; couch_replicator_auth_session - use _session cookie authentication
  449. ; couch_replicator_auth_noop - use basic authentication (previous default)
  450. ; Currently, the new _session cookie authentication is tried first, before
  451. ; falling back to the old basic authenticaion default:
  452. ;auth_plugins = couch_replicator_auth_session,couch_replicator_auth_noop
  453. ; To restore the old behaviour, use the following value:
  454. ;auth_plugins = couch_replicator_auth_noop
  455. ; Force couch_replicator_auth_session plugin to refresh the session
  456. ; periodically if max-age is not present in the cookie. This is mostly to
  457. ; handle the case where anonymous writes are allowed to the database and a VDU
  458. ; function is used to forbid writes based on the authenticated user name. In
  459. ; that case this value should be adjusted based on the expected minimum session
  460. ; expiry timeout on replication endpoints. If session expiry results in a 401
  461. ; or 403 response this setting is not needed.
  462. ;session_refresh_interval_sec = 550
  463. ; Usage coefficient decays historic fair share usage every scheduling
  464. ; cycle. The value must be between 0.0 and 1.0. Lower values will
  465. ; ensure historic usage decays quicker and higher values means it will
  466. ; be remembered longer.
  467. ;usage_coeff = 0.5
  468. ; Priority coefficient decays all the job priorities such that they slowly
  469. ; drift towards the front of the run queue. This coefficient defines a maximum
  470. ; time window over which this algorithm would operate. For example, if this
  471. ; value is too small (0.1), after a few cycles quite a few jobs would end up at
  472. ; priority 0, and would render this algorithm useless. The default value of
  473. ; 0.98 is picked such that if a job ran for one scheduler cycle, then didn't
  474. ; get to run for 7 hours, it would still have priority > 0. 7 hours was picked
  475. ; as it was close enought to 8 hours which is the default maximum error backoff
  476. ; interval.
  477. ;priority_coeff = 0.98
  478. [replicator.shares]
  479. ; Fair share configuration section. More shares result in a higher
  480. ; chance that jobs from that db get to run. The default value is 100,
  481. ; minimum is 1 and maximum is 1000. The configuration may be set even
  482. ; if the database does not exit.
  483. ;_replicator = 100
  484. [log]
  485. ; Possible log levels:
  486. ; debug
  487. ; info
  488. ; notice
  489. ; warning, warn
  490. ; error, err
  491. ; critical, crit
  492. ; alert
  493. ; emergency, emerg
  494. ; none
  495. ;
  496. ;level = info
  497. ;
  498. ; Set the maximum log message length in bytes that will be
  499. ; passed through the writer
  500. ;
  501. ; max_message_size = 16000
  502. ;
  503. ; Do not log last message received by terminated process
  504. ; strip_last_msg = true
  505. ;
  506. ; List of fields to remove before logging the crash report
  507. ; filter_fields = [pid, registered_name, error_info, messages]
  508. ;
  509. ; There are four different log writers that can be configured
  510. ; to write log messages. The default writes to stderr of the
  511. ; Erlang VM which is useful for debugging/development as well
  512. ; as a lot of container deployments.
  513. ;
  514. ; There's also a file writer that works with logrotate, a
  515. ; rsyslog writer for deployments that need to have logs sent
  516. ; over the network, and a journald writer that's more suitable
  517. ; when using systemd journald.
  518. ;
  519. ;writer = stderr
  520. ; Journald Writer notes:
  521. ;
  522. ; The journald writer doesn't have any options. It still writes
  523. ; the logs to stderr, but without the timestamp prepended, since
  524. ; the journal will add it automatically, and with the log level
  525. ; formated as per
  526. ; https://www.freedesktop.org/software/systemd/man/sd-daemon.html
  527. ;
  528. ;
  529. ; File Writer Options:
  530. ;
  531. ; The file writer will check every 30s to see if it needs
  532. ; to reopen its file. This is useful for people that configure
  533. ; logrotate to move log files periodically.
  534. ;
  535. ; file = ./couch.log ; Path name to write logs to
  536. ;
  537. ; Write operations will happen either every write_buffer bytes
  538. ; or write_delay milliseconds. These are passed directly to the
  539. ; Erlang file module with the write_delay option documented here:
  540. ;
  541. ; http://erlang.org/doc/man/file.html
  542. ;
  543. ; write_buffer = 0
  544. ; write_delay = 0
  545. ;
  546. ;
  547. ; Syslog Writer Options:
  548. ;
  549. ; The syslog writer options all correspond to their obvious
  550. ; counter parts in rsyslog nomenclature.
  551. ;
  552. ; syslog_host =
  553. ; syslog_port = 514
  554. ; syslog_appid = couchdb
  555. ; syslog_facility = local2
  556. [stats]
  557. ; Stats collection interval in seconds. Default 10 seconds.
  558. ;interval = 10
  559. [smoosh]
  560. ;
  561. ; More documentation on these is in the Automatic Compaction
  562. ; section of the documentation.
  563. ;
  564. ;db_channels = upgrade_dbs,ratio_dbs,slack_dbs
  565. ;view_channels = upgrade_views,ratio_views,slack_views
  566. ;
  567. ;[smoosh.ratio_dbs]
  568. ;priority = ratio
  569. ;min_priority = 2.0
  570. ;
  571. ;[smoosh.ratio_views]
  572. ;priority = ratio
  573. ;min_priority = 2.0
  574. ;
  575. ;[smoosh.slack_dbs]
  576. ;priority = slack
  577. ;min_priority = 536870912
  578. ;
  579. ;[smoosh.slack_views]
  580. ;priority = slack
  581. ;min_priority = 536870912
  582. [ioq]
  583. ; The maximum number of concurrent in-flight IO requests that
  584. ;concurrency = 10
  585. ; The fraction of the time that a background IO request will be selected
  586. ; over an interactive IO request when both queues are non-empty
  587. ;ratio = 0.01
  588. [ioq.bypass]
  589. ; System administrators can choose to submit specific classes of IO directly
  590. ; to the underlying file descriptor or OS process, bypassing the queues
  591. ; altogether. Installing a bypass can yield higher throughput and lower
  592. ; latency, but relinquishes some control over prioritization. The following
  593. ; classes are recognized with the following defaults:
  594. ; Messages on their way to an external process (e.g., couchjs) are bypassed
  595. ;os_process = true
  596. ; Disk IO fulfilling interactive read requests is bypassed
  597. ;read = true
  598. ; Disk IO required to update a database is bypassed
  599. ;write = true
  600. ; Disk IO required to update views and other secondary indexes is bypassed
  601. ;view_update = true
  602. ; Disk IO issued by the background replication processes that fix any
  603. ; inconsistencies between shard copies is queued
  604. ;shard_sync = false
  605. ; Disk IO issued by compaction jobs is queued
  606. ;compaction = false
  607. [dreyfus]
  608. ; The name and location of the Clouseau Java service required to
  609. ; enable Search functionality.
  610. ; name = clouseau@127.0.0.1
  611. ; CouchDB will try to re-connect to Clouseau using a bounded
  612. ; exponential backoff with the following number of iterations.
  613. ; retry_limit = 5
  614. ; The default number of results returned from a global search query.
  615. ; limit = 25
  616. ; The default number of results returned from a search on a partition
  617. ; of a database.
  618. ; limit_partitions = 2000
  619. ; The maximum number of results that can be returned from a global
  620. ; search query (or any search query on a database without user-defined
  621. ; partitions). Attempts to set ?limit=N higher than this value will
  622. ; be rejected.
  623. ; max_limit = 200
  624. ; The maximum number of results that can be returned when searching
  625. ; a partition of a database. Attempts to set ?limit=N higher than this
  626. ; value will be rejected. If this config setting is not defined,
  627. ; CouchDB will use the value of `max_limit` instead. If neither is
  628. ; defined, the default is 2000 as stated here.
  629. ; max_limit_partitions = 2000
  630. [reshard]
  631. ;max_jobs = 48
  632. ;max_history = 20
  633. ;max_retries = 1
  634. ;retry_interval_sec = 10
  635. ;delete_source = true
  636. ;update_shard_map_timeout_sec = 60
  637. ;source_close_timeout_sec = 600
  638. ;require_node_param = false
  639. ;require_range_param = false
  640. [prometheus]
  641. additional_port = false
  642. bind_address = 127.0.0.1
  643. port = 17986