tree: b7452731b0f68850f90724f3e557b807ad4a56ab [path history] [tgz]
  1. health/
  2. lb_policy/
  3. resolver/
  4. backend_metric.cc
  5. backend_metric.h
  6. backup_poller.cc
  7. backup_poller.h
  8. channel_connectivity.cc
  9. client_channel.cc
  10. client_channel.h
  11. client_channel_channelz.cc
  12. client_channel_channelz.h
  13. client_channel_factory.cc
  14. client_channel_factory.h
  15. client_channel_plugin.cc
  16. config_selector.cc
  17. config_selector.h
  18. connector.h
  19. global_subchannel_pool.cc
  20. global_subchannel_pool.h
  21. http_connect_handshaker.cc
  22. http_connect_handshaker.h
  23. http_proxy.cc
  24. http_proxy.h
  25. lb_policy.cc
  26. lb_policy.h
  27. lb_policy_factory.h
  28. lb_policy_registry.cc
  29. lb_policy_registry.h
  30. local_subchannel_pool.cc
  31. local_subchannel_pool.h
  32. proxy_mapper.h
  33. proxy_mapper_registry.cc
  34. proxy_mapper_registry.h
  35. README.md
  36. resolver.cc
  37. resolver.h
  38. resolver_factory.h
  39. resolver_registry.cc
  40. resolver_registry.h
  41. resolver_result_parsing.cc
  42. resolver_result_parsing.h
  43. resolving_lb_policy.cc
  44. resolving_lb_policy.h
  45. retry_throttle.cc
  46. retry_throttle.h
  47. server_address.cc
  48. server_address.h
  49. service_config.cc
  50. service_config.h
  51. service_config_call_data.h
  52. service_config_channel_arg_filter.cc
  53. service_config_parser.cc
  54. service_config_parser.h
  55. subchannel.cc
  56. subchannel.h
  57. subchannel_interface.h
  58. subchannel_pool_interface.cc
  59. subchannel_pool_interface.h
grpc/src/core/ext/filters/client_channel/README.md

Client Configuration Support for GRPC

This library provides high level configuration machinery to construct client channels and load balance between them.

Each grpc_channel is created with a Resolver. It is the resolver's duty to resolve a name into a set of arguments for the channel. Such arguments might include:

  • a list of (ip, port) addresses to connect to
  • a load balancing policy to decide which server to send a request to
  • a set of filters to mutate outgoing requests (say, by adding metadata)

The resolver provides this data as a stream of grpc_channel_args objects to the channel. We represent arguments as a stream so that they can be changed by the resolver during execution, by reacting to external events (such as new service configuration data being pushed to some store).

Load Balancing

Load balancing configuration is provided by a LoadBalancingPolicy object.

The primary job of the load balancing policies is to pick a target server given only the initial metadata for a request. It does this by providing a ConnectedSubchannel object to the owning channel.

Sub-Channels

A sub-channel provides a connection to a server for a client channel. It has a connectivity state like a regular channel, and so can be connected or disconnected. This connectivity state can be used to inform load balancing decisions (for example, by avoiding disconnected backends).

Configured sub-channels are fully setup to participate in the grpc data plane. Their behavior is specified by a set of grpc channel filters defined at their construction. To customize this behavior, transports build ClientChannelFactory objects, which customize construction arguments for concrete subchannel instances.

Naming for GRPC

See [/doc/naming.md](gRPC name resolution).