Files
watcher/watcher/tests
chenke 34324c95f9 Reduce the query time of the instances when call get_instance_list()
The problem is that watcher is passing limit=-1 to novaclient when
listing servers which will always make at least two API calls to be
sure it's done paging:

https://github.com/openstack/python-novaclient/blob/13.0.1/novaclient/v2/servers.py#L896

If we can determine before we list servers that there are only a
certain number where the number of servers is less than 1000. For
example: 4, we should just pass the limit=len(servers) to novaclient
and avoid the second call for paging which takes extra time and
yields no results.

Change-Id: I797ad934a0f8496dbcbf65798e28b0443f238137
Closes-Bug: #1834679
(cherry picked from commit 1e8b17ac46)
2019-07-09 09:39:46 -04:00
..
2019-01-09 23:54:55 +08:00
2018-11-14 01:23:07 +00:00
2017-08-07 16:40:40 +09:00
2019-01-24 17:09:47 +08:00
2017-03-29 11:17:43 +05:30
2015-06-04 15:27:57 +02:00
2018-01-24 13:39:42 +03:00