Giter Site home page Giter Site logo

Comments (4)

seveas avatar seveas commented on June 25, 2024

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)

from python-hpilo.

seveas avatar seveas commented on June 25, 2024

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.

from python-hpilo.

dagwieers avatar dagwieers commented on June 25, 2024

Great to hear !

from python-hpilo.

seveas avatar seveas commented on June 25, 2024

Now released, enjoy!

from python-hpilo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.