Skip to content
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

Add possibility to configure the desired size of the instance volume #175

Conversation

cynepco3hahue
Copy link
Contributor

It possible the situation when 16Gb is not enough, to run all needed workloads,
in this situatution the node will have DiskPressure condition and will start
to evict pods from it. We want to prevent such situations and make instance volume
size configurable.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 10, 2019
@cynepco3hahue cynepco3hahue changed the title Add possibility to provider the desired size of the instance volume Add possibility to configure the desired size of the instance volume Sep 10, 2019
It possible the situation when 16Gb is not enough, to run all needed workloads,
in this situatution the node will have DiskPressure condition and will start
to evict pods from it. We want to prevent such situations and make instance volume
size configurable.
@zeenix
Copy link
Contributor

zeenix commented Sep 10, 2019

@cynepco3hahue Wouldn't this also require changes in Installer?

@cynepco3hahue
Copy link
Contributor Author

cynepco3hahue commented Sep 10, 2019

@zeenix It will only affect workers, for masters I hardcoded size value under the terraform main.tf file,

--- a/data/data/libvirt/main.tf
+++ b/data/data/libvirt/main.tf
@@ -23,6 +23,7 @@ resource "libvirt_volume" "master" {
   count          = "${var.master_count}"
   name           = "${var.cluster_id}-master-${count.index}"
   base_volume_id = "${module.volume.coreos_base_volume_id}"
+  size           = 32212254720
 }

I think if installer guys will not be versus it, I can create the installer PR as well, to be honest it is interesting what the default value for volume size under the AWS.

@zeenix
Copy link
Contributor

zeenix commented Sep 10, 2019

I think if installer guys will not be versus it, I can create the installer PR as well, to be honest it is interesting what the default valud for volume size under the AWS.

openshift/installer#2111 (comment)

@cynepco3hahue
Copy link
Contributor Author

@zeenix Can we merge it?

@cynepco3hahue
Copy link
Contributor Author

I do not sure that ci/prow/actuator-pkg-staleness still relevant after moving to go mod, at least I do not see this job anymore under machine-api-operator.

@zeenix
Copy link
Contributor

zeenix commented Nov 6, 2019

@cynepco3hahue What i was saying was that currently the cpu and ram comes from the Installer through its manifest for worker nodes and you're adding new API to be able to specify volume size too so I'm a bit puzzled as to how this won't require changes in Installer?

@cynepco3hahue
Copy link
Contributor Author

@zeenix Ah, now it more clear:) yes you right it will need changes under the installer as well, but as temp solution, you can generate manifests and sed new disk size under the machine set.

@cynepco3hahue
Copy link
Contributor Author

I will create the installer PR on my free time:)

@zeenix
Copy link
Contributor

zeenix commented Nov 6, 2019

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 6, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zeenix

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

@cynepco3hahue: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/actuator-pkg-staleness 32539e7 link /test actuator-pkg-staleness

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit c32e2ea into openshift:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants