So you need to do something before instance gets terminated?
Scalr would not terminate your instance until amount of instance in a role
is more than Min Instances setting.
So, if you want to have exclusive control over termination, set MinInstances
to some high value.

We're going to introduce beforeHostTerminate, beforeInstanceLaunch events
for scripting in next few days, so you'll be able to execute any code on
instance, role or entire farm before Scalr terminates any instance in the
role.



On 21.12.08 05:04, "Robert" <[email protected]> wrote:

> 
> My apologies, this is probably a newbie question.  I'm new to Scalr
> and I have an application that includes a Wowza server, which among
> other things creates our chat rooms.  There is no persistent state for
> a chat room other than in memory, but a room cannot easily cross
> servers, so all connections for a given room have to be kept on a
> given server.  Before shutting down a server we need to stop adding
> new rooms to it and wait for the current rooms to empty.  It's
> probably possible to move a running room to another server, or to save
> state in a central location and serve a room from multiple servers,
> but the code required would be non-trivial and I'd like to avoid
> writing it right now.
> 
> I'm guessing that I might have to manage startup and shutdown of my
> Wowza serves outside of Scalr, but I'm wondering if Scalr could handle
> this kind of server.  It seems like it has some similarities with a
> database master in that certain conditions need to be met before it
> can be shutdown gracefully.  There's also the ami-5dd53034 base image
> that can be customized to your specific application needs, which makes
> me wonder if you've already thought of things like this.
> 
> Is there a way to do this with Scalr?  If so, how?  Do we somehow
> create a new role?
> 
> thanks,
> 
> Robert
> 
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to