diff options
author | Craig Tiller <ctiller@google.com> | 2017-06-19 10:01:52 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-06-19 10:01:52 -0700 |
commit | f1633a9bec9b5a3dfd4c192e24698908dbf59cbb (patch) | |
tree | 3aadd0fe563e6ad4ff9270982b1e5c9f351c328f /include | |
parent | 716f7afa21b9079099e1e8571b49d21a30c1ed5a (diff) |
Allow application optimization targets to be hinted to grpc (prefer latency over throughput for now)
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/impl/codegen/grpc_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h index ec4a5d166b..f1c457c027 100644 --- a/include/grpc/impl/codegen/grpc_types.h +++ b/include/grpc/impl/codegen/grpc_types.h @@ -287,6 +287,14 @@ typedef struct { /** If non-zero, grpc server's cronet compression workaround will be enabled */ #define GRPC_ARG_WORKAROUND_CRONET_COMPRESSION \ "grpc.workaround.cronet_compression" +/** String defining the optimization target for a channel. + Can be: "latency" - attempt to minimize latency at the cost of throughput + "blend" - try to balance latency and throughput + "throughput" - attempt to maximize throughput at the expense of + latency + Defaults to "blend". In the current implementation "blend" is equivalent to + "latency". */ +#define GRPC_ARG_OPTIMIZATION_TARGET "grpc.optimization_target" /** \} */ /** Result of a grpc call. If the caller satisfies the prerequisites of a |