简体   繁体   English

备份WSO2 DAS CEP事件流并在另一个DAS中还原

[英]Backup WSO2 DAS CEP event flow and restore in another DAS

Is it possible to backup entire CEP event flow at a DAS and restore in a another DAS? 是否可以在DAS上备份整个CEP事件流并在另一个DAS中还原? If it is how can i do that? 如果是我该怎么办?

Usually events in the Streams are not persisted out of box. 通常,Streams中的事件不是开箱即用的。 If you need to persist the events you need to configure it in the streams [1]. 如果您需要保留事件,则需要在流[1]中对其进行配置。 When you are persisting you need to select a record store, by default it is "EVENT_STORE" which is stored in the H2 database of the pack. 当您坚持时,您需要选择一个记录存储,默认情况下它是“ EVENT_STORE”,存储在数据包的H2数据库中。 H2 database is not recommended for production, where as you need to change the data source to something like mysql database or HBase. 不建议将H2数据库用于生产环境,因为您需要将数据源更改为mysql数据库或HBase之类的数据源。

Please refer documentation on setting up MySQL database for more information [2]. 请参考有关设置MySQL数据库的文档以获取更多信息[2]。 If you setup a MySQL database as the source, technically those data could be accessed from another WSO2DAS node. 如果将MySQL数据库设置为源,从技术上讲,可以从另一个WSO2DAS节点访问这些数据。

On the other WSO2DAS supports clustering with multiple nodes. 另一方面,WSO2DAS支持具有多个节点的集群。 So you can setup a minimum 2 node High Available Cluster with synchronization [3] 因此,您可以设置至少2个具有同步功能的节点高可用群集[3]

[1] https://docs.wso2.com/display/DAS310/Persist+Event+Stream [1] https://docs.wso2.com/display/DAS310/Persist+Event+Stream

[2] https://docs.wso2.com/display/DAS310/Setting+up+MySQL [2] https://docs.wso2.com/display/DAS310/Setting+up+MySQL

[3] https://docs.wso2.com/display/CLUSTER44x/Minimum+High+Availability+Deployment+for+WSO2+DAS+3.1.0 [3] https://docs.wso2.com/display/CLUSTER44x/Minimum+High+可用性+ Deployment + for + WSO2 + DAS + 3.1.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM