[Users] Python SDK list vms slow, excessive cpu usage

Sander Grendelman sander at grendelman.com
Wed Dec 18 15:03:22 UTC 2013


On Wed, Dec 18, 2013 at 9:13 AM, Sven Kieske <S.Kieske at mittwald.de> wrote:
> Hi,
>
> thanks to Sander for disclosing this issue.
You're welcome :)
>
> We were also looking into using python to query the vms.
> But this looks not very promising.
>
> We have the need to query for much more vms, and we can't
> wait for just the possibility of a fix in 3.4.
>
> Maybe this can be circumvented by using the REST-API?
> I didn't test it for performance yet, but it seems to
> be reasonable fast without high load.

The python SDK also uses the REST-API, the VM list is just one (fast) fetch of

https://my.engine.url/api/vms

You could parse the XML yourself but using the SDK is a lot more
generic an easier to maintain.



More information about the Users mailing list