diff options
author | Joan Touzet <wohali@apache.org> | 2016-09-02 06:30:23 -0400 |
---|---|---|
committer | Joan Touzet <wohali@apache.org> | 2016-09-02 06:30:23 -0400 |
commit | 309c8821891eb569e23aca5dfe79b28f103a991b (patch) | |
tree | 9ec74a77a29359ed290a85370acdb97e3218c62f | |
parent | eeab832425ffe7f54fb36ceed28873a1934e517a (diff) | |
parent | a10d9dc130700bfe63ac09ca630217582c288d97 (diff) | |
download | couchdb-309c8821891eb569e23aca5dfe79b28f103a991b.tar.gz |
Merge branch '2623-update-ini-files' of https://github.com/wohali/couchdb
-rw-r--r-- | rel/overlay/etc/default.ini | 77 | ||||
-rw-r--r-- | rel/overlay/etc/local.ini | 7 |
2 files changed, 75 insertions, 9 deletions
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini index 5eeb9389b..952e1a70e 100644 --- a/rel/overlay/etc/default.ini +++ b/rel/overlay/etc/default.ini @@ -30,12 +30,18 @@ attachment_stream_buffer_size = 4096 ; admin_local - sharded dbs on :5984 are read/write for everyone, ; local dbs on :5986 are read/write for admins only default_security = admin_local +; btree_chunk_size = 1279 +; maintenance_mode = false +; stem_interactive_updates = true +; update_lru_on_read = true +; uri_file = [cluster] q=8 r=2 w=2 n=3 +; placement = metro-dc-a:2,metro-dc-b:1 [chttpd] port = {{cluster_port}} @@ -76,14 +82,60 @@ allow_jsonp = false ; For more socket options, consult Erlang's module 'inet' man page. ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}] socket_options = [{recbuf, 262144}, {sndbuf, 262144}] -log_max_chunk_size = 1000000 enable_cors = false ; CouchDB can optionally enforce a maximum uri length; ; max_uri_length = 8000 +; changes_timeout = 60000 +; config_whitelist = +; max_uri_length = +; rewrite_limit = 100 +; x_forwarded_host = X-Forwarded-Host +; x_forwarded_proto = X-Forwarded-Proto +; x_forwarded_ssl = X-Forwarded-Ssl + +; [httpd_design_handlers] +; _view = + +; [ioq] +; concurrency = 10 +; ratio = 0.01 [ssl] port = 6984 +; [chttpd_auth] +; authentication_db = _users + +; [chttpd_auth_cache] +; max_lifetime = 600000 +; max_objects = +; max_size = 104857600 + +; [mem3] +; nodes_db = _nodes +; shard_cache_size = 25000 +; shards_db = _dbs +; sync_concurrency = 10 + +; [fabric] +; all_docs_concurrency = 10 +; changes_duration = +; shard_timeout_factor = 2 +; uuid_prefix_len = 7 + +; [rexi] +; buffer_count = 2000 +; server_per_node = false + +; [global_changes] +; max_event_delay = 25 +; max_write_delay = 25 +; update_db = true + +; [view_updater] +; min_writer_items = 100 +; min_writer_size = 16777216 + [couch_httpd_auth] authentication_db = _users authentication_redirect = /_utils/session.html @@ -94,9 +146,12 @@ allow_persistent_cookies = false ; set to true to allow persistent cookies iterations = 10 ; iterations for password hashing ; min_iterations = 1 ; max_iterations = 1000000000 - +; password_scheme = pbkdf2 +; proxy_use_secret = false ; comma-separated list of public fields, 404 if empty ; public_fields = +; secret = +; users_db_public = false ; CSP (Content Security Policy) Support for _utils [csp] @@ -162,8 +217,11 @@ query = {mango_native_proc, start_link, []} ; If you think you're hitting reduce_limit with a "good" reduce function, ; please let us know on the mailing list so we can fine tune the heuristic. [query_server_config] +; commit_freq = 5 reduce_limit = true os_process_limit = 25 +; os_process_idle_limit = 300 +; os_process_soft_limit = 100 [daemons] index_server={couch_index_server, start_link, []} @@ -233,6 +291,9 @@ _view_changes = {couch_mrview_http, handle_view_changes_req} ; alive if it exits. ; [os_daemons] ; some_daemon_name = /path/to/script -with args +; [os_daemon_settings] +; max_retries = 3 +; retry_time = 5 [uuids] @@ -254,12 +315,6 @@ utc_id_suffix = # Maximum number of UUIDs retrievable from /_uuids in a single request max_count = 1000 -[stats] -; rate is in milliseconds -rate = 1000 -; sample intervals are in seconds -samples = [0, 60, 300, 900] - [attachments] compression_level = 8 ; from 1 (lowest, fastest) to 9 (highest, slowest), 0 to disable compression compressible_types = text/*, application/javascript, application/json, application/xml @@ -283,8 +338,14 @@ http_connections = 20 ; Even for very fast/reliable networks it might need to be increased if a remote ; database is too busy. connection_timeout = 30000 +; Request timeout +;request_timeout = infinity ; If a request fails, the replicator will retry it up to N times. retries_per_request = 10 +; Use checkpoints +;use_checkpoints = true +; Checkpoint interval +;checkpoint_interval = 30000 ; Some socket options that might boost performance in some scenarios: ; {nodelay, boolean()} ; {sndbuf, integer()} diff --git a/rel/overlay/etc/local.ini b/rel/overlay/etc/local.ini index 58baefd5d..712159c97 100644 --- a/rel/overlay/etc/local.ini +++ b/rel/overlay/etc/local.ini @@ -6,6 +6,7 @@ [couchdb] ;max_document_size = 4294967296 ; bytes +;os_process_timeout = 5000 [couch_peruser] ; If enabled, couch_peruser ensures that a private per-user database @@ -17,7 +18,7 @@ ; deleted as well. ;delete_dbs = true -[httpd] +[chttpd] ;port = 5984 ;bind_address = 127.0.0.1 ; Options for the MochiWeb HTTP server. @@ -25,6 +26,10 @@ ; For more socket options, consult Erlang's module 'inet' man page. ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}] +[httpd] +; NOTE that this only configures the "backend" node-local port, not the +; "frontend" clustered port. You probably don't want to change anything in +; this section. ; Uncomment next line to trigger basic-auth popup on unauthorized requests. ;WWW-Authenticate = Basic realm="administrator" |