1

我们可以将 CEP 存储桶存储在治理注册表下并从多个其他 CEP 节点访问吗?
我们可以将 BAM Hive 脚本存储在治理注册表下并从多个其他 BAM 节点访问吗?

4

3 回答 3

2

If your question is sharing the registry between WSO2 BAM nodes, then of course we can do it. There are multiple ways [1] and if you are having a cluster of BAM analyzer nodes then you need to share the registry among the analyzer nodes[2]

[1] http://wso2.com/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances

[2] http://docs.wso2.org/wiki/display/BAM230/Fully-Distributed%2C+High-Availability+BAM+Setup

于 2013-08-07T08:19:14.750 回答
2

在 BAM 中,hive 脚本通常保存在 config/repository/hive/scripts 中。目前您无法更改为任何其他注册表。如果在分布式模式下,每个 BAM 分析器节点都将访问上述位置。如果您想将脚本存储在治理注册表中,还有一种替代方法。仅使用 ${gov:/path} 之类的变量创建一个配置单元脚本,并将该路径中的实际配置单元脚本内容保存为字符串,如 [1] 中所示。在运行时,此变量将替换为该位置的内容。

[1] - http://docs.wso2.org/wiki/display/BAM230/Populating+Script+Parameters+at+Runtime#PopulatingScriptParametersatRuntime-使用GUI从注册表中获取值

于 2013-08-07T05:54:43.187 回答
2

关于 CEP,AFAIK 目前没有任何实现可用于将 CEP 存储桶存储在治理注册表中并从多个其他 CEP 节点进行访问。唯一的方法是在文件系统中部署配置文件(bucket xml)......但是您可以将文本和 XML 输出映射存储在注册表中,如 [1] 所示,并在存储桶配置文件中使用它。

[1] http://docs.wso2.org/wiki/display/CEP210/Text+Output+Mapping

于 2013-08-06T16:29:01.193 回答