Commit Graph

51 Commits (9bfa27a5bfb9739c7d66ce79f67920c3b5791f83)

Author SHA1 Message Date
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
feihujiang e85253916f Support the subresource of node proxy 2016-02-16 17:02:45 +08:00
Yu-Ju Hong 082da18e8a e2e: change memory fields to use unit64 2016-02-12 13:19:12 -08:00
Yu-Ju Hong 715ea4c8b1 e2e: checking RSS memory for daemons 2016-02-12 13:16:27 -08:00
Jan Chaloupka 4389b3f0d6 Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00
Tim St. Clair 368447ff3f Rector kubelet stats serving
Changes include:
- Moving stats serving & routes to pkg/kubelet/server/stats/handler.go
- Managing the routes with restful.WebService, rather than manual
parsing
- Misc cleanup

These changes will make adding the new routes for /stats/summary more
manageable.
2016-01-06 17:37:12 -08:00
gmarek 1df78a2398 Add a framework for multiple writers for various test data summaries 2015-12-29 10:26:44 +01:00
k8s-merge-robot 0f144fd351 Merge pull request #18529 from timstclair/server
Auto commit by PR queue bot
2015-12-17 04:27:11 -08:00
k8s-merge-robot 4a9922c900 Merge pull request #18509 from gmarek/fix-e2e-pd
Auto commit by PR queue bot
2015-12-17 02:06:23 -08:00
Tim St. Clair 89bc7992f9 Refactor kubelet server into its own package
Refactor Kubelet's server functionality into a server package. Most
notably, move pkg/kubelet/server.go into
pkg/kubelet/server/server.go. This will lead to better separation of
concerns and a more readable code hierarchy.
2015-12-15 10:20:38 -08:00
Tim St. Clair 2e6ef04aeb Don't record the same stat point multiple times 2015-12-14 17:48:01 -08:00
gmarek f38455ddc3 Update e2e tests to list only schedulable nodes, to make them work with master Node registered. 2015-12-14 16:28:23 +01:00
Wojciech Tyczynski 960808bf08 Switch to versioned ListOptions in client. 2015-12-14 14:26:09 +01:00
k8s-merge-robot 9067833a31 Merge pull request #18382 from yujuhong/resource_usage
Auto commit by PR queue bot
2015-12-13 21:23:29 -08:00
Yu-Ju Hong 7e8f4d831d e2e: set expected cpu usage upper bounds
Fail the test if the actual cpu usage is greater than expected.
2015-12-11 10:12:26 -08:00
gmarek 217149c199 Tweak constants in monitor_resources test 2015-12-08 13:46:27 +01:00
gmarek bdfcf9bec0 Increase a interval during which we gather add-on resource usage to decrase variability 2015-12-03 11:13:35 +01:00
Wojciech Tyczynski 6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
k8s-merge-robot ac68536d44 Merge pull request #17832 from wojtek-t/list_options_in_list
Auto commit by PR queue bot
2015-12-02 02:34:17 -08:00
Wojciech Tyczynski 8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
gmarek fa4f04e176 Add a validation step to add-on resource monitoring 2015-12-01 14:01:14 +01:00
Mike Danese 65b8d43543 remove code that puts kube-proxy into a special cgroup since it runs in a container now 2015-11-23 10:20:58 -08:00
Wojciech Tyczynski d22592b1f8 Fix panics in Density test 2015-11-03 09:04:54 +01:00
gmarek cfe391d4ee Add resource monitoring of kube-system pods 2015-11-02 13:35:50 +01:00
Filip Grzadkowski 295d28e101 Merge pull request #15986 from yujuhong/mem_inuse
e2e: change resource monitor to log memory working set
2015-10-22 14:49:18 +02:00
Yu-Ju Hong 4a9ab92cdb e2e: change resource monitor to log memory working set
This is more representative than memory usage.
2015-10-20 15:54:43 -07:00
Justin Santa Barbara 67d3a93166 Fix misc typos
Mostly in comments, but also renamed the (test) function
migUdpateCmdBase -> migUpdateCmdBase.
2015-10-20 05:52:45 -04:00
eulerzgy 31c09bdcb8 Del capatical local packagename for cadvisorApi 2015-10-16 11:03:50 +08:00
Tim St. Clair 8d49c8e29a Update prometheus libraries to new versions. 2015-10-06 12:56:14 -07:00
Yu-Ju Hong d19329aa6b Add clarity and fix bugs for kubelet e2e test 2015-09-25 18:22:24 -07:00
Yu-Ju Hong 0b8244505c Add a slow e2e test to monitor kubelet resource usage
This test tracks kubelet resource usage over a long period of time (1hr)
when running N pods (e.g., N=0,50), and prints out the resource usage. This
would give us an idea how much kubelet's management overhead is in a stable
cluster.

