)]}'
{"swift/cli/info.py":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"43c2e7206aaece92bd502b416c2b0fafc8451334","unresolved":false,"context_lines":[{"line_number":327,"context_line":"            print(\u0027    %9s: %s\u0027 % (state, count))"},{"line_number":328,"context_line":"        print(\u0027  Max objects: %s\u0027 % max_count)"},{"line_number":329,"context_line":"        print(\u0027  Min objects: %s\u0027 % min_count)"},{"line_number":330,"context_line":"        print(\u0027  Avg objects: %s\u0027 % (total_objects / num_shards))"},{"line_number":331,"context_line":"        if verbose:"},{"line_number":332,"context_line":"            for srange in info[\u0027shard_ranges\u0027]:"},{"line_number":333,"context_line":"                srange \u003d dict(srange, state_text\u003dsrange.state_text)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bf51134e_b9cb46a3","line":330,"updated":"2020-07-06 19:01:27.000000000","message":"These stats are a little funny -- but I\u0027m not sure how to make them more useful yet. When everybody\u0027s active, it\u0027s definitely useful:\n\nShard Ranges (1545):\n  States:\n       active: 1545\n  Max objects: 920299\n  Min objects: 24\n  Avg objects: 316840.7197411003\n\nI.e. everybody\u0027s under a million rows, there\u0027s at least one shard that\u0027s probably getting close to splitting, and there\u0027s at least one shard that ought to shrink.\n\nFor more complicated states, it\u0027s less useful:\n\nShard Ranges (62):\n  States:\n      created: 2\n      cleaved: 4\n       active: 54\n     sharding: 2\n  Max objects: 1107546\n  Min objects: 0\n  Avg objects: 481093.79032258067\n\nSo we\u0027ve got a shard up at 1.1M objects -- but that\u0027s most likely one of the two that\u0027s already in the process of sharding itself. We\u0027ve also got some at 0, but that\u0027s likely one of the created DBs -- it just hasn\u0027t reported stats yet (assuming it\u0027s even received some redirects).\n\nWe could bucket stats by status... but I\u0027m not sure that all statuses will be interested in the same stats. I need to think some more...","commit_id":"dabb5990df405bee6f84da53a0298c20f4daf195"}]}
