-
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
Replication lag #99
Comments
The way it is now, Separate to this, the makara cookie is used to tell the client to inform the server that in a subsequent request that the web server should stick to master for duration of the request. This can inform the I agree that this should be configurable. |
I see. But the question still stands: How do I counter replication lag of |
A possible solution is being discussed here: #100 |
Before, makara would only use it for the next request. #194 should fix this so it can be 20 seconds or more. |
Everywhere I read about Makara I see a line regarding master stickiness countering the replication lag. But I can't quite get this thing to work.
Judging from the code, Makara writes current context with needed ttl to cache in case this context stuck to master. That's ok. But then to know what the previous context was, a cookie is used, and this cookie lives only for 5 seconds, and this time is not affected by
master_ttl
config option. What if my replication lag is bigger? Say I putmaster_ttl: 20
for a 20 seconds master stickiness, but the cookie still expires in 5 seconds, so Makara generates a new "previous" context, that doesn't match the context stored in cache.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: