From 8484a992553c1d417e8caf75f1d58a6f38b58c1c Mon Sep 17 00:00:00 2001 From: Lizan Zhou Date: Wed, 1 Nov 2017 08:14:10 -0700 Subject: [PATCH] Add transport socket config (#218) Signed-off-by: Lizan Zhou --- api/base.proto | 13 +++++++++++++ api/cds.proto | 5 ++++- api/lds.proto | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/api/base.proto b/api/base.proto index 40c6329b..9cbaeb0c 100644 --- a/api/base.proto +++ b/api/base.proto @@ -151,3 +151,16 @@ message ConfigSource { AggregatedConfigSource ads = 3; } } + +// Configuration for transport socket in listeners and clusters. If the configuration is empty, +// a default transport socket implementation and configuration will be chosen based on the +// platform and existence of tls_context. +message TransportSocket { + // The name of the transport socket to instantiate. The name must match a supported transport + // socket implementation. + string name = 1; + + // Implementation specific configuration which depends on the implementation being instantiated. + // See the supported transport socket implementations for further documentation. + google.protobuf.Struct config = 2; +} diff --git a/api/cds.proto b/api/cds.proto index 75a42e55..1823bfc8 100644 --- a/api/cds.proto +++ b/api/cds.proto @@ -273,7 +273,7 @@ message Cluster { repeated LbSubsetSelector subset_selectors = 3; } LbSubsetConfig lb_subset_config = 22; - + message RingHashLbConfig { // Minimum hash ring size, i.e. total virtual nodes. A larger size // will provide better request distribution since each host in the @@ -298,4 +298,7 @@ message Cluster { oneof lb_config { RingHashLbConfig ring_hash_lb_config = 23; } + + // See base.TransportSocket description. + TransportSocket transport_socket = 24; } diff --git a/api/lds.proto b/api/lds.proto index 7257e057..2e59d65e 100644 --- a/api/lds.proto +++ b/api/lds.proto @@ -100,6 +100,9 @@ message FilterChain { // See base.Metadata description. Metadata metadata = 5; + + // See base.TransportSocket description. + TransportSocket transport_socket = 6; } message Listener {