MarkLogic群集中的哪个节点运行CPF操作模块? [英] Which node in a MarkLogic cluster runs the CPF Action Module?

查看:73
本文介绍了MarkLogic群集中的哪个节点运行CPF操作模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含3个节点的MArkLogic集群:

I have a MArkLogic cluster with 3 nodes:

  1. 节点1
  2. 节点2
  3. 节点3
  1. Node 1
  2. Node 2
  3. Node 3

在此群集环境中,我有一个数据库 test ,其中有一个林 test-01 . 林 test-01 主要主机节点1 上.另外,我在数据库 test

On this clustered environemnt I have a database test which has one forest test-01. The Primary Host for the forest test-01 is on Node 1. Also, I have CPF installed on the database test

现在,当我在数据库 test 中插入任何文档时,CPF操作模块将在哪个Node的Task Server线程上执行?

Now, when I insert any document in the database test, the CPF action module will be executed on which Node's Task Server thread?

将在其中创建文档的林的主要主机 始终执行CPF操作模块吗?

Will the Primary Host of the forest in which the document gets created ALWAYS executes the CPF action module?

如果我在节点2 节点3 上配置目录林 test-01 的故障转移副本,然后在该节点上停止MarkLogic服务,该怎么办? 节点01 .哪个节点的任务服务器将执行CPF操作模块?

What If I configure a failover replica of forest test-01 on Node 2 and Node 3 and after that stop the MarkLogic service on Node 01. which Node's Task Server will then execute the CPF action modules?

推荐答案

CPF使用触发器.预提交触发器将在处理更新的同一主机上触发.这与林和群集配置无关.提交后触发器将在具有受影响的林的主机上的任务服务器上运行(感谢John Snelson纠正了我对此的理解).

CPF uses triggers. A pre-commit trigger will fire on the same host that processes the update. This is independent of forest and cluster configuration. A post-commit trigger will run on the Task Server on the host with the affected forest (thanks to John Snelson for correcting my understanding on this point).

CPF动作同时使用两种触发器.因此,如果要将触发器限制为单个主机,请确保在该主机上处理所有更新 ,并确保所有受影响的林都在同一主机上.您还希望通过将更新流量移至下一个主机来处理主机故障转移.

CPF actions use both kinds of triggers. So if you want to limit triggers to a single host, ensure that all your updates are processed on that host and ensure all the affected forests are on that same host. You'd also want to handle host failover by moving update traffic to the next host.

CPF还使用数据库联机事件,这有点不同.我相信它可以在任何主机上运行,​​但是它可能仅限于具有连接到数据库的任何林的主机.

CPF also uses the database online event, which is a little different. I believe that can run on any host, but it may be limited to hosts with any forests attached to the database.

这篇关于MarkLogic群集中的哪个节点运行CPF操作模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