13a8884b8SAliaksey Kandratsenka[couchdb]
23a8884b8SAliaksey Kandratsenkamax_dbs_open = 10000
335ec3078SAliaksey Kandratsenkadatabase_dir = @COUCHBASE_DB_DIR@
435ec3078SAliaksey Kandratsenkaview_index_dir = @COUCHBASE_DB_DIR@
535ec3078SAliaksey Kandratsenka
6e6448e2cSAliaksey Kandratsenka
73a8884b8SAliaksey Kandratsenka[httpd]
83a8884b8SAliaksey Kandratsenkadb_frontend = capi_frontend
9d68e8d45Sharshaip4_bind_address = 0.0.0.0
10d68e8d45Sharshaip6_bind_address = ::
116202bc6dSAliaksey Kandratsenkaport = 8092
12c36ab711SAliaksey Kandratsenka; this gets us auth support on capi port
13c36ab711SAliaksey KandratsenkaWWW-Authenticate = Basic realm="capi"
14c36ab711SAliaksey Kandratsenka
1567757837SAliaksey Artamonau[httpd_db_handlers]
1667757837SAliaksey Artamonau_all_docs = {capi_view, all_docs_db_req}
17e6448e2cSAliaksey Kandratsenka
18f311bbf6SAliaksey Kandratsenka[httpd_design_handlers]
19f311bbf6SAliaksey Kandratsenka_view = {capi_view, handle_view_req}
201c95c662SVolker Mische_spatial = {capi_spatial, handle_view_req}
21eba357afSDustin Sallings
221807884bSFilipe David Manana[database_compaction]
231807884bSFilipe David Mananadoc_buffer_size = 2097152
241807884bSFilipe David Mananacheckpoint_after = 20971520
251807884bSFilipe David Manana
261807884bSFilipe David Manana[daemons]
270ac29d57SFilipe David Manana; Started by ns_server's supervision trees.
280ac29d57SFilipe David Mananacompaction_daemon =
290a645eaeSSrinivas Vadlamanireplication_manager =
301807884bSFilipe David Manana
31859f22aaSDustin Sallings; Not using these in couchbase
32859f22aaSDustin Sallingsstats_aggregator =
33859f22aaSDustin Sallingsstats_collector =
34859f22aaSDustin Sallings
35eba357afSDustin Sallings[compaction_daemon]
3645388697SAliaksey Kandratsenkacheck_interval = 30
37b1350814SFilipe David Mananamin_file_size = 131072
38b1350814SFilipe David Manana
394b2a06feSAliaksey Kandratsenka[httpd_global_handlers]
404b2a06feSAliaksey Kandratsenka_pre_replicate = {capi_replication, handle_pre_replicate}
41c2a30e7eSAliaksey Kandratsenka_mass_vbopaque_check = {capi_replication, handle_mass_vbopaque_check}
424b2a06feSAliaksey Kandratsenka_commit_for_checkpoint = {capi_replication, handle_commit_for_checkpoint}
430e3e6ab8SArtem Stemkovski_view_merge = {capi_view, handle_view_merge_req}
44acfbedcaSArtem Stemkovski_spatial_merge = {capi_spatial, handle_view_merge_req}
454b2a06feSAliaksey Kandratsenka
4622b9c1ecSDale Harvey;[compactions]
4723728ba7SDale Harvey;_default = [{db_fragmentation, {"30%", nil}},
4823728ba7SDale Harvey;            {view_fragmentation, {"30%", nil}}]
4923728ba7SDale Harvey;
5023728ba7SDale Harvey
5123728ba7SDale Harvey; * db_fragmentation / view_fragmentation
5223728ba7SDale Harvey;
5323728ba7SDale Harvey; Both expect a tuple of {Ratio, ByteLimit} where Ratio is an integer
5423728ba7SDale Harvey; percentange of old data vs all data, and the ByteLimit is the total size
5523728ba7SDale Harvey; of all data - new data.
5623728ba7SDale Harvey; When fragemnted data is greater than or equal to either of these values,
5723728ba7SDale Harvey; auto compaction is triggered.
581ad01a8fSAliaksey Artamonau; both values can be nil to ignore the conditions
59