-
Notifications
You must be signed in to change notification settings - Fork 170
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
Blacklisting questions/concerns with master node. #101
Comments
👍 |
in def _makara_blacklist!
@connection.disconnect! if @connection
@connection = nil
@blacklisted_until = Time.now.to_i + @config[:blacklist_duration]
end that suggests if you set blacklist_duration to zero or negative, it would likely work out. |
if I'm reading it right, if we never raised maybe |
Yeah, some things we noticed is that our database was returning errors, but we never saw the underlying error which was hard to debug. So I'm not sure gracefully is helpful in that regard. Perhaps blacklisting could be appended with some kind of nested exception or message like "Blacklisting due to: 'blah blah blah'" might be more helpful. We also did set the value to For the moment we've removed makara in an attempt to debug the underlying issues, but are eager to put it back in as soon as possible. I'm also thinking that a more explicit 'blacklisting: on/off' sort of mechanism would be clearer than setting the duration to |
we do log the error.
You might have to set up the logger to your Rails one. Something like this:
if you catch |
I'm going to combine this with this one (#78) -- I think they are both saying that master is special and especially if there is only one, there is something interesting that should happen where it works like "normal" - more investigating on that that means but "merging" them. |
👍 |
Supporting use-case: An AWS RDS node in Multi-AZ mode can failover automatically. The DNS name remains the same, and the standby-node is transparently made master. Reconnection(s) by Makara would be necessary. Read Replicas are for Slave-use only. They can be promoted to a stand-alone Master, but they are then disconnected from the replication topology. |
@robbwagoner We ran into the exact same issue. |
Did the master issue ever get addressed? We're seeing similar issues as well. |
Wondering the same as @clarakwan |
We are also seeing an issue (in Rails) when master got blacklisted wrongfully due to this #207 hence the connection was closed in I monkey patched our use of Makara to never call |
In my case I discovered that if A note that transparently DNS is replaced to a new master by automated DB failover. The only thing that helps is just restarting Rails which is an expensive option. Am I missing some option in |
To leave feedback, in my case sonots patch worked to solve master's DNS issue. More details: |
By the way, wasn't the parameter An example:
From README.md
|
Does the master node get blacklisted? If so, why? We're running a "all writes to master, all reads to a replica" setup and it would seem that master should never be blacklisted. Does setting
blacklist_duration
for the master node to0
prevent blacklisting?Also, is there a way to turn off blacklisting completely? If so, what is the recommended way to do this?
The text was updated successfully, but these errors were encountered: