[Openstack] {Swift] On demand replication

Mark Kirkwood mark.kirkwood at catalyst.net.nz
Sun Dec 4 22:56:45 UTC 2016


Suppose you have a newly created object, and want to ensure it has 
replicated (i.e this object is 'special' in some way). If the 
replication process is taking a while, is it sensible to 'encourage' 
Swift replication via direct HTTP calls using the 'replicate' method (or 
is this dangerous)?


E.g:

markir at obj4:/srv/node/vdb/objects/5$ ls 55e
ls: cannot access '55e': No such file or directory

markir at obj1:~$ curl -v -X REPLICATE "http://obj4:6000/vdb/5/55e"

markir at obj4:/srv/node/vdb/objects/5$ sleep 30;ls 55e
5c38bfdd63f01a8e56260105fc68555e


regards


Mark






More information about the Openstack mailing list