Ask Your Question

Swift storage: Simultanious update on same object

asked 2014-07-26 14:31:50 -0500

rkchaudhary gravatar image


We are planning to use Swift storage in our cloud services.

Setup: 2 proxy node and 4 storage node with 4 replica for each partitions

My question is

Lets say same object being accessed by 2 clients and then they both adds new version of object. Now lets say request came to different proxy server. In this scenario, how replications service handles this? Will update by one client lost? Or replication service do merge(I guess not) or update by one client fails?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-19 11:37:41 -0500

briancline gravatar image

Since Swift follows the general principle of last-write-wins, the most recent write to reach the backend object servers will prevail. However, this principle in practice is only as good as the time synchronization between your proxies and backend storage nodes; timestamps are a critical part of how Swift determines what to replicate and which replica(s) are the newest.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-26 14:30:38 -0500

Seen: 145 times

Last updated: Jul 26 '14