[Anthill-pro] Lockable resource per environment

emerson cargnin echofloripa.yell at gmail.com
Wed Apr 23 06:42:39 CDT 2008


Hi

What's the best way to implement the following:
On my deployment workflow, one of the steps is to restart the webapp
server (resin). I want avoid anthill agents from restarting all agents
at the same time, to avoid any down time. For example, to restart 2 or
3 at a time.

I know I can create a lockable resource and apply it to a workflow.
This would stop the same workflow from running concurrently (please
correct if I'm wrong). But my requirement (and I it's guess a common
requirement) is to have this lock for agents in the same environment.

If there was a "acquire lock" and "release lock" steps, I could create
a lockable resource and use it to avoid restarting the servers at the
same time. But even then having a lockable resource per environment
would be more correct, as I wouldn't want the CI build to acquire the
same lock of the live deployments.

I think my best bet now is to create one lock per environment I want
to achieve this behaviour, and have a script to acquire the lock and
another one to release the lock.

Is it possible?

thanks
emerson


More information about the Anthill-pro mailing list