Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为 riak 实现了几个钩子,这些钩子当前驻留在不在 riak 路径中的模块中。
每当我希望为特定存储桶安装挂钩时,我首先运行 load_module 以确保 riak 节点可以调用挂钩。问题是,如果其中一个节点出现故障然后又恢复,它仍会尝试调用挂钩,但无法访问该模块。
处理此问题的推荐方法是什么?我认为的一个想法是修改 ERL_LIBS 以便将钩子包含在其路径中,这是正确的方法吗?
就放
-pz /path/to/hook/module/
在vm.args文件的末尾(它在/etc/riak/我的安装中)
vm.args
/etc/riak/