You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ssheth <ss...@ais.ucla.edu> on 2010/05/06 15:57:20 UTC

ServiceMix Deployment

We are going to use an external loadbalancer before a request hits ServiceMix
running on three different machines. This configuration doesn't require us
to configure SM in a cluster or in HA mode. How do we ensure that ActiveMQ
Brokers talk to same persistenace store without configuring SM instances in
Master Slave mode? Do we stop default ActiveMQ broker in SM instances and
use broker on external ActiveMQ configured as Master Slave?
-- 
View this message in context: http://old.nabble.com/ServiceMix-Deployment-tp28474019p28474019.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: ServiceMix Deployment

Posted by Chris Custine <ch...@gmail.com>.
If you want a central AMQ broker with shared filesystem Master/Slave, you
can just configure a M/S setup externally and point your jms provider
endpoints at those brokers using the failover: url.  Its hard to give too
much more advice without more detail about your message flow.
--
Chris Custine
FUSESource :: http://fusesource.com
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Felix :: http://felix.apache.org
Apache Directory Server :: http://directory.apache.org


On Mon, May 10, 2010 at 10:14 PM, ssheth <ss...@ais.ucla.edu> wrote:

>
> >>As you talk about an external loadbalancer, I guess that you're going to
> >>loadbalance HTTP requests.
> Can JMS request be load balanced?
>
> We are going to use Service Mix 4.2.
>
> Can anyone respond to second part of the question:
> Do we need to stop default ActiveMQ broker in SM instances and
> use broker on external ActiveMQ configured as Master Slave?
>
> Thanks
>
>
>
> Jean-Baptiste Onofré wrote:
> >
> > Hi,
> >
> > As you talk about an external loadbalancer, I guess that you're going to
> > loadbalance HTTP requests.
> >
> > Which version of ServiceMix do you expect to use ?
> >
> > Anyway, in ActiveMQ, to share the same persistence adapter (in the
> > activemq.xml), you can use:
> > - a NFS mount share in all ActiveMQ nodes using a file adapter:
> > <amq:persistenceAdapter>
> > <amq:amqPersistenceAdapter directory="file:/nfs/mount/data"/>
> > </amq:persistenceAdapter>
> > - a "clean" solution is to use a journaled JDBC persistence adapter
> > <amq:persistenceAdapter>
> > <amq:journaledJDBC journalLogFiles="5" dataDirectory="/data/"
> > dataSource="#jdbcDataSource"/>
> > </amq:persistenceAdapter>
> >
> > A killer feature in ActiveMQ 5.3.x is the Kaha backend. I never tried
> > this configuration in a multi-nodes configuration, but you can try:
> >      <amq:persistenceAdapter>
> >        <amq:kahaPersistenceAdapter directory="activemq-data"
> > maxDataFileLength="33554432"/>
> >      </amq:persistenceAdapter>
> >
> > Regards
> > JB
> >
> > On 05/06/2010 03:57 PM, ssheth wrote:
> >>
> >> We are going to use an external loadbalancer before a request hits
> >> ServiceMix
> >> running on three different machines. This configuration doesn't require
> >> us
> >> to configure SM in a cluster or in HA mode. How do we ensure that
> >> ActiveMQ
> >> Brokers talk to same persistenace store without configuring SM instances
> >> in
> >> Master Slave mode? Do we stop default ActiveMQ broker in SM instances
> and
> >> use broker on external ActiveMQ configured as Master Slave?
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/ServiceMix-Deployment-tp28474019p28519793.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: ServiceMix Deployment

Posted by ssheth <ss...@ais.ucla.edu>.
>>As you talk about an external loadbalancer, I guess that you're going to 
>>loadbalance HTTP requests.
Can JMS request be load balanced?

We are going to use Service Mix 4.2. 

Can anyone respond to second part of the question:
Do we need to stop default ActiveMQ broker in SM instances and
use broker on external ActiveMQ configured as Master Slave?

Thanks



Jean-Baptiste Onofré wrote:
> 
> Hi,
> 
> As you talk about an external loadbalancer, I guess that you're going to 
> loadbalance HTTP requests.
> 
> Which version of ServiceMix do you expect to use ?
> 
> Anyway, in ActiveMQ, to share the same persistence adapter (in the 
> activemq.xml), you can use:
> - a NFS mount share in all ActiveMQ nodes using a file adapter:
> <amq:persistenceAdapter>
> <amq:amqPersistenceAdapter directory="file:/nfs/mount/data"/>
> </amq:persistenceAdapter>
> - a "clean" solution is to use a journaled JDBC persistence adapter
> <amq:persistenceAdapter>
> <amq:journaledJDBC journalLogFiles="5" dataDirectory="/data/" 
> dataSource="#jdbcDataSource"/>
> </amq:persistenceAdapter>
> 
> A killer feature in ActiveMQ 5.3.x is the Kaha backend. I never tried 
> this configuration in a multi-nodes configuration, but you can try:
>      <amq:persistenceAdapter>
>        <amq:kahaPersistenceAdapter directory="activemq-data" 
> maxDataFileLength="33554432"/>
>      </amq:persistenceAdapter>
> 
> Regards
> JB
> 
> On 05/06/2010 03:57 PM, ssheth wrote:
>>
>> We are going to use an external loadbalancer before a request hits
>> ServiceMix
>> running on three different machines. This configuration doesn't require
>> us
>> to configure SM in a cluster or in HA mode. How do we ensure that
>> ActiveMQ
>> Brokers talk to same persistenace store without configuring SM instances
>> in
>> Master Slave mode? Do we stop default ActiveMQ broker in SM instances and
>> use broker on external ActiveMQ configured as Master Slave?
> 
> 

-- 
View this message in context: http://old.nabble.com/ServiceMix-Deployment-tp28474019p28519793.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: ServiceMix Deployment

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

As you talk about an external loadbalancer, I guess that you're going to 
loadbalance HTTP requests.

Which version of ServiceMix do you expect to use ?

Anyway, in ActiveMQ, to share the same persistence adapter (in the 
activemq.xml), you can use:
- a NFS mount share in all ActiveMQ nodes using a file adapter:
<amq:persistenceAdapter>
<amq:amqPersistenceAdapter directory="file:/nfs/mount/data"/>
</amq:persistenceAdapter>
- a "clean" solution is to use a journaled JDBC persistence adapter
<amq:persistenceAdapter>
<amq:journaledJDBC journalLogFiles="5" dataDirectory="/data/" 
dataSource="#jdbcDataSource"/>
</amq:persistenceAdapter>

A killer feature in ActiveMQ 5.3.x is the Kaha backend. I never tried 
this configuration in a multi-nodes configuration, but you can try:
     <amq:persistenceAdapter>
       <amq:kahaPersistenceAdapter directory="activemq-data" 
maxDataFileLength="33554432"/>
     </amq:persistenceAdapter>

Regards
JB

On 05/06/2010 03:57 PM, ssheth wrote:
>
> We are going to use an external loadbalancer before a request hits ServiceMix
> running on three different machines. This configuration doesn't require us
> to configure SM in a cluster or in HA mode. How do we ensure that ActiveMQ
> Brokers talk to same persistenace store without configuring SM instances in
> Master Slave mode? Do we stop default ActiveMQ broker in SM instances and
> use broker on external ActiveMQ configured as Master Slave?