docker/msg_publisher.sh: setting a more realisting message size

This commit is contained in:
Ivan Folgueira Bande 2023-10-10 15:27:17 +02:00 committed by Ivan FB
parent d025a62e47
commit b025e85816
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ sleep 20
while true
do
payload_size=$(( $RANDOM % 1000 + 10 ))
## Target of ~10kB
payload_size=$(( $RANDOM % 2000 + 9000 ))
payload=$(openssl rand -hex ${payload_size} | base64 | tr -d '\n')
## Make the ""postgres"" node to publish a message