title | summary |
---|---|
TiCDC Alert Rules |
Learn about TiCDC alert rules and how to handle the alerts. |
This document describes the TiCDC alert rules and the corresponding solutions. In descending order, the severity levels are: Critical, Warning.
This section introduces critical alerts and solutions.
For critical alerts, you need to pay close attention to abnormal monitoring metrics.
-
Alert rule:
ticdc_owner_checkpoint_ts_lag > 600
-
Description:
A replication task is delayed more than 10 minutes.
-
Solution:
-
Alert rule:
ticdc_owner_resolved_ts_lag > 300
-
Description:
The Resolved TS of a replication task is delayed more than 5 minutes.
-
Solution:
-
Alert rule:
(max_over_time(ticdc_owner_status[1m]) == 2) > 0
-
Description:
A replication task encounters an unrecoverable error and enters the failed state.
-
Solution:
This alert is similar to replication interruption. See TiCDC Handles Replication Interruption.
Warning alerts are a reminder for an issue or error.
-
Alert rule:
sum(rate(ticdc_owner_ownership_counter[30s])) >= 2
-
Description:
There are multiple owners in the TiCDC cluster.
-
Solution:
Collect TiCDC logs to locate the root cause.
-
Alert rule:
sum(rate(ticdc_owner_ownership_counter[240s])) < 0.5
-
Description:
There is no owner in the TiCDC cluster for more than 10 minutes.
-
Solution:
Collect TiCDC logs to identify the root cause.
-
Alert rule:
(max_over_time(ticdc_owner_status[1m]) == 1 or max_over_time(ticdc_owner_status[1m]) == 6) > 0
-
Description:
A replication task encounters an error.
-
Solution:
-
Alert rule:
changes(ticdc_processor_exit_with_error_count[1m]) > 0
-
Description:
A replication task reports an error and exits.
-
Solution:
-
Alert rule:
changes(tikv_cdc_min_resolved_ts[1m]) < 1 and ON (instance) tikv_cdc_region_resolve_status{status="resolved"} > 0 and ON (instance) tikv_cdc_captured_region_total > 0
-
Description:
The minimum Resolved TS 1 of TiKV CDC has not advanced for 1 minute.
-
Solution:
Collect TiKV logs to locate the root cause.
-
Alert rule:
histogram_quantile(0.9, rate(tikv_cdc_scan_duration_seconds_bucket{}[1m])) > 600
-
Description:
The TiKV CDC module has scanned for incremental replication for more than 10 minutes.
-
Solution:
Collect TiCDC monitoring metrics and TiKV logs to locate the root cause.
-
Alert rule:
changes(ticdc_sink_execution_error[1m]) > 0
-
Description:
An error occurs when a replication task writes data to the downstream.
-
Solution:
There are many possible root causes. See Troubleshoot TiCDC.
-
Alert rule:
go_memstats_heap_alloc_bytes{job="ticdc"} > 1e+10
-
Description:
The TiCDC heap memory usage exceeds 10 GiB.
-
Solution:
Collect TiCDC logs to locate the root cause.