{"action":"created","issue":{"url":"https://api.github.com/repos/2600hz/kazoo/issues/1841","repository_url":"https://api.github.com/repos/2600hz/kazoo","labels_url":"https://api.github.com/repos/2600hz/kazoo/issues/1841/labels{/name}","comments_url":"https://api.github.com/repos/2600hz/kazoo/issues/1841/comments","events_url":"https://api.github.com/repos/2600hz/kazoo/issues/1841/events","html_url":"https://github.com/2600hz/kazoo/pull/1841","id":151567031,"number":1841,"title":"HELP-22210: kz_cache backport to 3.22","user":{"login":"jamesaimonetti","id":160921,"avatar_url":"https://avatars.githubusercontent.com/u/160921?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesaimonetti","html_url":"https://github.com/jamesaimonetti","followers_url":"https://api.github.com/users/jamesaimonetti/followers","following_url":"https://api.github.com/users/jamesaimonetti/following{/other_user}","gists_url":"https://api.github.com/users/jamesaimonetti/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesaimonetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesaimonetti/subscriptions","organizations_url":"https://api.github.com/users/jamesaimonetti/orgs","repos_url":"https://api.github.com/users/jamesaimonetti/repos","events_url":"https://api.github.com/users/jamesaimonetti/events{/privacy}","received_events_url":"https://api.github.com/users/jamesaimonetti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-28T07:21:35Z","updated_at":"2016-04-28T14:49:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/1841","html_url":"https://github.com/2600hz/kazoo/pull/1841","diff_url":"https://github.com/2600hz/kazoo/pull/1841.diff","patch_url":"https://github.com/2600hz/kazoo/pull/1841.patch"},"body":"Tested thusly:\r\n\r\n`kz_tracers:gen_load(N).` will spawn N workers who will create a new database and 1000 documents inside that database, and will perform edit/delete operations against those documents until all are deleted, at which point the database is deleted.\r\n\r\nThe parent process will track the `whistle_couch_cache` process' largest `message_queue_len` and `current_function`, and will output those values (along with runtime):\r\n\r\n```\r\nkz_tracers:gen_load(5).\r\n...processing...\r\nfinished test after 531140ms: {23, {lager_format, build2, 3}}\r\n```\r\n\r\nIn this case, the largest mailbox length found was 23 messages and the whistle_couch_cache process was in `lager_format:build2/3` when that was read.\r\n\r\nFor perspective, the previous `wh_cache` topped out around 23K messages in the queue, so this PR marks a significant improvement."},"comment":{"url":"https://api.github.com/repos/2600hz/kazoo/issues/comments/215450392","html_url":"https://github.com/2600hz/kazoo/pull/1841#issuecomment-215450392","issue_url":"https://api.github.com/repos/2600hz/kazoo/issues/1841","id":215450392,"user":{"login":"jamesaimonetti","id":160921,"avatar_url":"https://avatars.githubusercontent.com/u/160921?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesaimonetti","html_url":"https://github.com/jamesaimonetti","followers_url":"https://api.github.com/users/jamesaimonetti/followers","following_url":"https://api.github.com/users/jamesaimonetti/following{/other_user}","gists_url":"https://api.github.com/users/jamesaimonetti/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesaimonetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesaimonetti/subscriptions","organizations_url":"https://api.github.com/users/jamesaimonetti/orgs","repos_url":"https://api.github.com/users/jamesaimonetti/repos","events_url":"https://api.github.com/users/jamesaimonetti/events{/privacy}","received_events_url":"https://api.github.com/users/jamesaimonetti/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T14:49:08Z","updated_at":"2016-04-28T14:49:08Z","body":"@lazedo good thought. I will test it when I get into the office."}}