I have a web app with two servers, each with 4 instances of Classic Alpha Anywhere. The app is in use 24 hours a day with worldwide customers.
Right now, I use AlwaysUp to restart all instances on Friday night, 6:30 PM EST. We notify all our users of this standing policy so this is an expected maintenance period that I often use for other things as well.
I think in the past it's been recommended that instances be restarted once a day but that would just kick off too many uses throughout the week - I can't do that.
We've generally been getting by with the once-a-week maintenance. But now our user base has grown enough and the instances are used heavily enough that I believe the instances need restarting more than once a week. Memory usage on all of them is climbing past 1500 MB. This is a good indication that problems are about to develop, and sure enough I start to get a few complaints for the day or so before the maintenance period.
So, I have a couple options:
1) Simply schedule a 2nd maintenance period during the week, or
2) Set AlwaysUp to restart instances when memory passes a certain point.
#2 would be best, but I'm still not satisfied. I'd like to find some way to allow or cause an automatic restart, but only if there are no active sessions on the instance.
And that's the kicker - I don't know if this can be managed.
So, I'm looking for a graceful way to automate instance restarts, without randomly kicking off logged-in users.
Any thoughts on how to manage this?
Right now, I use AlwaysUp to restart all instances on Friday night, 6:30 PM EST. We notify all our users of this standing policy so this is an expected maintenance period that I often use for other things as well.
I think in the past it's been recommended that instances be restarted once a day but that would just kick off too many uses throughout the week - I can't do that.
We've generally been getting by with the once-a-week maintenance. But now our user base has grown enough and the instances are used heavily enough that I believe the instances need restarting more than once a week. Memory usage on all of them is climbing past 1500 MB. This is a good indication that problems are about to develop, and sure enough I start to get a few complaints for the day or so before the maintenance period.
So, I have a couple options:
1) Simply schedule a 2nd maintenance period during the week, or
2) Set AlwaysUp to restart instances when memory passes a certain point.
#2 would be best, but I'm still not satisfied. I'd like to find some way to allow or cause an automatic restart, but only if there are no active sessions on the instance.
And that's the kicker - I don't know if this can be managed.
So, I'm looking for a graceful way to automate instance restarts, without randomly kicking off logged-in users.
Any thoughts on how to manage this?
Comment