esper ha模式對(duì)比

esper ha模式對(duì)比

**Selective State Residence ** **Capture **
Engine State 引擎狀態(tài) Engine state is not limited to the amount of heap memory and can be much larger than available heap memory. 內(nèi)存狀態(tài)不受堆內(nèi)存限制,可以大于堆內(nèi)存 All engine state must fit into heap memory. Therefore engine state is limited to the amount of heap memory available.
Memory management 內(nèi)存管理 Comprehensive; Memory resources can be actively managed and engine state can be released from memory. 綜合,狀態(tài)可以從內(nèi)存中釋放 None; all engine state must be in memory for operation. 狀態(tài)必須都在內(nèi)存中
Incremental checkpoint 增量checkpoint Yes, checkpoints are always implicitly incremental. 只能增量checkpoint Yes, checkpoints can also full backup. 支持增量checkpoint & 全量checkpoint
Checkpoint pause-time checkpoint暫停時(shí)間 Minimized 最小 Pause-time spans the whole checkpoint. 整個(gè)checkpoint周期內(nèi)全暫停
Store Targets 存儲(chǔ)目標(biāo) Multiple 文件 數(shù)據(jù)庫 redis File System 文件
Recovery State Reading 狀態(tài)恢復(fù) Reads only engine metadata. The engine state is still available and the engine reads such state at the time of state use. 只加載引擎元數(shù)據(jù),引擎狀態(tài)等到使用時(shí)再加載 Reads all engine state into memory. 加載所有狀態(tài)
Resilience service level configurable per statement 持久化級(jí)別配置粒度 No; All statements participate. 全局配置 Yes; Profiles can declare EPL statements to be transient, durable or resilient. statements 粒度
State management API to extract and load state 通過API導(dǎo)出、加載狀態(tài) Not available 不支持 Available 支持

esperha 自動(dòng)checkpoint設(shè)置

  • 示例配置
<esperha-settings>
<checkpointing enabled="true" event-count="1000" interval-msec="1000"
  thread-priority="6" />
</esperha-settings>
  • tips:
    • enabled設(shè)置成false,用于手動(dòng)checkpoint

esperha ssr-持久化到fs

        <store-env-ssr name="esperha-default-store" target-name="fs-one">
            <state-management>
                <state-management-passive/>
            </state-management>
            <targets>
                <target-fs name="fs-one" >
                <homedir-file>./checkpoint</homedir-file>
                </target-fs>
            </targets>
        </store-env-ssr>
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容