Ask Your Question
0

Swift storage: Simultanious update on same object

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

rkchaudhary gravatar image

Hi,

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 125 times

Last updated: Jul 26 '14