我正在尝试使用Riak的Post-Commit Hooks构建基于MapReduce的分布式增量索引,但想知道Post-Commit Hooks实际运行在哪些Riak节点上。它们是在客户端用于提交的节点上运行,还是在数据持久化的主节点上运行?如果是后者,我想我可以从那里高效地做一个map,或者从输出中减少和放置额外的记录。
发布于 2011-11-30 13:42:51
从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处理“Riak PUT请求的协调”,因此post提交钩子在协调器节点上运行,即客户端将put发送到的节点。
https://stackoverflow.com/questions/8216129
复制相似问题