Ask Your Question
0

What are the differences between quota and limit? [closed]

asked 2014-08-19 07:25:46 -0500

mmaurizi gravatar image

I don't understand the difference between limit and quota concept.

Is there any reference that I can read?

Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by SamYaple
close date 2014-08-20 09:38:49.869399

Comments

can you be more specific.

SGPJ gravatar imageSGPJ ( 2014-08-19 07:32:36 -0500 )edit

Both those 2 concepts are related to limitation. I don't got the difference

mmaurizi gravatar imagemmaurizi ( 2014-08-19 09:14:07 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-08-19 12:20:43 -0500

SamYaple gravatar image

I believe there may be a misunderstanding here. There is no value that is controlled by a quota _AND_ a limit. Quotas _have_ limits. I am sure in the docs quota and limit get used interchangeably, but here is a table that should seperate the terms in your mind.

$ nova quota-defaults
+-----------------------------+-------+
| Quota                       | Limit |
+-----------------------------+-------+
| instances                   | 10    |
| cores                       | 20    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
+-----------------------------+-------+

Quota is refering to the name, while limit is refering to value. The floating_ips quota has a limit of 10.

You will need to be more specific if this doesn't answer your question.

edit flag offensive delete link more

Comments

Ohhhh. I got the point.

I was confused by those 2 APIs call /v2/​{tenant_id}​/limits/​{tenant_id}​ and /v2/​{tenant_id}​/os-quota-sets/​{tenant_id}​.

Looking at the calls I have assumed that limit and quota are different concepts.

/v2/​{tenant_id}​/os-quota-sets/​{tenant_id} --> information about quota 
/v2/​{tenant_id}​/limits/​{tenant_id}​ --> how many resources (of your quota) the project have already used

http://developer.openstack.org/api-ref-compute-v2-ext.html (http://developer.openstack.org/api-re...)

mmaurizi gravatar imagemmaurizi ( 2014-08-20 02:59:52 -0500 )edit

Indeed. Clear documentation is a challenge for most projects. Openstack is no exception.

SamYaple gravatar imageSamYaple ( 2014-08-20 09:39:52 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-19 05:19:28 -0500

Seen: 1,157 times

Last updated: Aug 19 '14