简体   繁体   English

WSO2 CEP Siddhi 的单个实例可以使用多个内核吗?

[英]Can a single instance of WSO2 CEP Siddhi use several cores?

I have an instance of WSO2 CEP running in a Linux machine with 8 cores.我有一个 WSO2 CEP 实例运行在具有 8 个内核的 Linux 机器上。 I have 30-40 Input streams with nearly 200 execution plans.我有 30-40 个输入流和近 200 个执行计划。 My problem is that when I insert events, only one CPU gets busy at a time.我的问题是,当我插入事件时,一次只有一个 CPU 忙。 Busy core changes but I can't make the eight cores work at the same time, affecting drastically to the performance and scalability.核心变化很忙,但我不能让八个核心同时工作,严重影响性能和可扩展性。

Is there any configuration item I am missing or do I need to configure Siddhi in cluster mode with Storm?有没有我遗漏的配置项,或者我需要在集群模式下用 Storm 配置 Siddhi 吗?

CEP in Storm is there to support distributed processing. Storm 中的 CEP 用于支持分布式处理。 For your scenario, you don't really need to set it up with Storm.对于您的场景,您实际上并不需要使用 Storm 进行设置。 You can try using async annotation within your execution plans so that it'll buffer the events and use a different thread for subsequent execution.您可以尝试在执行计划中使用async注释,以便它缓冲事件并使用不同的线程进行后续执行。 Refer to the following test: AsyncTestCase参考以下测试: AsyncTestCase

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

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