)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":10,"context_line":"kicks off both the Consumer and Producer with the specified number"},{"line_number":11,"context_line":"of processes, workers and duration of the Benchmark."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Running the Benchmark is as simple as:"},{"line_number":14,"context_line":"    python conductor.py"},{"line_number":15,"context_line":"Partially Implements: blueprint basic-benchmarking"},{"line_number":16,"context_line":"Change-Id: I57ebe853554199490adba8b2a091423f399b0565"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_0edbbbed","line":13,"updated":"2014-06-18 13:30:09.000000000","message":"Could you elaborate more on this commit mesasge? For example, explain the structure of the benchmark tool, what it\u0027s suppose to benchmark and why we\u0027re keeping it here.\n\nYou could also add this info to the readme file but I\u0027d personally prefer to keep it in both places.","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"ad84569515d6a4e7c13653831eba155e7e2ca03f","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch adds the ability to benchmark Marconi. The benchmark tool"},{"line_number":10,"context_line":"is a console script, and can be triggered using"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"$ marconi-bench"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The Benchmark tool fires up both a Producer Process and a Consumer"},{"line_number":15,"context_line":"Process, while accepting CLI parameters for the number of processes,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"baada198_bb25e10b","line":12,"updated":"2014-07-10 08:41:37.000000000","message":"marconi-bench-pc ?","commit_id":"97097c1894ae444475e32d6f497ce9d604ff7434"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3233fec4ad7b481d3b77e22d9b828c022e020c3d","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Example:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"$ marconi-bench-pc --p 2 --w 2 --d 4"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Partially Implements: blueprint basic-benchmarking"},{"line_number":42,"context_line":"Change-Id: I57ebe853554199490adba8b2a091423f399b0565"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"baada198_8d2123a0","line":39,"updated":"2014-07-16 06:35:09.000000000","message":"nit: I think you meant `-p`","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"027eb2bd6857612f08ee673c495fe67e113441f9","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Example:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"$ marconi-bench-pc --p 2 --w 2 --d 4"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Partially Implements: blueprint basic-benchmarking"},{"line_number":42,"context_line":"Change-Id: I57ebe853554199490adba8b2a091423f399b0565"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"baada198_ea56cccd","line":39,"in_reply_to":"baada198_8d2123a0","updated":"2014-07-16 14:27:38.000000000","message":"I\u0027ll incorporate the short forms, and we can then use \u0027-p\u0027","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"}],"benchmark/Benchmark_README.rst":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Marconi Benchmarking"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Setup"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_2ed877ee","line":1,"updated":"2014-06-18 13:30:09.000000000","message":"nit: Can you rename this file to just README.rst ?","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Setup"},{"line_number":5,"context_line":"-----"},{"line_number":6,"context_line":"The following dependencies will need to be pip installed::"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"    argparse"},{"line_number":9,"context_line":"    gevent"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_ee6e8fff","line":6,"updated":"2014-06-18 13:30:09.000000000","message":"Can we have a bench-requirements.txt?","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":5,"context_line":"-----"},{"line_number":6,"context_line":"The following dependencies will need to be pip installed::"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"    argparse"},{"line_number":9,"context_line":"    gevent"},{"line_number":10,"context_line":"    marktime"},{"line_number":11,"context_line":"    mulitprocessing"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_ce9b9315","line":8,"updated":"2014-06-18 13:30:09.000000000","message":"this is built-in","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    argparse"},{"line_number":9,"context_line":"    gevent"},{"line_number":10,"context_line":"    marktime"},{"line_number":11,"context_line":"    mulitprocessing"},{"line_number":12,"context_line":"    python-marconiclient"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Make sure you have a running instance of Marconi after following `README`_ for"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_6e8c3fd8","line":11,"updated":"2014-06-18 13:30:09.000000000","message":"ditto","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Make sure you have a running instance of Marconi after following `README`_ for"},{"line_number":15,"context_line":"setting up Marconi running at port 8888::"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"    $ cd marconi/benchmark"},{"line_number":18,"context_line":"    $ python conductor.py"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"You will be prompted for number of processes, number of workers and the duration"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_513004e9","line":17,"updated":"2014-06-18 13:30:09.000000000","message":"Any chance we can install the bench tool with marconi and have a `marconi-bench` command available?","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"}],"benchmark/conductor.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def main():"},{"line_number":34,"context_line":"    num_procs \u003d raw_input(\"Number of Processes : \")"},{"line_number":35,"context_line":"    num_workers \u003d raw_input(\"Number of Workers : \")"},{"line_number":36,"context_line":"    duration \u003d raw_input(\"Duration of Load (seconds) : \")"},{"line_number":37,"context_line":"    producer \u003d \"producer.py -p {0} -w {1} -d {2}\".format("}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_d1efb41b","line":34,"updated":"2014-06-18 13:30:09.000000000","message":"What about using `oslo.config` for the CLI parameters and have sane defaults there? I envision something like:\n\n    $ marconi-bench -p 5 -w 10 -d 5\n\nSome defaults could be:\n\n  processes \u003d number of cpus\n  workers \u003d processes*2\n  duration \u003d (lets roll a dice) ;)","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"e441ef3d71a2dd6db77066debeff1cd9ba81bc10","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def main():"},{"line_number":34,"context_line":"    num_procs \u003d raw_input(\"Number of Processes : \")"},{"line_number":35,"context_line":"    num_workers \u003d raw_input(\"Number of Workers : \")"},{"line_number":36,"context_line":"    duration \u003d raw_input(\"Duration of Load (seconds) : \")"},{"line_number":37,"context_line":"    producer \u003d \"producer.py -p {0} -w {1} -d {2}\".format("}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_260a498a","line":34,"in_reply_to":"1ae5cdf2_d1efb41b","updated":"2014-06-18 20:40:13.000000000","message":"+1 for oslo.config. and doing CLI params instead of prompts. Easier to script.","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"}],"benchmark/consumer.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"e441ef3d71a2dd6db77066debeff1cd9ba81bc10","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"1ae5cdf2_e64221aa","updated":"2014-06-18 20:40:13.000000000","message":"NIT: It would aid readability if logically related lines of code were grouped using blank lines.","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from __future__ import division"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import argparse"},{"line_number":18,"context_line":"from gevent import monkey as curious_george"},{"line_number":19,"context_line":"curious_george.patch_all(thread\u003dFalse, select\u003dFalse)"},{"line_number":20,"context_line":"import gevent"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_91d0cc54","line":17,"updated":"2014-06-18 13:30:09.000000000","message":"I think we should use oslo.config here (It\u0027s already a marconi dependency)","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9024f7f28165203050d0631b4092bba111db9867","unresolved":false,"context_lines":[{"line_number":28,"context_line":"QUEUE_PREFIX \u003d \u0027ogre-test-queue-\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def create_post_delete(stats, test_duration, ttl, grace, limit):"},{"line_number":32,"context_line":"        # We would need to insert timings between each call and send to"},{"line_number":33,"context_line":"        # graphite"},{"line_number":34,"context_line":"        # last\u003d time.time() now\u003dtime.time() sendtographite(now-last)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_f40ade1e","line":31,"updated":"2014-06-18 13:30:09.000000000","message":"Could you please document this function?","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"}],"benchmark/producer.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"e441ef3d71a2dd6db77066debeff1cd9ba81bc10","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"if __name__ \u003d\u003d \u0027__main__\u0027:"},{"line_number":106,"context_line":"    parser \u003d argparse.ArgumentParser()"},{"line_number":107,"context_line":"    parser.add_argument(\u0027-p\u0027, type\u003dint, default\u003d1)"},{"line_number":108,"context_line":"    parser.add_argument(\u0027-w\u0027, type\u003dint, default\u003d1)"},{"line_number":109,"context_line":"    parser.add_argument(\u0027-d\u0027, type\u003dint, default\u003d5)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_c6736514","line":106,"updated":"2014-06-18 20:40:13.000000000","message":"If we are going to be using oslo.config elsewhere, we should do it here as well, for the sake of consistency.","commit_id":"89e468c32f95cfe2118874cc3a8a31d45314ff97"}],"marconi/bench/README.rst":[{"author":{"_account_id":10777,"name":"Nataliia Uvarova","email":"grafinya.uvarova@gmail.com","username":"AAzza"},"change_message_id":"868211b99dd404ff9361efc253325ed6eb342328","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    $ marconi-bench --p {Number of Processes} --w {Number of Workers} --d {Duration in Seconds}"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Once the values are entered, the benchmark begins!"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":".. _`README` : https://github.com/openstack/marconi/blob/master/README.rst"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_bbe1d5d1","line":35,"updated":"2014-06-20 07:39:17.000000000","message":"This line is a little bit confusing, I think, it is left from the revision, when values were prompted, rather than set via args.","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"d6b2b0c276e5efb4a0237f9be3b23fb9c4e792a1","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    $ marconi-bench --p {Number of Processes} --w {Number of Workers} --d {Duration in Seconds}"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Once the values are entered, the benchmark begins!"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":".. _`README` : https://github.com/openstack/marconi/blob/master/README.rst"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_73c4960e","line":35,"in_reply_to":"1ae5cdf2_bbe1d5d1","updated":"2014-06-23 14:31:54.000000000","message":"This line can be removed.","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"ad84569515d6a4e7c13653831eba155e7e2ca03f","unresolved":false,"context_lines":[{"line_number":30,"context_line":"Note: This allows benchmarking with different set of messages rather than those specified in"},{"line_number":31,"context_line":"      messages.json"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    $ marconi-bench --p {Number of Processes} --w {Number of Workers} --d {Duration in Seconds}"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":".. _`README` : https://github.com/openstack/marconi/blob/master/README.rst"}],"source_content_type":"text/x-rst","patch_set":8,"id":"baada198_7b5a6984","line":33,"updated":"2014-07-10 08:41:37.000000000","message":"$marconi-bench-pc ?","commit_id":"97097c1894ae444475e32d6f497ce9d604ff7434"}],"marconi/bench/cli_config.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3233fec4ad7b481d3b77e22d9b828c022e020c3d","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"conf \u003d cfg.CONF"},{"line_number":19,"context_line":"_CLI_OPTIONS \u003d ("},{"line_number":20,"context_line":"    cfg.IntOpt(\u0027p\u0027, default\u003dpsutil.NUM_CPUS, help\u003d\u0027Number of Processes\u0027),"},{"line_number":21,"context_line":"    cfg.IntOpt(\u0027w\u0027, default\u003dpsutil.NUM_CPUS * 2, help\u003d\u0027Number of Workers\u0027),"},{"line_number":22,"context_line":"    cfg.IntOpt(\u0027d\u0027, default\u003d3, help\u003d\"duration in seconds\"),"},{"line_number":23,"context_line":")"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_4d52ab13","line":20,"updated":"2014-07-16 06:35:09.000000000","message":"nit: It\u0027d also be nice to have the long form of this cli options","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"027eb2bd6857612f08ee673c495fe67e113441f9","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"conf \u003d cfg.CONF"},{"line_number":19,"context_line":"_CLI_OPTIONS \u003d ("},{"line_number":20,"context_line":"    cfg.IntOpt(\u0027p\u0027, default\u003dpsutil.NUM_CPUS, help\u003d\u0027Number of Processes\u0027),"},{"line_number":21,"context_line":"    cfg.IntOpt(\u0027w\u0027, default\u003dpsutil.NUM_CPUS * 2, help\u003d\u0027Number of Workers\u0027),"},{"line_number":22,"context_line":"    cfg.IntOpt(\u0027d\u0027, default\u003d3, help\u003d\"duration in seconds\"),"},{"line_number":23,"context_line":")"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_0a45c016","line":20,"in_reply_to":"baada198_4d52ab13","updated":"2014-07-16 14:27:38.000000000","message":"Yes, I\u0027ll have this implemented.","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"}],"marconi/bench/conductor.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3233fec4ad7b481d3b77e22d9b828c022e020c3d","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def main():"},{"line_number":25,"context_line":"    procs \u003d [mp.Process(target\u003dworker.run(conf))"},{"line_number":26,"context_line":"             for worker in [producer, consumer]]"},{"line_number":27,"context_line":"    for each_proc in procs:"},{"line_number":28,"context_line":"        each_proc.start()"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_71b48535","line":25,"updated":"2014-07-16 06:35:09.000000000","message":"mmmh, I believe this is not doing what you expect. `target` should be a callable object - probably you meant `worker.run` or use `partial` - but you\u0027re calling `run` here.","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"027eb2bd6857612f08ee673c495fe67e113441f9","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def main():"},{"line_number":25,"context_line":"    procs \u003d [mp.Process(target\u003dworker.run(conf))"},{"line_number":26,"context_line":"             for worker in [producer, consumer]]"},{"line_number":27,"context_line":"    for each_proc in procs:"},{"line_number":28,"context_line":"        each_proc.start()"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_8a6710b7","line":25,"in_reply_to":"baada198_71b48535","updated":"2014-07-16 14:27:38.000000000","message":"Nice catch!, I\u0027ll change it to worker.run","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"}],"marconi/bench/producer.py":[{"author":{"_account_id":10777,"name":"Nataliia Uvarova","email":"grafinya.uvarova@gmail.com","username":"AAzza"},"change_message_id":"868211b99dd404ff9361efc253325ed6eb342328","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from __future__ import division"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from gevent import monkey as curious_george"},{"line_number":18,"context_line":"curious_george.patch_all(thread\u003dFalse, select\u003dFalse)"},{"line_number":19,"context_line":"import gevent"},{"line_number":20,"context_line":"import json"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_5b00d1aa","line":17,"updated":"2014-06-20 07:39:17.000000000","message":"could you split this group of imports in 2: first with standard packages and next with dependencies? (the same in other files also)","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"d6b2b0c276e5efb4a0237f9be3b23fb9c4e792a1","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from __future__ import division"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from gevent import monkey as curious_george"},{"line_number":18,"context_line":"curious_george.patch_all(thread\u003dFalse, select\u003dFalse)"},{"line_number":19,"context_line":"import gevent"},{"line_number":20,"context_line":"import json"}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_9362023c","line":17,"in_reply_to":"1ae5cdf2_5b00d1aa","updated":"2014-06-23 14:31:54.000000000","message":"Sure","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":10777,"name":"Nataliia Uvarova","email":"grafinya.uvarova@gmail.com","username":"AAzza"},"change_message_id":"868211b99dd404ff9361efc253325ed6eb342328","unresolved":false,"context_lines":[{"line_number":38,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":39,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":40,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":41,"context_line":"else:"},{"line_number":42,"context_line":"    print(\"Error : $MESSAGES_PATH needs to set\")"},{"line_number":43,"context_line":"    sys.exit(1)"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_fb419d0a","line":41,"updated":"2014-06-20 07:39:17.000000000","message":"could we load by default the messages.json, rather than forcing user to set the env variable even if he wants default?","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"71996be438d5ea7994609d909b8eda09564747e6","unresolved":false,"context_lines":[{"line_number":38,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":39,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":40,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":41,"context_line":"else:"},{"line_number":42,"context_line":"    print(\"Error : $MESSAGES_PATH needs to set\")"},{"line_number":43,"context_line":"    sys.exit(1)"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_02769a3f","line":41,"in_reply_to":"1ae5cdf2_07d78c50","updated":"2014-06-23 16:25:36.000000000","message":"Sure, I\u0027ll take a look at oslo config way as well.\nThanks Kurt!","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"20eea4047ecc42c8cd30031ac6286a81c01f4eaa","unresolved":false,"context_lines":[{"line_number":38,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":39,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":40,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":41,"context_line":"else:"},{"line_number":42,"context_line":"    print(\"Error : $MESSAGES_PATH needs to set\")"},{"line_number":43,"context_line":"    sys.exit(1)"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_07d78c50","line":41,"in_reply_to":"1ae5cdf2_f3698627","updated":"2014-06-23 15:59:57.000000000","message":"IMO: I\u0027d like to see a TODO for migrating from an env variable to a config file. I think it makes sense to keep everything in the same place. FWIW, oslo config has a way to find a JSON file given just it\u0027s name, assuming the JSON file is located next to the INI conf file.","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"d6b2b0c276e5efb4a0237f9be3b23fb9c4e792a1","unresolved":false,"context_lines":[{"line_number":38,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":39,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":40,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":41,"context_line":"else:"},{"line_number":42,"context_line":"    print(\"Error : $MESSAGES_PATH needs to set\")"},{"line_number":43,"context_line":"    sys.exit(1)"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1ae5cdf2_f3698627","line":41,"in_reply_to":"1ae5cdf2_fb419d0a","updated":"2014-06-23 14:31:54.000000000","message":"I did it this way, since it might be easier to just get the path to the corresponding messages.json","commit_id":"1da97968809314fe72c2402b33bbcfc19128326d"},{"author":{"_account_id":10634,"name":"Peng Fei Wang","email":"wpf710@gmail.com","username":"wpf"},"change_message_id":"a2045abca0b57abaf9d1866c86f6a38bd80576b6","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    accumulator \u003d 0.00"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    for each_message in message_pool:"},{"line_number":58,"context_line":"        accumulator +\u003d each_message[\u0027weight\u0027]"},{"line_number":59,"context_line":"        if position \u003c accumulator:"},{"line_number":60,"context_line":"            return each_message[\u0027doc\u0027]"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_7b99896d","line":58,"updated":"2014-07-10 08:27:25.000000000","message":"suppose there are 9 messages, and ordered weight are from  0.1 ,0.2,0.3 to 0.9, it seems that with your algorithm, it\u0027s hard to choose the ones that weight \u003e 0.4 If I calculate it right , -:)","commit_id":"97097c1894ae444475e32d6f497ce9d604ff7434"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"15405650e2108c8a37220658f67cef7282553a0b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    accumulator \u003d 0.00"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    for each_message in message_pool:"},{"line_number":58,"context_line":"        accumulator +\u003d each_message[\u0027weight\u0027]"},{"line_number":59,"context_line":"        if position \u003c accumulator:"},{"line_number":60,"context_line":"            return each_message[\u0027doc\u0027]"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_2d727011","line":58,"in_reply_to":"baada198_7b99896d","updated":"2014-07-10 13:25:26.000000000","message":"Good question! We will need to look into this","commit_id":"97097c1894ae444475e32d6f497ce9d604ff7434"},{"author":{"_account_id":7498,"name":"Malini Kamalambal","email":"malini.kamalambal@rackspace.com","username":"malini-pk"},"change_message_id":"7d0e01657ddb74f176d13927c25276089d7f3934","unresolved":false,"context_lines":[{"line_number":21,"context_line":"import sys"},{"line_number":22,"context_line":"import time"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from gevent import monkey as curious_george"},{"line_number":25,"context_line":"curious_george.patch_all(thread\u003dFalse, select\u003dFalse)"},{"line_number":26,"context_line":"import gevent"},{"line_number":27,"context_line":"from marconiclient.queues.v1 import client"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_ada8d220","line":24,"updated":"2014-07-14 14:31:21.000000000","message":":)","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3233fec4ad7b481d3b77e22d9b828c022e020c3d","unresolved":false,"context_lines":[{"line_number":36,"context_line":"QUEUE_PREFIX \u003d \u0027ogre-test-queue-\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"# TODO(TheSriram) : Migrate from env variable to config"},{"line_number":39,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":40,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":41,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":42,"context_line":"else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_31e20d02","line":39,"updated":"2014-07-16 06:35:09.000000000","message":"nit: Can we move this into `run` until we switch-over to config options?","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"027eb2bd6857612f08ee673c495fe67e113441f9","unresolved":false,"context_lines":[{"line_number":36,"context_line":"QUEUE_PREFIX \u003d \u0027ogre-test-queue-\u0027"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"# TODO(TheSriram) : Migrate from env variable to config"},{"line_number":39,"context_line":"if os.environ.get(\u0027MESSAGES_PATH\u0027):"},{"line_number":40,"context_line":"    with open(os.environ.get(\u0027MESSAGES_PATH\u0027)) as f:"},{"line_number":41,"context_line":"        message_pool \u003d json.loads(f.read())"},{"line_number":42,"context_line":"else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_6a18fc1e","line":39,"in_reply_to":"baada198_31e20d02","updated":"2014-07-16 14:27:38.000000000","message":"Since both run of the consumer and producer is called simultaneously. The consumer would still keep going, while the producer would have stopped.\nIt may make sense to leave it out here, till we can make it a config option.\nThoughts?","commit_id":"2074908e4da9d874928efbdf4c9c42a4c5d5873b"}],"setup.cfg":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"7431a80b6fdfa863cf84b1ca5328896569234ea1","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[entry_points]"},{"line_number":34,"context_line":"console_scripts \u003d"},{"line_number":35,"context_line":"    marconi-bench \u003d marconi.bench.conductor:main"},{"line_number":36,"context_line":"    marconi-bench-producer \u003d marconi.bench.producer:main"},{"line_number":37,"context_line":"    marconi-bench-consumer \u003d marconi.bench.consumer:main"},{"line_number":38,"context_line":"    marconi-server \u003d marconi.cmd.server:run"}],"source_content_type":"text/x-ttcn-cfg","patch_set":7,"id":"1ae5cdf2_a5396ba5","line":35,"updated":"2014-06-23 19:00:57.000000000","message":"Do we need the conductor at all? If so, do we need the `-producer` and `-consumer` scripts?\n\nTBH, I\u0027d prefer to have a single: `marconi-bench-pc` - pc\u003dproducer and consumer - script. Then we can have a ps - publish and subscribe - etc.\n\nThoughts?","commit_id":"28e55dcdc1ac45f22c47153a073c1436f13436f2"},{"author":{"_account_id":8092,"name":"Sriram Madapusi Vasudevan","email":"sriram1991mv@gmail.com","username":"thesriram"},"change_message_id":"37a4c7f1035fc3a85c1240f7f7b5987c5a534485","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[entry_points]"},{"line_number":34,"context_line":"console_scripts \u003d"},{"line_number":35,"context_line":"    marconi-bench \u003d marconi.bench.conductor:main"},{"line_number":36,"context_line":"    marconi-bench-producer \u003d marconi.bench.producer:main"},{"line_number":37,"context_line":"    marconi-bench-consumer \u003d marconi.bench.consumer:main"},{"line_number":38,"context_line":"    marconi-server \u003d marconi.cmd.server:run"}],"source_content_type":"text/x-ttcn-cfg","patch_set":7,"id":"1ae5cdf2_c57f5716","line":35,"in_reply_to":"1ae5cdf2_a5396ba5","updated":"2014-06-23 19:08:48.000000000","message":"My only thought was that either could be benchmarked separately as well.\nWe could rename marconi-bench to marconi-bench-pc","commit_id":"28e55dcdc1ac45f22c47153a073c1436f13436f2"}]}
