{"action":"closed","number":640,"pull_request":{"url":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640","id":182760370,"html_url":"https://github.com/hyperledger/indy-plenum/pull/640","diff_url":"https://github.com/hyperledger/indy-plenum/pull/640.diff","patch_url":"https://github.com/hyperledger/indy-plenum/pull/640.patch","issue_url":"https://api.github.com/repos/hyperledger/indy-plenum/issues/640","number":640,"state":"closed","locked":false,"title":"INDY-1251: change math of spikes detection.","user":{"login":"sergey-shilov","id":31342446,"avatar_url":"https://avatars3.githubusercontent.com/u/31342446?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey-shilov","html_url":"https://github.com/sergey-shilov","followers_url":"https://api.github.com/users/sergey-shilov/followers","following_url":"https://api.github.com/users/sergey-shilov/following{/other_user}","gists_url":"https://api.github.com/users/sergey-shilov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-shilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-shilov/subscriptions","organizations_url":"https://api.github.com/users/sergey-shilov/orgs","repos_url":"https://api.github.com/users/sergey-shilov/repos","events_url":"https://api.github.com/users/sergey-shilov/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-shilov/received_events","type":"User","site_admin":false},"body":"Changed math of node request and cluster throughtput spikes detection.\r\nThe main changes:\r\n * Now smothing constant (alpha) is really constant as declares exponential\r\n   moving average (EMA), alpha = 2 / (N + 1), where N is a minimal count of\r\n   passed periods needed for comparison of expected value and real value, a.g.\r\n   learning period. For now N = 15, so alpha = 0.125.\r\n * Rised min activity from 2 to 10, a.g. we start to compare expected and real\r\n   values if we handle more than 10 request per time period, that now is set\r\n   to 60 secs (10 requests per minute).\r\n * Rised borders coefficient to extend the lower and higher borders when observed\r\n   value is treated as normal relative to expected value, previous border coefficient = 3:\r\n    - lower border:  expected_val / 3\r\n    - higher border: expected_val * 3\r\n   new borders coefficient = 10:\r\n    - lower border:  expected_val / 10\r\n    - higher border: expected_val * 10\r\n   Also implemented weighted borders coefficient. It means adaptation of\r\n   borders coeffitient to larger values using formula:\r\n      weighted_borders_coef = borders_coef / log(expected_val)\r\n   Such approach allows to lower borders for larger values. This\r\n   functionality is optional and enabled by default.\r\n\r\nSigned-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>","created_at":"2018-04-19T12:30:15Z","updated_at":"2018-04-19T15:17:33Z","closed_at":"2018-04-19T15:17:32Z","merged_at":"2018-04-19T15:17:32Z","merge_commit_sha":"199d93092995cfe20fe948a9f2d107b1f44ad10f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640/commits","review_comments_url":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640/comments","review_comment_url":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperledger/indy-plenum/issues/640/comments","statuses_url":"https://api.github.com/repos/hyperledger/indy-plenum/statuses/bf23128e8dd02587bc6ae1fef1d99741b7b048f3","head":{"label":"sergey-shilov:fix/INDY-1251","ref":"fix/INDY-1251","sha":"bf23128e8dd02587bc6ae1fef1d99741b7b048f3","user":{"login":"sergey-shilov","id":31342446,"avatar_url":"https://avatars3.githubusercontent.com/u/31342446?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey-shilov","html_url":"https://github.com/sergey-shilov","followers_url":"https://api.github.com/users/sergey-shilov/followers","following_url":"https://api.github.com/users/sergey-shilov/following{/other_user}","gists_url":"https://api.github.com/users/sergey-shilov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-shilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-shilov/subscriptions","organizations_url":"https://api.github.com/users/sergey-shilov/orgs","repos_url":"https://api.github.com/users/sergey-shilov/repos","events_url":"https://api.github.com/users/sergey-shilov/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-shilov/received_events","type":"User","site_admin":false},"repo":{"id":102121167,"name":"indy-plenum","full_name":"sergey-shilov/indy-plenum","owner":{"login":"sergey-shilov","id":31342446,"avatar_url":"https://avatars3.githubusercontent.com/u/31342446?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey-shilov","html_url":"https://github.com/sergey-shilov","followers_url":"https://api.github.com/users/sergey-shilov/followers","following_url":"https://api.github.com/users/sergey-shilov/following{/other_user}","gists_url":"https://api.github.com/users/sergey-shilov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-shilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-shilov/subscriptions","organizations_url":"https://api.github.com/users/sergey-shilov/orgs","repos_url":"https://api.github.com/users/sergey-shilov/repos","events_url":"https://api.github.com/users/sergey-shilov/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-shilov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sergey-shilov/indy-plenum","description":"Plenum Byzantine Fault Tolerant Protocol","fork":true,"url":"https://api.github.com/repos/sergey-shilov/indy-plenum","forks_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/forks","keys_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/teams","hooks_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/hooks","issue_events_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/issues/events{/number}","events_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/events","assignees_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/assignees{/user}","branches_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/branches{/branch}","tags_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/tags","blobs_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/git/refs{/sha}","trees_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/statuses/{sha}","languages_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/languages","stargazers_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/stargazers","contributors_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/contributors","subscribers_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/subscribers","subscription_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/subscription","commits_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/commits{/sha}","git_commits_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/git/commits{/sha}","comments_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/comments{/number}","issue_comment_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/issues/comments{/number}","contents_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/contents/{+path}","compare_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/merges","archive_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/downloads","issues_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/issues{/number}","pulls_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/pulls{/number}","milestones_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/milestones{/number}","notifications_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/labels{/name}","releases_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/releases{/id}","deployments_url":"https://api.github.com/repos/sergey-shilov/indy-plenum/deployments","created_at":"2017-09-01T14:27:56Z","updated_at":"2017-09-01T14:27:59Z","pushed_at":"2018-04-19T12:28:21Z","git_url":"git://github.com/sergey-shilov/indy-plenum.git","ssh_url":"git@github.com:sergey-shilov/indy-plenum.git","clone_url":"https://github.com/sergey-shilov/indy-plenum.git","svn_url":"https://github.com/sergey-shilov/indy-plenum","homepage":"","size":8555,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hyperledger:master","ref":"master","sha":"058c32d309dd5f2cfb2782d103e1076c46bb166e","user":{"login":"hyperledger","id":7657900,"avatar_url":"https://avatars2.githubusercontent.com/u/7657900?v=4","gravatar_id":"","url":"https://api.github.com/users/hyperledger","html_url":"https://github.com/hyperledger","followers_url":"https://api.github.com/users/hyperledger/followers","following_url":"https://api.github.com/users/hyperledger/following{/other_user}","gists_url":"https://api.github.com/users/hyperledger/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperledger/subscriptions","organizations_url":"https://api.github.com/users/hyperledger/orgs","repos_url":"https://api.github.com/users/hyperledger/repos","events_url":"https://api.github.com/users/hyperledger/events{/privacy}","received_events_url":"https://api.github.com/users/hyperledger/received_events","type":"Organization","site_admin":false},"repo":{"id":51585028,"name":"indy-plenum","full_name":"hyperledger/indy-plenum","owner":{"login":"hyperledger","id":7657900,"avatar_url":"https://avatars2.githubusercontent.com/u/7657900?v=4","gravatar_id":"","url":"https://api.github.com/users/hyperledger","html_url":"https://github.com/hyperledger","followers_url":"https://api.github.com/users/hyperledger/followers","following_url":"https://api.github.com/users/hyperledger/following{/other_user}","gists_url":"https://api.github.com/users/hyperledger/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperledger/subscriptions","organizations_url":"https://api.github.com/users/hyperledger/orgs","repos_url":"https://api.github.com/users/hyperledger/repos","events_url":"https://api.github.com/users/hyperledger/events{/privacy}","received_events_url":"https://api.github.com/users/hyperledger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperledger/indy-plenum","description":"Plenum Byzantine Fault Tolerant Protocol","fork":false,"url":"https://api.github.com/repos/hyperledger/indy-plenum","forks_url":"https://api.github.com/repos/hyperledger/indy-plenum/forks","keys_url":"https://api.github.com/repos/hyperledger/indy-plenum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperledger/indy-plenum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperledger/indy-plenum/teams","hooks_url":"https://api.github.com/repos/hyperledger/indy-plenum/hooks","issue_events_url":"https://api.github.com/repos/hyperledger/indy-plenum/issues/events{/number}","events_url":"https://api.github.com/repos/hyperledger/indy-plenum/events","assignees_url":"https://api.github.com/repos/hyperledger/indy-plenum/assignees{/user}","branches_url":"https://api.github.com/repos/hyperledger/indy-plenum/branches{/branch}","tags_url":"https://api.github.com/repos/hyperledger/indy-plenum/tags","blobs_url":"https://api.github.com/repos/hyperledger/indy-plenum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperledger/indy-plenum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperledger/indy-plenum/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperledger/indy-plenum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperledger/indy-plenum/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperledger/indy-plenum/languages","stargazers_url":"https://api.github.com/repos/hyperledger/indy-plenum/stargazers","contributors_url":"https://api.github.com/repos/hyperledger/indy-plenum/contributors","subscribers_url":"https://api.github.com/repos/hyperledger/indy-plenum/subscribers","subscription_url":"https://api.github.com/repos/hyperledger/indy-plenum/subscription","commits_url":"https://api.github.com/repos/hyperledger/indy-plenum/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperledger/indy-plenum/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperledger/indy-plenum/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperledger/indy-plenum/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperledger/indy-plenum/contents/{+path}","compare_url":"https://api.github.com/repos/hyperledger/indy-plenum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperledger/indy-plenum/merges","archive_url":"https://api.github.com/repos/hyperledger/indy-plenum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperledger/indy-plenum/downloads","issues_url":"https://api.github.com/repos/hyperledger/indy-plenum/issues{/number}","pulls_url":"https://api.github.com/repos/hyperledger/indy-plenum/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperledger/indy-plenum/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperledger/indy-plenum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperledger/indy-plenum/labels{/name}","releases_url":"https://api.github.com/repos/hyperledger/indy-plenum/releases{/id}","deployments_url":"https://api.github.com/repos/hyperledger/indy-plenum/deployments","created_at":"2016-02-12T12:03:16Z","updated_at":"2018-04-19T14:35:40Z","pushed_at":"2018-04-19T15:17:32Z","git_url":"git://github.com/hyperledger/indy-plenum.git","ssh_url":"git@github.com:hyperledger/indy-plenum.git","clone_url":"https://github.com/hyperledger/indy-plenum.git","svn_url":"https://github.com/hyperledger/indy-plenum","homepage":"","size":8112,"stargazers_count":105,"watchers_count":105,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":129,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":129,"open_issues":11,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640"},"html":{"href":"https://github.com/hyperledger/indy-plenum/pull/640"},"issue":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/issues/640"},"comments":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/issues/640/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/pulls/640/commits"},"statuses":{"href":"https://api.github.com/repos/hyperledger/indy-plenum/statuses/bf23128e8dd02587bc6ae1fef1d99741b7b048f3"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ashcherbakov","id":21102430,"avatar_url":"https://avatars1.githubusercontent.com/u/21102430?v=4","gravatar_id":"","url":"https://api.github.com/users/ashcherbakov","html_url":"https://github.com/ashcherbakov","followers_url":"https://api.github.com/users/ashcherbakov/followers","following_url":"https://api.github.com/users/ashcherbakov/following{/other_user}","gists_url":"https://api.github.com/users/ashcherbakov/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcherbakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcherbakov/subscriptions","organizations_url":"https://api.github.com/users/ashcherbakov/orgs","repos_url":"https://api.github.com/users/ashcherbakov/repos","events_url":"https://api.github.com/users/ashcherbakov/events{/privacy}","received_events_url":"https://api.github.com/users/ashcherbakov/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":121,"deletions":43,"changed_files":3}}
{"actor":{"display_login":"ashcherbakov"}}