Blue-Green Deployment

Blue-green is a deployment technique in which you duplicate your production environment (the blue environment) and modify the duplicate (the green environment) with software and data changes. When you’ve successfully tested the green environment, you cut users over from the blue environment to the green environment. Blue-green eliminates system down time.

Data schema and data changes require special attention. Custom plugin/module data schema changes that break compatibility with existing code must be introduced over several releases in which the data is transitioned and maintained in old and new columns until the old columns are unnecessary.

Data and schema changes require these steps:

  1. Create a new column.

  2. Copy the data to the new column.

  3. Maintain both columns until the old column is no longer used by any cluster nodes.

  4. Delete the column in the next release.

For more information, refer to these blue-green deployment articles:

Rolling Restarts

Liferay DXP Clustering

Maintaining Liferay DXP

« Rolling RestartsConfiguring Remote Staging in a Clustered Environment »