odoo-bluegreen-zero-downtime

Automates blue/green cutover deploys of Odoo module upgrades on docker-compose without stopping live traffic.

3|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/ever-just/agentskills --skill odoo-bluegreen-zero-downtime-ever-just
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: odoo-bluegreen-zero-downtime
Source: https://github.com/ever-just/agentskills/tree/main/skills/odoo-bluegreen-zero-downtime
Command: npx skills add https://github.com/ever-just/agentskills --skill odoo-bluegreen-zero-downtime-ever-just

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Standard Odoo deploys stop the server, run module upgrades on every tenant database, and restart, leaving users staring at 502/503 errors for minutes per push. This Skill replaces that with a verified blue/green cutover procedure on a single docker-compose box, so addon changes ship while the serving instance keeps answering requests. ## Core Features & Use Cases - Blue/green cutover state machine: Stage new code into a green service with its own addons directory, run -u migrations against live traffic via Odoo's registry signaling, then flip an nginx upstream file with a graceful reload. - Verified operational facts: Documents measured behavior of live -u upgrades, session/filestore survival across cutovers, asset bundle flushing, and pre-warming to avoid cold recompiles. - Failure semantics and escape hatch: Defines abort-safe rollback before the flip, loud failure after the flip, and refuses cutovers for schema-breaking migrations that need a classic maintenance window. - Use Case: A team deploying Odoo 19 CE addon updates to multiple tenant databases on one VPS uses this procedure to migrate only changed modules on the green color, pre-warm assets per tenant, flip nginx, and verify zero non-200 responses throughout. ## Quick Start Ask the agent to design a zero-downtime blue/green deploy pipeline for your docker-compose Odoo instance with multiple tenant databases, including the nginx upstream cutover and per-tenant module migration steps.

Frequently Asked Questions about odoo-bluegreen-zero-downtime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Odoo module updates without downtime?▼

Run a blue/green cutover: stage new code in a separate green service with its own addons directory, run -u migrations from green while blue keeps serving, then flip the nginx upstream with a graceful reload. Odoo's registry signaling keeps the serving instance at 100% availability during the migration.

Does running odoo -u on a live database take the site down?▼

No. Odoo instances sharing a database coordinate through registry signaling, so other instances reload their registry on the next request without dropping traffic. The only risk window is views changed by that specific migration, which can error on old code until the flip completes.

Can I do blue/green Odoo deploys with docker-compose on one server?▼

Yes, using a green service in the same compose file with a profile, reduced workers, --max-cron-threads=0, and its own code directory. Both colors share the database and the Odoo data volume so sessions and filestore survive the cutover.

Why does my Odoo site feel slow right after a deploy?▼

Module upgrades do not reliably regenerate stale /web/assets bundles, so pipelines delete them and the first visitor per database pays a multi-second recompile. Pre-warm the asset bundles via odoo shell after flushing to avoid the perceived downtime.

When should I not use a zero-downtime Odoo cutover?▼

Refuse cutovers for schema-breaking migrations such as column drops, renames, or data rewrites that old code still reads, and for changes to the compose file, odoo.conf, or proxy config. Those require a short classic maintenance window with a branded 503 page.