Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
215638ed
Commit
215638ed
authored
Dec 29, 2022
by
Wei Shoulin
Browse files
grpc message size to 1G
parent
5246607a
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/common/service.py
View file @
215638ed
...
...
@@ -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
*
5
),
(
'grpc.max_receive_message_length'
,
1024
*
1024
*
1024
*
5
))
options
=
((
'grpc.max_send_message_length'
,
1024
*
1024
*
1024
),
(
'grpc.max_receive_message_length'
,
1024
*
1024
*
1024
))
# channel = grpc.insecure_channel(self.gateway, options = options, compression = grpc.Compression.Gzip)
channel
=
grpc
.
insecure_channel
(
self
.
gateway
,
options
=
options
)
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment