Architecture

Requirements

There should be two Seaweed File Systems running, possibly across data centers. Each should have its filer, master, and volume servers.

Configuration

  • Configure notification. use "" to see the notification section.
  • Configure replication. use "weed scaffold -config=replication" to see the notification section.

  1. [source.filer]
  2. enabled = true
  3. grpcAddress = "localhost:18888"
  4. [notification.kafka]
  5. hosts = [
  6. "localhost:9092"
  7. ]
  8. topic = "seaweedfs_filer1_to_filer2"
  9. [sink.filer]
  10. directory = "/backup" # all replicated files are under this directory tree
  11. replication = ""
  12. collection = ""
  13. ttlSec = 0
  • Start the Kafka.
  • Start the replication. "weed filer.replicate"
  • Start the filer. "weed filer"

Replicate existing files

The only replicates files that have been updated. If there are already a lot of files, very likely you would need to copy them too.