-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added README file to Resource Consumer #14645
Conversation
Unit, integration and GCE e2e test build/test passed for commit a0bcf64022ceef2e7f2d744012645a23ae7994ef. |
Labelling this PR as size/M |
Fine so far, but can you extend it a bit? E.g.:
|
What Resource Consumer is? |
Also some examples usage can be added, something like: |
PTAL |
Unit, integration and GCE e2e test build/test passed for commit bfbbe7000952a187198545d06020d379583996b5. |
@@ -0,0 +1,66 @@ | |||
# Resource Consumer container for testing | |||
|
|||
Resource Consumer is a tool for testing kubernetes autoscaling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would start with something like: a tool which allows to generate cpu/memory utilization ...
and then write something about the reason why it was created (testing autoscaling)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There seems to be one important limitation, that needs to be mentioned in this doc: one replica of consumer cannot consume more that 1 cpu. |
9066da1
to
d815736
Compare
Unit, integration and GCE e2e build/test failed for commit 2c3f2973cebb6b8df838e88bbcd285c5867e80aa. |
a2aeb81
to
c8ff218
Compare
PTAL |
Unit, integration and GCE e2e test build/test passed for commit e2ed18e52e4d9539b63cea6b89d6f36f2fdb1c4f. |
This is the last bunch of my comments, LGTM after they are applied. |
PTAL |
Unit, integration and GCE e2e build/test failed for commit 7069731bfddfb1c848d40d209a37bf57f91dbb60. |
Consume Memory uses stress tool (stress -m 1 --vm-bytes megabytes --vm-hang 0 -t durationSec). | ||
|
||
###CURL example | ||
* $ kubectl run resource-consumer --image=gcr.io/google_containers/resource_consumer:beta, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace items with:
xxx
LGTM |
PTAL |
Unit, integration and GCE e2e test build/test passed for commit 6726bac0e5cf34c4c9697fc051b23164e362de10. |
- parameters "megabytes" and "durationSec". | ||
|
||
Consumes specified amount of megabytes for durationSec seconds. | ||
Consume Memory uses stress tool (stress -m 1 --vm-bytes megabytes --vm-hang 0 -t durationSec). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its important to note some things that caught me by surprise when using this tool.
Specifically, the following:
- It is not possible to induce a SystemOOM event using this container.
- If you request more memory that what is available on the node, the request will be ignored completely, and no feeback is given to the user. This is a product of using the underlying
stress
tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@jszczepkowski - a simple way to consume more than 1 cpu on the node is to do the following:
In case you need it in the future. |
PTAL |
Unit, integration and GCE e2e test build/test passed for commit ce5d7d4. |
LGTM |
The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label? |
Automatic merge from submit-queue |
1 similar comment
Automatic merge from submit-queue |
Auto commit by PR queue bot
Part of #11570
@piosz