From a2558103c5fd08de9a0b120c04a68a242b27bd0c Mon Sep 17 00:00:00 2001 From: Juan Lotito Date: Wed, 4 Dec 2024 11:51:03 +0100 Subject: [PATCH] =?UTF-8?q?patata=C3=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 4 +++- send.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e8af9b3..9b46157 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -31,12 +31,14 @@ services: rabbit-mq: condition: service_healthy request-middleware-pass: - platform: linux/arm64 + platform: linux/amd64 volumes: - shared_socket:/tmp image: softonic/hp-throttling:0.1.0 environment: IN_SOCKET: "/tmp/hprq" + THROTTLE_LIMIT: "10" + THROTTLE_BURST: "10" command: ["-stderrthreshold=INFO"] reponse-middleware-pass: platform: linux/amd64 diff --git a/send.py b/send.py index 369cd5a..68f5b7b 100644 --- a/send.py +++ b/send.py @@ -8,7 +8,7 @@ RABBITMQ_PASSWORD = 'guest' EXCHANGE_NAME = 'homing-pigeon' ROUTING_KEY = '' # Leave empty or set appropriately -MESSAGE_COUNT = 1 # Number of messages to send +MESSAGE_COUNT = 100000 # Number of messages to send MESSAGE_BODY = '{"meta": { "index" : { "_index" : "test", "_id" : "1" } },"data": { "field1" : "value1" }}' def send_messages():