how the replicator in swift replicate a good copy

asked 2013-12-24 03:56:35 -0500

pragya jain gravatar image

as said in many documents, A hash file is created for each partition which contains hashes of each directory in the partition. Replicator continuously examines each partition. Each of three hash file are compared. If hashes are different, Directory that need to be replicated is copied over.

My question is:

  • what is the mean of directory here? Is directory representing account database,container databese and objects?
  • If there is any fault or difference found while comparing the hashes, What is copied over - the whole partition or the particular directory whose hash is different?

Please help me to make it clear.

Thanks in advance

Pragya jain

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-26 01:19:37 -0500

koolhead17 gravatar image

My question is:

1. what is the mean of directory here? Is directory representing account database,container database and objects?

Yes separate directory for each. Example: /srv/node/d0/objects/partition/$hash/$the_last_three_character_of_hash/$obj_time_stamp

  2. If there is any fault or difference found while comparing the hashes, What is copied over - the whole partition or the particular directory whose hash is different?

Yes its found comparing the hashes. Only directory whose hash is different.

You can also check official guide http://docs.openstack.org/developer/swift/overview_replication.html gives a good idea how whole replication process happens with help of Ring.

hope it helps!!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-24 03:56:35 -0500

Seen: 45 times

Last updated: Dec 26 '13