{"action":"created","comment":{"url":"https://api.github.com/repos/cloudposse/docs/pulls/comments/190780207","pull_request_review_id":123231733,"id":190780207,"diff_hunk":"@@ -0,0 +1,64 @@\n+---\n+title: \"Load Testing Scenarios\"\n+weight: 2\n+---\n+\n+{{% dialog type=\"info\" icon=\"fa-info-circle\" title=\"Note\" %}}\n+All load testing scenarios described here are just examples and are provided for reference.\n+Consider updating them to reflect your environment.\n+{{% /dialog %}}\n+\n+\n+All our load testing scripts use the utility module `utils.js`, which provides a set of reusable structures and functions.\n+\n+{{% include-github org=\"cloudposse\" repo=\"load-testing\" ref=\"master\" file=\"scenarios/utils.js\" title=\"Load Testing Utilities Module\" language=\"js\" type=\"code-block\" %}}\n+\n+To establish a baseline, first we'll load test the website's home page with one concurrent user.\n+\n+This will allow us to see the best performing numbers, against which we'd compare more advanced scenarious involving more pages and more concurrent users.\n+\n+We created this simple script to load test the home page of a website:\n+\n+{{% include-github org=\"cloudposse\" repo=\"load-testing\" ref=\"master\" file=\"scenarios/scenario_01.js\" title=\"Load Testing Scenario 1\" language=\"js\" type=\"code-block\" %}}\n+\n+Run the test\n+\n+```sh\n+docker-compose run -v $PWD/scenarios:/scenarios k6 run --vus 1 /scenarios/scenario_01.js\n+```\n+\n+{{% include-code-block title=\"k6 run scenario_01 1 user 1 iteration\" file=\"load-testing/examples/k6_run_scenario_01_1_user_1_iteration.txt\" %}}\n+\n+","path":"content/load-testing/load-testing-scenarios.md","position":32,"original_position":32,"commit_id":"30802a599461e90da4738d997c83f48be71a30d6","original_commit_id":"30802a599461e90da4738d997c83f48be71a30d6","user":{"login":"osterman","id":52489,"avatar_url":"https://avatars3.githubusercontent.com/u/52489?v=4","gravatar_id":"","url":"https://api.github.com/users/osterman","html_url":"https://github.com/osterman","followers_url":"https://api.github.com/users/osterman/followers","following_url":"https://api.github.com/users/osterman/following{/other_user}","gists_url":"https://api.github.com/users/osterman/gists{/gist_id}","starred_url":"https://api.github.com/users/osterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osterman/subscriptions","organizations_url":"https://api.github.com/users/osterman/orgs","repos_url":"https://api.github.com/users/osterman/repos","events_url":"https://api.github.com/users/osterman/events{/privacy}","received_events_url":"https://api.github.com/users/osterman/received_events","type":"User","site_admin":false},"body":"# Review Results","created_at":"2018-05-25T02:56:44Z","updated_at":"2018-05-25T02:56:44Z","html_url":"https://github.com/cloudposse/docs/pull/86#discussion_r190780207","pull_request_url":"https://api.github.com/repos/cloudposse/docs/pulls/86","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/comments/190780207"},"html":{"href":"https://github.com/cloudposse/docs/pull/86#discussion_r190780207"},"pull_request":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/cloudposse/docs/pulls/86","id":190374195,"html_url":"https://github.com/cloudposse/docs/pull/86","diff_url":"https://github.com/cloudposse/docs/pull/86.diff","patch_url":"https://github.com/cloudposse/docs/pull/86.patch","issue_url":"https://api.github.com/repos/cloudposse/docs/issues/86","number":86,"state":"open","locked":false,"title":"Add `load-testing` docs","user":{"login":"aknysh","id":7356997,"avatar_url":"https://avatars0.githubusercontent.com/u/7356997?v=4","gravatar_id":"","url":"https://api.github.com/users/aknysh","html_url":"https://github.com/aknysh","followers_url":"https://api.github.com/users/aknysh/followers","following_url":"https://api.github.com/users/aknysh/following{/other_user}","gists_url":"https://api.github.com/users/aknysh/gists{/gist_id}","starred_url":"https://api.github.com/users/aknysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknysh/subscriptions","organizations_url":"https://api.github.com/users/aknysh/orgs","repos_url":"https://api.github.com/users/aknysh/repos","events_url":"https://api.github.com/users/aknysh/events{/privacy}","received_events_url":"https://api.github.com/users/aknysh/received_events","type":"User","site_admin":false},"body":"## what\r\n* Add `load-testing` docs\r\n\r\n## why\r\n* Describe best practices, workflows, scripts and scenarios that Cloud Posse uses for load and performance testing of websites and applications (in particular those deployed on Kubernetes clusters)","created_at":"2018-05-24T18:04:50Z","updated_at":"2018-05-25T02:56:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4383af071163b04074c4066ffd6992b7752d2832","assignee":{"login":"aknysh","id":7356997,"avatar_url":"https://avatars0.githubusercontent.com/u/7356997?v=4","gravatar_id":"","url":"https://api.github.com/users/aknysh","html_url":"https://github.com/aknysh","followers_url":"https://api.github.com/users/aknysh/followers","following_url":"https://api.github.com/users/aknysh/following{/other_user}","gists_url":"https://api.github.com/users/aknysh/gists{/gist_id}","starred_url":"https://api.github.com/users/aknysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknysh/subscriptions","organizations_url":"https://api.github.com/users/aknysh/orgs","repos_url":"https://api.github.com/users/aknysh/repos","events_url":"https://api.github.com/users/aknysh/events{/privacy}","received_events_url":"https://api.github.com/users/aknysh/received_events","type":"User","site_admin":false},"assignees":[{"login":"aknysh","id":7356997,"avatar_url":"https://avatars0.githubusercontent.com/u/7356997?v=4","gravatar_id":"","url":"https://api.github.com/users/aknysh","html_url":"https://github.com/aknysh","followers_url":"https://api.github.com/users/aknysh/followers","following_url":"https://api.github.com/users/aknysh/following{/other_user}","gists_url":"https://api.github.com/users/aknysh/gists{/gist_id}","starred_url":"https://api.github.com/users/aknysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknysh/subscriptions","organizations_url":"https://api.github.com/users/aknysh/orgs","repos_url":"https://api.github.com/users/aknysh/repos","events_url":"https://api.github.com/users/aknysh/events{/privacy}","received_events_url":"https://api.github.com/users/aknysh/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"sarkis","id":42673,"avatar_url":"https://avatars1.githubusercontent.com/u/42673?v=4","gravatar_id":"","url":"https://api.github.com/users/sarkis","html_url":"https://github.com/sarkis","followers_url":"https://api.github.com/users/sarkis/followers","following_url":"https://api.github.com/users/sarkis/following{/other_user}","gists_url":"https://api.github.com/users/sarkis/gists{/gist_id}","starred_url":"https://api.github.com/users/sarkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarkis/subscriptions","organizations_url":"https://api.github.com/users/sarkis/orgs","repos_url":"https://api.github.com/users/sarkis/repos","events_url":"https://api.github.com/users/sarkis/events{/privacy}","received_events_url":"https://api.github.com/users/sarkis/received_events","type":"User","site_admin":false},{"login":"goruha","id":496956,"avatar_url":"https://avatars1.githubusercontent.com/u/496956?v=4","gravatar_id":"","url":"https://api.github.com/users/goruha","html_url":"https://github.com/goruha","followers_url":"https://api.github.com/users/goruha/followers","following_url":"https://api.github.com/users/goruha/following{/other_user}","gists_url":"https://api.github.com/users/goruha/gists{/gist_id}","starred_url":"https://api.github.com/users/goruha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goruha/subscriptions","organizations_url":"https://api.github.com/users/goruha/orgs","repos_url":"https://api.github.com/users/goruha/repos","events_url":"https://api.github.com/users/goruha/events{/privacy}","received_events_url":"https://api.github.com/users/goruha/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudposse/docs/pulls/86/commits","review_comments_url":"https://api.github.com/repos/cloudposse/docs/pulls/86/comments","review_comment_url":"https://api.github.com/repos/cloudposse/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudposse/docs/issues/86/comments","statuses_url":"https://api.github.com/repos/cloudposse/docs/statuses/30802a599461e90da4738d997c83f48be71a30d6","head":{"label":"cloudposse:add-load-testing-docs","ref":"add-load-testing-docs","sha":"30802a599461e90da4738d997c83f48be71a30d6","user":{"login":"cloudposse","id":16398900,"avatar_url":"https://avatars2.githubusercontent.com/u/16398900?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudposse","html_url":"https://github.com/cloudposse","followers_url":"https://api.github.com/users/cloudposse/followers","following_url":"https://api.github.com/users/cloudposse/following{/other_user}","gists_url":"https://api.github.com/users/cloudposse/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudposse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudposse/subscriptions","organizations_url":"https://api.github.com/users/cloudposse/orgs","repos_url":"https://api.github.com/users/cloudposse/repos","events_url":"https://api.github.com/users/cloudposse/events{/privacy}","received_events_url":"https://api.github.com/users/cloudposse/received_events","type":"Organization","site_admin":false},"repo":{"id":131331275,"name":"docs","full_name":"cloudposse/docs","owner":{"login":"cloudposse","id":16398900,"avatar_url":"https://avatars2.githubusercontent.com/u/16398900?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudposse","html_url":"https://github.com/cloudposse","followers_url":"https://api.github.com/users/cloudposse/followers","following_url":"https://api.github.com/users/cloudposse/following{/other_user}","gists_url":"https://api.github.com/users/cloudposse/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudposse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudposse/subscriptions","organizations_url":"https://api.github.com/users/cloudposse/orgs","repos_url":"https://api.github.com/users/cloudposse/repos","events_url":"https://api.github.com/users/cloudposse/events{/privacy}","received_events_url":"https://api.github.com/users/cloudposse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudposse/docs","description":"Cloud Posse Developer Hub. Complete documentation for the Cloud Posse solution (docs.cloudposse.com). ","fork":false,"url":"https://api.github.com/repos/cloudposse/docs","forks_url":"https://api.github.com/repos/cloudposse/docs/forks","keys_url":"https://api.github.com/repos/cloudposse/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudposse/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudposse/docs/teams","hooks_url":"https://api.github.com/repos/cloudposse/docs/hooks","issue_events_url":"https://api.github.com/repos/cloudposse/docs/issues/events{/number}","events_url":"https://api.github.com/repos/cloudposse/docs/events","assignees_url":"https://api.github.com/repos/cloudposse/docs/assignees{/user}","branches_url":"https://api.github.com/repos/cloudposse/docs/branches{/branch}","tags_url":"https://api.github.com/repos/cloudposse/docs/tags","blobs_url":"https://api.github.com/repos/cloudposse/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudposse/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudposse/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudposse/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudposse/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudposse/docs/languages","stargazers_url":"https://api.github.com/repos/cloudposse/docs/stargazers","contributors_url":"https://api.github.com/repos/cloudposse/docs/contributors","subscribers_url":"https://api.github.com/repos/cloudposse/docs/subscribers","subscription_url":"https://api.github.com/repos/cloudposse/docs/subscription","commits_url":"https://api.github.com/repos/cloudposse/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudposse/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudposse/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudposse/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudposse/docs/contents/{+path}","compare_url":"https://api.github.com/repos/cloudposse/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudposse/docs/merges","archive_url":"https://api.github.com/repos/cloudposse/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudposse/docs/downloads","issues_url":"https://api.github.com/repos/cloudposse/docs/issues{/number}","pulls_url":"https://api.github.com/repos/cloudposse/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudposse/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudposse/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudposse/docs/labels{/name}","releases_url":"https://api.github.com/repos/cloudposse/docs/releases{/id}","deployments_url":"https://api.github.com/repos/cloudposse/docs/deployments","created_at":"2018-04-27T18:23:32Z","updated_at":"2018-05-24T02:29:40Z","pushed_at":"2018-05-25T01:45:44Z","git_url":"git://github.com/cloudposse/docs.git","ssh_url":"git@github.com:cloudposse/docs.git","clone_url":"https://github.com/cloudposse/docs.git","svn_url":"https://github.com/cloudposse/docs","homepage":"https://docs.cloudposse.com/","size":21382,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1,"open_issues":31,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudposse:master","ref":"master","sha":"e52dea911138fa5e9add154b1c1e3cdba6db9b29","user":{"login":"cloudposse","id":16398900,"avatar_url":"https://avatars2.githubusercontent.com/u/16398900?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudposse","html_url":"https://github.com/cloudposse","followers_url":"https://api.github.com/users/cloudposse/followers","following_url":"https://api.github.com/users/cloudposse/following{/other_user}","gists_url":"https://api.github.com/users/cloudposse/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudposse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudposse/subscriptions","organizations_url":"https://api.github.com/users/cloudposse/orgs","repos_url":"https://api.github.com/users/cloudposse/repos","events_url":"https://api.github.com/users/cloudposse/events{/privacy}","received_events_url":"https://api.github.com/users/cloudposse/received_events","type":"Organization","site_admin":false},"repo":{"id":131331275,"name":"docs","full_name":"cloudposse/docs","owner":{"login":"cloudposse","id":16398900,"avatar_url":"https://avatars2.githubusercontent.com/u/16398900?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudposse","html_url":"https://github.com/cloudposse","followers_url":"https://api.github.com/users/cloudposse/followers","following_url":"https://api.github.com/users/cloudposse/following{/other_user}","gists_url":"https://api.github.com/users/cloudposse/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudposse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudposse/subscriptions","organizations_url":"https://api.github.com/users/cloudposse/orgs","repos_url":"https://api.github.com/users/cloudposse/repos","events_url":"https://api.github.com/users/cloudposse/events{/privacy}","received_events_url":"https://api.github.com/users/cloudposse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudposse/docs","description":"Cloud Posse Developer Hub. Complete documentation for the Cloud Posse solution (docs.cloudposse.com). ","fork":false,"url":"https://api.github.com/repos/cloudposse/docs","forks_url":"https://api.github.com/repos/cloudposse/docs/forks","keys_url":"https://api.github.com/repos/cloudposse/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudposse/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudposse/docs/teams","hooks_url":"https://api.github.com/repos/cloudposse/docs/hooks","issue_events_url":"https://api.github.com/repos/cloudposse/docs/issues/events{/number}","events_url":"https://api.github.com/repos/cloudposse/docs/events","assignees_url":"https://api.github.com/repos/cloudposse/docs/assignees{/user}","branches_url":"https://api.github.com/repos/cloudposse/docs/branches{/branch}","tags_url":"https://api.github.com/repos/cloudposse/docs/tags","blobs_url":"https://api.github.com/repos/cloudposse/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudposse/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudposse/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudposse/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudposse/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudposse/docs/languages","stargazers_url":"https://api.github.com/repos/cloudposse/docs/stargazers","contributors_url":"https://api.github.com/repos/cloudposse/docs/contributors","subscribers_url":"https://api.github.com/repos/cloudposse/docs/subscribers","subscription_url":"https://api.github.com/repos/cloudposse/docs/subscription","commits_url":"https://api.github.com/repos/cloudposse/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudposse/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudposse/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudposse/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudposse/docs/contents/{+path}","compare_url":"https://api.github.com/repos/cloudposse/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudposse/docs/merges","archive_url":"https://api.github.com/repos/cloudposse/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudposse/docs/downloads","issues_url":"https://api.github.com/repos/cloudposse/docs/issues{/number}","pulls_url":"https://api.github.com/repos/cloudposse/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudposse/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudposse/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudposse/docs/labels{/name}","releases_url":"https://api.github.com/repos/cloudposse/docs/releases{/id}","deployments_url":"https://api.github.com/repos/cloudposse/docs/deployments","created_at":"2018-04-27T18:23:32Z","updated_at":"2018-05-24T02:29:40Z","pushed_at":"2018-05-25T01:45:44Z","git_url":"git://github.com/cloudposse/docs.git","ssh_url":"git@github.com:cloudposse/docs.git","clone_url":"https://github.com/cloudposse/docs.git","svn_url":"https://github.com/cloudposse/docs","homepage":"https://docs.cloudposse.com/","size":21382,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/86"},"html":{"href":"https://github.com/cloudposse/docs/pull/86"},"issue":{"href":"https://api.github.com/repos/cloudposse/docs/issues/86"},"comments":{"href":"https://api.github.com/repos/cloudposse/docs/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudposse/docs/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/cloudposse/docs/statuses/30802a599461e90da4738d997c83f48be71a30d6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"osterman"}}