[Mono-list] Reload mod_mono assemblies without dropping
connections
Joshua Tauberer
tauberer at for.net
Thu Sep 22 09:32:48 EDT 2005
Gavin Hamill wrote:
> I've seen this question asked several times, but neither on the list nor with
> Google have I found a solution.
>
> At present I am required to restart apache, thus losing any active browser
> sessions - this is hardly a 'production grade' solution and there /must/ be a
> better way..
Hi,
What you can do is restart individual mod-mono-server.exe processes
using the mod_mono control panel. See: http://mono-project.com/Mod_mono
(I don't think the control panel was in the version mentioned by the
previous poster on this thread.) That'll let you reload testing
environments without affecting the production application, for instance.
To do that, you'll need to make sure you split your production and
testing environments into two so-called applications in separate
mod-mono-servers by using separate AddMonoApplications directives with
different aliases (see the section Two Applications, Two mod-mono-servers).
If additionally the AddMonoApplications directives are within separate
VirtualHost sections, at least in Apache 2, the mod_mono control panel
for each virtual host will restart just the corresponding
mod-mono-server. Otherwise, there's no way to restart just one. (I
posted a patch that fixes that and does other things a few days ago --
I'll try to commit just this portion of the patch soon so you can always
restart mod-mono-servers selectively.)
Hope that helps.
--
- Joshua Tauberer
http://taubz.for.net
** Nothing Unreal Exists **
More information about the Mono-list
mailing list