Revert "Features: 1) Adjust Elasticsearch timeout settings and retry configuration for improved connection handling."
This reverts commit 76954ac24c.
This commit is contained in:
parent
76954ac24c
commit
65a34bb90b
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ from core.models import Brand, Category, Product
|
||||||
|
|
||||||
|
|
||||||
class _BaseDoc(ActiveOnlyMixin, Document):
|
class _BaseDoc(ActiveOnlyMixin, Document):
|
||||||
chunk_size = 200
|
chunk_size = 300
|
||||||
|
|
||||||
name = fields.TextField(
|
name = fields.TextField(
|
||||||
attr="name",
|
attr="name",
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@ ELASTICSEARCH_DSL = {
|
||||||
"basic_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
|
"basic_auth": ("elastic", getenv("ELASTIC_PASSWORD")), # noqa: F405
|
||||||
"verify_certs": False,
|
"verify_certs": False,
|
||||||
"ssl_show_warn": False,
|
"ssl_show_warn": False,
|
||||||
"timeout": 10,
|
"timeout": 30,
|
||||||
"max_retries": 2,
|
"max_retries": 3,
|
||||||
"retry_on_timeout": True,
|
"retry_on_timeout": True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
ELASTICSEARCH_DSL_AUTOSYNC = True
|
ELASTICSEARCH_DSL_AUTOSYNC = True
|
||||||
ELASTICSEARCH_DSL_PARALLEL = False
|
ELASTICSEARCH_DSL_PARALLEL = True
|
||||||
ELASTICSEARCH_DSL_SIGNAL_PROCESSOR = "evibes.signal_processors.SelectiveSignalProcessor"
|
ELASTICSEARCH_DSL_SIGNAL_PROCESSOR = "evibes.signal_processors.SelectiveSignalProcessor"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue