3.18. Managing compute quotas

3.18.1. vinfra service compute quotas show

List compute quotas:

usage: vinfra service compute quotas show [--usage] <project_id>
--usage
Include quota usage.
<project_id>
Project ID

Example:

# vinfra service compute quotas show 6ef6f48f01b640ccb8ff53117b830fa3 --usage
+----------------------------------------+---------+
| Field                                  | Value   |
+----------------------------------------+---------+
| compute.cores.limit                    | 20      |
| compute.cores.used                     | 2       |
| compute.ram.limit                      | 10.0GiB |
| compute.ram.used                       | 1.0GiB  |
| compute.ram_quota.limit                | 10.0GiB |
| compute.ram_quota.used                 | 1.0GiB  |
| k8saas.cluster.limit                   | 10      |
| k8saas.cluster.used                    | 0       |
| lbaas.loadbalancer.limit               | 10      |
| lbaas.loadbalancer.used                | 0       |
| network.floatingip.limit               | 10      |
| network.floatingip.used                | 0       |
| storage.gigabytes.default.limit        | 1.0TiB  |
| storage.gigabytes.default.used         | 2.0GiB  |
| storage.storage_policies.default.limit | 1.0TiB  |
| storage.storage_policies.default.used  | 2.0GiB  |
+----------------------------------------+---------+

This command shows compute quotas with their usage for the project with the ID 6ef6f48f01b640ccb8ff53117b830fa3.

3.18.2. vinfra service compute quotas update

Update compute quotas:

usage: vinfra service compute quotas update [--cores <cores>] [--ram-size <ram>]
                                            [--floatingip <floatingip>]
                                            [--storage-policy <storage_policy>:<size>]
                                            [--k8saas-cluster <cluster>]
                                            [--lbaas-loadbalancer <load_balancer>]
                                            [--placement <placement>]
                                            <project_id>
--cores <cores>
Number of cores
--ram-size <ram>
Number of RAM. Use the following units: M or MiB for mebibytes, G or GiB for gibibytes, T or TiB for tebibytes, P or PiB for pebibytes, and E or EiB for exbibytes.
--floatingip <floatingip>
Number of floating IP addresses
--storage-policy <storage_policy>:<size>
Comma-separated list of <storage_policy>:<size>. To specify the size, use the following units: M or MiB for mebibytes, G or GiB for gibibytes, T or TiB for tebibytes, P or PiB for pebibytes, and E or EiB for exbibytes.
--k8saas-cluster <cluster>
Number of Kubernetes clusters
--lbaas-loadbalancer <load_balancer>
The new value for the load balancer quota limit. The value -1 means unlimited.
--placement <placement>
Comma-separated list of <placement_id>:<size>
<project_id>
Project ID

Example:

# vinfra service compute quotas update 6ef6f48f01b640ccb8ff53117b830fa3 --cores 10 \
--ram-size 10G --storage-policy default:512G
Operation successful.

This command updates compute quotas to 10 vCPUs, 20 GiB of RAM, and 512 GiB of disk space for the default storage policy.