@@ -92,7 +92,7 @@ that it remaps hashes associated with the app_instance3:
92
92
#### Considering a balance factor
93
93
94
94
Before routing a request, the current load on each application instance must be evaluated using a balance factor. This
95
- load is measured by the number of in-flight requests. For example, with a balance factor of 150 , no application instance
95
+ load is measured by the number of in-flight requests. For example, with a balance factor of 1.5 , no application instance
96
96
should exceed 150% of the average number of in-flight requests across all application instances. Consequently, requests
97
97
must be distributed to different application instances that are not overloaded.
98
98
@@ -129,7 +129,7 @@ A possible presentation of deterministic handling can be a ring like:
129
129
particular route to consider overload situations
130
130
- Gorouter MUST update its local hash table following the registration or deregistration of an endpoint, ensuring
131
131
minimal rehashing
132
- - Gorouter SHOULD NOT not incur any performance hit when 0 apps use hash routing.
132
+ - Gorouter SHOULD NOT incur any performance hit when 0 apps use hash routing.
133
133
134
134
For a detailed understanding of the workflows on Gorouter's side, please refer to the [ activity diagrams] ( #diagrams ) .
135
135
@@ -143,9 +143,9 @@ For a detailed understanding of the workflows on Gorouter's side, please refer t
143
143
and the balance factor
144
144
- It MUST implement the validation of the following requirements:
145
145
- The ` hash_header ` property is mandatory when load balancing is set to hash
146
- - The ` hash_balance ` property is optional when load balancing is set to hash. Leaving out ` hash_balance ` means the
147
- load situation will not be considered
148
- - To account for overload situations, ` hash_balance ` values should be greater than 110 . During the implementation
146
+ - The ` hash_balance ` property is optional when load balancing is set to hash. Leaving out ` hash_balance ` or setting
147
+ it explicitly to 0 means the load situation will not be considered
148
+ - To account for overload situations, ` hash_balance ` values should be greater than 1.1 . During the implementation
149
149
phase, the values will be evaluated to identify the best fit for the recommended range
150
150
- For load balancing algorithms other than hash, the ` hash_balance ` and ` hash_header ` properties MUST not be set
151
151
@@ -160,7 +160,7 @@ applications:
160
160
options :
161
161
loadbalancing : hash
162
162
hash_header : tenant-id
163
- hash_balance : 125
163
+ hash_balance : 1.25
164
164
- route : anothertest.example.com
165
165
options :
166
166
loadbalancing : least-connection
@@ -186,11 +186,11 @@ proposed properties.
186
186
Example :
187
187
188
188
` ` ` bash
189
- cf create-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=125
190
- cf update-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=125
189
+ cf create-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=1.25
190
+ cf update-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=1.25
191
191
cf update-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id
192
- cf update-route MY-APP example.com -n test -o loadbalancing=hash -o hash_balance=125
193
- cf map-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=125
192
+ cf update-route MY-APP example.com -n test -o loadbalancing=hash -o hash_balance=1.25
193
+ cf map-route MY-APP example.com -n test -o loadbalancing=hash -o hash_header=tenant-id -o hash_balance=1.25
194
194
` ` `
195
195
196
196
# ### Route-Emitter
0 commit comments