Commit Graph

17 Commits

Author SHA1 Message Date
Arvind Bright 28b6bcf9ba
xds/xdsclient: improve failure mode behavior (gRFC A57) (#5996) 2023-02-28 11:44:37 -08:00
Doug Fawley 36d87572db
attributes: add Equal method; resolver: add AddressMap and State.BalancerAttributes (#4855) 2021-10-15 10:39:56 -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 0bd76be2bb
lrs: use JSON for locality's String representation (#4135) 2021-01-07 14:53:43 -08:00
Menghan Li 40076094f6
xds: call xdsclient.New instead of getting xds_client from attributes (#4032) 2020-11-19 13:15:38 -08:00
Easwar Swaminathan b5802b5f3b
xds: v3 support for LRS. (#3856) 2020-09-01 16:56:52 -07:00
Menghan Li 1605756d15
xds: add LRS balancing policy (#3799) 2020-08-13 11:47:23 -07:00
Easwar Swaminathan 4241954407
xds: Move test only utility method to testutils. (#3715) 2020-06-25 20:03:47 -07:00
Menghan Li c7079afb44
lint: fail on missing package comment (#3524)
golint does check for missing package comment, but with low confidence.
golint checks each file, and complains on every file missing package comment, even though another file in the same package has the comment.

This PR adds a golint check with low min_confidence, and filters out false-positives.
2020-04-15 09:59:17 -07:00
Zou Nengren 46c755aff1
rename to LocalityID (#3522) 2020-04-14 09:04:53 -07:00
Easwar Swaminathan 5d4cc8affe
xds: Implementation of xds_resolver using LDS/RDS (#3183)
xds: Implementation of xds_resolver using LDS/RDS
2019-11-18 17:46:14 -08:00
Menghan Li 448c8c628c
xds: replace eds proto message with xdsclient defined struct in eds balancer (#3174)
The xds client will parse the EDS response, and give the parse result to eds balancer, so the balancer doesn't need to deal with proto directly.

Also moved `ClusterLoadAssignmentBuilder` to another pacakge to be shared by tests in different packages.
2019-11-14 10:11:01 -08:00
Menghan Li b09352fc84
xds: add new fields to XDSConfig (#3100)
Fields are added in: https://github.com/grpc/grpc-proto/pull/64

Other changes:
 - Move XDSConfig from internal to balancer
   - Later we will add a separate config for CDS balancer
 - generate service_config.pb.go and test with json generated from proto message
2019-11-05 09:17:10 -08:00
Menghan Li a8f166a036
xds: use generated files from go-control-plane (#3083)
validate needs to be removed, otherwise build fails due to duplicate
proto type registered.
2019-10-29 11:14:20 -07:00
Ben Wells 691f3b44ba cleanup: fix various misspellings (#3075) 2019-10-04 13:07:47 -07:00
Easwar Swaminathan dc1875474e
Implementation of the xds_experimental resolver. (#2967)
This resolver doesn't do much at this point, except returning an empty
address list and a hard-coded service config which picks the xds
balancer with a round_robin child policy.

Also moved the xdsConfig struct to the xds/internal package and exported
it as LBConfig, so that both the resolver and the balancer packages can
make use of this.
2019-08-21 11:24:53 -07:00
Easwar Swaminathan 36ddeccf18
Move code out of balancer/xds. (#2950)
We will have a root level xds/ directory which will eventually contain
all xDS implementation including balancer, resolver, client etc.

The new structure looks something like this:

grpc/
|
+--xds/
    |
    +--internal/
    |  |
    |  +--balancer/
    |     |
    |     +--edsbalancer/
    |     |
    |     +--lrs/
    |     |
    |     +--orca/
    |
    +--experimental/

Users need to import grpc/xds/experimental package to get all xds
functionality, and this will eventually be moved to grpc/xds.

Also, moved grpc/balancer/internal/wrr to grpc/internal/wrr.
2019-08-07 14:46:10 -07:00