Commit Graph

30 Commits (fc927e8719496383f665aa59d51c06d89836cc48)

Author SHA1 Message Date
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
Prashanth Balasubramanian 831d7a36d0 Scrape /metrics of kubelets from e2e tests 2015-06-16 09:50:40 -07:00