-
Notifications
You must be signed in to change notification settings - Fork 796
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
TS-4868: Add configs back and cleanup other cluster init #1022
Conversation
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/811/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/707/ for details. |
@@ -657,9 +656,6 @@ config_reload_records() | |||
config_read_int("proxy.config.cop.source_port", &source_port, true); | |||
#endif | |||
|
|||
config_read_int("proxy.local.cluster.type", &tmp_int); | |||
cluster_type = static_cast<MgmtClusterType>(tmp_int); | |||
|
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.
Remove cluster_type
altogether?
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.
There is another patch that I have as a WIP that is for totally removing it. It touches more things than it first appears.
{RECT_CONFIG, "proxy.config.cluster.cluster_load_clear_duration", RECD_INT, "24", RECU_NULL, RR_NULL, RECC_NULL, NULL, RECA_NULL} | ||
, | ||
{RECT_CONFIG, "proxy.config.cluster.cluster_load_exceed_duration", RECD_INT, "4", RECU_NULL, RR_NULL, RECC_NULL, NULL, RECA_NULL} | ||
, |
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.
Is it really necessary to add these back if there's no way to enable clustering?
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 problem that we ran into in the first place. We'd have to go through the code and match the defaults to the case if the config doesn't exist, etc.
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.
Why do the configs need to be added back in?
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.
There is a bunch of code that asserts on the existence. And the more we dig into it the more you have to remove, ala #966. This broke traffic_cop
and traffic_manager
without these configs.
I have not looked enough to say if this change is necessary or not but just wanted to mention that it helped me with a crash I got after syncing my fork.
Applying the patch seemed to fix the problem for me. |
Fixes the issue I reported on |
+1 |
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.
review test (by jpeach's request), please ignore
No description provided.