You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Artur Satarov <ar...@gmail.com> on 2007/02/26 09:35:45 UTC

two or more instances of James with one database backend

Hi all.
Does anybody use two or more instances of James with one database
backend? I was trying to create test configuration:
-	Balance on linux box
Balance –H 25 <james_server_1> <james_server_2> %
Balance –H 110 <james_server_1> <james_server_2> %
-	two james instances (james_server_1, james_server_2) with same configurations.
-	PostgreSql database
It works fine at first glance. But correct work with great load and
concurrent db access is uncertain for me. Is anybody can list to me
possible problems with this configuration?

Thanks for advice.

-- 
Best regards,
Artur.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


R: two or more instances of James with one database backend

Posted by Marcello Marangio <m....@tno.it>.
Hi
I think we are going to adopt this approach: 2 different mail/spool
repositories and same inbox repository with a simple db-based pop3 lock.
Ciao
Marcello

> -----Messaggio originale-----
> Da: Stefano Bagnara [mailto:apache@bago.org]
> Inviato: sabato 10 marzo 2007 17.42
> A: James Users List
> Oggetto: Re: two or more instances of James with one database backend
> 
> You cannot share mail/spool repositories between james instances.
> They uses application locking, so they will fail to lock and that could
> lead to multiple processing of the same message and various errors.
> 
> I replied many times on this argument. An attempt to support distributed
> locking has been done (james-ha project on sourceforge), but I suggest
> to use the primary/secondary MX solution that is part of the SMTP
> specification: 1 server is primary and handle mails, the second server
> is the secondary and simply keeps mails in the spool (outgoing) waiting
> for the first server to come back to life.
> 
> Stefano
> 
> Artur Satarov ha scritto:
> > Hi all.
> > Does anybody use two or more instances of James with one database
> > backend? I was trying to create test configuration:
> > -    Balance on linux box
> > Balance -H 25 <james_server_1> <james_server_2> %
> > Balance -H 110 <james_server_1> <james_server_2> %
> > -    two james instances (james_server_1, james_server_2) with same
> > configurations.
> > -    PostgreSql database
> > It works fine at first glance. But correct work with great load and
> > concurrent db access is uncertain for me. Is anybody can list to me
> > possible problems with this configuration?
> >
> > Thanks for advice.
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: two or more instances of James with one database backend

Posted by Stefano Bagnara <ap...@bago.org>.
You cannot share mail/spool repositories between james instances.
They uses application locking, so they will fail to lock and that could 
lead to multiple processing of the same message and various errors.

I replied many times on this argument. An attempt to support distributed 
locking has been done (james-ha project on sourceforge), but I suggest 
to use the primary/secondary MX solution that is part of the SMTP 
specification: 1 server is primary and handle mails, the second server 
is the secondary and simply keeps mails in the spool (outgoing) waiting 
for the first server to come back to life.

Stefano

Artur Satarov ha scritto:
> Hi all.
> Does anybody use two or more instances of James with one database
> backend? I was trying to create test configuration:
> -    Balance on linux box
> Balance –H 25 <james_server_1> <james_server_2> %
> Balance –H 110 <james_server_1> <james_server_2> %
> -    two james instances (james_server_1, james_server_2) with same 
> configurations.
> -    PostgreSql database
> It works fine at first glance. But correct work with great load and
> concurrent db access is uncertain for me. Is anybody can list to me
> possible problems with this configuration?
> 
> Thanks for advice.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: [2] two or more instances of James with one database backend

Posted by sunsetartproducts <ha...@yahoo.com>.
You should be able to run two instances of James with one Database, the
database would just wait for one process to finish before starting the next.
The databases are built to handle heavy loads.

 The problem I see is that you can't run two instances of James on the same
machine both trying to have exclusive use of the same port (25 and 110) the
first insstance would run and the second instance would crash since it
couldn't get exclusive use of the port. IF you had two instances of James
runnig on two different servers, but accessing the same database, that would
theoretically work.


Hi all.
Does anybody use two or more instances of James with one database
backend? 
-- 
View this message in context: http://www.nabble.com/two-or-more-instances-of-James-with-one-database-backend-tf3291532.html#a9406445
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org