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

[doc] 2.1 Hardware #487

Closed
Martin-Weiss opened this issue Sep 17, 2019 · 7 comments
Closed

[doc] 2.1 Hardware #487

Martin-Weiss opened this issue Sep 17, 2019 · 7 comments
Assignees
Labels
DeploymentGuide Fix will change the Deployment Guide Enhancement Fix is an enhancement v4 CaaSP v4
Milestone

Comments

@Martin-Weiss
Copy link
Contributor

2.1 Hardware

https://susedoc.github.io/doc-caasp/master/caasp-deployment/single-html/#_hardware


disk space requirements need to be enhanced i.e. for /var/lib/containers (sufficient disk space for images, filesystem btrfs or xfs?, second disk for this space?)

@r0ckarong r0ckarong self-assigned this Sep 20, 2019
@r0ckarong
Copy link
Contributor

@ereslibre What is the recommended default filesystem type now? If I remember correctly it was XFS but we needed to stick with Btrfs for VMWare. Is this still true?

@Martin-Weiss Can you give some rough details about a real world example that could be used as a sizing example for what you're talking about? These requirements are clearly stated as "minimum" and thus imply they can and should be expanded to whatever the use case entails. We can't really make predictions on how users should set this up. If you have a real-world scenario that we can use, please let me see it.

@r0ckarong r0ckarong added DeploymentGuide Fix will change the Deployment Guide Enhancement Fix is an enhancement Reported v4 CaaSP v4 labels Sep 20, 2019
@Martin-Weiss
Copy link
Contributor Author

It really depends on the images and image update process that is used. I have seen scenarios where the image used for a container was >6G in size (flat and not layered) and where ever line of code change through CI/CD caused re-distribution of an updated image to all container hosts (workers). This can cause lots of space needed for /var/lib/containers or /var/lib/docker.

Just my one /var/lib/docker has 112 GB at the moment... (wow - I am surprised myself by realizing this at the moment... :-0)

So the number of images, their size and the update / change rate and policy vs. the image cleanup policy in the end defines the space we need. For sure this should not be part of the operating systems file-system.

@Martin-Weiss
Copy link
Contributor Author

In the docker world we have been using and recommending BTRFS especially for /var/lib/docker - but now with CRI-O this might change to XFS and overlay2 driver instead of BTRFS? But with the default setup we do BTRFS for /var/lib/containers ... so do we stay with BTRFS or switch to XFS and if yes or no - why?

@ereslibre
Copy link
Contributor

In the docker world we have been using and recommending BTRFS especially for /var/lib/docker - but now with CRI-O this might change to XFS and overlay2 driver instead of BTRFS?

I think BTRFS or XFS will work just fine. Our current layout is:

  • ISO (autoyast)

    • / is btrfs
    • /var/lib is xfs
  • JeOS image (openstack)

    • / is xfs

We have support for both, as for what is the recommended one depending on the driver, @saschagrunert or @cyphar can provide more insight.

@Martin-Weiss
Copy link
Contributor Author

Why did you split of /var/lib instead of /var/lib/containers?
In AutoYaST it seems that all is going to the same disk and the root FS is smaller than what we recommend for SLES (AFAIK we recommend 50G).. - not sure if I would recommend this AutoYaST setup in production or for physical deployments.

@r0ckarong r0ckarong removed their assignment Oct 25, 2019
@r0ckarong r0ckarong self-assigned this Nov 5, 2019
@r0ckarong r0ckarong added this to the Sprint 17 milestone Nov 5, 2019
@r0ckarong
Copy link
Contributor

@Martin-Weiss Just so I can change the appropriate parts. Will the 50G minimum recommendation be enough typically for master nodes? Most container changes should happen on the workers, no?

If so I will add some recommendations based on the change rate/number of images consideration.

@Martin-Weiss
Copy link
Contributor Author

@Martin-Weiss Just so I can change the appropriate parts. Will the 50G minimum recommendation be enough typically for master nodes? Most container changes should happen on the workers, no?

So 50 GB for the OS and 50 GB for /var/lib or /var/lib/containers - yes - I believe this should be sufficient. Probably this can be reduced but for the OS using snapshots with BTRFS we need the space and for the images we might also need less but we need to go through the learning curve..

If so I will add some recommendations based on the change rate/number of images consideration.

Maybe we can just write something like best practice is 50G BTRFS for the OS and 50 GB BTRFS for /var/lib/containers?

nkoranova pushed a commit that referenced this issue Nov 15, 2019
* Add storage sizing qualifying remarks (Closes #487)

* Fix Dex configuration is broken after update (#1014)
nkoranova pushed a commit that referenced this issue Nov 15, 2019
* Add storage sizing qualifying remarks (Closes #487)

* Fix Dex configuration is broken after update (#1014)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeploymentGuide Fix will change the Deployment Guide Enhancement Fix is an enhancement v4 CaaSP v4
Projects
None yet
Development

No branches or pull requests

4 participants