3.6.4.
SLA Templates
Up one level
SLA templates can be created to constrain on any of the above metrics. Several example sections of SLA templates are given below. See the GRIA user documentation for information on constructing full SLA template XML documents.
Limiting database creation
When inserted into the <constraints> section of an SLA template, this capacity constaint will limit the user to creating only one database. The user may still subscribe to other databases, and other users may subscribe to his database.
<constraint type='INSTANTANEOUS'>
<metric type='ACTIVITY'>
<uri>http://www.gria.org/sla/metric/activity/ogsadai/db</uri>
<description>
<description>database</description>
</description>
<units type='DECIMAL'>
<instantaneous>database</instantaneous>
</units>
</metric>
<bound>LE</bound>
<private>false</private>
<limit>1.0</limit>
<contention>1.0</contention>
<repeating>false</repeating>
</constraint>
Limiting subscriptions
When inserted into the <constraints> section of an SLA template, these capacity constraints will allow the user to subscribe to three database roles, and have one person subscribe to any roles he creates. The user can create an unlimited number of databases.
<constraint type='INSTANTANEOUS'>
<metric type='ACTIVITY'>
<uri>http://www.gria.org/sla/metric/activity/ogsadai/subscription</uri>
<description>
<description>subscription</description>
</description>
<units type='DECIMAL'>
<instantaneous>subscription</instantaneous>
</units>
</metric>
<bound>LE</bound>
<private>false</private>
<limit>3.0</limit>
<contention>1.0</contention>
<repeating>false</repeating>
</constraint>
<constraint type='INSTANTANEOUS'>
<metric type='RESOURCE'>
<uri>http://www.gria.org/sla/metric/resource/ogsadai/subscriber</uri>
<description>
<description>subscriber</description>
</description>
<units type='DECIMAL'>
<instantaneous>subscriber</instantaneous>
</units>
</metric>
<bound>LE</bound>
<private>false</private>
<limit>1.0</limit>
<contention>1.0</contention>
<repeating>false</repeating>
</constraint>
