Skip to content

RDI: Document Google Cloud SQL for MySQL as a source - #4179

Merged
andy-stark-redis merged 2 commits into
mainfrom
rdi-cloud-sql-mysql-source
Oct 5, 2026
Merged

andy-stark-redis merged 2 commits into
mainfrom
rdi-cloud-sql-mysql-source

Conversation

@ZdravkoDonev-redis

@ZdravkoDonev-redis ZdravkoDonev-redis commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

What this adds

  • New page prepare-dbs/gcp-cloud-sql-mysql.md (Prepare Google Cloud SQL for MySQL for RDI), scoped to self-managed RDI (VM or Kubernetes). It covers:
    • Enabling binary logging (--enable-bin-log, or point-in-time recovery in the console).
    • Setting the binlog_row_image database flag. The value must be lowercase full, because Cloud SQL rejects FULL.
    • Checking the binlog variables, and authorizing the RDI egress IP in authorized networks.
    • Creating the CDC user with gcloud sql users create --host=%, plus the ERROR 1410 that appears when the user's host doesn't match the GRANT.
    • Setting database.ssl.mode: required under advanced.source when Cloud SQL enforces encrypted connections. Without it, deployment fails with a misleading Access denied ... (using password: YES).
    • What to expect during a Regional HA failover.
  • A short note on the MySQL/MariaDB preparation page that links to the new page, next to the existing Amazon RDS note.

The supported-versions embed already lists MySQL 8.0 under "GCP SQL Versions", so it isn't changed.

Basis

This is based on hands-on testing of self-managed RDI 2.0.0 (Debezium collector, Flink processor) on a VM against a new Cloud SQL for MySQL 8.0 instance (8.0.45-google). The instance used Regional HA, a public IP with authorized networks, and sslMode=ENCRYPTED_ONLY. Snapshot, CDC insert/update/delete, and gcloud sql instances failover during active writes all passed. During failover, RDI reconnected on its own and caught up with about one minute of extra lag. No committed changes were missed.

Not tested, so not documented

  • RDI on Redis Cloud (the managed service still lists AWS-hosted sources only).
  • Cloud SQL for MySQL versions other than 8.0, read replicas, and cross-region replicas.
  • Private IP, Private Service Connect, and the Cloud SQL Auth Proxy.
  • database.ssl.mode: verify_ca/verify_identity with the Cloud SQL server CA. The page points to the existing TLS section for this but doesn't claim it was validated.
  • Tuning the post-failover detection delay. The likely knob is the Debezium MySQL connect.keep.alive.interval.ms property through advanced.source.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only changes with no runtime, security, or data-path code modifications.

Overview
Adds Prepare Google Cloud SQL for MySQL for RDI, a new integration doc for self-managed RDI (VM/Kubernetes) that walks through Cloud SQL–specific setup instead of editing my.cnf: enabling binlog (including console/PITR), setting binlog_row_image=full via database flags, validating binlog variables, authorizing RDI egress IPs, creating/granting the CDC user (including ERROR 1410 host mismatches), and configuring database.ssl.mode when connections must be encrypted. It also documents Regional HA failover behavior (automatic RDI reconnect and expected CDC lag).

The existing Prepare MySQL/MariaDB page gains a note beside the RDS callout that points readers to this page for Cloud SQL binlog configuration.

Reviewed by Cursor Bugbot for commit f940ca5. Bugbot is set up for automated code reviews on this repo. Configure here.

Add a preparation page for Cloud SQL for MySQL with self-managed RDI:
binary logging, the lowercase binlog_row_image flag, authorized networks,
creating the CDC user with an explicit host, the database.ssl.mode setting
that enforced encryption needs, and what to expect during a Regional HA
failover. Link to it from the MySQL/MariaDB preparation page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 7 related items from repository history (2 new this commit):

Memory updated at f940ca5

@andy-stark-redis andy-stark-redis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor optional suggestions, but otherwise LGTM.

@andy-stark-redis
andy-stark-redis merged commit 3c10687 into main Oct 5, 2026
99 checks passed
@andy-stark-redis
andy-stark-redis deleted the rdi-cloud-sql-mysql-source branch October 5, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants