From 779e8d65b79e9fada98dd5f070c3359bb963b169 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 17 Sep 2010 22:14:02 +0000
Subject: [PATCH] Implement a new resource limit policy which restricts the number of operations which can be performed during a time interval

---
 opends/src/admin/defn/org/opends/server/admin/std/ResourceLimitsQOSPolicyConfiguration.xml |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 51 insertions(+), 1 deletions(-)

diff --git a/opends/src/admin/defn/org/opends/server/admin/std/ResourceLimitsQOSPolicyConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/ResourceLimitsQOSPolicyConfiguration.xml
index 725a07f..1231da5 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/ResourceLimitsQOSPolicyConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/ResourceLimitsQOSPolicyConfiguration.xml
@@ -23,7 +23,7 @@
   ! CDDL HEADER END
   !
   !
-  !      Copyright 2009 Sun Microsystems, Inc.
+  !      Copyright 2009-2010 Sun Microsystems, Inc.
   ! -->
 <adm:managed-object name="resource-limits-qos-policy"
   plural-name="resource-limits-qos-policies"
@@ -222,4 +222,54 @@
       </ldap:attribute>
     </adm:profile>
   </adm:property>
+  <adm:property name="max-ops-per-interval">
+    <adm:synopsis>
+      Specifies the maximum number of operations that can take place on
+      the same network group during the specified interval.
+    </adm:synopsis>
+    <adm:description>
+      When the maximum number of operations per interval is reached, all
+      subsequent operations on the same network group are refused until the
+      end of the time interval. This parameter allows to limit the throughput
+      on the network group.
+      A value of 0 indicates that no limit is enforced.
+    </adm:description>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>0</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+      <adm:integer lower-limit="0"/>
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:name>ds-cfg-max-ops-per-interval</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
+  <adm:property name="max-ops-interval">
+    <adm:synopsis>
+      Specifies the interval during which the number of operations is limited.
+    </adm:synopsis>
+    <adm:description>
+      When the maximum number of operations per interval is reached, all
+      subsequent operations on the same network group are refused until the
+      end of the time interval. This parameter allows to limit the throughput
+      on the network group.
+    </adm:description>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>1s</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+      <adm:duration base-unit="ms" lower-limit="1"/>
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:name>ds-cfg-max-ops-interval</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
 </adm:managed-object>

--
Gitblit v1.10.0