KEMBAR78
purge-binary-logs API, safe operation by shlomi-noach · Pull Request #825 · openark/orchestrator · GitHub
Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Conversation

@shlomi-noach
Copy link
Collaborator

Added purge-binary-logs/:host/:port/:logFile API endpoint, supporting ?force=true

purge-binary-logs will now refuse purging, by default, if the host has replicas which have not yet applied events in the binary logs to-be-purged.

This is a strict sanity check. A more relaxed one would be to check if the replicas have copied the binary logs as relay logs. This is good enough on a normal flow, but since relay logs are purged on a change master to command, they can lose their ability to replicas. So orchestrator plays safe.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=conductor March 3, 2019 10:11 Inactive
@shlomi-noach shlomi-noach temporarily deployed to staging March 3, 2019 10:13 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=conductor March 3, 2019 10:14 Inactive
@shlomi-noach shlomi-noach merged commit 5bd6e2a into master Mar 3, 2019
@shlomi-noach shlomi-noach deleted the orchestrator-client-purge-binlogs branch March 3, 2019 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant