Skip to content

Commit ec3dd71

Browse files
committed
Configure ApiRateLimit adapter.
1 parent 4d0c850 commit ec3dd71

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎client/tomcatconf/components.xml.in‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ under the License.
5757
<adapter name="StaticRoleBasedAPIAccessChecker" class="org.apache.cloudstack.acl.StaticRoleBasedAPIAccessChecker"/>
5858
</adapters>
5959
<adapters key="org.apache.cloudstack.acl.APILimitChecker">
60-
<adapter name="AccountBasedAPIRateLimit" class="org.apache.cloudstack.ratelimit.ApiRateLimitServiceImpl" singleton="true"/>
60+
<adapter name="AccountBasedAPIRateLimit" class="org.apache.cloudstack.ratelimit.ApiRateLimitServiceImpl" singleton="true">
61+
<param name="api.throttling.interval">1</param>
62+
<param name="api.throttling.max">25</param>
63+
<param name="api.throttling.cachesize">50000</param>
64+
</adapter>
6165
</adapters>
6266
<adapters key="com.cloud.agent.manager.allocator.HostAllocator">
6367
<adapter name="FirstFitRouting" class="com.cloud.agent.manager.allocator.impl.FirstFitRoutingAllocator"/>
@@ -183,11 +187,7 @@ under the License.
183187
<pluggableservice name="ApiDiscoveryService" key="org.apache.cloudstack.discovery.ApiDiscoveryService" class="org.apache.cloudstack.discovery.ApiDiscoveryServiceImpl"/>
184188
<pluggableservice name="VirtualRouterElementService" key="com.cloud.network.element.VirtualRouterElementService" class="com.cloud.network.element.VirtualRouterElement"/>
185189
<pluggableservice name="NiciraNvpElementService" key="com.cloud.network.element.NiciraNvpElementService" class="com.cloud.network.element.NiciraNvpElement"/>
186-
<pluggableservice name="ApiRateLimitService" key="org.apache.cloudstack.api.ratelimit.ApiRateLimitService" class="org.apache.cloudstack.ratelimit.ApiRateLimitServiceImpl">
187-
<param name="api.throttling.interval">1</param>
188-
<param name="api.throttling.max">25</param>
189-
<param name="api.throttling.cachesize">50000</param>
190-
</pluggableservice>
190+
<pluggableservice name="ApiRateLimitService" key="org.apache.cloudstack.api.ratelimit.ApiRateLimitService" class="org.apache.cloudstack.ratelimit.ApiRateLimitServiceImpl"/>
191191
<dao name="OvsTunnelInterfaceDao" class="com.cloud.network.ovs.dao.OvsTunnelInterfaceDaoImpl" singleton="false"/>
192192
<dao name="OvsTunnelAccountDao" class="com.cloud.network.ovs.dao.OvsTunnelNetworkDaoImpl" singleton="false"/>
193193
<dao name="NiciraNvpDao" class="com.cloud.network.dao.NiciraNvpDaoImpl" singleton="false"/>

0 commit comments

Comments
 (0)