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():