Add grpc size limit option 16/122616/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Wed, 14 Jul 2021 05:45:02 +0000 (11:15 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Wed, 14 Jul 2021 05:45:02 +0000 (11:15 +0530)
Issue-ID: OPTFRA-982
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: Ia72f366bef97ad63b4718bd0a04ecc21f5a8e0fa

conductor/conductor/common/etcd/api.py

index 3170b8c..a932108 100644 (file)
@@ -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()))