docker/msg_publisher.sh: setting a more realisting message size
This commit is contained in:
parent
d025a62e47
commit
b025e85816
|
@ -23,7 +23,8 @@ sleep 20
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
payload_size=$(( $RANDOM % 1000 + 10 ))
|
## Target of ~10kB
|
||||||
|
payload_size=$(( $RANDOM % 2000 + 9000 ))
|
||||||
payload=$(openssl rand -hex ${payload_size} | base64 | tr -d '\n')
|
payload=$(openssl rand -hex ${payload_size} | base64 | tr -d '\n')
|
||||||
|
|
||||||
## Make the ""postgres"" node to publish a message
|
## Make the ""postgres"" node to publish a message
|
||||||
|
|
Loading…
Reference in New Issue