{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2","id":44143738,"html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/2","diff_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/2.diff","patch_url":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/2.patch","issue_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/2","number":2,"state":"closed","locked":false,"title":"Benchmark client","user":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"body":"This PR includes\r\n- a Golang client for loading data and benchmarking Couchbase\r\n- a Docker-backed build for the benchmark client\r\n- a benchmark orchestration script to run the benchmark client containers against the Couchbase setup that results from running the start script in ./start.bash\r\n\r\n**Data loading**\r\n\r\nThe command `cbc-benchmark -load -i 1000000 -c 10` will fire up 10 goroutines and load 1million documents in the format:\r\n\r\n```\r\n{\r\n  \"key\": \"00000000000000000001\", // sequential IDs up to value of -i\r\n  \"map\": {\r\n    \"email\": \"00000000000000000001@joyent.com\",\r\n    \"name:\" \"[A-Za-z]{20}\", // random 20 character name\r\n}\r\n```\r\n\r\nDuring processing, the `-load` subcommand will output logs in the format:\r\n```\r\n2015/09/11 15:22:05 time,insert:00000000000000019112,1.088ms\r\n```\r\n\r\n**Indexing and View Creation**\r\n\r\nThe command `cbc-benchmark -index -i 1000000` will create indexes and views. This allows us to make a view queries and n1ql queries for an email address and get the ID and Name associated with that document.\r\n\r\nThe view is as follows:\r\n\r\n```json\r\n{\r\n  \"views\": {\r\n    \"byEmail\": {\r\n      \"map\": \"function (doc, meta) {emit(doc.email, [meta.id, doc.name]);}\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe indexes include a primary index and a GSI. The GSI is constructed so that the index around `email` is evenly distributed among all nodes. The indexes are as follows:\r\n\r\n```\r\nCREATE PRIMARY INDEX on benchmark;\r\nCREATE INDEX byEmail{0..X} ON benchmark(email) WHERE email >= '{0...N}@joyent.com' AND email < '{N...N2@joyent.com' WITH {\"nodes\": [\"ip.of.node.X:8091\"]}\"\r\n```\r\n\r\n**View Queries**\r\n\r\nThe command `cbc-benchmark -view -i 1000000 -c 10` will first create a view and then fire up 10 goroutines to query the `byEmail` view randomly within the range of valid IDs (up to `-i`). During processing, the `-view` subcommand will output logs in the format:\r\n```\r\n2015/09/11 15:22:05 time,viewQuery:00000000000000019112@joyent.com,311.088ms\r\n```\r\n\r\n**N1QL Queries**\r\n\r\nThe command `cbc-benchmark -n1ql -i 1000000 -c 10` will fire up 10 goroutines to query randomly within the range of valid IDs (up to `-i`). The query is as follows:\r\n```\r\nselect 'id', 'name' from benchmark where email='%v'\r\n\r\n```\r\n\r\nDuring processing, the `-n1ql` subcommand will output logs in the format:\r\n```\r\n2015/09/11 15:22:05 time,n1qlQuery:00000000000000019112@joyent.com,311.088ns\r\n```\r\n\r\n**Obtaining cluster-wide metrics**\r\n\r\n(TODO)\r\n\r\ncc @misterbisson @max123","created_at":"2015-09-03T18:57:04Z","updated_at":"2015-09-17T17:24:31Z","closed_at":"2015-09-17T17:24:31Z","merged_at":"2015-09-17T17:24:31Z","merge_commit_sha":"a8f84833ae35a9856aa53abd3e7fdaf23eb0404a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2/commits","review_comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2/comments","review_comment_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/2/comments","statuses_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/313294d9bbc8e1bea5fa6a6717aa045f75103521","head":{"label":"tgross:test_client","ref":"test_client","sha":"313294d9bbc8e1bea5fa6a6717aa045f75103521","user":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"repo":{"id":41814809,"name":"clustered-couchbase-in-containers","full_name":"tgross/clustered-couchbase-in-containers","owner":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tgross/clustered-couchbase-in-containers","description":"","fork":true,"url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers","forks_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/forks","keys_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/teams","hooks_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/hooks","issue_events_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/issues/events{/number}","events_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/events","assignees_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/assignees{/user}","branches_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/branches{/branch}","tags_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/tags","blobs_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/languages","stargazers_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/stargazers","contributors_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/contributors","subscribers_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/subscribers","subscription_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/subscription","commits_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/contents/{+path}","compare_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/merges","archive_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/downloads","issues_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/issues{/number}","pulls_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/labels{/name}","releases_url":"https://api.github.com/repos/tgross/clustered-couchbase-in-containers/releases{/id}","created_at":"2015-09-02T17:12:27Z","updated_at":"2015-09-02T17:12:27Z","pushed_at":"2015-09-17T13:56:58Z","git_url":"git://github.com/tgross/clustered-couchbase-in-containers.git","ssh_url":"git@github.com:tgross/clustered-couchbase-in-containers.git","clone_url":"https://github.com/tgross/clustered-couchbase-in-containers.git","svn_url":"https://github.com/tgross/clustered-couchbase-in-containers","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"misterbisson:cbiswebscale","ref":"cbiswebscale","sha":"86b45b12e0297134c857e30d6aa5af28a2595bca","user":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"repo":{"id":32592517,"name":"clustered-couchbase-in-containers","full_name":"misterbisson/clustered-couchbase-in-containers","owner":{"login":"misterbisson","id":1709697,"avatar_url":"https://avatars.githubusercontent.com/u/1709697?v=3","gravatar_id":"","url":"https://api.github.com/users/misterbisson","html_url":"https://github.com/misterbisson","followers_url":"https://api.github.com/users/misterbisson/followers","following_url":"https://api.github.com/users/misterbisson/following{/other_user}","gists_url":"https://api.github.com/users/misterbisson/gists{/gist_id}","starred_url":"https://api.github.com/users/misterbisson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterbisson/subscriptions","organizations_url":"https://api.github.com/users/misterbisson/orgs","repos_url":"https://api.github.com/users/misterbisson/repos","events_url":"https://api.github.com/users/misterbisson/events{/privacy}","received_events_url":"https://api.github.com/users/misterbisson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","description":"","fork":false,"url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers","forks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/forks","keys_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/teams","hooks_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/hooks","issue_events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/events{/number}","events_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/events","assignees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/assignees{/user}","branches_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/branches{/branch}","tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/tags","blobs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/languages","stargazers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/stargazers","contributors_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contributors","subscribers_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscribers","subscription_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/subscription","commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/contents/{+path}","compare_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/merges","archive_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/downloads","issues_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues{/number}","pulls_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/labels{/name}","releases_url":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/releases{/id}","created_at":"2015-03-20T15:45:13Z","updated_at":"2015-08-29T00:30:02Z","pushed_at":"2015-09-17T17:24:31Z","git_url":"git://github.com/misterbisson/clustered-couchbase-in-containers.git","ssh_url":"git@github.com:misterbisson/clustered-couchbase-in-containers.git","clone_url":"https://github.com/misterbisson/clustered-couchbase-in-containers.git","svn_url":"https://github.com/misterbisson/clustered-couchbase-in-containers","homepage":null,"size":602,"stargazers_count":3,"watchers_count":3,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2"},"html":{"href":"https://github.com/misterbisson/clustered-couchbase-in-containers/pull/2"},"issue":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/2"},"comments":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/misterbisson/clustered-couchbase-in-containers/statuses/313294d9bbc8e1bea5fa6a6717aa045f75103521"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tgross","id":1409219,"avatar_url":"https://avatars.githubusercontent.com/u/1409219?v=3","gravatar_id":"","url":"https://api.github.com/users/tgross","html_url":"https://github.com/tgross","followers_url":"https://api.github.com/users/tgross/followers","following_url":"https://api.github.com/users/tgross/following{/other_user}","gists_url":"https://api.github.com/users/tgross/gists{/gist_id}","starred_url":"https://api.github.com/users/tgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgross/subscriptions","organizations_url":"https://api.github.com/users/tgross/orgs","repos_url":"https://api.github.com/users/tgross/repos","events_url":"https://api.github.com/users/tgross/events{/privacy}","received_events_url":"https://api.github.com/users/tgross/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"commits":36,"additions":269,"deletions":14,"changed_files":7}}