Garrett Gutierrez
fff75ae40f
channelz: log on channelz trace events and trace on channelz relevant logs. ( #3329 )
...
channelz: log on channelz trace events and trace on channelz relevant logs. (#3329 )
2020-02-14 10:11:26 -08:00
Easwar Swaminathan
e38032e927
internal: Move parseTarget function into internal package and export it. ( #3368 )
...
This will be used by RLS LB policy to validate targets specified in the
service config.
2020-02-11 17:51:29 -08:00
Doug Fawley
cd74fa23ea
internal: remove withResolverBuilder and use WithResolvers instead ( #3321 )
2020-01-15 08:54:42 -08:00
Ning Xie
5f3da2a013
Fix resolver.ClientConnection to resolver.ClientConn ( #3288 )
2019-12-30 10:01:47 -08:00
Easwar Swaminathan
e3baa761f4
grpc: Defer the unlock in newCCResolverWrapper ( #3255 )
...
Although the existing code wasn't causing a deadlock or causing
goroutines to hang forever, this is cleaner and prevents any such thing
from happening in the future.
2019-12-13 10:55:51 -08:00
Doug Fawley
cb47f381a7
dns: do not call NewServiceConfig when lookups are disabled ( #3201 )
2019-11-22 13:38:04 -08:00
Doug Fawley
2cb07fcd90
resolver: rename Option to Options, leaving type aliases for now ( #3175 )
2019-11-12 15:23:46 -08:00
Easwar Swaminathan
88bf070301
resolver: Add new fields to resolver.BuildOption struct to support dialing a remote name resolver ( #3098 )
...
These fields will be used by resolver implementations which need to talk
to a remote name resolver.
2019-11-04 08:41:14 -08:00
Easwar Swaminathan
88080a2423
Update the comment for `newCCResolverWrapper`. ( #3123 )
2019-10-28 10:05:33 -07:00
Easwar Swaminathan
027cd627f8
Fix a data race in resolver_conn_wrapper.go ( #3090 )
2019-10-14 15:13:33 -07:00
Doug Fawley
ed563a02ea
resolver: add State fields to support error handling ( #2951 )
2019-10-04 12:59:43 -07:00
Easwar Swaminathan
aa4eae656c
Remove couple of unused fields in the resolver wrapper. ( #3070 )
2019-10-04 10:54:57 -07:00
Doug Fawley
d40a995895
balancer/resolver: add loadBalancingConfig and pre-parsing support ( #2732 )
2019-05-30 09:12:58 -07:00
lyuxuan
ea5e6da287
service config: default service config ( #2686 )
2019-04-03 10:50:28 -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
cheng wei
98de7e24ac
internal: change split2() comment to be consistent with behavior ( #2547 )
2019-01-07 10:14:06 -08:00
lyuxuan
eb55fa50e6
resolverWrapper: remove the watcher goroutine ( #2446 )
2018-11-09 15:31:07 -08:00
lyuxuan
acd1429515
channelz: channel tracing ( #2262 )
...
* channelz: channel trancing
* add service
* update
* uuu
* better testing
* switch to single API
* fix lint
* fix review comments
* fix fix review
* uuuupdate
* switch on channel type, instead of using boolean
2018-09-12 11:15:32 -07:00
Gyuho Lee
6f35246b2a
resolver_conn_wrapper.go: fix minor typo ( #2135 )
2018-06-08 15:37:41 -07:00
Günther Noack
1fa3750c9a
Clarify newCCResolverWrapper documentation. ( #2100 )
...
I think the goroutine does not get started any more (this used to be the case in an earlier version).
2018-05-24 10:21:01 -07:00
lyuxuan
854695bef0
client: introduce WithDisableServiceConfig DialOption ( #2010 )
2018-05-08 10:28:26 -07:00
Karsten Weiss
7de9139327
Fix typos ( #1994 )
2018-04-16 10:03:02 -07:00
Menghan Li
f2620c3803
resolver: keep full unparsed target string if scheme in parsed target is not registered ( #1943 )
2018-03-27 13:58:27 -07:00
Menghan Li
90dca43332
resolver: always fall back to default resolver when target does not follow URI scheme ( #1889 )
...
Previously, any target with "://" would be handled according to the URI scheme even though it did not contain a third slash.
2018-03-08 14:00:17 -08:00
Menghan Li
37346e3181
Revert "Add WithResolverUserOptions for custom resolver build options" ( #1839 )
...
This reverts commit ff1be3fcc5
.
2018-02-05 12:52:35 -08:00
Menghan Li
ff1be3fcc5
Add WithResolverUserOptions for custom resolver build options ( #1711 )
2017-12-06 15:54:01 -08:00
Menghan Li
1e1a47f0f2
Re-resolve target when one connection becomes TransientFailure ( #1679 )
...
This allows ClientConn to get more up-to-date addresses from resolver.
ClientConn compares new addresses with the cached ones. So if resolver returns the same set of addresses, ClientConn will not notify balancer about it.
Also moved the initialization of resolver and balancer to avoid race. Balancer will only be started when ClientConn gets resolved addresses from balancer.
2017-11-28 13:16:53 -08:00
Menghan Li
2ef021f78d
New grpclb implementation ( #1558 )
...
The new grpclb supports fallback to backends if remote balancer is unavailable
2017-11-27 11:16:26 -08:00
Menghan Li
0d57c57a68
Fix parseTarget for unix socket address without scheme ( #1611 )
2017-10-23 16:34:03 -07:00
Menghan Li
1687ce5770
ClientHandshake should get the dialing endpoint as the authority ( #1607 )
2017-10-23 11:40:43 -07:00
lyuxuan
6f3b6ff46b
Parse ServiceConfig JSON string ( #1515 )
2017-10-19 12:09:19 -07:00
Menghan Li
a353537ff5
Register and use default balancers and resolvers ( #1551 )
2017-10-19 11:32:06 -07:00
Menghan Li
3f10311ccf
Make resolver Build() take a target struct ( #1567 )
2017-10-09 16:33:58 -07:00
Menghan Li
4bbdf230d7
New implementation of roundrobin and pickfirst ( #1506 )
2017-10-02 09:22:57 -07:00