On Thursday, June 26, 2014 12:40:45 PM UTC-6, Nick Evgeniev wrote: > It's not about being that careful but rather about getting to predictable > result as soon as possible. > > As I mentioned warming up of java program is a complex thing and depends > heavily on jvm version/ switches as well as load 'patterns'. In my case > everything could change.. So to answer your question yes it's possible to > get guaranteed warm up ... but the cost of such guarantee would be high > (for my use case) - for sure app will be warmed up after half an hour of > running load generators.. > > i'm fine with hybrid solution (i.e to run ansible from within a shell > script then run some 'imperative' logic .. just trying to pull as much > 'ssh' out of scripts as possible) >
Here are some ideas that might work for you: * use proper tool for load generation, something like JMeter and call out to it for the "warm-up" * use Ansible as a library from within Python script and glue together tasks in whichever fashion you'd like. * add more programmatic framework to the mix (I have mentioned Fabric already, there are others) bottom line - it sounds like your problem calls for more liberal use of technologies than just limiting yourself to one. Ansible is a good configuration management and orchestration system. Python is a programming language and Fabric is a framework written in it - Ansible has API you can call out to from within Fabric and get things done on a different level. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c779a48c-05bf-4b82-9ce0-cca4c3731dd4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
