swift-object-replicator(1)

✨ swift-object-replicator β€” the manual, but make it make sense ✨

okay bestie, so this is swift-object-replicator(1) from OpenStack Swift β€” it's a section 1 command page, and it's literally the object replicator. she keeps your cluster from being a mess. let's get into it πŸ’…


🌸 NAME 🌸

swift-object-replicator β€” OpenStack Swift object replicator. that's the whole vibe. she replicates objects. πŸ¦‹


🌈 SYNOPSIS 🌈

swift-object-replicator [CONFIG] [-h|--help] [-v|--verbose] [-o|--once]

that's it, that's the whole invocation. [CONFIG] goes first, then your flags, and she's off. ✨


πŸ’– DESCRIPTION πŸ’–

okay so the whole point of replication is to keep the system in a consistent state when stuff goes temporarily wrong β€” think network outages, think drive failures, think the universe being rude. 😭

The replication processes compare local data with each remote copy to make sure they all have the latest version. no stragglers, no dusty old copies, we don't do that here. 🫢

And how does object replication compare them so fast? a hash list β€” she uses it to quickly compare subsections of each partition. lowkey genius, highkey iconic. πŸ‘‘

Replication updates are push based. for object replication, updating is literally just a matter of rsyncing files to the peer. that's it. that's the update. ✨

But wait β€” the replicator also makes sure data gets removed from the system. because deletion matters too, bestie. when an object item is deleted, a tombstone is set as the latest version of that item. the replicator sees the tombstone and makes sure that item gets removed from the entire system. she's thorough. she's committed. she ate. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” shows this help message and exits. classic. polite. we love a flag that just tells you the tea. πŸ“
  • -d DEVICES, --devices=DEVICES β€” replicate only the given devices. it's a comma-separated list. heads up though: this only has an effect if --once is used. πŸ‘€
  • -p PARTITIONS, --partitions=PARTITIONS β€” replicate only the given partitions. also a comma-separated list. and also β€” yep β€” only has an effect if --once is used.
  • -i POLICIES, --policies=POLICIES β€” replicate only the given policy indices. comma-separated list again. and yes, same rule: only has an effect if --once is used. ✨
  • -v, --verbose β€” log to console. she gets chatty. we love that for her. πŸ—£οΈ
  • -o, --once β€” only run one pass of the daemon. one and done. no looping. main character doing a single lap and leaving. πŸƒβ™€οΈ
ngl bestie, notice how -d, -p and -i are all only effective with --once? yeah. don't forget that part or you'll be confused and we can't have that. πŸ’€

πŸ“š DOCUMENTATION πŸ“š

want more in-depth documentation about swift-object-replicator, or about OpenStack Swift as a whole? it lives right here, no gatekeeping:

https://docs.openstack.org/swift/latest/

go read it. it's giving educational. 🧚


πŸ‘€ SEE ALSO πŸ‘€


cute little sign-off: this page came from the Linux manual, dated 8/26/2011, and it belongs to swift-object-replicator(1) in the OpenStack Swift world. periodt. πŸ’–βœ¨πŸŽ€