I remember that with 2.1.5 and it respects read_only attribute for slaves 
too.

Though i haven't tried but in a cluster LOAD_CSV should also redirect all 
of its writes to Master Node unless you are connecting neo4jshell with 
"--path" attributes.

Let me know your Neo4j version and I can check it out.

Thanks,
Sumit
neo4j.com/books/neo4j-essentials/ 

On Friday, 17 April 2015 21:57:45 UTC+5:30, cui r wrote:
>
> Thanks. 
>
> Actually, the slaves are not read-only for LOAD CSV. Somehow load csv 
> slipped through into slaves by one of our developers.
> And the change are not populated to all nodes, the first read returns 53 
> nodes, and the second read returns 29 nodes.
>
> read_only=true set all nodes, including master, to read-only. But we still 
> want master to be writable.
>
>
> On Friday, April 17, 2015 at 4:02:02 AM UTC-4, Sumit Gupta wrote:
>>
>>
>> Set this in your neo4j.properties "read_only=true"
>>
>> But logically your slaves are always read-only in cluster Mode "for the 
>> clients/ end users". Though they can accept write request but they 
>> re-direct those request to Master Node.
>>  
>> All Write transactions are Handled by Master only and then data is 
>> replicated from Master to Slave nodes.
>>
>> Thanks,
>> Sumit
>> neo4j.com/books/neo4j-essentials/
>>
>>
>> On Friday, 17 April 2015 02:15:14 UTC+5:30, cui r wrote:
>>>
>>> Hi,
>>>
>>> What's the configuration to set slave nodes to read-only in a cluster? I 
>>> couldn't find it in the doc and googling.
>>>
>>> Any pointer is appreciated.
>>>
>>> Rick
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to