Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-7652

[BE] See all and available resources - Disk

Details

    Description

      User story:

      • As a DBaaS user, I need to see available resources and quotas on my Kubernetes cluster so that I can understand it's size

      Acceptance criteria

      • user see the full capacity of the Cluster (disk)
      • User able to see free resources in the cluster
      • Data for resources updated every 5s
      • AWS EKS and minikube

      Out of scope:

      • all cloud providers except AWS

      Suggested implementation:

      ## EKS
      - ebs has limit of 25 or 39 volumes per node depending on instance type 
        see label beta.kubernetes.io/instance-type: m5.large
        - M5,C5,R5,T3 and Z1D has volume-count-limit equal to 25
          - others have 39
        - all: get consumed + ((count-nodes-that-are-schedulable-and-don't-have-any-resource-presure * volume-count-limit)-current-pv-count)*max-volume-size
        - available: ((count-nodes * volume-count-limit)-current-pv-count)*max-volume-size
        - it seems ebs volumes have max size of 16Ti which is limit of the service.
      
      ## Minikube
      - consumed:
        - get usedBytes out of node summary.
      - all: for each node accumulate (alocatable -> epheremal storage)
      - available: all - consumed
      

      Attachments

        Issue Links

          Activity

            People

              jan.prukner Jan Prukner (Inactive)
              jan.prukner Jan Prukner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist