diff options
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/filer_replication.go | 2 | ||||
| -rw-r--r-- | weed/command/scaffold.go | 12 |
2 files changed, 4 insertions, 10 deletions
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index 18f549edc..25bca7c97 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -44,7 +44,7 @@ func runFilerReplicate(cmd *Command, args []string) bool { } } - replicator := replication.NewReplicator(config.Sub("sink.filer")) + replicator := replication.NewReplicator(config.Sub("source.filer"), config.Sub("sink.filer")) for { key, m, err := notificationInput.ReceiveMessage() diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index 17d8b1884..aa4be5ea9 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -149,25 +149,19 @@ topic = "seaweedfs_filer" [source.filer] enabled = true grpcAddress = "localhost:18888" -# id is to identify the notification source, avoid reprocessing the same events -id = "filer1" -# all files under this directory tree and not from this source.filer.id is replicated -directory = "/" +directory = "/buckets" # all files under this directory tree are replicated [notification.kafka] enabled = true hosts = [ "localhost:9092" ] -topic = "seaweedfs_filer" +topic = "seaweedfs_filer1_to_filer2" [sink.filer] enabled = true grpcAddress = "localhost:18888" -# id is to identify the notification source, avoid reprocessing the same events -id = "filer2" -# all files under this directory tree and not from this source.filer.id is replicated -directory = "/" +directory = "/backup" # all replicated files are under this directory tree ` ) |
