Bug 49903 - Make workers file reloadable
Summary: Make workers file reloadable
Status: NEW
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL: http://www.mail-archive.com/users@tom...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 02:20 UTC by Ruslan
Modified: 2015-04-30 04:34 UTC (History)
1 user (show)



Attachments
Patch for tomcat-connectors 1.2.30 (8.45 KB, patch)
2010-09-09 02:20 UTC, Ruslan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan 2010-09-09 02:20:20 UTC
Created attachment 26007 [details]
Patch for tomcat-connectors 1.2.30

File with mounts (one which specified using JkMountFile in apache connector)
already reloadable. The same functionality needed for workers file.

Besides obvious use to add or remove workers as needed, there is other reasons to implement it. For example timeouts or activation can be either set at
startup time or modified through jkstatus interface. However, when modified
through the jkstatus, the same settings must be duplicated into workers file - this is tedious and error-prone.

Also property like JkWorkersFileReload needs to be added.

I`ve created patch file partially implements such functionality,
with the following restrictions
 - Only Apache2 connector (tried on 2.2.16)
 - Requires JkShmSize directive to be used (to allocate enough space in shared memory for future workers)
 - Only works during maintain phase, so JkWatchdogInterval must be set