how can swift reaper service decide which node is the primary node for an account

asked 2016-01-06 22:56:24 -0500

as said in the page: http://docs.openstack.org/developer/swift/overview_reaper.html (http://docs.openstack.org/developer/s...)

The account reaper runs on each account server and scans the server occasionally for account databases marked for deletion. It will only trigger on accounts that server is the primary node for, so that multiple account servers aren’t all trying to do the same work at the same time.

I checked the code about reaper service, but didn't find the code which decide a primary node.

edit retag flag offensive close merge delete