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

skip AddReplicaKey if it is specified in config.Config.DiscoveryIgnoreReplicaHostnameFilters #1096

Merged
merged 5 commits into from
Apr 28, 2020

Conversation

MaxFedotov
Copy link
Contributor

Hi @shlomi-noach.
As I understand, there is a special parameter in config DiscoveryIgnoreReplicaHostnameFilters, which is used especially to skip adding some replicas to Orchestrator (like different binlog dump routines). Right now, although replica is not added, it is still mentioned in slave_hosts field in database_instance table in Orchestrator DB, so API endpoints like /cluster/ still return such replicas in Json responses and it confuses all other services, which may rely on this data.

This PR prevents such situations, as all hosts specified in DiscoveryIgnoreReplicaHostnameFilters wouldn't be added to Orchestrator DB.

Copy link
Collaborator

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

Thank you -- this makes sense.

@shlomi-noach shlomi-noach merged commit 1b84075 into openark:master Apr 28, 2020
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.

None yet

2 participants