Skip to content

Commit

Permalink
patataç
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotykun-Softonic committed Dec 4, 2024
1 parent 1f1f407 commit a255810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion send.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit a255810

Please sign in to comment.