From 4c04b450c6524d4cc98778f5c3097d6e6ad9ed9e Mon Sep 17 00:00:00 2001 From: Josh Kneubuhl Date: Tue, 3 May 2022 12:04:42 -0400 Subject: [PATCH] Increase the connection timeout for peer client commands - vcap DNS is too slow to resolve in 3s Signed-off-by: Josh Kneubuhl --- test-network-k8s/README.md | 20 -------------------- test-network-k8s/config/org1/core.yaml | 2 +- test-network-k8s/config/org2/core.yaml | 4 ++-- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/test-network-k8s/README.md b/test-network-k8s/README.md index cbcc22fd..443e3618 100644 --- a/test-network-k8s/README.md +++ b/test-network-k8s/README.md @@ -23,26 +23,6 @@ _Fabric, Ahoy!_ - [jq](https://stedolan.github.io/jq/) - [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 diff --git a/test-network-k8s/config/org1/core.yaml b/test-network-k8s/config/org1/core.yaml index 817d5826..28267f63 100644 --- a/test-network-k8s/config/org1/core.yaml +++ b/test-network-k8s/config/org1/core.yaml @@ -344,7 +344,7 @@ peer: # CLI common client config options client: # connection timeout - connTimeout: 3s + connTimeout: 10s # Delivery service related config deliveryclient: diff --git a/test-network-k8s/config/org2/core.yaml b/test-network-k8s/config/org2/core.yaml index e32cb32a..8a42d72e 100644 --- a/test-network-k8s/config/org2/core.yaml +++ b/test-network-k8s/config/org2/core.yaml @@ -344,7 +344,7 @@ peer: # CLI common client config options client: # connection timeout - connTimeout: 3s + connTimeout: 10s # Delivery service related config deliveryclient: @@ -474,7 +474,7 @@ vm: # unix:///var/run/docker.sock # http://localhost:2375 # https://localhost:2376 - endpoint: unix:///var/run/docker.sock + # endpoint: unix:///var/run/docker.sock # settings for docker vms docker: