-
Notifications
You must be signed in to change notification settings - Fork 141
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
mqbcfg.xsd: Increase failover timeout to 5 minutes for proxies #264
Conversation
Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to the XSD file looks good.
I was a little confused by the diffs in mqbcfg_messages
, but it just looks like the codegen changed where it wants to put definitions/changed to inlining more functions. That's okay with me. CI passes. I just see one place where a version string isn't being outputted; I'm not sure if this is important or not.
@@ -335,15 +272,15 @@ const int ClusterMonitorConfig::DEFAULT_INITIALIZER_MAX_TIME_MASTER = 120; | |||
|
|||
const int ClusterMonitorConfig::DEFAULT_INITIALIZER_MAX_TIME_NODE = 120; | |||
|
|||
const int ClusterMonitorConfig::DEFAULT_INITIALIZER_MAX_TIME_FAILOVER = 240; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the meat and potatoes. Everything else is noise.
@@ -6330,12 +5804,12 @@ Configuration::print(bsl::ostream& stream, int level, int spacesPerLevel) const | |||
} // close package namespace | |||
} // close enterprise namespace | |||
|
|||
// GENERATED BY BLP_BAS_CODEGEN_2023.10.07 | |||
// GENERATED BY @BLP_BAS_CODEGEN_VERSION@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks suspicious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using the newest version of BAS codegen. For some reason, this string substitution doesn't work but shouldn't be a big deal.
…berg#264) Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
…berg#264) Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
…berg#264) Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
Looking through the code, I realize that proxies does not use the cluster definitions from
clusters.json
at all. If you look at the constructor ofClusterProxy
, it is passed a default-initializedmqbcfg::ClusterDefinition(allocator)
. Therefore, it will only use the default values, which is 2 minutes in the case of failover threshold. Therefore, I am raising the default to 5 minutes to make all proxies have a failover timeout of 5 minutes.Clusters nodes obey definitions in
clusters.json
, so they should not be affected by this change.