Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
5246607a
Commit
5246607a
authored
2 years ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
grpc message size to 5G
parent
4949f589
main
master
1.0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_dfs_api_cluster/common/service.py
+2
-2
csst_dfs_api_cluster/common/service.py
with
2 additions
and
2 deletions
+2
-2
csst_dfs_api_cluster/common/service.py
+
2
-
2
View file @
5246607a
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets