nerc-project / operations

Issues related to the operation of the NERC OpenShift environment
2 stars 0 forks source link

Calculate Storage actually used vs allocated in OpenStack #822

Open joachimweyl opened 1 day ago

joachimweyl commented 1 day ago

Motivation

We should be able to track storage and trigger a warning at say 10% storage remaining. Technically we can oversubscribe as volumes are thin subscribed and many projects will never use the full space allocated.

Completion Criteria

Calculate storage actually used vs allocated. Alert at 90% used.

Description

Notes

  1. how many bytes of volumes we have actually allocated (e..g, a thin provisioned 80GB volume will consume 80GB)
  2. how many bytes of volumes are actually used (e.g., a thin provisioned 80GB volume may be only using 1MB right now)
  3. how much quota we have handed out
  4. rbd du -p <POOLNAME> should return the value we want

Completion dates

Desired - late 2024
Required - early 2025