Commit Graph

67 Commits

Author SHA1 Message Date
Arjan Singh Bal 6dfe07c8c3
balancer: Make ExitIdle compulsory for Balancers (#8367) 2025-06-03 09:15:35 +05:30
Arjan Singh Bal f227ba9ba0
balancer: Move metrics recorder from BuildOptions to ClientConn (#8027) 2025-02-06 17:33:09 +05:30
Arjan Singh Bal 3e27c175ff
balancer: Enforce embedding requirement for balancer.ClientConn (#8026) 2025-02-06 17:20:00 +05:30
Doug Fawley 324460641e
balancer: fix SubConn embedding requirement to not recommend a nil panic hazard (#7840) 2024-11-19 14:03:58 -08:00
Arjan Singh Bal 274830d67a
balancer: Add a SubConn.RegisterHealthListener API and default implementation (#7780) 2024-11-13 12:22:49 +05:30
Arjan Singh Bal 43ee17261c
balancer: Enforce embedding the SubConn interface in implementations (#7758) 2024-11-05 23:22:26 +05:30
Doug Fawley ca4865d6dd
balancer: automatically stop producers on subchannel state changes (#7663) 2024-09-30 08:42:42 -07:00
Nathan Baulch 3b626a7b52
*: fix more typos (#7619) 2024-09-16 10:58:27 -07:00
Zach Reyes 84a4ef1623
internal/stats: Add metrics recorder list and usage in ClientConn (#7428) 2024-07-25 15:47:23 -04:00
Brad Town 9c5b31d74b
xds: use locality from the connected address for load reporting (#7378) 2024-07-10 12:51:11 -07:00
Doug Fawley faf9964afe
gracefulswitch: add ParseConfig and make UpdateClientConnState call SwitchTo if needed (#7035) 2024-03-19 11:35:17 -07:00
Doug Fawley 55cd7a68b3
channelz: major cleanup / reorganization (#6969) 2024-03-15 11:13:53 -07:00
Easwar Swaminathan 147bd85912
balancer: add a warning for balancer names that contain upper case letters (#6647) 2023-09-25 16:07:05 -07:00
Doug Fawley fbff2abb0f
*: update `interface{}` to `any` and `go.mod` version to `go 1.19` (#6544) 2023-08-14 09:04:46 -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 c6354049d4
balancer: add StateListener to NewSubConnOptions for SubConn state updates (#6481) 2023-07-31 09:42:41 -07:00
Doug Fawley 94df716d94
resolver: State: add Endpoints and deprecate Addresses (#6471) 2023-07-31 09:42:27 -07:00
Zach Reyes 1536887cc6
interop/xds: Add Custom LB needed for interop test (#6262) 2023-05-11 12:29:32 -04:00
Easwar Swaminathan 68b388b26f
balancer: support injection of per-call metadata from LB policies (#5853) 2022-12-20 15:13:02 -08: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
Easwar Swaminathan 36e481079b
orca: cleanup old code, and get grpc package to use new code (#5627) 2022-09-27 12:41:05 -07:00
Easwar Swaminathan 03fee09e68
balancer: fix connectivity state aggregation algorithm to follow the spec (#5473) 2022-07-07 13:48:34 -07:00
Easwar Swaminathan a73725f42d
channelz: include channelz identifier in logs (#5192) 2022-02-23 07:30:06 -08:00
Easwar Swaminathan 82d8af8bf0
balancer: add Authority field to balancer.BuildOptions (#4969) 2021-11-11 10:59:18 -08: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
Doug Fawley 997ce619eb
clientconn: do not automatically reconnect addrConns; go idle instead (#4613) 2021-08-10 13:22:34 -07:00
Easwar Swaminathan 9dfe677337
balancer: Add UpdateAddresses() to balancer.ClientConn interface (#4215) 2021-02-25 15:48:39 -08:00
Menghan Li d6f8e6fbaf
grpclb: send custom user-agent (#4011) 2020-11-09 14:08:58 -08:00
Doug Fawley 1154df9a4e
balancer: remove deprecated type aliases as planned (#3742) 2020-07-16 13:20:46 -07:00
Doug Fawley 4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API (#3431) 2020-04-28 14:52:49 -07:00
Easwar Swaminathan 6a3c03883d
Pass address attributes from balancer to creds handshaker. (#3548) 2020-04-23 11:03:42 -07:00
Doug Fawley 27fd7d000e
balancer/resolver: remove temporary backward-compatibility type aliases (#3309) 2020-01-22 08:59:42 -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 2cb07fcd90
resolver: rename Option to Options, leaving type aliases for now (#3175) 2019-11-12 15:23:46 -08:00
Doug Fawley ed563a02ea
resolver: add State fields to support error handling (#2951) 2019-10-04 12:59:43 -07:00
Doug Fawley d40a995895
balancer/resolver: add loadBalancingConfig and pre-parsing support (#2732) 2019-05-30 09:12:58 -07:00
lyuxuan 4748a040c8
balancer: provide parsed target through BuildOptions (#2803) 2019-05-09 13:27:41 -07:00
Menghan Li d389f9fac6
balancer: add server loads from RPC trailers to DoneInfo (#2641) 2019-04-02 11:15:36 -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
Menghan Li ce45558927
balancer: make sure non-nil done returned by Pick is called (#2688)
Special case: when SubConn returned by Picker is not Ready, call done before
looping back to re-pick.
2019-03-19 10:47:09 -07:00
Doug Fawley 3c84def893
balancer: remove Header from PickOptions; it is also available through context (#2674) 2019-03-15 09:00:55 -07:00
Doug Fawley 8e6533ee6e
client: clean up v1 balancer wrapper error handling (#2511) 2019-01-30 10:56:23 -08:00
shaun e9c1ac35ec fix: typos (#2591) 2019-01-23 09:59:48 -08:00
Menghan Li 191cc8e37b
grpclb: filter out grpclb addresses if balancer in use is not grpclb (#2509) 2018-12-13 10:54:42 -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