Data Sync Container
The Data Sync Server is a service that synchronizes Commerce data in one direction from an authoring database to a live database. For more information about the application, see Data Sync WebApp Overview.
Prerequisites
The data-sync
container image must be built and available. For information on building container images, see Building Container Images.
Suitable Environment Types
The Data Sync Server is an optional application that can be deployed when data synchronization use cases exist. It is often deployed when Commerce authoring environments are used; an authoring environment is typically an environment where Commerce data is prepared and validated before being pushed to the live environment and served to shoppers.
Include in Development and QA Environments? | Include in Authoring Environments? | Include in Live Environments? |
---|---|---|
Optional | Yes | No |
Configuration
The sections below describe typical configurations.
Note about production sizing and tuning
The values shared in this document are suggestions that are known to work well in typical scenarios.
important
Planning and validation is required to finalize resource and scaling settings for production. The settings should be reviewed and re-validated periodically, such as when significant Commerce application changes are deployed or when traffic and load requirements change. For more information, see the Elastic Path Commerce Sizing Guide.
Resource allocation
Resource allocation can vary by usage and load. Below are typical values.
Resource | Non Production | Production Like (See Note) |
---|---|---|
Container Memory (MB) | 3072 | 3072 |
Container Cores | 0.25 | 3 |
Java Heap (MB) | 2048 | 2048 |
Scaling and replicas
The Data Sync Server is sessionless and can be scaled horizontally.
Configuration | Non Production | Production Like (See Note) |
---|---|---|
Minumim Replicas | 1 | 1 |
Maximum Replicas | 1 | 1 |
Max Surge (%) | 25 | 100 |
Max Unavailable (%) | 25 | 0 |
Ports
Port | Non Production | Production | Purpose | Comment |
---|---|---|---|---|
8080 | Yes | Yes | Used for readiness checks. | This port should only be exposed internally, ideally only to the container orchestrator. |
8180 | Yes | Yes | Health and liveness checks. | This port should only be exposed internally, ideally only to the container orchestrator. |
8888 | Optional | Optional | JMX | The container listens on this port when the ENABLE_JMX environment variable is set to true . This port should only be exposed internally to users and tools that require access to JMX data. |
1081 | Optional | No | Java debugger. | The container will listen on this port when the ENABLE_DEBUG environment variable is set to true . This port should only be exposed internally, to developers who debug Java application code. This port is typically not open in production. |
Health, Liveness and Readiness
Container orchestration tools monitor the health and responsiveness of containers. For information about supported endpoints, see Health Monitoring Usage.
Volumes
Mount Point | Purpose | Comment |
---|---|---|
/hdump | Store Java heap dump files, which are created when a Java OutOfMemoryError occurs, on a filesystem that persists after the container dies. These files are large but can be very helpful to diagnose Java memory usage issues. | Each heap dump file can be multiple gigabytes in size so it is important to ensure that the filesystem is large and regularly maintained so that it does not fill up. Consider using a shared filesystem filesystem across all containers for this purpose. |
Environment Variables
The application is configured using container environment variables. Some environment variables must be set and some are optional. The environment variables are read and consumed by the container entrypoint scripts. Review Common Environment Variables for a list of required and optional environment variables that are common to all Commerce application services, including Cortex.
The following table shows additional environment variables specific to this service:
Variable Name | Description | Required |
---|---|---|
EP_DST_TARGET_HOST | Used to set the Java property epdb.synctarget.host . | Yes |
EP_DST_TARGET_PORT | Used to set the Java property epdb.synctarget.port . | Yes |
EP_DST_TARGET_SCHEMA | Used to set the Java property epdb.synctarget.schemaname . | Yes |
EP_DST_TARGET_DATABASE | Used to set the Java property epdb.synctarget.databasename . | Yes |
EP_DST_TARGET_JDBC_DRIVER_CLASS | Used to set the Java property epdb.synctarget.jdbc.driver . | Yes |
EP_DST_TARGET_USERNAME | Used to set the Java property epdb.synctarget.username . | Yes |
EP_DST_TARGET_PASSWORD | Used to set the Java property epdb.synctarget.password . | Yes |
EP_DST_TARGET_PARAMS | Used to set the Java property epdb.synctarget.params . | Yes |
EP_DST_TARGET_VALIDATION_QUERY | Used to set the Java property epdb.synctarget.validation.query . | Yes |
EP_DST_TARGET_URL | Used to set the Java property epdb.synctarget.url . | Yes |
EP_DST_TARGET_JMS_URL | Used to set the Java property ep.synctarget.jms.url . | Yes |
EP_DST_TIMEOUT | Used to set the Java property epdb.synctarget.removeabandonedtimeout . | Yes |
EP_SYNC_X_JVM_ARGS | Can be used to set additional custom Java arguments. | No |
important
The entrypoint scripts are and will remain the source of truth on the required environment variables. Review the container entrypoint scripts in your selected release to validate the required variables.