#!/usr/bin/env python
import pika
import sys
queue_name = sys.argv[1]
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue=queue_name)
while True:
channel.basic_publish(exchange='', routing_key=queue_name, body='Hello!')
import pika
import sys
queue_name = sys.argv[1]
connection = pika.BlockingConnection()
channel = connection.channel()
channel.basic_qos(prefetch_count=2048)
for method_frame, properties, body in channel.consume(queue_name):
channel.basic_ack(method_frame.delivery_tag)
2.9 GHz Intel Core i7
16 GB 2133 MHz LPDDR3
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SKtMy3L44Qs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SKtMy3L44Qs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SKtMy3L44Qs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Mark,Thanks for the additional information.In my testing with your code, adding additional producer and consumer processes increased throughput. Have you tried this in your environment yet?Luke
On Thursday, October 5, 2017 at 10:08:49 AM UTC-7, Mark Galea wrote:Hi Luke,We are actually using Java. I cooked up the python POC so that I could quickly explain what we are trying to do.In Java we are using Spring Integration and the Rabbit Template and Akka all of which are optimised for throughput.Whatever we do we are stuck at 35K message per node. We have around 10 queues so 35K/10 gives us 3.5K each. Ideally, we are somewhere in the 300K region to start with. Any ideas?--MarkOn 5 October 2017 at 16:48, Luke Bakken <lba...@pivotal.io> wrote:Hi Mark,If you must use Python, using additional processes for producers and consumers on the same queue should get you the performance you're looking for. Did you try that out in your environment?
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SKtMy3L44Qs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Luke,
Yes, throughput increase but caps at around 15K msg/sec. That's the most I can push. After 6 queues, the global throughput stays constant.I think the question here is can one achieve a throughput of 100K msg/sec on 10 queues where each has a throughput of 10K msg/sec? Any language would do really.--Mark
Hi Luke,Yes, throughput increase but caps at around 15K msg/sec. That's the most I can push. After 6 queues, the global throughput stays constant.I think the question here is can one achieve a throughput of 100K msg/sec on 10 queues where each has a throughput of 10K msg/sec? Any language would do really.--Mark
On 5 October 2017 at 20:01, Luke Bakken <lba...@pivotal.io> wrote:
Hi Mark,--Thanks for the additional information.In my testing with your code, adding additional producer and consumer processes increased throughput. Have you tried this in your environment yet?Luke
On Thursday, October 5, 2017 at 10:08:49 AM UTC-7, Mark Galea wrote:Hi Luke,We are actually using Java. I cooked up the python POC so that I could quickly explain what we are trying to do.In Java we are using Spring Integration and the Rabbit Template and Akka all of which are optimised for throughput.Whatever we do we are stuck at 35K message per node. We have around 10 queues so 35K/10 gives us 3.5K each. Ideally, we are somewhere in the 300K region to start with. Any ideas?--MarkOn 5 October 2017 at 16:48, Luke Bakken <lba...@pivotal.io> wrote:Hi Mark,If you must use Python, using additional processes for producers and consumers on the same queue should get you the performance you're looking for. Did you try that out in your environment?
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SKtMy3L44Qs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
What I noticed is that the configuration -x 10 will only initiate one publisher and will broadcast to 10 unique queues by using the exchange (rather than create 10 producers).
In a way, the perftest is "cheating" by letting the exchange do the work.
From my investigation, it seems that independent producers slow down the system quite substantially (from approx 90K/s to 45K/s).My expectation here is that independent producers should not impact performance given that each producer has its own connection and its own separate channel.
Can anyone justify such an observation? It seems totally weird to me.