Skip to content

Commit

Permalink
Merge pull request #162 from SubstraFoundation/grpc-nolimit
Browse files Browse the repository at this point in the history
No limit on grpc client
  • Loading branch information
Kelvin-M authored Feb 28, 2020
2 parents b20d5f3 + f416651 commit d52acd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions backend/backend/settings/deps/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def update_client_with_discovery(client, discovery_results):
peer.init_with_bundle({
'url': url,
'grpcOptions': {
'grpc-max-send-message-length': 15,
'grpc.ssl_target_name_override': peer_info['endpoint'].split(':')[0]
'grpc.ssl_target_name_override': peer_info['endpoint'].split(':')[0],
'grpc.max_send_message_length': -1,
'grpc.max_receive_message_length': -1
},
'tlsCACerts': {'path': tls_root_cert.name},
'clientKey': {'path': LEDGER['peer']['clientKey']}, # use peer creds (mutual tls)
Expand All @@ -164,8 +165,9 @@ def update_client_with_discovery(client, discovery_results):
orderer.init_with_bundle({
'url': f"{orderer_info[0]['host']}:{orderer_info[0]['port']}",
'grpcOptions': {
'grpc-max-send-message-length': 15,
'grpc.ssl_target_name_override': orderer_info[0]['host']
'grpc.ssl_target_name_override': orderer_info[0]['host'],
'grpc.max_send_message_length': -1,
'grpc.max_receive_message_length': -1
},
'tlsCACerts': {'path': tls_root_cert.name},
'clientKey': {'path': LEDGER['peer']['clientKey']}, # use peer creds (mutual tls)
Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: substra-backend
home: https://substra.org/
version: 1.0.0-alpha.19
version: 1.0.0-alpha.20
description: Main package for Substra
icon: https://avatars1.githubusercontent.com/u/38098422?s=200&v=4
sources:
Expand Down
5 changes: 3 additions & 2 deletions charts/substra-backend/templates/configmap-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ data:
"clientKey": "/var/hyperledger/tls/client/pair/tls.key",
"clientCert": "/var/hyperledger/tls/client/pair/tls.crt",
"grpcOptions": {
"grpc-max-send-message-length": 15,
"grpc.ssl_target_name_override": "{{ .Values.peer.host }}"
"grpc.ssl_target_name_override": "{{ .Values.peer.host }}",
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1
}
}
}

0 comments on commit d52acd1

Please sign in to comment.