File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ export function deployProxy({
102102 path : '/usage' ,
103103 service : usage . service ,
104104 retriable : true ,
105+ loadBalancerPolicy : 'WeightedLeastRequest' ,
105106 } ,
106107 ] )
107108 . registerService ( { record : environment . apiDns } , [
Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ export class Proxy {
8484 requestTimeout ?: `${number } s` | 'infinity' ;
8585 idleTimeout ?: `${number } s`;
8686 retriable ?: boolean ;
87+ loadBalancerPolicy ?:
88+ | 'WeightedLeastRequest'
89+ | 'RoundRobin'
90+ | 'Random'
91+ | 'RequestHash'
92+ | 'Cookie' ;
8793 customRewrite ?: string ;
8894 virtualHost ?: Output < string > ;
8995 httpsUpstream ?: boolean ;
@@ -153,9 +159,9 @@ export class Proxy {
153159 port : route . service . spec . ports [ 0 ] . port ,
154160 } ,
155161 ] ,
156- // https://projectcontour.io/docs/1.29 /config/request-routing/#session-affinity
162+ // https://projectcontour.io/docs/1.31 /config/request-routing/
157163 loadBalancerPolicy : {
158- strategy : 'Cookie ',
164+ strategy : route . loadBalancerPolicy ?? 'RoundRobin ',
159165 } ,
160166 // https://projectcontour.io/docs/1.29/config/rate-limiting/#local-rate-limiting
161167 rateLimitPolicy : route . rateLimit
You can’t perform that action at this time.
0 commit comments