Auto-Deploy for Multiple Containers
Git & SVN Auto-Deploy for Multiple Containers
Standard automatic deployment can update all application-server containers at the same time. For higher availability, start a sequential VCS update manually, through the command-line interface, through the API, or through custom automation.
Multi-Node Auto-Deploy Behaviour
For a highly visited application, horizontal scaling is commonly used to run several application-server containers in the same layer.
When normal repository auto-deploy is enabled, all containers in that layer may be updated simultaneously. This is faster, but the application can become temporarily unavailable while every node is being refreshed.
Update through the Dashboard
1Locate the deployed project
Expand the application-server layer and find the required Git or SVN project.
2Start the update
Click Update from GIT/SVN. For a Maven-based Java project, use Build and Deploy.
The platform then applies the updated source code to the application-server containers one by one.
Update through CLI
Use the VCS update method from the platform command-line interface:
~/jelastic/environment/vcs/update \
--envName {env_name} \
--context {app_context}
{env_name}— name of the environment containing the project.{app_context}— deployment context or project name.
--project parameter instead of --context. Use the form supported by your installed CLI version.
The same command can be used for a manual redeployment whenever updated repository sources need to be applied.
Update through API
The update can also be started directly through the platform VCS API. Use the appropriate update method from the Environment > VCS API section and provide the environment name and application context.
This approach is suitable when the update must be triggered from an external CI/CD system, administrative portal, scheduled service, or another automation workflow.
Automate Sequential Updates
Dashboard, CLI, and API update operations can be integrated into a custom automation script. Common trigger models include:
- Run the update at a scheduled interval.
- Start the update after source-code changes are detected.
- Trigger the update from an external CI/CD pipeline.
- Start the update after tests or approval checks succeed.
In each case, the application-server containers are redeployed sequentially, helping maintain application availability while the source-code update is applied.
What’s next?
- Deployment Manager
- Java VCS Deployment
- Zero-Downtime Deployment for PHP
- Deploy .NET Project
- Deployment Hooks
