Commit 57c7576b authored by Your Name's avatar Your Name

update scripts

parent 9327b9a2
...@@ -16,6 +16,7 @@ cd ../host/ ...@@ -16,6 +16,7 @@ cd ../host/
rm -rfv ./data/nebula/* rm -rfv ./data/nebula/*
rm -rfv ./data/net/* rm -rfv ./data/net/*
# rm -rfv ./data/prometheus/*
config_dir=$PWD/data/nebula/ config_dir=$PWD/data/nebula/
...@@ -66,6 +67,27 @@ do ...@@ -66,6 +67,27 @@ do
composefile="docker-compose_host-$i.yml" composefile="docker-compose_host-$i.yml"
startfile="start-$i.sh"
stopfile="stop-$i.sh"
echo "#!/bin/bash" > $startfile
echo "set -e" >> $startfile
echo "cd ../mainchain" >> $startfile
echo "./scripts/run-testnet.sh" >> $startfile
echo "cd ../host" >> $startfile
echo "docker compose -f "$composefile" up -d" >> $startfile
chmod +x $startfile
echo "#!/bin/bash" > $stopfile
echo "set -e" >> $stopfile
echo "cd ../mainchain" >> $stopfile
echo "./scripts/stop-testnet.sh || true" >> $stopfile
echo "cd ../host" >> $stopfile
chmod +x $stopfile
echo 'version: "3.9"' > $composefile echo 'version: "3.9"' > $composefile
......
#!/bin/bash
set -e
cd ../mainchain
./scripts/run-testnet.sh
cd ../host
docker compose -f docker-compose_host-1.yml up -d
#!/bin/bash
set -e
cd ../mainchain
./scripts/stop-testnet.sh || true
# rm -rf conf/deploy || true
# cp -r conf/back0712-1439 conf/deploy
cd ../host
docker compose -f docker-compose_host-1.yml down
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
# relative to the home directory (e.g. "data"). The home directory is
# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
# or --home cmd flag.
#######################################################################
### Main Base Config Options ###
#######################################################################
enabletest = false
#######################################################
### RPC Server Configuration Options ###
#######################################################
# TCP or UNIX socket address for the gRPC server to listen on
# NOTE: This server only supports /broadcast_tx_commit
grpc-laddr = "0.0.0.0"
grpc-lport = 5001
async = true
broadcasttimeout = 10
pprof-laddr = "0.0.0.0:6060"
#######################################################
### Mempool Configuration Options ###
#######################################################
checkerurl = "txchecker:38002"
cryptourl = "cryptor:38001"
nebulaurl = "nebula:38004"
p2purl = "net:38010"
sentryurl = "sentry:38003"
cryptonum = 16
maxlimit = 10000000
takebatchsize = 500
timeoutbroadcastbatchtx = 10
privatekey = "private key"
#######################################################################
### Eth Config Options ###
#######################################################################
enableweb3 = true
HTTPHost = "localhost"
HTTPPort = 8545
WSHost = "localhost"
WSPort = 8546
httpmodules = "admin,web3,eth,txpool,debug,miner,net"
wsmodules = "admin,web3,eth,txpool,debug,miner,net"
#######################################################
### Instrumentation Configuration Options ###
#######################################################
[instrumentation]
# When true, Prometheus metrics are served under /metrics on
# PrometheusListenAddr.
# Check out the documentation for the list of available metrics.
prometheus = true
# Address to listen for Prometheus collector(s) connections
prometheus_listen_addr = ":38020"
# Maximum number of simultaneous connections.
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
max_open_connections = 10
# Instrumentation namespace
namespace = "metaring"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment