From 5246607a90c347b8d6dfa88116fa9f295dd79b26 Mon Sep 17 00:00:00 2001
From: shoulinwei <weishoulin@astrolab.cn>
Date: Thu, 29 Dec 2022 20:06:09 +0800
Subject: [PATCH] grpc message size to 5G

---
 csst_dfs_api_cluster/common/service.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csst_dfs_api_cluster/common/service.py b/csst_dfs_api_cluster/common/service.py
index db29365..cb0cb5a 100644
--- a/csst_dfs_api_cluster/common/service.py
+++ b/csst_dfs_api_cluster/common/service.py
@@ -6,8 +6,8 @@ class ServiceProxy:
         self.gateway = os.getenv("CSST_DFS_GATEWAY",'172.31.248.218:30880')
 
     def channel(self):
-        options = (('grpc.max_send_message_length', 1024 * 1024 * 1024 * 10),
-                    ('grpc.max_receive_message_length', 1024 * 1024 * 1024 * 10))     
+        options = (('grpc.max_send_message_length', 1024 * 1024 * 1024 * 5),
+                    ('grpc.max_receive_message_length', 1024 * 1024 * 1024 * 5))     
         # channel = grpc.insecure_channel(self.gateway, options = options, compression = grpc.Compression.Gzip)
         channel = grpc.insecure_channel(self.gateway, options = options)
         try:
-- 
GitLab