diff --git a/ci/metrics_write_datapoint.sh b/ci/metrics_write_datapoint.sh index d7fc3c58e9..00bdb4beb1 100755 --- a/ci/metrics_write_datapoint.sh +++ b/ci/metrics_write_datapoint.sh @@ -13,4 +13,4 @@ if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then fi echo "https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}" \ - | xargs curl -XPOST --data-binary "$point" + | xargs curl --max-time 5 -XPOST --data-binary "$point" diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index b2707cb63f..1346434f83 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -211,7 +211,7 @@ client_start() { set -x; /snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee /tmp/solana.log; \ echo 'https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}' \ - | xargs curl -XPOST --data-binary 'testnet-deploy,name=$netName clientexit=1'; \ + | xargs curl --max-time 5 -XPOST --data-binary 'testnet-deploy,name=$netName clientexit=1'; \ echo Error: bench-tps should never exit | tee -a /tmp/solana.log; \ bash \ \"; \