Doug Fawley
e9a4e942b1
base: update base balancer for new APIs ( #6503 )
2023-08-04 10:27:11 -07:00
Doug Fawley
6c0c69efd5
all: replace RemoveSubConn with Shutdown as much as possible ( #6505 )
2023-08-04 10:19:51 -07:00
Doug Fawley
7aceafcc52
balancer: add SubConn.Shutdown; deprecate Balancer.RemoveSubConn ( #6493 )
2023-08-04 08:10:48 -07:00
Doug Fawley
e41e8940c0
orca: create ORCA producer for LB policies to use to receive OOB load reports ( #5669 )
2022-11-03 10:27:40 -07:00
Doug Fawley
778860e606
testing: update Go to 1.19 ( #5717 )
2022-10-17 15:04:34 -07:00
Doug Fawley
3e7b97febc
xds/priority: bug fix and minor behavior change ( #5417 )
2022-06-17 11:14:31 -07:00
Doug Fawley
f00baa6c3c
resolver: replace AddressMap.Range with Keys ( #4891 )
...
Co-authored-by: Menghan Li <menghanl@google.com>
2021-10-20 15:07:37 -07:00
Doug Fawley
36d87572db
attributes: add Equal method; resolver: add AddressMap and State.BalancerAttributes ( #4855 )
2021-10-15 10:39:56 -07:00
Doug Fawley
03268c8ed2
balancer: fix aggregated state to not report idle with zero subconns ( #4756 )
2021-09-10 16:25:09 -07:00
Doug Fawley
8ab16ef276
balancer: add ExitIdle optional interface ( #4673 )
2021-08-18 15:04:35 -07:00
longxboy
80e380eff4
balancer/base: keep address attributes for pickers ( #4253 )
2021-03-25 13:08:24 -07:00
Easwar Swaminathan
9dfe677337
balancer: Add UpdateAddresses() to balancer.ClientConn interface ( #4215 )
2021-02-25 15:48:39 -08:00
Menghan Li
4a0125ac58
roundrobin: strip attributes from addresses ( #4024 )
2020-11-30 14:20:03 -08:00
Doug Fawley
1154df9a4e
balancer: remove deprecated type aliases as planned ( #3742 )
2020-07-16 13:20:46 -07:00
Garrett Gutierrez
506b773066
Implemented component logging ( #3617 )
2020-06-26 12:04:47 -07:00
Doug Fawley
4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API ( #3431 )
2020-04-28 14:52:49 -07:00
Menghan Li
aedb1362d5
balancer: change roundrobin to accept empty address list ( #3491 )
...
Roundrobin will remove all SubConns. The ClientConn will set SubConn state change to shutdown, and the overall state will turn transient failure.
2020-04-03 09:47:59 -07:00
Doug Fawley
92dd426e0c
balancer/base: keep bad SubConns in TransientFailure until Ready ( #3366 )
2020-02-12 15:41:45 -08:00
Doug Fawley
cb03b9f65c
balancer/base: consider an empty address list an error ( #3361 )
2020-02-05 13:16:31 -08:00
Doug Fawley
c35a580b0c
Revert "balancer: move Balancer and Picker to V2; delete legacy… ( #3315 )
...
This reverts commit 336cf8d761 .
2020-01-13 13:12:55 -08:00
Doug Fawley
336cf8d761
balancer: move Balancer and Picker to V2; delete legacy API ( #3301 )
2020-01-10 13:44:48 -08:00
Doug Fawley
dc49de8acd
balancer: add V2Picker, ClientConn.UpdateState, SubConnState.ConnectionError ( #3186 )
...
Also implement V2 versions of base.*, xds, pickfirst, grpclb, and round robin balancers.
2019-11-21 10:27:29 -08:00
Doug Fawley
ed563a02ea
resolver: add State fields to support error handling ( #2951 )
2019-10-04 12:59:43 -07:00
Fabian Holler
120728e1f7
client: log balancer info messages only for verbosity level >=2 ( #2908 )
...
The pickfirstBalancer and baseBalancer are logging a lot of messages under normal operation. Those messages can not be associated to a server connection because no connection address is part of the messages. They are messages that are only useful when debugging issues.
Only log them when the verbose level is at least 2, to reduce the amount of log messages under normal operation.
2019-07-25 13:25:20 -07:00
Doug Fawley
d40a995895
balancer/resolver: add loadBalancingConfig and pre-parsing support ( #2732 )
2019-05-30 09:12:58 -07:00
Doug Fawley
3910b873d3
bar: add ability to update resolver state atomically and pass directly to the balancer ( #2693 )
2019-03-22 10:48:55 -07:00
Ning Xie
ebf41aabc9
roundrobin: use balancer.ConnectivityStateEvaluator in roundrobin ( #2520 )
...
This PR refactors `connectivityStateEvaluator` with `balancer.ConnectivityStateEvaluator`.
2018-12-12 17:08:09 -08:00
Doug Fawley
04ea82009c
cleanup: replace "x/net/context" import with "context" ( #2439 )
2018-11-12 13:30:41 -08:00
lyuxuan
105f61423e
health: Client LB channel health checking ( #2387 )
2018-11-01 10:49:35 -07:00
Karsten Weiss
95bbf69653
Remove redundant return statements (gosimple)
...
This fixes:
balancer/base/balancer.go:149:2: redundant return statement (S1023)
balancer_v1_wrapper.go:260:2: redundant return statement (S1023)
balancer_v1_wrapper.go:273:2: redundant return statement (S1023)
balancer_v1_wrapper.go:285:2: redundant return statement (S1023)
benchmark/benchmark.go:68:2: redundant return statement (S1023)
clientconn.go:1461:2: redundant return statement (S1023)
grpclb.go:223:2: redundant return statement (S1023)
grpclb.go:260:2: redundant return statement (S1023)
grpclb_util.go:201:2: redundant return statement (S1023)
rpc_util.go:278:50: redundant return statement (S1023)
rpc_util.go:296:56: redundant return statement (S1023)
rpc_util.go:314:56: redundant return statement (S1023)
rpc_util.go:333:53: redundant return statement (S1023)
rpc_util.go:354:52: redundant return statement (S1023)
rpc_util.go:387:56: redundant return statement (S1023)
rpc_util.go:416:53: redundant return statement (S1023)
stream.go:651:2: redundant return statement (S1023)
2018-04-15 12:43:34 +02:00
Menghan Li
bf35f1b961
Refactor roundrobin to support custom picker ( #1707 )
...
Split round_robin balancer into a base balancer (which manages SubConn and connectivity states), and a round_robin picker.
A custom picker with other picking algorithms can be provided to build custom balancers.
2017-12-05 11:27:28 -08:00