Overview
The Data-Sync Job synchronizes data across multiple databases to maintain consistency and up-to-date information throughout your system. It operates by connecting to various databases, retrieving data, and synchronizing changes across them. The job logs all actions and can be scheduled to run at regular intervals.Quick Start
Required environment variables
Core configuration
Database connections
The Data-Sync Job requires connection details for multiple databases. Configure the following sections based on your deployment.MongoDB connections
Each MongoDB-based service requires the following variables:MongoDB URI format
PostgreSQL connections
Driver class names
- PostgreSQL:
org.postgresql.Driver - Oracle:
oracle.jdbc.OracleDriver
Additional configuration
Service to database mapping
Each service in your environment corresponds to specific database datasources:Sample configuration
Troubleshooting
Common issues
-
Database connection failures:
- Verify MongoDB and PostgreSQL connection strings
- Check that database credentials are correct
- Ensure network connectivity between the job pod and databases
-
Missing Required Variables:
- Ensure all required environment variables are properly set
- Check for typos in environment variable names
Logs
Monitor the Data-Sync Job logs to diagnose issues:Best practices
- Store sensitive credentials in Kubernetes Secrets and reference them in your deployment
- Include the Data-Sync Job in your CI/CD pipeline for automated deployment
- Schedule regular runs using a Kubernetes CronJob for periodic synchronization
- Monitor job execution and set up alerts for failures
Next steps
After successfully configuring and deploying the Data-Sync Job:- Verify data consistency across databases
- Set up monitoring and alerting for job status
- Consider automating deployment through your CI/CD pipeline

