-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add random option #7950
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
base: master
Are you sure you want to change the base?
Add random option #7950
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,8 @@ func setProxyUpstreamMode( | |
switch upstreamMode { | ||
case UpstreamModeParallel: | ||
conf.UpstreamMode = proxy.UpstreamModeParallel | ||
case UpstreamModeRandom: | ||
conf.UpstreamMode = proxy.UpstreamModeRandom | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This won't build without |
||
case UpstreamModeFastestAddr: | ||
conf.UpstreamMode = proxy.UpstreamModeFastestAddr | ||
conf.FastestPingTimeout = fastestTimeout | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2510,10 +2510,13 @@ | |
* `parallel`: Use parallel requests to speed up resolving by | ||
simultaneously querying all upstream servers. | ||
* `random`: Query a random upstream server for every new query. | ||
'enum': | ||
- 'fastest' | ||
- 'load_balancing' | ||
- 'parallel' | ||
- 'random' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update both |
||
'type': 'string' | ||
|
||
'ErrorCode': | ||
|
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.
From what I understand, more changes to the frontend are required?