Skip to main content

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

  1. Database connection failures:
    • Verify MongoDB and PostgreSQL connection strings
    • Check that database credentials are correct
    • Ensure network connectivity between the job pod and databases
  2. 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

  1. Store sensitive credentials in Kubernetes Secrets and reference them in your deployment
  2. Include the Data-Sync Job in your CI/CD pipeline for automated deployment
  3. Schedule regular runs using a Kubernetes CronJob for periodic synchronization
  4. Monitor job execution and set up alerts for failures

Next steps

After successfully configuring and deploying the Data-Sync Job:
  1. Verify data consistency across databases
  2. Set up monitoring and alerting for job status
  3. Consider automating deployment through your CI/CD pipeline
Last modified on June 24, 2026