It's really hard for us to test every single combinations of usage...

If you really want to use a local inVM, with a backup on a netty
connection.. that *should* work... but I'm not aware of any tests on
that direction... I haven't seen anyone testing that. Not on our
testsuite.. nor anywhere else I have looked.


So, if you could use HA with a Netty connection.. live/backup as
Netty.. it's probably best..



Although, if you really want the InVM for any reason (Netty will be
really fast enough already), you may test.. and even contribute tests
to our testsuite if you like.




On Wed, May 24, 2017 at 4:59 AM, Brett Delle Grazie
<brett.dellegra...@gmail.com> wrote:
> Hi,
>
> I'm trying to build a 2 cluster with colocated backups and replication (not
> shared store). In my particular case I need to use static definitions
> rather than UDP or JGroups. These are vagrant instances not real. We are
> dealing with persistent messages and are attempting to minimise the risk of
> message loss.
>
> I have two questions:
> 1) Do I need to explicitly add the connectors for the co-located JVMs to
> the list of connectors? if so, should they also be added to the
> cluster-connections/static_connectors section as well?
> 2) ha-policy/replication/colocated/excludes - am I excluding the right
> things here? I've followed the 'scale-down' example but I'm not sure this
> is right in this case and the documentation around excludes is somewhat
> confusing.
>
> If there's any other advice / recommendations people have regarding a setup
> like this, please feel free.
>
> Thanks in advance,
>
> Brett
>
> Node-1:
>       <acceptors>
>          <acceptor name="invm-acceptor">vm://0</acceptor>
>          <acceptor name="netty-acceptor">tcp://
> 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
> </acceptor>
>       </acceptors>
>
>       <connectors>
>          <connector name="invm-connector">vm://0</connector>
>          <connector name="node-1-connector">tcp://172.28.128.3:61616
> </connector>
>          <connector name="node-2-connector">tcp://172.28.128.4:61616
> </connector>
>       </connectors>
>       <cluster-connections>
>          <cluster-connection name="vagrant">
>             <address>jms</address>
>             <connector-ref>node-1-connector</connector-ref>
>             <static-connectors>
>                <connector-ref>node-1-connector</connector-ref>
>                <connector-ref>node-2-connector</connector-ref>
>             </static-connectors>
>          </cluster-connection>
>       </cluster-connections>
>       <ha-policy>
>          <replication>
>             <colocated>
>                <max-backups>1</max-backups>
>                <request-backup>true</request-backup>
>
>  <backup-request-retry-interval>1000</backup-request-retry-interval>
>                <excludes>
>                   <connector-ref>invm-connector</connector-ref>
>                   <connector-ref>node-1-connector</connector-ref>
>                   <!-- <connector-ref>node-2-connector</connector-ref> -->
>                </excludes>
>                <master>
>                  <check-for-live-server>true</check-for-live-server>
>                </master>
>                <slave>
>                  <allow-failback>true</allow-failback>
>                </slave>
>             </colocated>
>          </replication>
>       </ha-policy>
>
> Node 2:
>       <acceptors>
>          <acceptor name="invm-acceptor">vm://0</acceptor>
>          <acceptor name="netty-acceptor">tcp://
> 0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
> </acceptor>
>       </acceptors>
>
>       <cluster-user>cluster</cluster-user>
>       <cluster-password>cluster</cluster-password>
>
>       <connectors>
>          <connector name="invm-connector">vm://0</connector>
>          <connector name="node-1-connector">tcp://172.28.128.3:61616
> </connector>
>          <connector name="node-2-connector">tcp://172.28.128.4:61616
> </connector>
>       </connectors>
>       <cluster-connections>
>          <cluster-connection name="vagrant">
>             <address>jms</address>
>             <connector-ref>node-2-connector</connector-ref>
>             <static-connectors>
>                <connector-ref>node-1-connector</connector-ref>
>                <connector-ref>node-2-connector</connector-ref>
>             </static-connectors>
>          </cluster-connection>
>       </cluster-connections>
>       <ha-policy>
>          <replication>
>             <colocated>
>                <max-backups>1</max-backups>
>                <request-backup>true</request-backup>
>
>  <backup-request-retry-interval>1000</backup-request-retry-interval>
>                <excludes>
>                   <connector-ref>invm-connector</connector-ref>
>                   <!-- <connector-ref>node-1-connector</connector-ref> -->
>                   <connector-ref>node-2-connector</connector-ref>
>                </excludes>
>                <master>
>                  <check-for-live-server>true</check-for-live-server>
>                </master>
>                <slave>
>                  <allow-failback>true</allow-failback>
>                </slave>
>             </colocated>
>          </replication>
>       </ha-policy>
>
>
>
> --
> Kind regards,
>
> Brett Delle Grazie



-- 
Clebert Suconic

Reply via email to