-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Shuffle endpoints using new env var for template router #4320
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
Conversation
/cc @ahardin-rh |
@@ -246,6 +246,8 @@ $ oc set env dc/router ROUTER_SYSLOG_ADDRESS=127.0.0.1 ROUTER_LOG_LEVEL=debug | |||
|`*RELOAD_SCRIPT*` | | The path to the reload script to use to reload the router. | |||
|`*ROUTER_ALLOWED_DOMAINS*` | | A comma-separated list of domains that the host name in a route can only be part of. Any subdomain in the domain can be used. Option `ROUTER_DENIED_DOMAINS` overrides any values given in this option. If set, everything outside of the allowed domains will be rejected. | |||
|`*ROUTER_BACKEND_CHECK_INTERVAL*` | 5000ms | Length of time between subsequent "liveness" checks on backends. xref:time-units[(TimeUnits)] | |||
|`*ROUTER_BACKEND_PROCESS_ENDPOINTS*` | | String to specify how the endpoints should be processed while using the template function | |||
processEndpointsForAlias. Valid values are ["shuffle", ""]. "shuffle" will randomize the elements upon every call. Default behaviour returns in pre-determined order. |
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.
s/behaviour/behavior
@rajatchopra Is this targeting OCP 3.6? Thanks! Also waiting on openshift/origin#14008 to merge |
@rajatchopra Is this still valid? Looks like we need a rebase. Thanks! |
…n now be shuffled on each reload. A new env var is introduced to select the processing choice (only one option 'shuffle' today).
@ahardin-rh Still valid. Cleaned and rejigged. Thanks. |
@rajatchopra Thanks! What versions does this apply to? 3.6 and onward, or can it be applied to 3.4 and onward? |
3.6 for sure. Will open another PR/issue if this needs to be made valid for 3.4 or earlier. |
[rev_history] |
…proxy template can now be shuffled on each reload. A new env var is introduced to select the processing choice (only one option 'shuffle' today). (cherry picked from commit 4c5480f) xref:openshift#4320
…proxy template can now be shuffled on each reload. A new env var is introduced to select the processing choice (only one option 'shuffle' today). (cherry picked from commit 4c5480f) xref:openshift#4320
As part of origin PR 14008, the server list of an haproxy template can now be shuffled on each reload. A new env var is introduced to select the processing choice (only one option 'shuffle' today).
@knobunc @pecameron PTAL