mirror of
https://github.com/vacp2p/10ksim.git
synced 2025-02-22 11:08:28 +00:00
Added msg sized and msg rate envvars to gossipsub deployment
This commit is contained in:
parent
d186214d43
commit
b48abe9c53
@ -7,3 +7,5 @@ data:
|
||||
PEERS: "150"
|
||||
CONNECTTO: "10"
|
||||
PEERSPERPOD: "1"
|
||||
MSGRATE: "1000"
|
||||
MSGSIZE: "10000"
|
||||
|
@ -33,6 +33,8 @@ fi
|
||||
# Number of containers to add
|
||||
read -p "Enter how many containers per POD: " num_containers
|
||||
|
||||
read -p "Enter message size (in MB): " msg_size
|
||||
|
||||
total_peers=$((NEW_REPLICAS*num_containers))
|
||||
|
||||
# Create a copy to append
|
||||
@ -64,6 +66,16 @@ for ((i=0; i<num_containers; i++)); do
|
||||
configMapKeyRef:
|
||||
name: my-app-configmap
|
||||
key: PEERSPERPOD
|
||||
- name: MSGRATE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: my-app-configmap
|
||||
key: MSGRATE
|
||||
- name: MSGSIZE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: my-app-configmap
|
||||
key: MSGSIZE
|
||||
EOF
|
||||
done
|
||||
|
||||
@ -107,6 +119,8 @@ data:
|
||||
PEERS: "$total_peers"
|
||||
CONNECTTO: "10"
|
||||
PEERSPERPOD: "$num_containers"
|
||||
MSGRATE: "1000"
|
||||
MSGSIZE: "$msg_size"
|
||||
EOF
|
||||
|
||||
rm network-policy.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user