-
Notifications
You must be signed in to change notification settings - Fork 277
feat(routesv2) : Cut over OSM to build routes using routes v2 #2605
feat(routesv2) : Cut over OSM to build routes using routes v2 #2605
Conversation
24c4b49
to
6a5d974
Compare
@@ -23,6 +23,8 @@ spec: | |||
ports: | |||
- port: 80 | |||
name: bookstore-port | |||
selector: |
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.
I have added the selector on apex service back @draychev, @shashankram
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.
FYI, this isn't needed but putting it here doesn't cause any harm for this demo.
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.
yes, I added it back since we had it previously
6a5d974
to
d2c5259
Compare
@@ -23,6 +23,8 @@ spec: | |||
ports: | |||
- port: 80 | |||
name: bookstore-port | |||
selector: |
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.
FYI, this isn't needed but putting it here doesn't cause any harm for this demo.
This PR makes routes v2 the default route building mechanism in OSM. Signed-off-by: Sneha Chhabria <snchh@microsoft.com>
d2c5259
to
bcf2f90
Compare
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.
Thank you @snehachhabria
@@ -129,9 +135,9 @@ var _ = Describe(``+ | |||
|
|||
expectedWeightedCluster := &xds_route.WeightedCluster{ | |||
Clusters: []*xds_route.WeightedCluster_ClusterWeight{ | |||
weightedCluster("bookstore-v2", 10), | |||
weightedCluster("bookstore-v2", 100), |
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.
Curious to know why we changed these weights
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.
This is because in routes v2 we build the outbound policies with default weights :
Line 695 in 8a19278
weightedCluster := getDefaultWeightedClusterForService(destService) |
The weights will only get updated for outbound virtual hosts that are referenced in traffic splits, otherwise it always remains 100. This is different from routes v1 and hence the change in weights
Description:
This PR makes routes v2 the default route building mechanism in OSM.
Signed-off-by: Sneha Chhabria snchh@microsoft.com
Affected area:
Please answer the following questions with yes/no.
no