)]}'
{"zaqar/bench/config.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"9b1d74022e94f8a678000b2e1bf8e970b1183d50","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    cfg.IntOpt(\u0027time\u0027, short\u003d\u0027t\u0027, default\u003d3,"},{"line_number":44,"context_line":"               help\u003d\"Duration of the performance test, in seconds\"),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027server_url\u0027, short\u003d\u0027s\u0027, default\u003d\u0027http://localhost:8888\u0027),"},{"line_number":46,"context_line":"    cfg.StrOpt(\u0027queue_prefix\u0027, short\u003d\u0027q\u0027, default\u003d\u0027ogre-test-queue\u0027),"},{"line_number":47,"context_line":"    cfg.IntOpt(\u0027num_queues\u0027, short\u003d\u0027qno\u0027, default\u003d4),"},{"line_number":48,"context_line":"    cfg.StrOpt(\u0027messages_path\u0027, short\u003d\u0027m\u0027)"},{"line_number":49,"context_line":")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_9fe689e7","line":46,"updated":"2014-08-25 14:33:10.000000000","message":"NIT: The hyphen eases queue name readability","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"166c197936c34d5af7d51b5436154959c6f224f1","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    cfg.IntOpt(\u0027time\u0027, short\u003d\u0027t\u0027, default\u003d3,"},{"line_number":44,"context_line":"               help\u003d\"Duration of the performance test, in seconds\"),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027server_url\u0027, short\u003d\u0027s\u0027, default\u003d\u0027http://localhost:8888\u0027),"},{"line_number":46,"context_line":"    cfg.StrOpt(\u0027queue_prefix\u0027, short\u003d\u0027q\u0027, default\u003d\u0027ogre-test-queue\u0027),"},{"line_number":47,"context_line":"    cfg.IntOpt(\u0027num_queues\u0027, short\u003d\u0027qno\u0027, default\u003d4),"},{"line_number":48,"context_line":"    cfg.StrOpt(\u0027messages_path\u0027, short\u003d\u0027m\u0027)"},{"line_number":49,"context_line":")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_e4b8d1e7","line":46,"in_reply_to":"1abeadc6_9fe689e7","updated":"2014-08-25 15:33:14.000000000","message":"Yep, I agree. However, I didn\u0027t think it was worth bothering the user with having to remember to append a hyphen. Therefore, I moved the hyphen to be applied when the queue index is concatenated.","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"b7d856f569c7451919b50ee8cf93b0fa096c74f6","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    cfg.IntOpt(\u0027time\u0027, short\u003d\u0027t\u0027, default\u003d3,"},{"line_number":44,"context_line":"               help\u003d\"Duration of the performance test, in seconds\"),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027server_url\u0027, short\u003d\u0027s\u0027, default\u003d\u0027http://localhost:8888\u0027),"},{"line_number":46,"context_line":"    cfg.StrOpt(\u0027queue_prefix\u0027, short\u003d\u0027q\u0027, default\u003d\u0027ogre-test-queue\u0027),"},{"line_number":47,"context_line":"    cfg.IntOpt(\u0027num_queues\u0027, short\u003d\u0027qno\u0027, default\u003d4),"},{"line_number":48,"context_line":"    cfg.StrOpt(\u0027messages_path\u0027, short\u003d\u0027m\u0027)"},{"line_number":49,"context_line":")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_e402916e","line":46,"in_reply_to":"1abeadc6_e4b8d1e7","updated":"2014-08-25 15:39:38.000000000","message":"Neat.","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"}],"zaqar/bench/consumer.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"98e30fd1980ad756fd5c641421acc166da0324eb","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    delete_total_requests \u003d 0"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    while time.time() \u003c end:"},{"line_number":49,"context_line":"        # NOTE(kgriffs): Distribute requests across all queues evenly."},{"line_number":50,"context_line":"        queue \u003d random.choice(queues)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_f96ddd9a","line":49,"updated":"2014-08-25 13:19:19.000000000","message":"NIT: /evenly/randomly/\n\nBUG(?): What happens if the same queue is picked twice? Do we care in this case?","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"b7d856f569c7451919b50ee8cf93b0fa096c74f6","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    delete_total_requests \u003d 0"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    while time.time() \u003c end:"},{"line_number":49,"context_line":"        # NOTE(kgriffs): Distribute requests across all queues evenly."},{"line_number":50,"context_line":"        queue \u003d random.choice(queues)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_64ee81b6","line":49,"in_reply_to":"1abeadc6_246e4997","updated":"2014-08-25 15:39:38.000000000","message":"Double neat!","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"166c197936c34d5af7d51b5436154959c6f224f1","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    delete_total_requests \u003d 0"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    while time.time() \u003c end:"},{"line_number":49,"context_line":"        # NOTE(kgriffs): Distribute requests across all queues evenly."},{"line_number":50,"context_line":"        queue \u003d random.choice(queues)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_246e4997","line":49,"in_reply_to":"1abeadc6_7ae1bbcf","updated":"2014-08-25 15:33:14.000000000","message":"Thanks for the feedback. The same queue will indeed likely be picked multiple times (intentionally, since we would expect real apps to send more than one message to a given queue), and the load should be somewhat evenly distributed given enough executions (rounds) of the loop. Using default settings, the loop executes several hundred times across 4 queues, which should be enough to get a good distribution.\n\nWhen using more queues, the test will have to run longer to get a good distribution.\n\nThe reason I chose random distribution vs. round-robin was to more accurately model \"the real world\" where you can\u0027t predict what queue is going to be getting a request from which client at any given moment.\n\nMore realistic would be to be able configure percentages of the queues as \"hot\", \"normal\", and cool, but that can be done later (if desired).","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"9b1d74022e94f8a678000b2e1bf8e970b1183d50","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    delete_total_requests \u003d 0"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    while time.time() \u003c end:"},{"line_number":49,"context_line":"        # NOTE(kgriffs): Distribute requests across all queues evenly."},{"line_number":50,"context_line":"        queue \u003d random.choice(queues)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_7ae1bbcf","line":49,"in_reply_to":"1abeadc6_f96ddd9a","updated":"2014-08-25 14:33:10.000000000","message":"Worst case scenario we would be falling back to the default behavior, but in the majority of cases this shouldn\u0027t happen. Is it worthwhile to add a control for this? Maybe instead of picking queues randomly we could pick them in order?","commit_id":"be968af05d9fb34a3e630ab50ab931defdef6584"}]}
