lib/gizzmo.rb in gizzmo-0.11.3 vs lib/gizzmo.rb in gizzmo-0.11.4

- old
+ new

@@ -22,10 +22,12 @@ "links" => "List parent & child links for shards.", "lookup" => "Lookup the shard id that holds the record for a given table / source_id.", "markbusy" => "Mark a shard as busy.", "pair" => "Report the replica pairing structure for a list of hosts.", "reload" => "Instruct application servers to reload the nameserver state.", + "repair-shards" => "Reconcile n shards by detecting differences and rescheduling them", + "diff-shards" => "Log differences between n shards", "report" => "Show each unique replica structure for a given list of shards. Usually this shard list comes from << gizzmo forwardings | awk '{ print $3 }' >>.", "setup-replica" => "Add a replica to be parallel to an existing replica, in write-only mode, ready to be copied to.", "wrap" => "Wrapping creates a new (virtual, e.g. blocking, replicating, etc.) shard, and relinks SHARD_ID_TO_WRAP's parent links to run through the new shard.", } @@ -243,9 +245,21 @@ end end, 'copy' => OptionParser.new do |opts| opts.banner = "Usage: #{zero} copy SOURCE_SHARD_ID DESTINATION_SHARD_ID" separators(opts, DOC_STRINGS["copy"]) + end, + 'repair-shards' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} repair-shards SHARD_IDS..." + separators(opts, DOC_STRINGS["repair-shards"]) + end, + 'diff-shards' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} diff-shards SHARD_IDS..." + separators(opts, DOC_STRINGS["diff-shards"]) + end, + 'diff-shards' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} diff-shards SOURCE_SHARD_ID DESTINATION_SHARD_ID" + separators(opts, DOC_STRINGS["diff-shards"]) end, 'busy' => OptionParser.new do |opts| opts.banner = "Usage: #{zero} busy" separators(opts, DOC_STRINGS["busy"]) end,