)]}'
{"doc/source/running.rst":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4e525aacdc74c89c8c5de02ae05a18d841fd0457","unresolved":false,"context_lines":[{"line_number":133,"context_line":"increase the number of `gnocchi-metricd` daemons. You can run any number of"},{"line_number":134,"context_line":"metricd daemon on any number of servers."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"How many sacks do we need to create"},{"line_number":137,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Measurement data pushed to Gnocchi is divided into sacks for better"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7ffa3b31_4c28cb95","line":136,"updated":"2017-04-21 09:47:06.000000000","message":"it\u0027d be better to have a first title which does not talk about \"sack\" right away before explaining what it is. maybe something like \"how to scale measure processing\", idk","commit_id":"aa55e1540c7544efeeb980695e7958b4f89d15f1"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4e525aacdc74c89c8c5de02ae05a18d841fd0457","unresolved":false,"context_lines":[{"line_number":156,"context_line":".. warning::"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"   The `sacks` option should be consistent across all services: api, metricd,"},{"line_number":159,"context_line":"   etc... Having a different value across services may result in a loss of data"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"How do we change sack size"},{"line_number":162,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7ffa3b31_af3e21be","line":159,"updated":"2017-04-21 09:47:06.000000000","message":"This is why it should not be a config option","commit_id":"aa55e1540c7544efeeb980695e7958b4f89d15f1"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4eadb62762527bc89054ce1036982415873de3fc","unresolved":false,"context_lines":[{"line_number":156,"context_line":""},{"line_number":157,"context_line":".. math::"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"   sacks value \u003d number of **active** metrics / 300"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"If the estimated number of metrics is the absolute maximum, divide the value"},{"line_number":162,"context_line":"by 500 instead. If the estimated number of active metrics is conservative and"}],"source_content_type":"text/x-rst","patch_set":13,"id":"3f044301_64b5fe7d","line":159,"updated":"2017-05-11 14:15:18.000000000","message":"i find it weird not to use the number of workers here?","commit_id":"bdb220baeb6ea2b7592cc9239523d67a6ac064c1"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"e099804692238641e047420a8ace3bda332ce35f","unresolved":false,"context_lines":[{"line_number":156,"context_line":""},{"line_number":157,"context_line":".. math::"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"   sacks value \u003d number of **active** metrics / 300"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"If the estimated number of metrics is the absolute maximum, divide the value"},{"line_number":162,"context_line":"by 500 instead. If the estimated number of active metrics is conservative and"}],"source_content_type":"text/x-rst","patch_set":13,"id":"3f044301_70a251b0","line":159,"in_reply_to":"3f044301_64b5fe7d","updated":"2017-05-11 19:54:03.000000000","message":"yeah, it doesn\u0027t matter for workers, we want to ensure there aren\u0027t too many metrics per sack. we want there to be more sacks per workers but that\u0027s not a massive concern.","commit_id":"bdb220baeb6ea2b7592cc9239523d67a6ac064c1"}],"gnocchi/storage/incoming/_carbonara.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4e525aacdc74c89c8c5de02ae05a18d841fd0457","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"OPTS \u003d ["},{"line_number":29,"context_line":"    cfg.IntOpt(\u0027sacks\u0027,"},{"line_number":30,"context_line":"               default\u003d128, min\u003d8,"},{"line_number":31,"context_line":"               help\u003d\u0027Number of partitions to distribute incoming measures \u0027"},{"line_number":32,"context_line":"                    \u0027across. Value should be greater than total number of \u0027"},{"line_number":33,"context_line":"                    \u0027metricd workers. WARNING: modifying this value after \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_ef5549fb","line":30,"updated":"2017-04-21 09:47:06.000000000","message":"I don\u0027t think this is large enough by default :/","commit_id":"aa55e1540c7544efeeb980695e7958b4f89d15f1"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4eadb62762527bc89054ce1036982415873de3fc","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    @property"},{"line_number":42,"context_line":"    def NUM_SACKS(self):"},{"line_number":43,"context_line":"        if not hasattr(self, \u0027_num_sacks\u0027):"},{"line_number":44,"context_line":"            self._num_sacks \u003d int(self.get_storage_sacks())"},{"line_number":45,"context_line":"        return self._num_sacks"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def get_sack_prefix(self, num_sacks\u003dNone):"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f044301_e456ae2a","line":44,"updated":"2017-05-11 14:15:18.000000000","message":"except that in e.g. ceph you return None if the setting has not be set so that will raise an error.\n\nI think it\u0027d be better to not catch any error in e.g. ceph.py and here to something like:\n\ntry:\n    self._num_sacks \u003d self.get_storage_sacks()\nexcept:\n    LOG.error(\"Unable to find the number of storage sacks, are you sure you ran gnocchi-upgrade dude?\")","commit_id":"bdb220baeb6ea2b7592cc9239523d67a6ac064c1"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"4eadb62762527bc89054ce1036982415873de3fc","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    def upgrade(self, index):"},{"line_number":52,"context_line":"        super(CarbonaraBasedStorage, self).upgrade(index)"},{"line_number":53,"context_line":"        if not self.get_storage_sacks():"},{"line_number":54,"context_line":"            self.set_storage_settings(128)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    @staticmethod"},{"line_number":57,"context_line":"    def get_storage_sacks():"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f044301_e47d8eb2","line":54,"range":{"start_line":54,"start_character":38,"end_line":54,"end_character":41},"updated":"2017-05-11 14:15:18.000000000","message":"get it from an arg of upgrade()?","commit_id":"bdb220baeb6ea2b7592cc9239523d67a6ac064c1"}]}
