-
Notifications
You must be signed in to change notification settings - Fork 977
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
Added sticky flag realization #825
Conversation
@klinometr : thank you very much for the pull request!
I think the two approaches can live together, as they aren't mutually exclusive. Few comments I have are:
Thanks, |
Thanks, |
Hi Maxim,
I like that too! |
Changed field according to our discussion. Changed a logic slightly.
New field Example:
Thanks, |
# Conflicts: # include/query_processor.h # lib/Query_Processor.cpp
Hi @renecannao, Thanks, |
@klinometr : thank you for the pull request. Looks good to me: merged. |
This is a minor improvement on pull request #825
Hello Rene,
We've just moved to cloud, and started using XtraDB cluster. We've experienced some troubles with highload, so we opened couple of servers for read and write. But it also cause us some troubles like deadlocks. The possible solution for this was making one Cluster Node for write and others for readonly.
We've searching for solutions and found yours, which is great.
But for now we can't use it due to transactions. For example:
If I have rules, like:
Select will go through destination hostgroup, which includes readonly servers, which don't know about transaction yet, so I wouldn't get actual sum of deposits. And flagIN, flagOUT works only for each query separately.
So I've come up with an idea:
I added new parameter -
sticky_flag
, which means that if the sticky_flag is true, we will begin next query with current flagOUTFor example:
My version is not perfect, also I don't use C++ much, but we've tested it, and it is working like it supposed to.