-
Notifications
You must be signed in to change notification settings - Fork 212
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
Implement per-route options in BBS #939
Comments
We investigated this and found that no changes are required in The route object is stored as a generic JSON object in The datatype for the route JSON in the database is We have tested this by hacking the options into Cloud Controller (see diff below) and fetching the information stored in We will now move on to adjusting Index: lib/cloud_controller/diego/app_recipe_builder.rb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/cloud_controller/diego/app_recipe_builder.rb b/lib/cloud_controller/diego/app_recipe_builder.rb
--- a/lib/cloud_controller/diego/app_recipe_builder.rb
+++ b/lib/cloud_controller/diego/app_recipe_builder.rb
@@ -156,7 +156,10 @@
port: i['port'],
route_service_url: i['route_service_url'],
isolation_segment: IsolationSegmentSelector.for_space(process.space),
- protocol: i['protocol']
+ protocol: i['protocol'],
+ options: {
+ "lb_algo": "least-connection",
+ }
}
end
IMO we can close this issue. |
Thank you @a18e for the details! I'm closing this as completed. |
Proposed Change
In RFC0027 Generic Per-Route Features we decided to implement a new field for routes which can contain additional, custom configuration for a route. Together with this new feature we also want to implement the first property making use of it: customisable load balancing algorithms.
This new field must be implemented in BBS to allow cloud controller to forward the new field and for route-emitter to announce it via nats. The field should be opaque to BBS, for BBS it is a string which can contain arbitrary data.
Acceptance criteria
Related links
The text was updated successfully, but these errors were encountered: