Snapshotting Configuration in Docker
If you deploy a Docker container with the ZEUS_BASE_CONFIG environment variable set, the Traffic Manager creates a configuration snapshot after the base configuration has been applied. Any additional configuration imported from the directory specified in the ZEUS_WATCHED_CONFIG environment variable is layered on top of this base configuration.
In practice, this is relevant only if the base configuration and watched configuration directories are different, such that the watched configuration is applied on top of the base configuration. For example:.
/base/config/system-settings.yaml |
|---|
|
/watched/config/my-service.yaml |
|---|
|
Deploying a container in Docker using these configuration documents results in the base configuration in "system-settings.yaml" being applied to the Traffic Manager initially, the base configuration snapshot being updated, and then the configuration in "my-service.yaml" being applied on top of that base configuration. Any changes to configuration in the "watched" directory are applied on top of the base configuration. However, changes to configuration in the "base" directory after the container is launched have no effect as that directory is not being watched for changes.
To deploy the container, use the following command
Deploy container with base and watched configuration |
|---|
|
Snapshotting Configuration in Other Deployments
For other deployment types, take a snapshot after the Traffic Manager has been deployed to create a new base configuration snapshot.
To snapshot the current Traffic Manager configuration, run the following command:
$ZEUSHOME/zxtm/bin/config-snapshot