Skip to content

Commit

Permalink
Switch durable workload to use lazy queues
Browse files Browse the repository at this point in the history
Since everything is going to disk, I believe that it will make a big
difference for memory usage, and I also suspect that it will help with
rabbitmq/rabbitmq-server#2254. Let's try it
out!

Signed-off-by: Gerhard Lazu <[email protected]>
  • Loading branch information
gerhard committed Feb 26, 2020
1 parent 5dc06bf commit 4996c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s01/e02/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ define durable_backlog_PERFTEST_CONFIG
--container-arg="--nio-threads" --container-arg="10" \
--container-arg="--nio-thread-pool" --container-arg="20" \
--container-arg="--producers" --container-arg="$(durable_BACKLOG_QUEUES)" \
--container-arg="--queue-args" --container-arg="x-max-length=$(durable_MAX_MESSAGES_PER_BACKLOG_QUEUE)" \
--container-arg="--queue-args" --container-arg="x-queue-mode=lazy,x-max-length=$(durable_MAX_MESSAGES_PER_BACKLOG_QUEUE),x-expires=$(durable_QUEUE_EXPIRES),x-message-ttl=$(durable_MESSAGE_TTL)" \
--container-arg="--queue-pattern" --container-arg="backlog%d" \
--container-arg="--queue-pattern-from" --container-arg="1" \
--container-arg="--queue-pattern-to" --container-arg="$(durable_BACKLOG_QUEUES)" \
Expand Down Expand Up @@ -225,7 +225,7 @@ define durable_workload_PERFTEST_CONFIG
--container-arg="--producers" --container-arg="$(durable_PUBLISHERS)" \
--container-arg="--publishing-interval" --container-arg="$(durable_PUBLISH_EVERY)" \
--container-arg="--qos" --container-arg="$(durable_CONSUMER_PREFETCH)" \
--container-arg="--queue-args" --container-arg="x-expires=$(durable_QUEUE_EXPIRES),x-message-ttl=$(durable_MESSAGE_TTL)" \
--container-arg="--queue-args" --container-arg="x-queue-mode=lazy,x-expires=$(durable_QUEUE_EXPIRES),x-message-ttl=$(durable_MESSAGE_TTL)" \
--container-arg="--queue-pattern" --container-arg="q%d" \
--container-arg="--queue-pattern-from" --container-arg="1" \
--container-arg="--queue-pattern-to" --container-arg="$(durable_QUEUES)" \
Expand Down

0 comments on commit 4996c60

Please sign in to comment.