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
4949f589
Commit
4949f589
authored
Dec 29, 2022
by
Wei Shoulin
Browse files
grpc message size to 10G
parent
77429f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/common/service.py
View file @
4949f589
...
...
@@ -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'
,
10
00
*
1024
*
1024
),
(
'grpc.max_receive_message_length'
,
10
00
*
1024
*
1024
))
options
=
((
'grpc.max_send_message_length'
,
10
24
*
1024
*
1024
*
10
),
(
'grpc.max_receive_message_length'
,
10
24
*
1024
*
1024
*
10
))
# 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