{"id":20800215,"url":"https://github.com/zepgram/module-zero-downtime-deployment","last_synced_at":"2025-06-17T01:38:22.736Z","repository":{"id":42513419,"uuid":"265003461","full_name":"zepgram/module-zero-downtime-deployment","owner":"zepgram","description":"Disable native change detection from Magento2 to allow Zero Downtime Deployment Strategy.","archived":false,"fork":false,"pushed_at":"2022-05-17T16:20:58.000Z","size":19,"stargazers_count":23,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T07:04:24.430Z","etag":null,"topics":["deployment-strategy","downtime-deployment","green-pods","magento2","magento2-devops","magento2-module","no-maintenance","pods","zdd","zero-downtime"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zepgram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-18T16:53:21.000Z","updated_at":"2025-02-18T08:44:51.000Z","dependencies_parsed_at":"2022-08-20T16:50:14.385Z","dependency_job_id":null,"html_url":"https://github.com/zepgram/module-zero-downtime-deployment","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zepgram/module-zero-downtime-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zepgram%2Fmodule-zero-downtime-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zepgram%2Fmodule-zero-downtime-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zepgram%2Fmodule-zero-downtime-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zepgram%2Fmodule-zero-downtime-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zepgram","download_url":"https://codeload.github.com/zepgram/module-zero-downtime-deployment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zepgram%2Fmodule-zero-downtime-deployment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260273277,"owners_count":22984472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment-strategy","downtime-deployment","green-pods","magento2","magento2-devops","magento2-module","no-maintenance","pods","zdd","zero-downtime"],"created_at":"2024-11-17T18:12:56.135Z","updated_at":"2025-06-17T01:38:22.718Z","avatar_url":"https://github.com/zepgram.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zero Downtime Deployment #\n\n## Magento 2.4.4 - @deprecated\n\nOn version 2.4.4, Magento is able to handle blue/green deployment, making this module no more required.\u003cbr\u003e\nTo enable \u003cb\u003eblue/green\u003c/b\u003e deployment you can add the deployment config `deployment/blue_green/enabled` in file \u003cb\u003eapp/etc/env.php\u003c/b\u003e:\n```php\n'deployment' =\u003e [\n    'blue_green' =\u003e [\n        'enabled' =\u003e true\n    ]\n]\n```\n\n\u003cb\u003emagento/framework/Module/Plugin/DbStatusValidator.php\u003c/b\u003e\n![image](https://user-images.githubusercontent.com/16258478/161338149-52febed8-d9b9-4e95-ba9d-60b999627aa5.png)\n\u003cb\u003emagento/module-deploy/Model/Plugin/ConfigChangeDetector.php\u003c/b\u003e\n![image](https://user-images.githubusercontent.com/16258478/161338272-f72b6d73-3763-42d4-a684-1450a47290b8.png)\n\nRelated commit is here: https://github.com/magento/magento2/commit/c241e11adf59baeca9d9e66cdbd726e4b0b88b21\n\n\u0026#9888; Consequently, this module is now deprecated.\n\n## Purpose\n\nDisable native change detection from Magento2 to allow Zero Downtime Deployment (ZDD).\n\nNormal behavior:\u003cbr\u003e\n![zdd](https://user-images.githubusercontent.com/16258478/82318767-b361cd80-99d0-11ea-86f2-7b032ad29744.png)\n\nWith this module installed:\u003cbr\u003e\n![zdd_module](https://user-images.githubusercontent.com/16258478/82321492-32590500-99d5-11ea-9c84-53756715e8d7.png)\n\n## Installation\n```\ncomposer require zepgram/module-zero-downtime-deployment\nbin/magento module:enable Zepgram_ZeroDowntimeDeployment\nbin/magento setup:upgrade\n```\n\n## Configuration\n\nBy default, Zero Downtime is enabled on production mode and disabled on Magento's developer and default modes.\u003cbr\u003e\nHowever, you can enable it for those modes from configuration path: `dev/zero_downtime_deployment/is_always_enabled`\u003cbr\u003e\n![418](https://user-images.githubusercontent.com/16258478/133935969-7b38f61f-67e2-486c-9dd6-a836688704d5.png)\n\u003e This section is only visible on developer mode from back-office\n\nFor example, it can be useful to display errors when you roll-back your code while your database is ahead.\n\n## Server\n\nZDD enables you to deploy your website without any downtime.\nHowever, this module contains only necessary changes to make it possible on Magento2.\n\nTo be able to perform a complete ZDD you'll need a \n\u003ca href=\"https://www.google.com/search?q=blue+green+deployment+strategy\u0026oq=blue+green+deployment+strategy\"\u003eblue/green deployment strategy\u003c/a\u003e.\nWhich depends on your hosting provider.\n\nFor example:\n- AWS: https://aws.amazon.com/fr/quickstart/architecture/blue-green-deployment/\n- Kubernetes: https://kubernetes.io/blog/2018/04/30/zero-downtime-deployment-kubernetes-jenkins/\n\nThe mainly steps to reach the ZDD with Magento2:\n1. Start the deployment: green pods are the old one, for now they must stay active while creating blue pods.\n1. You must set your blue pods to a dedicated redis database and keep the green pods on their own redis db (avoiding cache corrupting).\n1. Run `bin/magento setup:upgrade --keep-generated` to upgrade your database.\n1. Upgrading is done: now green pods must be killed and replaced by blue pods based on health check statement.\n\nYou can find a lot of articles detailling the procedure:\n- https://inviqa.com/blog/how-achieve-zero-downtime-deployments-magento-2\n- https://elogic.co/blog/how-to-achieve-zero-downtime-deployment-with-magento\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepgram%2Fmodule-zero-downtime-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzepgram%2Fmodule-zero-downtime-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepgram%2Fmodule-zero-downtime-deployment/lists"}