Commit Graph

35 Commits

Author SHA1 Message Date
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Arvind Bright eb8aa3192b
weightedtarget: return a more meaningful error when no child policy is reporting READY (#5391) 2022-10-17 14:38:11 -07:00
Easwar Swaminathan c03925db8d
priority: release references to child policies which are removed (#5682) 2022-10-06 13:23:45 -07:00
Zach Reyes d83070ec0d
Changed Outlier Detection Env Var to default true (#5673) 2022-09-30 16:46:17 -04:00
Easwar Swaminathan fe592260bf
clusterresolver: deflake eds_impl tests (#5562) 2022-08-29 16:23:12 -07:00
Doug Fawley 97cb7b1653
xds/clusterresolver: prevent deadlock of concurrent Close and UpdateState calls (#5588) 2022-08-18 10:37:07 -07:00
Easwar Swaminathan 5770b1dea5
xds: drop localities with zero weight at the xdsClient layer (#5476) 2022-06-30 15:28:57 -07:00
Easwar Swaminathan 4b750055a5
clusterresolver: merge P(p)arseConfig functions (#5462) 2022-06-24 10:48:40 -07:00
Doug Fawley 3e7b97febc
xds/priority: bug fix and minor behavior change (#5417) 2022-06-17 11:14:31 -07:00
Zach Reyes 29d9970c51
xds: Outlier Detection configuration in Cluster Resolver Balancer (#5371)
xds: Outlier Detection configuration in Cluster Resolver Balancer
2022-06-17 13:46:47 -04:00
Menghan Li da6ef0055c
xds/clusterresolver: reuse child policy names for the same locality (#5367) 2022-05-25 17:03:33 -07:00
Zach Reyes ed7522591b
Don't call cmp in non testing file (#5370)
* Don't call cmp in non testing file
2022-05-23 15:14:50 -04:00
Zach Reyes 462d867696
xds: Add Outlier Detection configuration and CDS handling (#5299)
xds: Add Outlier Detection configuration and CDS handling
2022-05-09 16:13:07 -04:00
Zach Reyes 8078d1d541
balancergroup: Switched subBalancerWrapper to wrap a gracefulswitch.Balancer (#5245)
* balancergroup: Switched subBalancerWrapper to wrap a gracefulswitch.Balancer
2022-03-21 16:34:32 -04:00
Menghan Li 0a68f8aff0
xds/federation: support federation in LRS (#5128) 2022-01-26 11:39:10 -08:00
Menghan Li b49c0c99e4
xds/clusterresolver: set ClusterName for DNS child (#5119) 2022-01-12 11:01:29 -08:00
Menghan Li 52d9416739
xds/client: move transport_helper from xdsclient to a separate struct (#4968) 2021-11-10 15:03:10 -08:00
Easwar Swaminathan 714ba8d517
xds: move balancergroup and weightedtarget our of xds directory (#4966) 2021-11-09 11:59:10 -08:00
Menghan Li 59e024e4c7
xds/client: move watchers from xdsclient to a separate struct (#4963) 2021-11-09 10:32:16 -08:00
Menghan Li 79e9c9571a
xds/client: move unmarshal functions and types to a separate package (#4904) 2021-11-08 11:11:24 -08:00
Menghan Li 2d4e44a0cd
xds/affinity: fix bugs in clusterresolver and xds-resolver (#4744) 2021-09-14 16:11:03 -07:00
Easwar Swaminathan 85b9a1a0fa
xds: pass empty balancer.BuildOptions in clusterresolver_test (#4711) 2021-08-27 08:18:29 -07:00
Easwar Swaminathan 712e8d4f57
Remove support for Go 1.13 and older (cont) (#4706) 2021-08-25 14:51:41 -07:00
Doug Fawley 8ab16ef276
balancer: add ExitIdle optional interface (#4673) 2021-08-18 15:04:35 -07:00
Aliaksandr Mianzhynski 9c668aeab8
all: preallocate slices where possible (#4609) 2021-08-11 09:17:59 -07:00
Menghan Li fc30d5b571
xds/cluster_resolver: support RING_HASH as a child of cluster_resolver balancer (#4621)
1. merge endpoint picking and localility picking policy to one field in cluster_resolver's balancer config
   - This field only supports ROUND_ROBIN or RING_HASH.
   - This is to support RING_HASH policy, which is responsible both endpoint picking and locality picking.
   - If policy is RING_HASH, endpoints in localities will be flattened to a list of endpoints, and passed to the policy.
1. support building policy config with RING_HASH as a child
   - The config tree has one less layer comparing with ROUND_ROBIN
   - This also need to define RING_HASH's balancer config config
1. Deleted test `TestEDS_UpdateSubBalancerName` because now the balancer doesn't support updating child to a custom policy.
2021-08-05 14:30:04 -07:00
Menghan Li 582ef458c6
cluster_resolver: move balancer config types into cluster_resolver package and unexport (#4607) 2021-07-22 16:12:30 -07:00
Menghan Li 0300770df1
xds: support cluster fallback in cluster_resolver (#4594) 2021-07-21 10:22:02 -07:00
Menghan Li ebfe3be62a
cluster_resolver: implement resource resolver to resolve EDS and DNS (#4531) 2021-07-12 16:42:02 -07:00
Menghan Li e24ede5936
xds: delete LRS policy and move the functionality to xds_cluster_impl (#4528)
- (cluster_resolver) attach locality ID to addresses
- (cluster_impl) wrap SubConn
- (lrs) delete
2021-06-24 16:20:11 -07:00
Menghan Li 4440c3b830
cluster_resolver: fix DiscoveryMechanismType marshal JSON (#4532) 2021-06-22 14:57:05 -07:00
Menghan Li 1c1e3f88d3
xds: fix test race in cluster_resolver (#4555)
There's a race between update sub-balancer and the first EDS resp. If
sub-balancer is updated after the first EDS resp, the old balancers
(round_robin) will create two lingering SubConns that are not handled,
which will mess up the following SubConn state updates.
2021-06-17 11:29:17 -07:00
Menghan Li 4c651eda23
xds: move eds package to cluster_resolver (#4545) 2021-06-16 11:04:33 -07:00
Doug Fawley 5c164e2b8f
xds: rename xds/internal/client package to xdsclient (#4511) 2021-06-03 16:10:21 -07:00
Menghan Li e7b12ef3b1
cluster_resolver: add functions to build child balancer config (#4429) 2021-06-02 15:58:39 -07:00