Guide / Evaluation essentials

Containers Do Not Make Database Data Disposable

A container can be replaced as part of normal operation while the database's records must remain available. Confusing the lifecycle of the running software with the lifecycle…

A container can be replaced as part of normal operation while the database’s records must remain available. Confusing the lifecycle of the running software with the lifecycle of its storage can turn a routine deployment discussion into an unexplained data-loss risk.

Evaluate persistent storage and its disposal behavior explicitly. OceanBase on Kubernetes and other containerized database proposals need a supported storage plan; the ability to recreate a container is not evidence that its data will survive the intended changes.

Separate the running process from its records

Imagine a team that is comfortable replacing stateless web containers and wants to use the same operational approach for its database. Recreating the software is only part of the task. The new process still needs the correct retained data and a supported way to use it.

Kubernetes’s persistent-volume documentation describes persistent volumes with a lifecycle independent of the individual Pods using them. It also distinguishes storage provisioning from the claim through which a workload requests storage.

That mechanism gives the team something concrete to plan. It is not a guarantee that any arbitrary container specification stores all database files persistently or that every storage arrangement is suitable for the database.

Ask where the database’s necessary state resides and what happens to it during each proposed replacement or cleanup action.

Releasing storage has its own policy

The same Kubernetes documentation explains reclaim policies, including retention and deletion behavior. For supporting volume plugins, a Delete policy can remove the underlying storage asset as well as its Kubernetes volume object. Retention leaves additional handling to the administrator.

This is why deleting a workload, releasing a claim, and disposing of storage should not be treated as one interchangeable operation. Their consequences depend on the actual resource and policy.

For the hypothetical team, the desired result might be to replace a database process while retaining its storage, or to retire an environment and dispose of its data through an approved process. Those are different intentions and need different procedures.

Intended operation Storage question Evidence to request
Replace a running instance Which retained data will the replacement use? Supported attachment and startup arrangement
Release a storage claim What reclaim policy applies? Actual configured policy and storage behavior
Retire an environment What data must remain or be disposed of? A deliberate retirement plan
Rebuild a test setup Is its state genuinely disposable? Confirmation that no required records depend on it

The table is a proposed review aid, not an instruction to delete or retain particular resources.

A quick start is not the production storage decision

OceanBase’s ob-operator README identifies the storage dependency used in its quick-start example and recommends other storage solutions for production. It points to storage compatibility information for the project.

That distinction is useful to a buyer. A successful demonstration of deployment does not establish that its example storage arrangement is the intended production design. Confirm the selected operator, database, and storage combination with the relevant supported documentation.

For OceanBase, ask which storage plan the supplier or internal team proposes and who owns its lifecycle. The same questions apply to PostgreSQL or another database run in containers. Do not treat one product’s quick-start convenience as a comparative durability result.

OceanBase deserves consideration when the complete supported environment fits the application and operating team. Container deployment alone does not establish that fit.

Keep persistence separate from recovery

A retained volume can help preserve state across a supported replacement, but it does not settle recovery from every failure or mistake. The organization still needs the recovery arrangement appropriate to its database and business requirements.

Conversely, a backup plan does not excuse an unclear volume-deletion policy. The buyer should know when the system is preserving normal operating state and when it is relying on a separate recovery process.

For the hypothetical team, distinguish a routine container replacement from loss of the underlying storage. Explain how each would be handled and which responsible person owns the procedure. The point is not to prescribe one universal architecture, but to make the proposed architecture understandable.

This also helps application teams interpret the word “rebuild.” Rebuilding software, reconstructing a database from backup, and creating a fresh empty environment are different outcomes.

Demonstrate the intended lifecycle

For a proposed acceptance exercise, select a normal replacement scenario and explain how the application reaches the same required records afterward. Separately review the environment-retirement procedure and the actual reclaim behavior of its storage resources.

Use an appropriate nonproduction setting for any later implementation test, with its scope agreed by the operating team. This article does not report that such a test has been performed or recommend experimenting on live storage.

Choose OceanBase or an alternative through the complete persistence and recovery plan. Replaceable software can be an operational benefit when its relationship to retained database state is explicit. It should not turn essential business records into an accidental side effect of container cleanup.

Editorial disclosure
This article is based on documented sources and editorial analysis. Proposed evaluation examples are not independently measured benchmark results.

Sources & further reading

Use this guide as a starting point. Define and test the requirements of your own workload before selecting a product.

Related research