Multiple nodes leaving cluster

2017-02-07 Thread Daniel Miller
Hi Riak Users, In the documentation for riak-admin cluster leave it says “You can stage multiple leave command before planning/committing.” This implies that it is safe to stage multiple nodes leaving the cluster simultaneously. Is

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread my hue
Dear Russel, Let me try with your suggestion with an new, empty key and use modify_type to update a single register. And I will feedback to you on my result test. Best regards, Hue Tran On Tue, Feb 7, 2017 at 5:37 PM, Russell Brown wrote: > > On 7 Feb 2017, at 10:27,

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread my hue
Dear Russell, Yes, I updated all registers in one go. And I do not try yet with updating a single register at a time. let me try to see. But I wonder that any affect on solving conflict at riak cluster if update all in one go? On Tue, Feb 7, 2017 at 5:18 PM, Russell Brown

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread Russell Brown
So in you’re updating all those registers in one go? Out of interest, what happens if you update a single register at a time? On 7 Feb 2017, at 10:02, my hue wrote: > Dear Russel, > > > Can you run riakc_map:to_op(Map). and show me the output of that, please? >

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread Russell Brown
On 7 Feb 2017, at 09:34, my hue wrote: > Dear Russell, > > >What operation are you performing? What is the update you perform? Do you > >set a register value, add a register, remove a register? > > I used riakc_map:update to update value with map. I do the

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread my hue
Dear Russell, >What operation are you performing? What is the update you perform? Do you set a register value, add a register, remove a register? I used riakc_map:update to update value with map. I do the following steps : - Get FetchData map with fetch_type - Extract key, value, context from

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread Russell Brown
On 7 Feb 2017, at 08:17, my hue wrote: > Dear John and Russell Brown, > > * How fast is your turnaround time between an update and a fetch? > > The turnaround time between an update and a fetch about 1 second. > During my team and I debug, we adjusted haproxy

Re: [Basho Riak] Fail To Update Document Repeatly With Cluster of 5 Nodes

2017-02-07 Thread my hue
Dear John and Russell Brown, * How fast is your turnaround time between an update and a fetch? The turnaround time between an update and a fetch about 1 second. During my team and I debug, we adjusted haproxy with the scenario as follow: Scenario 1 : round robin via 5 nodes of cluster We meet