{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/32079431","id":32079431,"diff_hunk":"@@ -0,0 +1,293 @@\n+/*\n+Copyright 2015 The Kubernetes Authors All rights reserved.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+/*\n+This soak tests places a specified number of pods on each node and then\n+repeatedly sends queries to a service running on these pods via\n+a service.\n+*/\n+\n+package main\n+\n+import (\n+\t\"flag\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"net/http\"\n+\t\"time\"\n+\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/api\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/client\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/fields\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/labels\"\n+\t\"github.com/GoogleCloudPlatform/kubernetes/pkg/util\"\n+\t\"github.com/golang/glog\"\n+)\n+\n+var (\n+\tqueriesAverage = flag.Int(\"queries\", 100, \"Number of hostname queries to make in each iteration per pod on average\")\n+\tpodsPerNode    = flag.Int(\"pods_per_node\", 1, \"Number of serve_hostname pods per node\")\n+\tupTo           = flag.Int(\"up_to\", -1, \"Number of iterations or -1 for no limit\")\n+\tmaxPar         = flag.Int(\"max_par\", 100, \"Maximum number of queries in flight\")","path":"test/soak/cauldron/cauldron.go","position":44,"original_position":44,"commit_id":"4895621fe8a4e43f6675636c41e879fa0efb35a8","original_commit_id":"4895621fe8a4e43f6675636c41e879fa0efb35a8","user":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"body":"max_in_flight?","created_at":"2015-06-10T00:32:53Z","updated_at":"2015-06-10T00:32:53Z","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530#discussion_r32079431","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments/32079431"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530#discussion_r32079431"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530","id":37310366,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530","diff_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530.diff","patch_url":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9530","number":9530,"state":"open","locked":false,"title":"Cauldron soak test","user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"body":"The current version of this soak test does roughly the same as the serve_hostnames soak test except it is run as a pod on the cluster rather than on a client machine outside the cluster. The objective is to evolve this test to use an RC and then randomly kill/add pods. But for now, I'd like to check in this version which is geared more towards checking node stability.","created_at":"2015-06-09T23:14:32Z","updated_at":"2015-06-10T00:32:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"250d38d16829e419a54cb4fe22c7cfe4d77808dc","assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9530/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/4895621fe8a4e43f6675636c41e879fa0efb35a8","head":{"label":"satnam6502:cauldron","ref":"cauldron","sha":"4895621fe8a4e43f6675636c41e879fa0efb35a8","user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"repo":{"id":23904068,"name":"kubernetes","full_name":"satnam6502/kubernetes","owner":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/satnam6502/kubernetes","description":"Container Cluster Manager","fork":true,"url":"https://api.github.com/repos/satnam6502/kubernetes","forks_url":"https://api.github.com/repos/satnam6502/kubernetes/forks","keys_url":"https://api.github.com/repos/satnam6502/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/satnam6502/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/satnam6502/kubernetes/teams","hooks_url":"https://api.github.com/repos/satnam6502/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/satnam6502/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/satnam6502/kubernetes/events","assignees_url":"https://api.github.com/repos/satnam6502/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/satnam6502/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/satnam6502/kubernetes/tags","blobs_url":"https://api.github.com/repos/satnam6502/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/satnam6502/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/satnam6502/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/satnam6502/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/satnam6502/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/satnam6502/kubernetes/languages","stargazers_url":"https://api.github.com/repos/satnam6502/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/satnam6502/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/satnam6502/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/satnam6502/kubernetes/subscription","commits_url":"https://api.github.com/repos/satnam6502/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/satnam6502/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/satnam6502/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/satnam6502/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/satnam6502/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/satnam6502/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/satnam6502/kubernetes/merges","archive_url":"https://api.github.com/repos/satnam6502/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/satnam6502/kubernetes/downloads","issues_url":"https://api.github.com/repos/satnam6502/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/satnam6502/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/satnam6502/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/satnam6502/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/satnam6502/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/satnam6502/kubernetes/releases{/id}","created_at":"2014-09-11T04:27:10Z","updated_at":"2015-04-30T01:24:31Z","pushed_at":"2015-06-10T00:22:25Z","git_url":"git://github.com/satnam6502/kubernetes.git","ssh_url":"git@github.com:satnam6502/kubernetes.git","clone_url":"https://github.com/satnam6502/kubernetes.git","svn_url":"https://github.com/satnam6502/kubernetes","homepage":null,"size":64228,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"f62a2a1bb63ee63887e1192f39efed82e1d75aaf","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"GoogleCloudPlatform/kubernetes","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/kubernetes","description":"Container Cluster Manager from Google","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/releases{/id}","created_at":"2014-06-06T22:56:04Z","updated_at":"2015-06-09T23:55:44Z","pushed_at":"2015-06-10T00:31:03Z","git_url":"git://github.com/GoogleCloudPlatform/kubernetes.git","ssh_url":"git@github.com:GoogleCloudPlatform/kubernetes.git","clone_url":"https://github.com/GoogleCloudPlatform/kubernetes.git","svn_url":"https://github.com/GoogleCloudPlatform/kubernetes","homepage":"http://kubernetes.io","size":261571,"stargazers_count":8200,"watchers_count":8200,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1756,"mirror_url":null,"open_issues_count":1325,"forks":1756,"open_issues":1325,"watchers":8200,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530"},"html":{"href":"https://github.com/GoogleCloudPlatform/kubernetes/pull/9530"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9530"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/9530/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/pulls/9530/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/statuses/4895621fe8a4e43f6675636c41e879fa0efb35a8"}}}}