)]}'
{"files/apache-gnocchi.template":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"be0ad407e564a131eeee4023fdce573c843ff78f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Listen %GNOCCHI_PORT%"},{"line_number":2,"context_line":"\u003cVirtualHost *:%GNOCCHI_PORT%\u003e"},{"line_number":3,"context_line":"    WSGIDaemonProcess gnocchi user\u003d%USER% display-name\u003d%{GROUP} processes\u003d10 threads\u003d1"},{"line_number":4,"context_line":"    WSGIScriptAlias / %WSGI%"},{"line_number":5,"context_line":"    WSGIProcessGroup gnocchi"},{"line_number":6,"context_line":"    WSGIApplicationGroup %{GLOBAL}"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"9aa7fdbe_e305de7a","line":3,"updated":"2014-10-22 10:34:19.000000000","message":"Is there a particular reason so many processes and so few threads are being used here? In the devstack environment you don\u0027t want to eat up too many processes if you can help it. For ceilometer-api I set it at processes\u003d2 threads\u003d10.\n\nIs the gnocchi app thread safe?","commit_id":"47a0d09c64194e668737f6cc6e6bfc72ec2d3e1b"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"b05f2b2ed80d573ff4541cf8a76ac1a7fdc9bd20","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Listen %GNOCCHI_PORT%"},{"line_number":2,"context_line":"\u003cVirtualHost *:%GNOCCHI_PORT%\u003e"},{"line_number":3,"context_line":"    WSGIDaemonProcess gnocchi user\u003d%USER% display-name\u003d%{GROUP} processes\u003d10 threads\u003d1"},{"line_number":4,"context_line":"    WSGIScriptAlias / %WSGI%"},{"line_number":5,"context_line":"    WSGIProcessGroup gnocchi"},{"line_number":6,"context_line":"    WSGIApplicationGroup %{GLOBAL}"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"9aa7fdbe_12b8e128","line":3,"in_reply_to":"9aa7fdbe_e305de7a","updated":"2014-10-28 10:55:23.000000000","message":"No reason, I have just putting random value, processes\u003d2 threads\u003d10 is more reasonable. I have changed that.\n\nAnd yes it\u0027s thread safe.","commit_id":"47a0d09c64194e668737f6cc6e6bfc72ec2d3e1b"}],"lib/gnocchi":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"be0ad407e564a131eeee4023fdce573c843ff78f","unresolved":false,"context_lines":[{"line_number":198,"context_line":"function start_gnocchi {"},{"line_number":199,"context_line":"    if [ \"$GNOCCHI_USE_MOD_WSGI\" \u003d\u003d \"True\" ]; then"},{"line_number":200,"context_line":"        restart_apache_server"},{"line_number":201,"context_line":"        screen_it gnocchi-api \"cd $GNOCCHI_DIR \u0026\u0026 sudo tail -f /var/log/$APACHE_NAME/gnocchi.log\""},{"line_number":202,"context_line":"    else"},{"line_number":203,"context_line":"        screen_it gnocchi-api \"cd ; gnocchi-api -d -v --log-dir\u003d$GNOCCHI_API_LOG_DIR --config-file $GNOCCHI_CONF\""},{"line_number":204,"context_line":"    fi"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"9aa7fdbe_037e62e4","line":201,"updated":"2014-10-22 10:34:19.000000000","message":"Note that run_process is now preferred instead of screen_it. Grep around for examples. It works basically the same way, except in cases like this where it just a log being tailed. In those cases there is a new function: tail_log()","commit_id":"47a0d09c64194e668737f6cc6e6bfc72ec2d3e1b"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"b05f2b2ed80d573ff4541cf8a76ac1a7fdc9bd20","unresolved":false,"context_lines":[{"line_number":198,"context_line":"function start_gnocchi {"},{"line_number":199,"context_line":"    if [ \"$GNOCCHI_USE_MOD_WSGI\" \u003d\u003d \"True\" ]; then"},{"line_number":200,"context_line":"        restart_apache_server"},{"line_number":201,"context_line":"        screen_it gnocchi-api \"cd $GNOCCHI_DIR \u0026\u0026 sudo tail -f /var/log/$APACHE_NAME/gnocchi.log\""},{"line_number":202,"context_line":"    else"},{"line_number":203,"context_line":"        screen_it gnocchi-api \"cd ; gnocchi-api -d -v --log-dir\u003d$GNOCCHI_API_LOG_DIR --config-file $GNOCCHI_CONF\""},{"line_number":204,"context_line":"    fi"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"9aa7fdbe_5202690a","line":201,"in_reply_to":"9aa7fdbe_037e62e4","updated":"2014-10-28 10:55:23.000000000","message":"Done","commit_id":"47a0d09c64194e668737f6cc6e6bfc72ec2d3e1b"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"f8780af82759160a2e7ee27700237a1d43311f52","unresolved":false,"context_lines":[{"line_number":160,"context_line":"\tiniset $GNOCCHI_CONF storage swift_authurl $KEYSTONE_SERVICE_URI/v2.0/"},{"line_number":161,"context_line":"    else"},{"line_number":162,"context_line":"\tiniset $GNOCCHI_CONF storage driver file"},{"line_number":163,"context_line":"\tiniset $GNOCCHI_CONF storage file_basepath "},{"line_number":164,"context_line":"    fi"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    # Configure the indexer database"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"5a890539_b9d96d24","line":163,"updated":"2014-11-28 13:05:25.000000000","message":"whitespace","commit_id":"7f8d6a641c2ff8f846b9d9baddc73aecb46aaef1"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a009d8ecc23e03701609a9a798bf8e0e467f1c07","unresolved":false,"context_lines":[{"line_number":160,"context_line":"\tiniset $GNOCCHI_CONF storage swift_authurl $KEYSTONE_SERVICE_URI/v2.0/"},{"line_number":161,"context_line":"    else"},{"line_number":162,"context_line":"\tiniset $GNOCCHI_CONF storage driver file"},{"line_number":163,"context_line":"\tiniset $GNOCCHI_CONF storage file_basepath "},{"line_number":164,"context_line":"    fi"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    # Configure the indexer database"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"5a890539_797545cb","line":163,"in_reply_to":"5a890539_b9d96d24","updated":"2014-11-28 13:16:19.000000000","message":"Done","commit_id":"7f8d6a641c2ff8f846b9d9baddc73aecb46aaef1"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"8e2daf9234f89005fbd15f78557634ea544e3979","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# To enable Gnocchi service, add the following to localrc:"},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#   enable_service gnocchi"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"# Dependencies:"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3a961159_aadf3137","line":6,"updated":"2015-01-13 13:14:28.000000000","message":"This is wrong, it needs to be \u0027enable_service gnocchi-api\u0027 in order for the commands in this file to be called.","commit_id":"e490fd952569f7e8685edd7cc76c0842769a2867"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"44f278335d2388084ebbc95b90dcf4bc360fec14","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# To enable Gnocchi service, add the following to localrc:"},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#   enable_service gnocchi"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"# Dependencies:"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3a961159_0515ba4b","line":6,"in_reply_to":"3a961159_aadf3137","updated":"2015-01-20 16:14:58.000000000","message":"Done","commit_id":"e490fd952569f7e8685edd7cc76c0842769a2867"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"9f743ac60c3fd0e8b46b532682b16c97cb7a4a0b","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    # Create a default policy"},{"line_number":227,"context_line":"    token\u003d$(keystone token-get | grep \u0027 id \u0027 | get_field 2)"},{"line_number":228,"context_line":"    die_if_not_set $LINENO token \"Keystone fail to get token\""},{"line_number":229,"context_line":"    curl -X POST ${GNOCCHI_SERVICE_PROTOCOL}://${GNOCCHI_SERVICE_HOST}:${GNOCCHI_SERVICE_PORT}/v1/archive_policy -H \"Content-Type: application/json\" -H \"X-Auth-Token: $token\" -d \u0027{\"name\":\"low\",\"definition\":[{\"granularity\": \"10s\",\"points\": 10}]}\u0027"},{"line_number":230,"context_line":"}"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"# stop_gnocchi() - Stop running processes"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3a961159_b8500b33","line":229,"updated":"2014-12-21 22:50:57.000000000","message":"suggestion: create more :) like we do in unit tests","commit_id":"e490fd952569f7e8685edd7cc76c0842769a2867"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"44f278335d2388084ebbc95b90dcf4bc360fec14","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    # Create a default policy"},{"line_number":227,"context_line":"    token\u003d$(keystone token-get | grep \u0027 id \u0027 | get_field 2)"},{"line_number":228,"context_line":"    die_if_not_set $LINENO token \"Keystone fail to get token\""},{"line_number":229,"context_line":"    curl -X POST ${GNOCCHI_SERVICE_PROTOCOL}://${GNOCCHI_SERVICE_HOST}:${GNOCCHI_SERVICE_PORT}/v1/archive_policy -H \"Content-Type: application/json\" -H \"X-Auth-Token: $token\" -d \u0027{\"name\":\"low\",\"definition\":[{\"granularity\": \"10s\",\"points\": 10}]}\u0027"},{"line_number":230,"context_line":"}"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"# stop_gnocchi() - Stop running processes"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3a961159_e8b24548","line":229,"in_reply_to":"3a961159_b8500b33","updated":"2015-01-20 16:14:58.000000000","message":"Done","commit_id":"e490fd952569f7e8685edd7cc76c0842769a2867"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"85606a6f0c1d188f295f894ee40e1d5fdc17062f","unresolved":false,"context_lines":[{"line_number":236,"context_line":"        restart_apache_server"},{"line_number":237,"context_line":"    fi"},{"line_number":238,"context_line":"    # Kill the gnocchi screen windows"},{"line_number":239,"context_line":"    for serv in gnocchi-api; do"},{"line_number":240,"context_line":"        stop_process $serv"},{"line_number":241,"context_line":"    done"},{"line_number":242,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"9a80dd14_98d8cf1f","line":239,"updated":"2015-03-13 03:35:54.000000000","message":"since it has just one, let\u0027s do \u0027stop_process gnocchi-api\u0027","commit_id":"e490fd952569f7e8685edd7cc76c0842769a2867"}]}
