Re: Crazy deployment idea...
Re: Crazy deployment idea...
- Subject: Re: Crazy deployment idea...
- From: Chuck Hill <email@hidden>
- Date: Wed, 1 Sep 2010 19:09:15 -0400
I think Anjo was talking about something like this a while back. Or maybe we were? I will suggest using number of sessions per instance or the convergence of the Average Transaction and Average Idle time rather than memory load for this. Garbage collection can result in some wide swings in memory usage (if you are not starving the instances of memory) which would likely result in more starting and stopping that actually required. You will also want to take into account scheduled restarts and perhaps how new versions get deployed.
Chuck
On Sep 1, 2010, at 4:17 PM, Pascal Robert wrote:
> I just had a crazy idea getting in my head. Since with JMX you can monitor the heap memory usage and load, I was thinking of using the new REST API in JavaMonitor to add and remove instances based on demand. For example, if an app have only one instance and memory usage have been more than 95% for a certain period of time, the instance or another tool (Nagios or even wotaskd) could start a new instance to offload a bit of processing to the new instance. If memory usage goes down below 30%, you put the second instance in "refuse new sessions" mode and set "auto recover" to off so that you are going back to one instance. That would allow apps to handle higher load when you are slashdotted or any reason your app have way more requests.
>
> I think it's something who is doable. Does anyone have tried something similar? Am I crazy?
>
> ----
> Pascal Robert
> email@hidden
>
> AIM: MacTICanada
> Twitter : pascal_robert
> LinkedIn : http://www.linkedin.com/in/macti
> WO Community profile : http://wocommunity.org/page/member?name=probert
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden