Perhaps one of the most advanced elements of Ooyala Flex's Access Control is the Quota. A Quota defines a level of User access to a Resource. As explained in the Resources section, Resources are external services that are used by Ooyala Flex to store, transfer, and process media. With any Ooyala Flex deployment, resources are finite and can be costly to license and run. So it's important to set rules for who can access which Resource and what they can do with it. This is purpose of the Quota.
To provide an example, a Super User might decide that a certain Account or User in Ooyala Flex can have access to a Transcode Resource outside office hours, and will only be able to run a maximum of 5 concurrent Jobs. This rule can be set up through the configuring of a Quota.
Resources are a type of Ooyala Flex Object, so they already support visibility on a per Account basis. Therefore, you can already securely isolate which Accounts and Sub-Accounts can access a Resource. However, Quotas simply provide more fine-grained rules around access as well as a way of safely sharing Resources between Users and Accounts.
A typical instance of Ooyala Flex will have a default Quota for each Quota type. The default plugins are highly configurable to allow for lots of scenarios. When the default Quota does not deliver the functionality you need, then you would utilise a more specialised Quota plugin. The Quota framework is part of Ooyala Flex's API.
It is possible to set what is known as a "Global Quota". This means that the limit is not bound to any particular Account. It simply means that the limit is bound to the Resource itself.
A Quota can exist in one of three states:
Under Limit: The Quota is within normal bounds and no limits have been exceeded.
Over Soft Limit: The Quota has exceeded the soft limit.
Over Hard Limit: The Quota has exceeded the hard limit (at this point the Resource is no longer usable).
Each Quota has a timeout period. When a Quota has exceeded a limit, a Quota Soft Limit Exceeded or a Quota Hard Limit Exceeded Event is fired. The Timeout is used to determine how long to wait until sending another Event.
Creating a Quota
1) On the Toolbar, click the New option, and from the drop down, select Quota.
2) In the Create new Quota... section, specify the details for your new Quota.
3) In the Name field, specify a name.
4) In the Description field, you can enter an optional description.
5) From the Plugin drop down, select a plugin. For example we will create a Quota that limits Transfer Bytes over time.
6) From the Assignment drop down, select an Account or a Sub-Account that you want to set the Quota for.
7) From the Timeout drop down, select a timeout period. E.g. 15 minutes.
8) In the Quota Resource field, select a Resource, e.g HTTP Transfer.
9) When you have finished specifying the details for your Quota, click Save to finalise.
10) Next, click the Configuration sub-tab, and then click the Edit link in order to specify configuration details for your Quota.
11) Specify the configuration details for your Quota.
12) In the Soft Limit field, specify a soft limit.
13) in the Hard Limit field, specify a hard limit.
14) In the Time Period field, specify a time period.
15) In the Time Period In field, select a unit of time, e.g Hour.
16) When you have finished configuring your Quota, click Save to finalise.
Checking Quota Details
To check the details and status of a Quota, click the Access tab, and on the Toolbar, click Quotas.
In Quota Settings section you can see a list of all Quotas and their current status, for example : funder limit, over soft limit, and over hard limit. The colour of each row indicates the status. Orange implies the soft limit has been breached. Red implies the hard limit has been breached.