What Is OpenStack Swift? Understanding Rings, Replication, and Listings
OpenStack Swift is a distributed object store accessed through an HTTP API. A proxy accepts requests and routes them to storage nodes using a Ring; object servers store data bytes, while separate account and container servers maintain container listings and object listings. Replicas help the service continue through failures, but replication and listing updates can be asynchronous. An upload succeeding, reading an object, and seeing it in a listing are therefore not always completed at the same moment.
What Is OpenStack Swift? Understanding Rings, Replication, and Listings
OpenStack Swift is a distributed object store accessed through an HTTP API. A proxy accepts requests and routes them to storage nodes using a Ring; object servers store data bytes, while separate account and container servers maintain container listings and object listings. Replicas help the service continue through failures, but replication and listing updates can be asynchronous. An upload succeeding, reading an object, and seeing it in a listing are therefore not always completed at the same moment.
This article follows official OpenStack Swift documentation checked on 21 November 2026, including the documentation site’s 2.39 development series. For a provider-neutral comparison of object, block, and file storage, see the object-storage selection guide. This article focuses on Swift’s Ring, replication convergence, and storage policies. The latest documentation may differ from a deployed distribution, so check the documentation for the release actually installed.
How is Swift storage organized?
Swift API paths generally have the form /v1/{account}/{container}/{object}. An account is the top-level tenant or project space; a container scopes object names and some policies; an object identifies data and metadata. A slash in an object name does not necessarily represent a real directory. For example, photos/2026/event.jpg may be one object-name string that a client tool displays like a folder path.
Client
│ HTTPS / Object Storage API
▼
Proxy ─ token check and Ring lookup
│ │
│ object request ├─ Account Ring → account DB / container listing
▼ ├─ Container Ring → object-name listing
Object Ring / Storage Policy └─ Object Ring → object-data devices
│
├─ primary replicas (Ring assignments)
└─ handoff node (temporary route when a storage node is unavailable)
⇢ background replication / updater converges data and listingsThe proxy exposes the public API and uses the relevant Ring to locate each account, container, or object. Object bytes stream through the proxy between client and storage node. A Ring hashes logical names into partitions and maps partitions to physical devices. Account and container Rings are separate; each storage policy can have its own object Ring. Operators build and distribute Rings with external tools such as ring-builder; server processes do not modify the Ring themselves.
Object servers store object data. Container servers maintain the names and statistics for objects in a container, rather than locating each object’s bytes. Account servers maintain container listings and account statistics. This separation means object data can exist while an update to the listing database is delayed.
How do Rings and replicas support durability?
Rings try to place partitions and replicas across devices and failure domains such as servers, zones, and regions. Official documentation uses three replicas as a default example, but replica count, device weights, and topology are configurable. If there are not enough independent servers or zones, Swift may not be able to isolate replicas fully while also balancing capacity. Three copies are not an absolute guarantee against every failure scenario.
If a primary storage node is unavailable during a PUT, the proxy can use a handoff device identified by the Ring. This helps preserve a write path during a failure. Replicators later compare copies and repair placement toward the intended Ring layout. A handoff device is not necessarily the permanent replica location, so operators need to track the outage and whether repair completes.
Deletion also uses a tombstone, a marker that lets replicas learn about the delete and prevents an old copy from reappearing. Swift retains tombstones through a configured consistency window before cleanup. Removing them too early during a prolonged failure can allow stale data to return, so the window must fit the replication and failure model.
Why can an upload succeed before the object appears in a listing?
Consider a hypothetical application that PUTs photos/event.jpg into an images container. When the proxy gets enough successful responses from the intended replicas, it can return success, and Swift’s architecture documentation says the object can then be read. But if a container server cannot update its object listing because of load or a failure, that update may be queued for an updater. A direct GET of the object can succeed while the container listing has not yet shown its name. Once the updater processes the queued change, the listing catches up.
| Observation | Possible meaning | Next check |
|---|---|---|
| PUT succeeds and direct GET works, but listing omits the object | Object data and container listing update may have different timing | GET the exact object path; ask the operator to inspect container/updater status and request logs |
| PUT errors or times out | The request may not have received the required replica responses, or proxy/storage nodes may have a problem | Before retrying, check with HEAD/GET whether the object was already written; classify the error |
| GET results vary by node or time | Replication or handoff repair may not have converged | Operator checks proxy, replicator, handoff, and device health |
| Listing remains stale | Updater delay, container replication, or a database problem may be involved | Operator checks relevant queues, replication status, and container DB metrics |
This table suggests diagnostic hypotheses; it does not imply that an end user can inspect all internal service state. Evidence should come from operator logs and monitoring. An application should avoid assuming that a listing is synchronously updated by a successful upload. It can request the exact authorized object path or maintain its own index when immediate discovery is required.
What does a Storage Policy change?
A Storage Policy lets an operator partition object placement within one Swift cluster. Separate object Rings and hardware can support different configurations, such as replication, erasure coding, or an SSD-focused tier. Actual durability and performance depend on the Ring and equipment; a policy name alone does not guarantee them.
A policy is selected when a container is created and remains fixed for that container’s lifetime. Changing policy generally means creating a destination container and moving objects through an application or operations workflow. It is not a per-object tier label that can be changed on every upload. Also distinguish the default policy, used for new containers when none is specified, from Policy-0, which identifies the legacy Ring for containers created before storage policies.
| Need | Policy design to consider | Verify |
|---|---|---|
| General reads and writes with simpler operations | Replication policy | Replica count, device capacity, separation across zones and servers |
| Storage-efficient archival tier | Erasure-coding policy | Read and repair cost, latency, failure tolerance, supported operations |
| Separate hardware or performance characteristics | Policy backed by a dedicated hardware Ring | Validate actual hardware/network and remember policy is fixed at container creation |
Do not choose between erasure coding and replication by storage-space ratio alone. Consider the devices needed for recovery, access patterns, failure domains, and features exposed by the provider. Swift documents both policy types, but a provider may expose only a subset.
What should applications consider for large objects?
Swift can support large uploads by splitting content into segment objects and using a manifest object to present them as one logical object. The API overview lists a 5 GB default limit for a single object, but a provider can configure different limits; segmented upload uses additional behavior and settings. Check the deployed cluster’s constraints. Applications should also plan segment cleanup, retries after partial uploads, and manifest download behavior.
Operators and application teams should decide the target policy and container before writing data; define object-name and listing-pagination rules; distinguish upload success, direct object retrieval, and listing visibility; plan versioning, deletion, and retention; and correlate request IDs across proxy, object/container servers, updater, replicator, Ring, and device health when troubleshooting. Replication is not automatically a separate backup.
Swift lets applications store objects through HTTP while the cluster divides work among proxies, Rings, storage servers, and background convergence. That provides a distributed operating model, with added responsibilities for Ring management, failure-domain design, asynchronous repair, and listing behavior. Confirm the deployed release’s API, replication, and policy settings, especially when an application requires immediate listing consistency.
References
[OpenStack Swift architectural overview](https://docs.openstack.org/swift/latest/overview_architecture.html)
[OpenStack Swift Rings](https://docs.openstack.org/swift/latest/overview_ring.html)
[OpenStack Swift replication](https://docs.openstack.org/swift/latest/admin/objectstorage-replication.html)
[OpenStack Swift Storage Policies](https://docs.openstack.org/swift/latest/overview_policies.html)
[OpenStack Swift Object Storage API overview](https://docs.openstack.org/swift/latest/api/object_api_v1_overview.html)
[OpenStack Swift large-object support](https://docs.openstack.org/swift/latest/admin/objectstorage-large-objects.html)
Official sources were checked on 21 November 2026. Some architecture pages describe long-standing designs; verify replica counts, limits, policy features, consistency windows, and commands in the documentation and configuration for the Swift distribution you operate.