Monitor the progress of Change Data Capture (CDC) ingestion in RisingWave.
SHOW INTERNAL TABLES;
command to list all internal tables. The relevant table will have a name like __internal_{source_name}_{source_id}_streamcdcscan_{executor_id}
.
SELECT
statement to query the internal table. The specific columns and their meanings may vary slightly depending on the source, but generally, you’ll find information about:
split_id
: An identifier for the backfill task.backfill_finished
: A boolean indicating whether the backfill is complete (t
for true, f
for false).row_count
: The number of rows processed so far.cdc_offset
: Information about the current position in the source database’s change log (e.g., LSN for PostgreSQL, binlog position for MySQL).backfill_finished = t
), 4 rows have been processed, and the current LSN (Log Sequence Number) in the PostgreSQL WAL is 4558482960.
Example (MySQL):
SHOW INTERNAL TABLES;
to find the internal table associated with your source. This table will have a name like __internal_{source_name}_{source_id}_source_{executor_id}
.
SELECT
statement to query the internal table. This table contains information about the current offset being consumed from the source database.
Example (PostgreSQL):
mysql-bin.000003
at position 154
.
pg_replication_slots
view on your PostgreSQL server. This shows the difference between the current WAL position and the position of each replication slot. A large lag indicates that RisingWave is falling behind.
Seconds_Behind_Master
indicates the replication lag.