mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Increase the connection timeout for peer client commands - vcap DNS is too slow to resolve in 3s
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
7537cafcf3
commit
4c04b450c6
3 changed files with 3 additions and 23 deletions
|
|
@ -23,26 +23,6 @@ _Fabric, Ahoy!_
|
||||||
- [jq](https://stedolan.github.io/jq/)
|
- [jq](https://stedolan.github.io/jq/)
|
||||||
- [envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html) (`brew install gettext` on OSX)
|
- [envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html) (`brew install gettext` on OSX)
|
||||||
|
|
||||||
### OSX DNS
|
|
||||||
|
|
||||||
Fabric services are exposed by Ingress at the wildcard DNS domain `*.vcap.me`, resolving to the
|
|
||||||
loopback interface at 127.0.0.1.
|
|
||||||
|
|
||||||
On OSX, the Fabric golang binaries are not able to resolve hosts at this domain. As a workaround, add
|
|
||||||
the following entries to your /etc/hosts file:
|
|
||||||
|
|
||||||
```
|
|
||||||
127.0.0.1 org0-ca.vcap.me
|
|
||||||
127.0.0.1 org1-ca.vcap.me
|
|
||||||
127.0.0.1 org2-ca.vcap.me
|
|
||||||
127.0.0.1 org0-orderer1.vcap.me
|
|
||||||
127.0.0.1 org0-orderer2.vcap.me
|
|
||||||
127.0.0.1 org0-orderer3.vcap.me
|
|
||||||
127.0.0.1 org1-peer1.vcap.me
|
|
||||||
127.0.0.1 org1-peer2.vcap.me
|
|
||||||
127.0.0.1 org2-peer1.vcap.me
|
|
||||||
127.0.0.1 org2-peer2.vcap.me
|
|
||||||
```
|
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,7 @@ peer:
|
||||||
# CLI common client config options
|
# CLI common client config options
|
||||||
client:
|
client:
|
||||||
# connection timeout
|
# connection timeout
|
||||||
connTimeout: 3s
|
connTimeout: 10s
|
||||||
|
|
||||||
# Delivery service related config
|
# Delivery service related config
|
||||||
deliveryclient:
|
deliveryclient:
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,7 @@ peer:
|
||||||
# CLI common client config options
|
# CLI common client config options
|
||||||
client:
|
client:
|
||||||
# connection timeout
|
# connection timeout
|
||||||
connTimeout: 3s
|
connTimeout: 10s
|
||||||
|
|
||||||
# Delivery service related config
|
# Delivery service related config
|
||||||
deliveryclient:
|
deliveryclient:
|
||||||
|
|
@ -474,7 +474,7 @@ vm:
|
||||||
# unix:///var/run/docker.sock
|
# unix:///var/run/docker.sock
|
||||||
# http://localhost:2375
|
# http://localhost:2375
|
||||||
# https://localhost:2376
|
# https://localhost:2376
|
||||||
endpoint: unix:///var/run/docker.sock
|
# endpoint: unix:///var/run/docker.sock
|
||||||
|
|
||||||
# settings for docker vms
|
# settings for docker vms
|
||||||
docker:
|
docker:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue