Instances restarting on a schedule - or not

2012-08-09 Thread Klaus Berkling
Occasionally I write something useful, for someone - herding sheep on the grassy, rolling hills of the island. :-)For the archives:The way instances roll-over is when- the wotaskd daemon tells the instance to stop accepting connections/sessions, based on a schedule- the app instance is to quit when it reaches 0 sessions (this is a configuration, you call tell it to terminate at x number of sessions)- the auto-recover flag tells wotaskd to start the instance againDoing this gracefully allows sessions to be finished by the end users. There is an option to do this not gracefully, in which case the instances is unceremoniously terminated.Sometimes instances don’t quit on their own. This looks like the image below. 'Refuse New Sessions' is on, and ‘Auto-Recover' is on, and the instance is still running. Something is hung - ether a thread or a sessions refuses to time-out. This is a bug in the app's code. The instance can’t quit on its own.The indicators/buttons are yellow because these flags are assumed and disabled when scheduling is enabled.There will be a ‘No Instances Available’ error page if there are no other instances accepting connections.
http://www.berkling.us/theothersite/page1/files/wo_instances_restarting.htmlkib"The trouble with normal is it always gets worse."Bruce CockburnKlaus BerklingWeb Application Dev.  Systems AnalystDynEd International, Inc.www.dyned.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Instances restarting on a schedule - or not

2012-08-09 Thread Chuck Hill

On 2012-08-09, at 2:40 PM, Klaus Berkling wrote:

 Occasionally I write something useful, for someone  - herding sheep on the 
 grassy, rolling hills of the island. :-) 


Goats, man, goats!   Sheep. sheesh!

:-P


 For the archives:
 
 The way instances roll-over is when 
 - the wotaskd daemon tells the instance to stop accepting 
 connections/sessions, based on a schedule
 - the app instance is to quit when it reaches 0 sessions (this is a 
 configuration, you call tell it to terminate at x number of sessions)
 - the auto-recover flag tells wotaskd to start the instance again
 
 Doing this gracefully allows sessions to be finished by the end users. There 
 is an option to do this not gracefully, in which case the instances is 
 unceremoniously terminated.
 
 Sometimes instances don’t quit on their own. This looks like the image below. 
 'Refuse New Sessions' is on, and ‘Auto-Recover' is on, and the instance is 
 still running.  Something is hung - ether a thread or a sessions refuses to 
 time-out. This is a bug in the app's code. The instance can’t quit on its own.
 
 The indicators/buttons are yellow because these flags are assumed and 
 disabled when scheduling is enabled.
 
 There will be a ‘No Instances Available’ error page if there are no other 
 instances accepting connections.
 
 Screen Shot 2012-08-09 at 1.42.46 PM.png
 
 http://www.berkling.us/theothersite/page1/files/wo_instances_restarting.html
 
 
 kib
 
 The trouble with normal is it always gets worse.
 Bruce Cockburn
 
 Klaus Berkling
 Web Application Dev.  Systems Analyst
 DynEd International, Inc.
 www.dyned.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net

-- 
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/gvc/practical_webobjects









 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Instances restarting on a schedule - or not

2012-08-09 Thread Klaus Berkling

On Aug 9, 2012, at 3:35 PM, Chuck Hill wrote:

 Occasionally I write something useful, for someone  - herding sheep on the 
 grassy, rolling hills of the island. :-) 
 
 
 Goats, man, goats!   Sheep. sheesh!

Sorry wrong frame of mind.  I live in the California central valley. We have 
Sheep... and its 103F/39C (maybe it's the heat).



kib

Success is not final, failure is not fatal: it is the courage to continue that 
counts.
Winston Churchill

Klaus Berkling
Web Application Dev.  Systems Analyst
DynEd International, Inc.
www.dyned.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Instances restarting on a schedule - or not

2012-08-09 Thread Chuck Hill

On 2012-08-09, at 4:22 PM, Klaus Berkling wrote:

 
 On Aug 9, 2012, at 3:35 PM, Chuck Hill wrote:
 
 Occasionally I write something useful, for someone  - herding sheep on the 
 grassy, rolling hills of the island. :-) 
 
 
 Goats, man, goats!   Sheep. sheesh!
 
 Sorry wrong frame of mind.  I live in the California central valley. We have 
 Sheep... and its 103F/39C (maybe it's the heat).

:-)  Miguel is THERE!


-- 
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/gvc/practical_webobjects









 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Instances restarting on a schedule - or not

2012-08-09 Thread Miguel Arroz
Hi,

  /me looks at his screen and the huge freaking mess that goes around a serious 
bug he's trying to fix…

  I wish! Both for the heat and the goats! Or sheep!

  Regards,

Miguel Arroz


On 2012-08-09, at 4:24 PM, Chuck Hill ch...@global-village.net wrote:

 
 On 2012-08-09, at 4:22 PM, Klaus Berkling wrote:
 
 
 On Aug 9, 2012, at 3:35 PM, Chuck Hill wrote:
 
 Occasionally I write something useful, for someone  - herding sheep on the 
 grassy, rolling hills of the island. :-) 
 
 
 Goats, man, goats!   Sheep. sheesh!
 
 Sorry wrong frame of mind.  I live in the California central valley. We have 
 Sheep... and its 103F/39C (maybe it's the heat).
 
 :-)  Miguel is THERE!
 
 
 -- 
 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/gvc/practical_webobjects
 
 
 
 
 
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com
 
 This email sent to ar...@guiamac.com



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com