eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

Document per-workspace PVC size calculation #23258

Open AObuchow opened 1 day ago

AObuchow commented 1 day ago

Is your task related to a problem? Please describe

When using the per-workspace storage strategy, the PVC size can actually be calculated based on the requirements of the CDE's devfile by summing the size of the devfile volumes that are defined. Currently, the rules used in calculating the PVC size are not documented, which may confuse users about this issue.

Describe the solution you'd like

We should document the per-workspace PVC size calculation rules in the Che Docs. The rules are as follows:

  1. If all volumes in a devfile specify their size, the computed PVC size will be used.
  2. If all volumes in a devfile either specify their size or are ephemeral, the computed PVC size will be used.
  3. If at least one volume in a devfile specifies its size, and the computed PVC size is greater than the default per-workspace PVC size, the computed PVC size will be used.

Some notes:

Describe alternatives you've considered

No response

Additional context

Some extra notes: