You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "sait.xuc" <xu...@163.com> on 2014/03/13 06:51:04 UTC
Replicated KahaDB Have finished, I want share my code
HI, ALL,
I have finished replicated kahaDB store, I use zookeeper to elect
master, and n slave node.
satisfied this features: (from:
http://activemq.apache.org/kahadb-master-slave.html)
Journal level replication (The translates into lower overhead to the
master to replicate records).
Support for multiple slaves.
Support to dynamically add slaves at runtime.
Uses multiple concurrent data transfer sessions to do an initial slave
synchronization.
Big slave synchronizations can be resumed so synchronization progress is
not lost if a slave is restarted.
A configurable minimum number of replicas allows you to pause processing
until the data has been guaranteed to be replicated enough times.
This is a part of my configure (activemq.xml):
<persistenceFactory>
<bean
xmlns="http://www.springframework.org/schema/beans"
class="org.apache.activemq.store.kahadb.replicated.ReplicatedKahaDBPersistenceFactory"
>
<property name="replicas"
value="3" />
<property name="bind"
value="tcp://0.0.0.0:61619" />
<property name="zkAddress"
value="192.168.0.116:2181,192.168.0.112:2181,192.168.0.112:2182" />
<property name="zkPath"
value="/pinganmq/mqserver" />
<property name="hostname"
value="192.168.0.112:61619;192.168.0.112:63616" />
<property name="clusterName"
value="test-cluster" />
<property name="myid"
value="9" />
<property
name="dataDirectory" value="${activemq.data}" />
</bean>
</persistenceFactory>
I apply to share my code, I code base on activemq 5.8
hope every activemq expert give directions, and improve my code.
so, please tell How can i commit my code for replicated kahaDB.
Thanks by wait.xuc
--
View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-KahaDB-Have-finished-I-want-share-my-code-tp4678943.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Replicated KahaDB Have finished, I want share my code
Posted by mgkrishnan <mg...@gmail.com>.
Can you share the github details and the details on how to make the KahaDB
replication.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-KahaDB-Have-finished-I-want-share-my-code-tp4678943p4726440.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Replicated KahaDB Have finished, I want share my code
Posted by akilahnc <ta...@fmr.com>.
hi,
wondering if it is on github yet?
Thanks!
--
View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-KahaDB-Have-finished-I-want-share-my-code-tp4678943p4713243.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Replicated KahaDB Have finished, I want share my code
Posted by "sait.xuc" <xu...@163.com>.
Thanks for reply. I will share to github and now i is testing it.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-KahaDB-Have-finished-I-want-share-my-code-tp4678943p4679192.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Replicated KahaDB Have finished, I want share my code
Posted by Christian Posta <ch...@gmail.com>.
want to share it on github, or attach to a JIRA?
On Wed, Mar 12, 2014 at 10:51 PM, sait.xuc <xu...@163.com> wrote:
> HI, ALL,
> I have finished replicated kahaDB store, I use zookeeper to elect
> master, and n slave node.
> satisfied this features: (from:
> http://activemq.apache.org/kahadb-master-slave.html)
> Journal level replication (The translates into lower overhead to the
> master to replicate records).
> Support for multiple slaves.
> Support to dynamically add slaves at runtime.
> Uses multiple concurrent data transfer sessions to do an initial slave
> synchronization.
> Big slave synchronizations can be resumed so synchronization progress is
> not lost if a slave is restarted.
> A configurable minimum number of replicas allows you to pause processing
> until the data has been guaranteed to be replicated enough times.
>
> This is a part of my configure (activemq.xml):
> <persistenceFactory>
> <bean
> xmlns="http://www.springframework.org/schema/beans"
> class="org.apache.activemq.store.kahadb.replicated.ReplicatedKahaDBPersistenceFactory"
>>
> <property name="replicas"
> value="3" />
> <property name="bind"
> value="tcp://0.0.0.0:61619" />
> <property name="zkAddress"
> value="192.168.0.116:2181,192.168.0.112:2181,192.168.0.112:2182" />
> <property name="zkPath"
> value="/pinganmq/mqserver" />
> <property name="hostname"
> value="192.168.0.112:61619;192.168.0.112:63616" />
> <property name="clusterName"
> value="test-cluster" />
> <property name="myid"
> value="9" />
> <property
> name="dataDirectory" value="${activemq.data}" />
> </bean>
> </persistenceFactory>
> I apply to share my code, I code base on activemq 5.8
> hope every activemq expert give directions, and improve my code.
> so, please tell How can i commit my code for replicated kahaDB.
> Thanks by wait.xuc
>
>
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-KahaDB-Have-finished-I-want-share-my-code-tp4678943.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
--
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta