Skip to content
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

Allow multiple elasticsearch hosts #88

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Allow multiple elasticsearch hosts #88

merged 2 commits into from
Dec 11, 2024

Conversation

klesaulnier
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What is the current behavior?
Application can only work with one elastisearch instance

What is the new behavior (if this is a feature change)?
Application can work with multiple elastisearch instance using RestClient

uris:
- http://elasticsearch:9200
socket-timeout: 60s
connection-timeout: 60s
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
connection-timeout: 60s

We should remove the connection timeout even if it was present in the previous configuration. We saw with @SlimaneAmar that it's not expected. The socket timeout is here to be able to reindex studies completely (see PR that Kevin found) and should be kept.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Signed-off-by: LE SAULNIER Kevin <[email protected]>
Copy link

sonarcloud bot commented Dec 11, 2024

Copy link
Collaborator

@antoinebhs antoinebhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code OK

@antoinebhs antoinebhs merged commit 2fe2166 into main Dec 11, 2024
5 checks passed
@antoinebhs antoinebhs deleted the multiple-es-hosts branch December 11, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants