Enhancing Flink Deployment with Downtime-Free Shadow Testing
summary
Grab deploys a shadow-testing framework that runs a new pipeline side-by-side with live Flink jobs to validate connectors and configs without downtime. It spawns isolated pipelines in separate namespaces, assigns a MD5 job ID and 1-hour default shadow window monitored by a dedicated cron job, overrides Kafka consumer groups and creates shadow topics, writes checkpoints and S3 output to separate checkpoints and shadow buckets, and shifts CDC server ID ranges to avoid conflicts. If behavior diverges the shadow job fails and blocks promotion, preventing duplicated or corrupted production data.
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker welcome
- 0:21Talk overview and agenda
- 1:02Challenges in Flink deployment
- 2:50Canary deployment issues
- 3:55Staging data simulation problems
- 5:20Shadow testing concept explained
- 6:43Current deployment flow
- 7:26Shadow mode implementation
- 8:10Shadow environment variables
- 9:12Shadow app isolation details
- 10:19Observability in shadow mode
- 11:00Sample use case overview
- 11:23Common module for users
- 12:28Shadow Kafka and S3 handling
- 13:11CDC source adjustments
- 13:55Current limitations and future work
- 14:17Q&A session
