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.
[source.filer]
enabled = true
grpcAddress = "localhost:18888"
[notification.kafka]
hosts = [
"localhost:9092"
]
topic = "seaweedfs_filer1_to_filer2"
[sink.filer]
directory = "/backup" # all replicated files are under this directory tree
replication = ""
collection = ""
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.