Features: 1) Update Elasticsearch configuration to use a single host;
Fixes: 1) Replace obsolete `getenv` usage with `os.getenv` for better clarity; Extra: 1) Remove sniffing-related configurations no longer required;
This commit is contained in:
parent
4e6d0a9bab
commit
db1a357ccb
1 changed files with 5 additions and 5 deletions
|
|
@ -2,16 +2,16 @@ from evibes.settings.base import * # noqa: F403
|
|||
|
||||
ELASTICSEARCH_DSL = {
|
||||
"default": {
|
||||
"hosts": ["https://es1.example.com:9200", "https://es2.example.com:9200"],
|
||||
"http_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
|
||||
"hosts": ["http://elasticsearch:9200"],
|
||||
"http_auth": ("elastic", os.getenv("ELASTIC_PASSWORD")),
|
||||
"verify_certs": False,
|
||||
"timeout": 30,
|
||||
"ssl_show_warn": False,
|
||||
"max_retries": 3,
|
||||
"retry_on_timeout": True,
|
||||
"sniff_on_start": True,
|
||||
"sniff_on_connection_fail": True,
|
||||
"sniffer_timeout": 60,
|
||||
"sniff_on_start": False,
|
||||
"sniff_on_connection_fail": False,
|
||||
"sniffer_timeout": None,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue