Hi AI MeetingPublic meetingMy meetingsShelfStatsBlog

HI AI MEETING · Operations

How We Deployed Hi AI Meeting on One Server and Planned Rollbacks

A successful command did not necessarily mean the service was actually responding. Based on operations records through October 24, 2026, this post covers three cases of “fine in configuration, not in reality,” checking for active meetings before replacing the image, and the case where swapping the image alone could not roll a release back.

By Hi AI Meeting 운영팀16 min read

This post describes operations through October 24, 2026. The production environment has since moved to GCP.

Through October 24, 2026, Hi AI Meeting ran in containers on one server managed by the operator. In this small environment, the riskiest failures were not always visible as errors: configuration and status screens looked normal while a user could not actually connect or use the service.

For that reason, at the time we did not call a deployment complete just because a command exited successfully or a container said running. We checked real port connections, calls between services, and responses from public URLs. Server addresses, ports, and account details are not included here.

Configuration looked right, but the service was not working

Three operational incidents showed a gap between what tools reported and what actually happened.

What the tool showedWhat we actually foundWhat we changed afterwards
Port mapping present in the configurationNo port actually openVerify with a real connection on every deploy
Container status runningRefused connections from another serviceVerify with real calls between services
New image loadedA meeting in progress would be cut off by the swapConfirm 0 meetings in progress right before the swap

Those cases changed the standard for deployment. The question is not what the configuration file says. It is whether the path a user actually reaches responds.

The setup at the time: four containers and three networks

As of October 24, 2026, the frontend was Next.js 15, the server was NestJS, and the database was PostgreSQL 16. Docker Compose ran four services.

  • read — handles the UI and queries. It is the only service that receives outside requests.
  • command — receives commands such as pausing, resuming, and ending a meeting, as well as a user's statement. The browser never calls it directly; it can only be reached through read.
  • worker — calls AI models and runs the meeting.
  • db — PostgreSQL. It opens no ports to the outside.

read, command, and worker run the same image with different roles. At the time, the image name showed which release was running.

The services are split across three networks: an internal network shared by all four services, an ingress network joined only by read, and an egress network joined only by worker. read receives requests through the front proxy. worker goes out to call AI providers. worker opens no ports, so there is no route from outside into worker. command and db exist only on the internal network.

Diagram of the four containers read, command, worker, and db, with the internal network, the ingress network (read only), and the egress network (worker only)

The port mapping was visible, but connections were refused

On the initial bring-up on September 1, 2026, all four services were connected only to an internal network isolated from the outside (internal: true). A configuration check showed a port mapping for read, and its container was running. An actual connection was still refused.

The container details listed only the “requested ports.” The “actually open ports” field was empty. There was no error and no warning.

To separate the cause, we kept the other conditions unchanged and changed only the network. In the environment we were using then, the port did not appear when the service was attached to the internal network, and did appear on a regular network. This is what we observed in our environment, not a claim that every Docker environment behaves the same way.

We added an ingress network to read, and the port opened. From then on, we verified that a port was open by making a real connection rather than by reading configuration.

On the same day, command was configured to accept requests only on the container's own loopback address. Commands from read could not reach command. We fixed that as well. It was a day that showed twice that configured values and reachable paths can differ.

At the time, secrets were uploaded in one encrypted file

At the time, DB connection details and AI provider keys were not stored in ordinary configuration files. They were bundled into one encrypted file, uploaded, and decrypted only in memory at startup. The configuration file kept only image names, public identifiers, and feature switches.

We built the web app off the server

Web builds used substantial memory, so at the time we did not build on the server. We built images on a development machine and transferred them as files.

On September 28, we transferred an image file of about 2.1GB in 44 seconds and checked that the file sizes matched at both ends. At the time, image names included the short commit hash, and we did not build two images with the same name.

A deployment then changed one image reference in the configuration file, backed up the file before that change, and brought the services back up.

Before replacing an image, we checked the meetings

Before deployment, we ran the test bundle described in 382 Pre-Deploy Checks, 83 Passed: What Were the Rest?. Then, immediately before replacing the image, we checked that 0 meetings were in progress.

Replacing containers interrupts active meetings. An AI meeting can continue for more than an hour.

The October 14 deployment stopped at this exact step. The image upload had completed, but the deployment tool stopped itself because 1 meeting was in progress. We did not interrupt that meeting.

We deployed only after checking again that running, waiting, and finishing meetings were all at 0. We also took a DB backup immediately beforehand.

After deployment, we checked the service

These were the actual results checked after the October 14 deployment.

CheckOctober 14 result
Did the three roles come up on the new imageread, command, and worker all on the new image, db healthy
Were the DB migrations appliedThis release's new migrations 131–134 applied
Unhandled errors0
Public URLsHome, English home, public meeting, pricing, and public list API all 200

Separate from container status, we checked actual connections, calls between roles, and public URL responses. Those results determined whether deployment was complete.

When an image swap can roll back, and when it cannot

The basic rollback at the time changed the image name back to the previous release. That is why we kept the previous release image.

DB migrations complicate that path because migrations only move forward. On September 28, we started the previous release against a DB that had three new migrations. It refused to start because “unknown migrations are present.”

We found the issue before deployment by testing rollback in an isolated environment. That day, we uploaded a separate rollback image containing the previous release's code plus only the new migration files.

We changed the authoring rule afterward. Starting with the release that implements this rule, an earlier release can start after writing one warning when a migration only adds tables or columns. For a migration that breaks older code, such as dropping a column, its author also supplies a minimum compatibility number: releases older than that number must not start.

The tool does not automatically analyze migration contents. This is an authoring rule. The relax-or-block behavior also applies only from the release that implements the rule. Earlier images do not have the check code.

The October 14 release could not be rolled back with an image swap alone. Because migrations 131–134 had been applied, its deployment record said to “decide together with restoring the pre-deploy DB backup.” No rollback was actually performed.

Restoring a backup is a different decision from swapping an image. It can also roll back meeting and transaction records created after deployment. If new writes happened after deployment, we first decide how those changes will be preserved before restoring.

A cloud move is designed to keep writes in one place

We also prepared a procedure to move to the cloud in the Seoul region. As of the October 24 record, we had not moved.

The thresholds do not trigger an automatic cutover. They propose a move. One threshold is CPU p95 at 75% or above, or memory at 80% or above, in three or more distinct 15-minute windows within 7 days. Another is queue-wait p95 at 30 seconds or above in three or more distinct 10-minute windows within 7 days. One short slowdown does not qualify.

Under the plan at the time, cloud resources would incur monthly cost once applied, so we planned to apply them immediately before the switch.

The planned order was: existing server read-only → final backup → restore and verify on the cloud → confirm the existing server rejects writes → open writes on the cloud → switch the domain. The same principle was planned for the way back: at any moment, at most one place accepts writes.

Flow diagram of the six cloud cutover steps, showing that at each step the place accepting writes is one of: the existing server, none, or the cloud, and at most one

Changes in each release are posted in Notices.