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
PT-1508 Adding --read-only-interval flag, and read-only check on wake-up #302
Conversation
Merging from origin
merge from upstream
prevent field type 'point' to be taken as decimal (poINT)
point is not decimal
pulling from origin, 2.2
Oh, and apparently my editor stripped quite a few trailing spaces. Please let me know if you wish to retain those spaces. |
For your convenience, adding |
I did sign the Contributor License Agreement. And @tomkrouper merely issued a merge from |
@shlomi-noach , unfortunately, cla-assistant.io can't get your sign ( can you re-click on the button above from cla-assistant. Thanks |
@rnovikovP I think I may have used a different email address. I will try again. |
OK, I'm good! As per @tomkrouper 's merge commit, maybe I'll squash it or something. |
I’ve signed the cla. |
Also added e1b8e2f:
This is useful when MySQL goes away. This commit fixes https://bugs.launchpad.net/percona-toolkit/+bug/1629164 |
Friendly ping. Any thoughts on the above? |
Hi, Thank you very much for the improvements. Regards |
I changed the base to FYI whitespace is a big issue with |
Fixed |
Woot! Thank you |
PT-1508 Adding --read-only-interval flag, and read-only check on wake-up
First, please let me know if this should go into
3.0
branch.This PR adds better handling for
read-only
. Assuming--check-read-only
is set:--read-only-interval
flag will make for a different sleep time in betweenread-only
checks (and for as long as the server isread-only
).If unspecified, resort to
--interval
.Why? We run with
--interval=0.1
, and wish to runpt-heartbeat
individually on all our servers. It's pointless to have replicas being hammered every0.1s
with aselect @@read_only
query. We wish to have a different interval, like every1s
, as long as the server isread-only
.read-only
.This is useful in the event a server that was writable, and had heartbeat injected, turns
read-only
(as in the case of a planned master promotion). In which case, we again wish to introduce theread-only-interval
sleep time.Thank you.