[Openstack] Swift accounts and container replication

Carlos Rodrigues cmar at eurotux.com
Thu Apr 7 08:49:23 UTC 2016


Hi,

Thank you people for your answers.

I have 3 policies plus storage-policy:0 that is deprecated.

The default policy have ring with nodes from one site but i have one
policy with nodes from both sites, that are in use by some containers
and replication of objects works well.

But for accounts and containers, the files are created from storage-
policy:0 that is deprecated

# find /srv/node/ -name *.db
...
/srv/node/s1-
ssd2/containers/3868/cb3/f1c772539e9d8123eb77dca5a6bc8cb3/f1c772539e9d8
123eb77dca5a6bc8cb3.db
/srv/node/s1-
ssd2/containers/3711/7c8/e7f32480479014a047c3eddd646067c8/e7f3248047901
4a047c3eddd646067c8.db
/srv/node/s1-
ssd2/containers/2477/1b7/9ad1a7f64dae5a9efcbe88fe8391a1b7/9ad1a7f64dae5
a9efcbe88fe8391a1b7.db
/srv/node/s1-
ssd2/accounts/1252/aec/4e4dd60d1b0520639b54941adafd5aec/4e4dd60d1b05206
39b54941adafd5aec.db
/srv/node/s1-
ssd2/accounts/1579/9cc/62b4fcf9a2a14a51be60fc0fcfddc9cc/62b4fcf9a2a14a5
1be60fc0fcfddc9cc.db
...

And are only create on nodes of one site and are not replicated to this
nodes neither to nodes of other site.

Regards,
Carlos Rodrigues



On Thu, 2016-04-07 at 00:37 -0600, Pete Zaitcev wrote:
> On Mon, 04 Apr 2016 18:13:17 +0100
> Carlos Rodrigues <cmar at eurotux.com> wrote:
> 
> > I have two regions nodes of swift, geographically dispersed, and i
> > have
> > storage policies for both regions. 
> > 
> > How can i do to replicate the accounts and containers between two
> > regions?
> 
> Policies do not apply to accounts and containers (although a
> container
> signifies what policy applies to objects in it, the container itself
> is not a subject to the policy). So all of your accounts and
> containers
> are going to be replicated within the distributed cluster.
> 
> -- Pete
-- 
Carlos Rodrigues 

Engenheiro de Software Sénior

Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 911 926 110







More information about the Openstack mailing list