From 6ebf692ab8a918823c6e941ab21e2939ff0bfe8f Mon Sep 17 00:00:00 2001 From: denyeart Date: Fri, 30 Apr 2021 07:57:30 -0400 Subject: [PATCH] Disable Go pprof profiling in test network (#444) Peers and Orderers by default disable Go pprof profiling, however test network was enabling pprof in peers by default. As a good practice, pprof should be disabled by default and only enabled when needed for debug profiling. Signed-off-by: David Enyeart --- test-network/docker/docker-compose-test-net.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-network/docker/docker-compose-test-net.yaml b/test-network/docker/docker-compose-test-net.yaml index ed43762f..695073fc 100644 --- a/test-network/docker/docker-compose-test-net.yaml +++ b/test-network/docker/docker-compose-test-net.yaml @@ -70,7 +70,7 @@ services: - FABRIC_LOGGING_SPEC=INFO #- FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_TLS_ENABLED=true - - CORE_PEER_PROFILE_ENABLED=true + - CORE_PEER_PROFILE_ENABLED=false - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt @@ -107,7 +107,7 @@ services: - FABRIC_LOGGING_SPEC=INFO #- FABRIC_LOGGING_SPEC=DEBUG - CORE_PEER_TLS_ENABLED=true - - CORE_PEER_PROFILE_ENABLED=true + - CORE_PEER_PROFILE_ENABLED=false - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt @@ -131,7 +131,7 @@ services: - 9051:9051 networks: - test - + cli: container_name: cli image: hyperledger/fabric-tools:latest