Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use dedicated antithesis compose file #18321

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/sui-network/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN ./new-genesis.sh

FROM scratch

COPY ./docker-compose.yaml /
COPY ./docker-compose-antithesis.yaml /docker-compose.yaml
COPY /genesis/overlays/* /genesis/overlays/
COPY /genesis/static/* /genesis/static/
COPY --from=setup /genesis/files/* /genesis/files/
186 changes: 186 additions & 0 deletions docker/sui-network/docker-compose-antithesis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
version: "3"

services:
validator1:
networks:
sui-network:
ipv4_address: 10.0.0.11
image: sui-node:mainnet
container_name: validator1
hostname: validator1
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,sui_network=debug,sui_node=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
- RPC_WORKER_THREAD=12
- NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000
- NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000
volumes:
- ./genesis/files/validator1-8080.yaml:/opt/sui/config/validator.yaml:ro
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- /tmp/sui/db1:/opt/sui/db:rw
command:
[
"/usr/local/bin/sui-node-inst",
"--config-path",
"/opt/sui/config/validator.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"
validator2:
networks:
sui-network:
ipv4_address: 10.0.0.12
image: sui-node:mainnet
container_name: validator2
hostname: validator2
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,sui_network=debug,sui_node=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
- RPC_WORKER_THREAD=12
- NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000
- NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000
volumes:
- ./genesis/files/validator2-8080.yaml:/opt/sui/config/validator.yaml:ro
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- /tmp/sui/db2:/opt/sui/db:rw
command:
[
"/usr/local/bin/sui-node-inst",
"--config-path",
"/opt/sui/config/validator.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"
validator3:
networks:
sui-network:
ipv4_address: 10.0.0.13
image: sui-node:mainnet
container_name: validator3
hostname: validator3
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,sui_network=debug,sui_node=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
- RPC_WORKER_THREAD=12
- NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000
- NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000
volumes:
- ./genesis/files/validator3-8080.yaml:/opt/sui/config/validator.yaml:ro
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- /tmp/sui/db3:/opt/sui/db:rw
command:
[
"/usr/local/bin/sui-node-inst",
"--config-path",
"/opt/sui/config/validator.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"
validator4:
networks:
sui-network:
ipv4_address: 10.0.0.14
image: sui-node:mainnet
container_name: validator4
hostname: validator4
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,sui_network=debug,sui_node=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
- RPC_WORKER_THREAD=12
- NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000
- NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000
volumes:
- ./genesis/files/validator4-8080.yaml:/opt/sui/config/validator.yaml:ro
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- /tmp/sui/db4:/opt/sui/db:rw
command:
[
"/usr/local/bin/sui-node-inst",
"--config-path",
"/opt/sui/config/validator.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"
fullnode1:
networks:
sui-network:
ipv4_address: 10.0.0.15
image: sui-node:mainnet
hostname: fullnode1
container_name: fullnode1
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,sui_core=debug,sui_network=debug,sui_node=debug,narwhal=debug,narwhal-primary::helper=info,jsonrpsee=error
- RPC_WORKER_THREAD=12
- NEW_CHECKPOINT_WARNING_TIMEOUT_MS=30000
- NEW_CHECKPOINT_PANIC_TIMEOUT_MS=60000
volumes:
- ./genesis/static/fullnode.yaml:/opt/sui/config/fullnode.yaml:ro
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- /tmp/sui/db5:/opt/sui/db:rw
command:
[
"/usr/local/bin/sui-node-inst",
"--config-path",
"/opt/sui/config/fullnode.yaml",
]
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"

stress:
networks:
sui-network:
ipv4_address: 10.0.0.16
image: stress:testing
container_name: stress
environment:
- RUST_LOG=info
- STARTUP_DELAY_SECONDS=5
- STRESS_STAGGERED_START_MAX_MULTIPLIER=0
- FULLNODE_RPC_ADDRESS=10.0.0.15:9000
- USE_FULLNODE_FOR_RECONFIG=false
- PRIMARY_GAS_OWNER=0xd59d79516a4ed5b6825e80826c075a12bdd2759aaeb901df2f427f5f880c8f60
- GENESIS_BLOB_PATH=/opt/sui/config/genesis.blob
- KEYSTORE_PATH=/opt/sui/config/sui.keystore
- STRESS_TARGET_QPS=10
- STRESS_SHARED_COUNTER=1
- STRESS_TRANSFER_OBJECT=1
- STRESS_DELEGATION=0
- BATCH_PAYMENT=1
- BATCH_PAYMENT_SIZE=100
- STRESS_ADVERSARIAL=0
volumes:
- ./genesis/files/genesis.blob:/opt/sui/config/genesis.blob:ro
- ./genesis/static/sui.keystore:/opt/sui/config/sui.keystore:ro
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "1g"
networks:
sui-network:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24
Loading