我正在尝试评估使用 Riak 的 Post-Commit Hooks 来构建一个分布式的、基于 MapReduce 的增量索引,但想知道 Post-Commit Hooks 实际运行在哪些 Riak 节点上。它们是在客户端用于提交提交的节点上运行,还是在持久化数据的主节点上运行?如果是后者,我想我可以从那里有效地做一个映射或减少并从输出中放置额外的记录。
问问题
525 次
1 回答
3
从文档
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 commit 钩子在协调节点上运行,即客户端将 put 发送到的节点。
于 2011-11-30T05:42:50.723 回答