Solved

Is there a REST API request limit?


Badge +1
Hi community,

I've written a Python3 interface to Nutanix's REST api, and among other things I'm using it to replicate VM metrics from Nutanix to Graphite. I was wondering if anyone has run into REST api request-rate limits, or performance degredation after a certain point. I'd like to decrease the run-time of my metrics replication process by distributing the api calls to a bunch of workers, but I don't want to cause problems for other admins while it's running ^^
icon

Best answer by tarak 18 January 2018, 00:21

Hello,

Currently, we do have a limit on the number of metrics you can pull in per RPC. This was done to protect our metrics database and config database performance. This is in our V1/V2 API.

Going forward, when we release our metrics API in V3, we do not anticipate having this constraint on the number of metrics that can be pulled.

Hope this helps.
Thanks,
Tarak

View original

4 replies

Badge +1
Also FYI, it looks like the max metrics per request is 5. If you attempt to ask for more than that the API returns:
Cannot support more than 5 metric in a single time range request or server is busy with many concurrent requests
Badge +4
Hello,

Currently, we do have a limit on the number of metrics you can pull in per RPC. This was done to protect our metrics database and config database performance. This is in our V1/V2 API.

Going forward, when we release our metrics API in V3, we do not anticipate having this constraint on the number of metrics that can be pulled.

Hope this helps.
Thanks,
Tarak
Badge +1
Thanks Tark, that's good to know :)

Are there metrics API request-rate limits though? Like could I issue 200 metrics requests/second? (each request for 5 or less metrics)
Userlevel 7
Badge +30
We haven't published a hard limit, but I'd be interested to see you try that with AOS 5.6, which just came out. This (among other things) GA's the v3 API, and brings improvements across the board

Reply