THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
ACTIVE_READ_ONLY
mode.BACKUP
mode.ACTIVE
state.Ignite node restart after failure:
...
Note, that ignite-cdc.sh can be run in 2 modes - BACKUP
, ACTIVE
(default):
BACKUP
is used as backup process for OnlineCDC, and then such process may fetch CDC configuration from IgniteConfiguration. Case is async replication between master and stand-by clusters.ACTIVE
is used as independent process that doesn’t rely on OnlineCDC, has its own configuration. Case is filling a cold data lake.Ignite node restart after failure:
Stop OnlineCDC and use ignite-cdc Stop OnlineCDC and use ignite-cdc instead:
...
Ignite
IgniteConfiguration#CdcConsumer
- from extensions (kafka, thin client)IgniteConfiguration#OnlineCdcConfiguration
- CdcConsumer, keepBinary.DataStorageConfiguration#onlineCdcBufSize
- by default (walSegments * walSegmentSize). it’s now 640 MB by default. DataStorageConfiguration#onlineCdcKeepBinary
- default trueDataRegionConfiguration#cdcMode
- BACKGROUND, ONLINE (default is BACKGROUND)BACKGROUND
- make hard links of archived segments into cdc directory, that is watched by the background ignite-cdc process.ONLINE
- OnlineCDC enabled + do BACKGROUND job (ignite-cdc runs in BACKUP mode).ignite-cdc
ignite-cdc
CdcConfiguration#mode
- ACTIVE, BACKUP (default ACTIVE)CdcConfiguration#modeOnStart
- ACTIVE, BACKUP (default ACTIVE)ACTIVE
- ignite-cdc sends data from cdc dir to consumerBACKUP
- ignite-cdc polls Ignite OnlineCDC metrics, clears cdc dir from hardlinks, starts working in ACTIVE mode after OnlineCDC fails. If Ignite node fails ignite-cdc waits for it to start to check OnlineCDC status.CdcConfiguration#checkOnlineFrequency
- period of polling metrics of OnlineCDC from Ignite to make sure it still works, and clean obsolete links from cdc dir.control.sh
...
StopOnlineCdcRecord
to WAL.Body loop (cdc-worker-thread):
OnlineCdcRecord
record to WAL with the WALPointer.OnlineCdcRecord
and StopOnlineCdcRecord
OnlineCdcRecord
- clears obsolete links from CDC directoryStopOnlineCdcRecord
- switch to ACTIVE mode, start capturing from the last WALPointer (from previous OnlineCdcRecord)Persists CdcConsumerState. Commit the progress on CdcConsumer#onEvents returns true....