cloudstack/core/resources/META-INF/cloudstack
Craig Squire 8d53557ba7 api: don't throttle api discovery for listApis command (#2894)
Users reported that they weren't getting all apis listed in cloudmonkey when running a sync. After some debugging, I found that the problem is that the ApiDiscoveryService is calling ApiRateLimitServiceImpl.checkAccess(), so the results of the listApis command are being truncated because Cloudstack believes the user has exceeded their API throttling rate.

I enabled throttling with a 25 request per second limit. I then created a test role with only list* permissions and assigned it to a test user. When this user calls listApis, they will typically receive anywhere from 15-18 results. Checking the logs, you see The given user has reached his/her account api limit, please retry after 218 ms..

I raised the limit to 200 requests per second, restarted the management server and tried again. This time I got 143 results and no log messages about the user being throttled.
2018-12-12 23:55:32 +05:30
..
allocator CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
api api: don't throttle api discovery for listApis command (#2894) 2018-12-12 23:55:32 +05:30
backend Cleanup licenses in core with com.mycila:license-maven-plugin:format 2014-07-14 16:28:29 +02:00
bootstrap CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
ca CLOUDSTACK-9993: Securing Agents Communications (#2239) 2017-08-28 12:15:11 +02:00
compute CLOUDSTACK-9782: Host HA and KVM HA provider 2017-08-30 18:06:48 +02:00
core api: don't throttle api discovery for listApis command (#2894) 2018-12-12 23:55:32 +05:30
direct-download CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates (#2379) 2018-01-09 12:22:18 +05:30
discoverer CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
network CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
outofbandmanagement CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
planner CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
storage CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
system CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30