Some followup items:
 * Use a more realistic workload (e.g., including probing)
 * Fail the test if the resource usage is too high.

Caveat:
 * We assume the scheduler would do a decent job distributing the pause pods,
   but we should double check.
 * Cluster addon pods could be unevenly distributed and skews the resource
   usage on nodes.
2015-09-23 18:22:20 -07:00
Yu-Ju Hong ab85b9a7d6 e2e: add a function to reset the stats in resource monitor
The function can be called in a long-running test to clear exsiting
stats (free the memory), and start over.
2015-09-23 17:55:12 -07:00
Dr. Stefan Schimanski 643a7f193a Assume full cgroup hierarchy only on gce and gke for e2e tests
Other cluster provider than gce or gke might have different cgroup layouts.
From outside we cannot know how these look like (especially in conformance test
which do not know the cluster provider at all).

Hence, this PR defaults to only the "/" cgroup to collect stats for. In the case
of gce or gke the full container list is tested.

Fixes https://github.com/mesosphere/kubernetes-mesos/issues/436
2015-09-23 16:52:56 +02:00
Marek Grabowski 98a971cc2e Revert "Update prometheus library usage" 2015-09-19 22:18:15 +02:00
Tim St. Clair 3a94f3b5c2 Use up-to-date prometheus extraction libraries 2015-09-18 14:38:44 -07:00
tummychow 78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Kris Rousey ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
gmarek bc8565d55e Add e2e test monitoring current container resource usage with updated
constants.

This reverts commit 1f7ea4f08e.
2015-08-11 09:16:14 +02:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Satnam Singh 1f7ea4f08e Revert "Add e2e test monitoring current container resource usage" 2015-08-07 22:40:15 -07:00
gmarek 1c22fd39ff Add e2e test monitoring current container resource usage.wq 2015-08-07 10:27:00 +02:00
Mike Danese 17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Alex Mohr 1b6089a783 Merge pull request #11196 from yujuhong/resource_monitor
Auto commit by PR queue bot
2015-08-04 18:06:18 -07:00
Yu-Ju Hong 12a252bd8b e2e: add resourceMontior to poll resource usages on the nodes
This change adds resourceMontior, which spawns a goroutine per node to poll the
container stats for known, relevant containers, computes the resource usage and
stores the data. Users can then examine the data in the buffer to get resource
of each individual containers.
2015-07-24 15:13:36 -07:00
Tim St. Clair a244357ccd Use prometheus extraction library for metric parsing in e2e tests 2015-07-24 10:28:46 -07:00
Yu-Ju Hong 378a44a287 e2e: query kubelet for resource usage of containers
This change adds simple utility functions to query kubelet for the resource
usage of major containers (e.g. /kubelet, /docker-daemon, etc) for the past
time interval (up to 2 minutes). This is intended for spot checking of the
recent resource usage on the node.
2015-07-20 14:26:33 -07:00
Prashanth Balasubramanian b0bbd5b8d5 Don't ignore containers restarting during tests 2015-07-06 18:36:59 -07:00
Yu-Ju Hong a10a6a296e Add an e2e test to verify that pods are deleted on nodes
The test verifies that kubelet deletes the pods/containers within a reasonable
time. It queries the kubelet /runningpods endpoint to retrieve a list of
running pods directly. The outline of the test is:

 - Create an RC
 - Wait until all pods are running (based on the pod status)
 - Verify pods are running by querying the /runningpods
 - Delete the RC
 - Check all pods are deleted by querying /runningpods
2015-07-01 16:24:58 -07:00
Prashanth Balasubramanian cca4b720e5 Scrape latency stats from integration tests 2015-06-25 12:01:31 -07:00