-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout during index creation #1613
Comments
I'm ok with this but it never happened to us so I'm thinking it may be a symptom that your Elasticsearch is not well dimensioned? Would it make sense that this setting is used for all ES queries? |
We have and active-passive installation. Where each node has everything, nginx, app, elasticsearch and db. So every day we synchronize the servers, we backup from primary node and restore the data and the index on replica node. During the restore we run
I think we shouldn't increase timeout on every interaction with elasticsearch. The normal search query should need to be rapid. If elasticsearch takes too long to respond, we could saturate all the gunicorn workers. |
@sampaccoud nevertheless I could include also a different setting that allows to change the overall timeout. |
Use a new Django setting that allows to change the timeout of the create index operation on the elastic search. Closes openfun#1613.
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Add settings that permit to configure elastic search client with custom configuration like custom timeouts. Closes openfun#1613
Bug Report
Sometimes when we reindex the elastic search on our Richie installation it timeouts.
Logs
I think changing the following code on the file
src/richie/apps/search/index_manager.py
From:
To:
And on our Richie project
nau-richie-site-factory
explicitly increase its value to 30 seconds, would fix the problem.This optional timeout change would only change the index creation and not the normal queries.
References:
@sampaccoud I could send a PR with this change if you are ok with this change.
The text was updated successfully, but these errors were encountered: