Where does post-commit ricky work?

I'm trying to evaluate using Riak Post-Commit Hooks to create a distributed, incremental index based on MapReduce, but wondered which Riak nodes are actually running. Are they executed on the nodes that the client used to place commits, or on the primary nodes where the data is stored? If this is the last, I think that I can efficiently make a map from there or reduce and add additional entries from the output.

+7
source share
1 answer

From docs

Post-commit hooks are run after the write has completed successfully. Specifically,the hook function is called by riak_kv_put_fsm immediately before the calling process is notified of the successful write 

riak_kv_put_fsm handles the "coordination of Riak PUT requests", so the message commit hook starts on the node coordinator, i.e. node that the client sent put.

+2
source

All Articles