A Houseboat Booking Team Learns ContainerOps in Ninety Days

A Houseboat Booking Team Learns ContainerOps in Ninety Days
Travel Tech

Nothing here is a real company: the team and its product are invented. Picture a three-person company in a Kerala backwater town that runs a booking website for houseboat stays and homestays. Their stack lives on two rented servers, and everything runs in containers because that is how the freelance developer who set it up preferred it. For two years nothing dramatic happened, until the monsoon-season rush, when the booking site slowed, a disk filled and a restart took the payment page offline for forty minutes. The owner asked for a post-mortem. This is how the story went, set against the guidance in the Ops Atlas entry on ContainerOps.

A word on that guidance first. In the Atlas, ContainerOps covers looking after single containers, from images and registries to runtimes, limits and logs, beneath large-scale orchestration. It is equally frank that nobody has standardised the name. Our team did not care about the name. They cared about not repeating that Tuesday.

Day 1: the first honest look

The developer began with an inventory, which is exactly where the Atlas begins its thirty-day plan. He wrote down every image they ran, where it came from, and how it was named. The picture was uncomfortable. Four of the seven images were built on a developer laptop. All used the moving tag “latest”. Every process ran as the administrator. No memory limits were set. The log files had grown without bound since the day of installation. In the Atlas’s five-level maturity ladder, the team scored a clear zero.

The developer resisted any urge to fix everything in one go. He pinned the list to the wall and picked the three items that had actually contributed to the outage: logs, limits and stop behaviour.

Days 2 to 30: stop the bleeding

First came the logs. A short configuration change capped file size and count, and the disk stopped growing. Next, memory and process limits went on the booking application and the database helper, chosen from observed usage plus headroom. The Atlas says both should always be set, and the developer noticed within days why: a report generator that had been leaking memory for months finally hit its ceiling, was killed with exit code 137, and restarted cleanly. Before the limits, it would have taken the neighbouring containers down with it.

Third, the stop behaviour. The owner had noticed that every deployment seemed to pause for ten seconds before finishing. The developer found the cause: the entrypoint in shell form meant the polite stop request never reached the program. The developer switched to the exec form and added a tiny init helper. Deployments became noticeably brisker, and in-flight bookings were no longer cut off mid-write.

When month one closed, the team had an inventory, sane log settings and limits, and a mirror in front of the public registry so builds did not depend on an external service’s mood. They also wired in a linter for build files, in warning mode only, so nothing broke while people got used to it.

Days 31 to 60: say exactly what you deployed

Month two was about identity. The owner asked a simple question: “if a guest complains about something that happened last Thursday, can we tell exactly which version of the site they used?” With floating tags, the answer was no. The developer moved production to digest references and kept readable release tags that were never reassigned. To prevent the pins from rotting, he enabled a dependency bot that proposed base-image updates as pull requests, which the team reviewed on Fridays.

He also created a non-root user for the ten most important images, mounted their root filesystems read-only, and dropped all extra capabilities. Two services complained about unwritable directories, which he fixed with narrowly scoped writable mounts. The Atlas offers a numeric target for the end of this phase, digest coverage above 80 percent. The team reached about 90 percent, with two legacy images still on tags.

It is worth pausing on a point of attitude. Nobody in the story was a security specialist. Several of these steps happen to be what a specialist would ask for, but the team did them for operational reasons: predictability, traceability, fewer surprises on payday. That is typical of how the discipline works in practice.

Days 61 to 90: make it routine

In the third month, the developer turned the linter from warnings to blocking, agreed with the owner a target for how long a critical fix could wait before being deployed, and defined a retention rule so the private registry would not grow forever. The Atlas suggests a first drill at this stage, and the team ran one on a quiet Sunday. They pretended a base image needed an urgent fix, rebuilt, redeployed by digest, and timed it. It took just over an hour, most of it spent finding where the build instructions lived. They fixed that by writing a one-page runbook.

That drill revealed something valuable: the process worked, but only the developer knew it. The owner insisted that a second person walk through the runbook the following week. In the Atlas’s language, an estate with a single caretaker slides toward the anti-pattern of quietly ageing.

One more detail from that month deserves mention. The developer also wrote a short list of what each service was allowed to touch: which ports it listened on, which directories it could write to, and which other containers it spoke to. The list took an afternoon and turned out to be the most reread document in the repository. Whenever a new teammate joined, or a supplier asked a question, the list answered it without a meeting.

What the story is not claiming

The invented team did not become perfect. They did not adopt orchestration, deep image scanning or any central log system; those belong to neighbouring disciplines in the Atlas. They did not leave the shared-kernel risk behind either, since containers on a host still lean on one kernel. What changed was visible and measurable: forty minutes of downtime did not recur, deploys sped up, and the owner could finally answer questions about what was running.

Lessons worth carrying over

  • Begin with a written inventory before opinions form.
  • Fix the habits that caused the incident first, then widen.
  • Prefer changes that are reversible and testable in minutes.
  • Make the update path automatic, otherwise pins and rules decay.
  • Rehearse once and write the runbook while the memory is fresh.

For readers on the Kerala coast

If you run a travel or hospitality site in the region, the bookings you take at peak season are the ones you most need the system to survive. When the rush eases, a good reset is time spent away from the screen, perhaps with the everyday life, food and nature beyond Kerala’s famous sights or a planner for experiences new visitors enjoy in Kerala. Then, with a clear head, run your own ninety-day plan. Three people can manage it, as long as they start with an honest list.

Leave a Reply