mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 00:43:46 +00:00
Adding member node
This commit is contained in:
parent
1d37344bcc
commit
84314617b1
2 changed files with 78 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ services:
|
||||||
primev_net:
|
primev_net:
|
||||||
ipv4_address: '172.29.0.100'
|
ipv4_address: '172.29.0.100'
|
||||||
ports:
|
ports:
|
||||||
- 60603:60601
|
- 60604:60601
|
||||||
volumes:
|
volumes:
|
||||||
- geth-data-node2:/data
|
- geth-data-node2:/data
|
||||||
profiles:
|
profiles:
|
||||||
|
|
@ -124,6 +124,44 @@ services:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
sl-node3:
|
||||||
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: geth-poa/Dockerfile
|
||||||
|
environment:
|
||||||
|
- GETH_NODE_TYPE=member
|
||||||
|
- BOOTNODE_ENDPOINT=enode://34a2a388ad31ca37f127bb9ffe93758ee711c5c2277dff6aff2e359bcf2c9509ea55034196788dbd59ed70861f523c1c03d54f1eabb2b4a5c1c129d966fe1e65@172.29.0.98:30301
|
||||||
|
networks:
|
||||||
|
primev_net:
|
||||||
|
ipv4_address: '172.29.0.101'
|
||||||
|
ports:
|
||||||
|
- 60603:60601
|
||||||
|
volumes:
|
||||||
|
- geth-data-node3:/data
|
||||||
|
profiles:
|
||||||
|
- settlement
|
||||||
|
labels:
|
||||||
|
com.datadoghq.ad.check_names: '["openmetrics"]'
|
||||||
|
com.datadoghq.ad.init_configs: '[{}]'
|
||||||
|
com.datadoghq.ad.instances: |
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"openmetrics_endpoint": "http://%%host%%:6060/debug/metrics/prometheus",
|
||||||
|
"namespace": "geth-poa",
|
||||||
|
"metrics": [
|
||||||
|
"txpool*",
|
||||||
|
"trie*",
|
||||||
|
"system*",
|
||||||
|
"state*",
|
||||||
|
"rpc*",
|
||||||
|
"p2p*",
|
||||||
|
"eth*",
|
||||||
|
"chain*",
|
||||||
|
"clique*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
# L1 geth services only used for local dev
|
# L1 geth services only used for local dev
|
||||||
l1-bootnode:
|
l1-bootnode:
|
||||||
build:
|
build:
|
||||||
|
|
@ -326,6 +364,7 @@ volumes:
|
||||||
geth-data-bootnode:
|
geth-data-bootnode:
|
||||||
geth-data-node1:
|
geth-data-node1:
|
||||||
geth-data-node2:
|
geth-data-node2:
|
||||||
|
geth-data-node3:
|
||||||
geth-data-l1-bootnode:
|
geth-data-l1-bootnode:
|
||||||
geth-data-l1-first-signer:
|
geth-data-l1-first-signer:
|
||||||
geth-data-l1-second-signer:
|
geth-data-l1-second-signer:
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,44 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then
|
||||||
--authrpc.vhosts="*" \
|
--authrpc.vhosts="*" \
|
||||||
--txpool.accountqueue=512 \
|
--txpool.accountqueue=512 \
|
||||||
--nat extip:$NODE_IP
|
--nat extip:$NODE_IP
|
||||||
|
|
||||||
|
elif [ "$GETH_NODE_TYPE" = "member" ]; then
|
||||||
|
echo "Starting member node"
|
||||||
|
|
||||||
|
exec geth \
|
||||||
|
--verbosity="$VERBOSITY" \
|
||||||
|
--datadir="$GETH_DATA_DIR" \
|
||||||
|
--port 30311 \
|
||||||
|
--syncmode=full \
|
||||||
|
--gcmode=full \
|
||||||
|
--state.scheme=path \
|
||||||
|
--db.engine=pebble \
|
||||||
|
--http \
|
||||||
|
--http.corsdomain="*" \
|
||||||
|
--http.vhosts="*" \
|
||||||
|
--http.addr=0.0.0.0 \
|
||||||
|
--http.port="$RPC_PORT" \
|
||||||
|
--http.api=web3,debug,eth,txpool,net,engine \
|
||||||
|
--bootnodes $BOOTNODE_ENDPOINT \
|
||||||
|
--networkid=$CHAIN_ID \
|
||||||
|
--password="$GETH_DATA_DIR"/password \
|
||||||
|
--metrics \
|
||||||
|
--metrics.addr=0.0.0.0 \
|
||||||
|
--metrics.port=6060 \
|
||||||
|
--pprof \
|
||||||
|
--pprof.addr=0.0.0.0 \
|
||||||
|
--pprof.port=60601 \
|
||||||
|
--ws \
|
||||||
|
--ws.addr=0.0.0.0 \
|
||||||
|
--ws.port="$WS_PORT" \
|
||||||
|
--ws.origins="*" \
|
||||||
|
--ws.api=debug,eth,txpool,net,engine \
|
||||||
|
--rpc.allow-unprotected-txs \
|
||||||
|
--authrpc.addr="0.0.0.0" \
|
||||||
|
--authrpc.port="8551" \
|
||||||
|
--authrpc.vhosts="*" \
|
||||||
|
--txpool.accountqueue=512 \
|
||||||
|
--nat extip:$NODE_IP
|
||||||
else
|
else
|
||||||
echo "Invalid GETH_NODE_TYPE specified"
|
echo "Invalid GETH_NODE_TYPE specified"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue