On Thursday, 17 October 2013 at 12:45PM, Eric Redmond wrote:
> Apologies that it's unclear, and I'll update the docs to correct this.
> 
> http://docs.basho.com/riak/latest/ops/advanced/install-custom-code/
> 
> When you install custom code, you must install that code on every node.
> 
> Eric
> 
> On Oct 17, 2013, at 9:17 AM, Tristan Foureur <[email protected] 
> (mailto:[email protected])> wrote:
> > Hi,
> > 
> > My question is simple, but really I cannot find a clear answer anywhere in 
> > the documentation. I understand how a cluster works, and how a hook works, 
> > but if you have a hook on a certain bucket and commit to a node on that 
> > bucket, is the hook triggered only on that node, on all the nodes, or only 
> > on the nodes that will actually host that key?
The hook is only triggered on one node, the write coordinator. 

This is not always the exact same node that you sent the request to. 

Because you can't predict which node the coordinator will be on, the code must 
be loaded on every single node, as Eric pointed out.

Sam 
> > 
> > I ask this because I deployed my pre-commit hook to one node only, and then 
> > sometimes the insert failed telling me my precommit hook was "undef", and 
> > it was fixed by deploying the hook to all vnodes.
> > 
> > Thanks! _______________________________________________
> > riak-users mailing list
> > [email protected] (mailto:[email protected])
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> _______________________________________________
> riak-users mailing list
> [email protected] (mailto:[email protected])
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to