ZomboDB provides a number of configuration settings that affect how it operates.
postgresql.conf
-only settingsThe below settings can only be set in postgresql.conf
and require a Postgres configuration reload (or server restart) to be changed.
zdb.default_elasticsearch_url
Type: string
Default: null
Defines the default URL for your Elasticsearch cluster so you can elite setting it on every index during CREATE INDEX
. The value used must end with a forward slash (/
).
Example: zdb.default_elasticsearch_url = 'http://es.cluster.ip:9200/'
zdb.default_replicas
Type: integer
Default: 0
Defines the number of replicas all new indices should have. Changing this value does not propogate to existing indices.
The below settings may be set in postgresql.conf
, but they can also be changed per session/transaction using Postgres SET key TO value
command;
zdb.default_row_estimate
Type: integer
Default: 2500
Range: [-1, INT_MAX]
ZomboDB needs to provide Postgres with an estimate of the number of rows Elasticsearch will return for any given query. 2500 is a sensible default estimate that generally convinces Postgres to use an IndexScan plan. Setting this to -1
will cause ZomboDB to execute an Elasticsearch _count
request for every query to return the exact number.
zdb.ignore_visibility
Type: boolean
Default: false
ZomboDB applies MVCC visibility rules to all queries and aggregate functions. Setting this to true instructs ZomboDB to not do that, which means aggregate functions (such as zdb.terms()
) will see dead rows, aborted rows, and in-flight rows. Generally, this should only be used for debugging.
zdb.curl_verbose
Type: boolean
Default: false
ZomboDB uses libcurl to communicate with Elasticsearch. Turning this on puts libcurl into debug mode and its debugging output goes to the Postgres log.
zdb.log_level
Type: enum
Default: DEBUG1
Possible Values: DEBUG2, DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, INFO, NOTICE, WARNING, LOG
The Postgres log level ZomboDB sends all of its (non-vacuum) log messages.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。