-
Notifications
You must be signed in to change notification settings - Fork 316
only send readonly to replicas once on new connections #403
base: master
Are you sure you want to change the base?
Conversation
@duke-cliff Most tests fail with this current solution.Seems like the core solution/idea do not work as you expect in your commit there. |
@duke-cliff Also how is this implementation different from the following code lines that exists in the
|
@Grokzen I don't think that code works.
|
@duke-cliff Actually it will be passed down if i traced the code correct but the path is a bit strange :) Setting But... the downside with this is that if you set readonly mode, then you will send readonly to all nodes in the cluster when ever any connection is created. Even master nodes which technically is redundant but should not hurt in reality. I do like this implementation as well, as it properly only sends it to slave nodes and it might work with all subclassed cluster connection pools as well as it moves the logic away from the connection side of things into the generic connection pool which is good, and the hack/workaround in the main client execute logic is removed which i like as well :) |
Hi, we are experiencing this issue as well! Let me know if there's anything I can do to help get this merged. |
I'm reviewing this thread and the associated branch now – based on what you said above @Grokzen, does this mean we can simply remove these lines and instead rely on the |
replicas have more CPU load because of extra commands(2x) than masters.