-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Infrastructure for accessing elastic/opensearch hosts used in rest clients #22185
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests successfully.
import org.graylog2.configuration.IndexerDiscoveryModule; | ||
import org.graylog2.configuration.PathConfiguration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not part of the changes in this PR, but these appear to be unused, so maybe you could remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just rebased the branch and these imports are now needed. Maybe this was just an out-of-sync state?
Description
Elastic/opensearch clients are the single source of truth when it comes to a list of indexer hosts. This PR is making this information readily available for every use case where we need to access these hosts directly, without the client.
Motivation and Context
There are some places in graylog codebease where we need to access indexer hosts directly. Some are related to notifications about changed indexer version (and compatibility with our client libs), some are alternative opensearch clients, like for anomaly detection. These places are regularly triggering requests to indexer hosts and need to know which are valid and accessible.
How Has This Been Tested?
Manually, existing integration tests
Screenshots (if appropriate):
Types of changes
Checklist: