You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Danny Angus <Da...@slc.co.uk> on 2005/08/26 10:16:27 UTC
Re: [jira] Created: (JAMES-415) Dynamic reload for some configuration
of main services (e.g: servernames)
Stefano
the important issue with this (dynamic reconfig) which needs to be
considered is..
What we're trying to achieve is reconfiguration without stopping the
server.
Whatever that means.
Ok ... then lets make it mean 'without breaking any mail protocol
connections'.
Now that it is in scope for the reconfig to halt processing...
The assembly of the mailet/matcher processor pipeline is defined in the
config file.
In order for the reconfig to allow the processors to be torn down and
reconstructed in a new topolgy without "stopping the server" we have to
stop them cleanly, or else mail which is halfway through will start again
from the top with unpredicted consequences (but not unpredictable, I just
can't be bothered thinking up cases right now).
a) make the processors have a flush() which can be called before they're
destroyed.
b) consider behaviour that will occur when mail is part-way through and the
processor it was entering doesn't exist in the new topology.
This message can't be restarted from the top (it may be a fork of a message
which has started from the top)
It can't be abandoned in limbo - this is resource leakage, and anyway we'd
just get 1,000,001 questions about it on the users list.
So the start up needs to be able to sweep up these limbo cases and send
them to "error"
starting to look like more of a PITA now.
d.
|---------+----------------------------->
| | "Stefano Bagnara |
| | (JIRA)" |
| | <server-dev@james.|
| | apache.org> |
| | |
| | 25/08/2005 17:47 |
| | Please respond to |
| | "James Developers |
| | List" |
|---------+----------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
| |
| To: server-dev@james.apache.org |
| cc: |
| Subject: [jira] Created: (JAMES-415) Dynamic reload for some configuration of main services (e.g: servernames) |
>-------------------------------------------------------------------------------------------------------------------------------|
Dynamic reload for some configuration of main services (e.g: servernames)
-------------------------------------------------------------------------
Key: JAMES-415
URL: http://issues.apache.org/jira/browse/JAMES-415
Project: James
Type: New Feature
Components: James Core
Versions: 2.2.0
Reporter: Stefano Bagnara
Priority: Minor
We probably could try to reload most of the config.xml by implementing and
handling the Reconfigurable interface and running in a compliat container
(maybe latest excalibur, merlin or even loom).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only. If you are not the intended recipient (or responsible for delivery of the message to the intended recipient) please notify us immediately on 0141 306 2050 and delete the message from your computer. You may not copy or forward it or use or disclose its contents to any other person. As Internet communications are capable of data corruption Student Loans Company Limited does not accept any responsibility for changes made to this message after it was sent. For this reason it may be inappropriate to rely on advice or opinions contained in an e-mail without obtaining written confirmation of it. Neither Student Loans Company Limited or the sender accepts any liability or responsibility for viruses as it is your responsibility to scan attachments (if any). Opinions and views expressed in this e-mail are those of the sender and may not reflect the opinions and views of The Student Loans Company Limit
ed.
This footnote also confirms that this email message has been swept for the presence of computer viruses.
**************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: [jira] Created: (JAMES-415) Dynamic reload for some configuration
of main services (e.g: servernames)
Posted by Ahmed Mohombe <am...@yahoo.com>.
Hi Danny,
> starting to look like more of a PITA now.
Isn't there a simpler solution? At least for reloading only those
settings that really change, not the entire config file?
At the moment the most required option to be reloadable is servernames.
Noel's post sounds much simpler than you described in your post.
Am I overseeing something?
Thanks in advance,
Ahmed.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: [jira] Created: (JAMES-415) Dynamic reload for some configuration of main services (e.g: servernames)
Posted by Stefano Bagnara <ap...@bago.org>.
To give a better overview I would add this statement to this thread:
"The main issue with reloadability of the spoolmanager is that Phoenix does
never reload the DefaultConfiguration object.
We should switch to Fortress or another avalon container that does reload
the configuration upon request."
> > In order for the reconfig to allow the processors to be
> torn down and
> > reconstructed in a new topolgy without "stopping the
> server" we have
> > to stop them cleanly, or else mail which is halfway through
> will start
> > again from the top with unpredicted consequences (but not
> > unpredictable, I just can't be bothered thinking up cases
> right now).
> >
> > a) make the processors have a flush() which can be called before
> > they're destroyed.
>
> This seems not so difficult.
> LinearProcessor is already Disposable.
> JamesSpoolManager is already Disposable.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: [jira] Created: (JAMES-415) Dynamic reload for some configuration of main services (e.g: servernames)
Posted by Stefano Bagnara <ap...@bago.org>.
> In order for the reconfig to allow the processors to be torn
> down and reconstructed in a new topolgy without "stopping the
> server" we have to stop them cleanly, or else mail which is
> halfway through will start again from the top with
> unpredicted consequences (but not unpredictable, I just can't
> be bothered thinking up cases right now).
>
> a) make the processors have a flush() which can be called
> before they're destroyed.
This seems not so difficult.
LinearProcessor is already Disposable.
JamesSpoolManager is already Disposable.
> b) consider behaviour that will occur when mail is part-way
> through and the processor it was entering doesn't exist in
> the new topology.
> This message can't be restarted from the top (it may be a
> fork of a message which has started from the top) It can't be
> abandoned in limbo - this is resource leakage, and anyway
> we'd just get 1,000,001 questions about it on the users list.
> So the start up needs to be able to sweep up these limbo
> cases and send them to "error"
This problem DOES ALREADY exists. When you stop james mails can be in ANY
processor. The JamesSpoolManager already take Mails in unknown states and
put them in the ERROR processor.
You currently change the configuration and restart James: I don't see
differences in disposing the SpoolManager and restarting a new one. No
component depends on SpoolManager so we can EASILY dispose it and create a
new instance or just reconfigure it.
> starting to look like more of a PITA now.
I don't see such a PITA here.
IMHO It is more difficult to reload/reconfigure other services but not the
spoolmanager.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org