Managing project S3 user limits
To set limits for a project S3 user
Use the following command:
vinfra service s3 project user limits set --project <project> --domain <domain> --s3-user <s3_user>
--limit-type <limit_type> --limits <limits>
--project <project>- Project name or ID
--domain <domain>- Domain name or ID (required when a project name is specified)
--s3-user <s3_user>- S3 user ID
--limit-type <limit_type>- Limit type: operations per second (
ops), in ops/s, or outgoing bandwidth (bandwidth), in kbs/s --limits <limits>-
Limits expressions:
- Operations per second:
{ default=<value> | put=<value> | get=<value> | list=<value> | delete=<value> } - Bandwidth:
{ out=<value> }
Example:
put=7000,delete=2000 - Operations per second:
For example, to limit GET operations to 500 ops/s and PUT operations to 200 ops/s for the user with the ID 1 in the project myproject, run:
# vinfra service s3 project user limits set --project myproject --domain mydomain --s3-user 1 --limit-type ops --limits get=500,put=200
You can check the applied limits in the vinfra service s3 project user limits show output:
# vinfra service s3 project user limits show --project myproject --domain mydomain --s3-user 1 +---------------+-------------------+ | Field | Value | +---------------+-------------------+ | bandwidth | - name: out | | | unit: kbs/s | | | value: '0' | | ops | - name: default | | | unit: ops/s | | | value: '0.00' | | | - name: get | | | unit: ops/s | | | value: '500.00' | | | - name: put | | | unit: ops/s | | | value: '200.00' | | | - name: list | | | unit: ops/s | | | value: '0.00' | | | - name: delete | | | unit: ops/s | | | value: '0.00' | | resource_name | e14bbf0baae895ca | | resource_type | user | +---------------+-------------------+
To remove limits from a project S3 user
Use the following command:
vinfra service s3 project user limits remove --project <project> --domain <domain> --s3-user <s3_user>
--project <project>- Project name or ID
--domain <domain>- Domain name or ID (required when a project name is specified)
--s3-user <s3_user>- S3 user ID
For example, to remove limits from the user with the ID 1 in the project myproject, run:
# vinfra service s3 project user limits remove --project myproject --domain mydomain --s3-user 1
To set limits for a project
Use the following command:
vinfra service s3 project limits set --project <project> --domain <domain> --limit-type <limit_type> --limits <limits>
--project <project>- Project name or ID
--domain <domain>- Domain name or ID (required when a project name is specified)
--limit-type <limit_type>- Limit type: operations per second (
ops), in ops/s, or outgoing bandwidth (bandwidth), in kbs/s --limits <limits>-
Limits expressions:
- Operations per second:
{ default=<value> | put=<value> | get=<value> | list=<value> | delete=<value> } - Bandwidth:
{ out=<value> }
Example:
put=7000,delete=2000 - Operations per second:
For example, to limit GET operations to 500 ops/s and PUT operations to 200 ops/s for the project myproject within the domain mydomain, run:
# vinfra service s3 project limits set --project myproject --domain mydomain --limit-type ops --limits get=500,put=200
You can check the applied limits in the vinfra service s3 project limits show output:
# vinfra service s3 project limits show --project myproject --domain mydomain +---------------+----------------------------------+ | Field | Value | +---------------+----------------------------------+ | bandwidth | - name: out | | | unit: kbs/s | | | value: '0' | | ops | - name: default | | | unit: ops/s | | | value: '0.00' | | | - name: get | | | unit: ops/s | | | value: '500.00' | | | - name: put | | | unit: ops/s | | | value: '200.00' | | | - name: list | | | unit: ops/s | | | value: '0.00' | | | - name: delete | | | unit: ops/s | | | value: '0.00' | | resource_name | 653c050730f24cf585cb175bc0557e86 | | resource_type | organization | +---------------+----------------------------------+
To remove limits from a project
Use the following command:
vinfra service s3 project limits remove --project <project> --domain <domain>
--project <project>- Project name or ID
--domain <domain>- Domain name or ID (required when a project name is specified)
For example, to remove limits from the project myproject within the domain mydomain, run:
# vinfra service s3 project limits remove --project myproject --domain mydomain