Hi,

I'm trying to do a POC using neo4j and spring-data-graph. I have configured 3 
VMs running zookeeper and deployed a simple webapp to tomcat on each instance. 
I've run into a bit of a problem with replication though. I can only see data 
being replicated when I restart each tomcat instance – which is obviously no 
good.

I have the following in my application context:

    <bean id="graphDatabaseService" 
class="org.neo4j.kernel.HighlyAvailableGraphDatabase" destroy-method="shutdown"
          scope="singleton">
        <constructor-arg index="0" value="${database.path}"/>
        <constructor-arg index="1">
            <map>
                <entry key="ha.machine_id" value="${server.id}" />
                <entry key="ha.server" value="zoo1:${ha.server.port}" />
                <entry key="ha.zoo_keeper_servers" value="${zookeeper.servers}" 
/>
                <entry key="enable_remote_shell" value="port=1331" />
                <entry key="pull_interval" value="1" />
            </map>
        </constructor-arg>
    </bean>

I am starting "zoo1" first so that it becomes the master. Server.id is 
allocated at runtime from a system property set on each machine –Dserver.id=x 
in the tomcat startup script. From what I understand the pull_interval=1 
setting means that data should be synchronized once per second, yet I am only 
seeing it happen when the servers are bounced. Am I missing something?

Thanks,

Toby.

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to