Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions using hpilo quite slow #12

Closed
dagwieers opened this issue Dec 5, 2012 · 4 comments
Closed

Actions using hpilo quite slow #12

dagwieers opened this issue Dec 5, 2012 · 4 comments

Comments

@dagwieers
Copy link
Contributor

I don't know if there's anything that I can debug or change to improve this, but any action using python-hpilo is quite slow. It might be due to HTTPS (and the self-signed certificate) or maybe the iLO interface is in itself slow to respond, I don't know.

Is there something I can do or test to see if we can speed up python-hpilo ? What we typically do is get facts from iLO (like interfaces, mac-addresses, hardware) and order a reboot with a specific virtual media over HTTP.

The modules that implement this are available from:

@seveas
Copy link
Owner

seveas commented Dec 5, 2012

Unfortunately there's not much you can do. The XML interface for the iLO simply is slow. There's only one optimization: store the ilo type or protocol in your asset database. That way you avoid the one request overhead for each new Ilo object to find out which protocol to use (raw for ilo/ilo2, http for ilo3/ilo4)

@seveas
Copy link
Owner

seveas commented Dec 24, 2012

Actually, there is a way to speed it up: iLO interfaces accept multiple commands in one XML document. In the soon to be released python-hpilo 2.0 you can use this as follows:

>>> ilo = Ilo(..., delayed=True)
>>> ilo.ilo.set_vm_status('cdrom', state, True)
>>> ilo.warm_boot_server()
>>> ilo.call_delayed()

With a bit of reordering to minimize the amount of calls to the iLO, you should be able to speed up hpilo_boot. hpilo_facts can't be sped up as it only does one call anyway.

@dagwieers
Copy link
Contributor Author

Great to hear !

@seveas
Copy link
Owner

seveas commented Dec 24, 2012

Now released, enjoy!

@seveas seveas closed this as completed Dec 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants