From 36a92ba8e747431edaef2b66a23410cd8799534f Mon Sep 17 00:00:00 2001 From: krishnaa96 Date: Wed, 14 Jul 2021 11:15:02 +0530 Subject: [PATCH] Add grpc size limit option Issue-ID: OPTFRA-982 Signed-off-by: krishnaa96 Change-Id: Ia72f366bef97ad63b4718bd0a04ecc21f5a8e0fa --- conductor/conductor/common/etcd/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conductor/conductor/common/etcd/api.py b/conductor/conductor/common/etcd/api.py index 3170b8c..a932108 100644 --- a/conductor/conductor/common/etcd/api.py +++ b/conductor/conductor/common/etcd/api.py @@ -62,6 +62,8 @@ class EtcdAPI(object): grpc_options={ 'grpc.http2.true_binary': 1, 'grpc.http2.max_pings_without_data': 0, + 'grpc.max_send_message_length': 50 * 1024 * 1024, + 'grpc.max_receive_message_length': 50 * 1024 * 1024, }.items()) except RpcError as rpc_error: raise EtcdClientException("Failed to establish connection with ETCD. GRPC {}".format(rpc_error.code())) -- 2.16.6