aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-23 20:54:03 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-23 20:54:03 -0700
commitac286118176f757e039df9e0349f132be0b126bf (patch)
treeffb8d1b7d9452ecc54b12220585a3153dd0c9f9e /weed/command/scaffold
parent5c14da0f1efbd835e076433c0b7f1a80aebf61c2 (diff)
downloadseaweedfs-ac286118176f757e039df9e0349f132be0b126bf.tar.xz
seaweedfs-ac286118176f757e039df9e0349f132be0b126bf.zip
snowflake sequencer need an unique id
fix https://github.com/chrislusf/seaweedfs/issues/2213
Diffstat (limited to 'weed/command/scaffold')
-rw-r--r--weed/command/scaffold/master.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/scaffold/master.toml b/weed/command/scaffold/master.toml
index f550f0ad6..60a7dbcfc 100644
--- a/weed/command/scaffold/master.toml
+++ b/weed/command/scaffold/master.toml
@@ -26,6 +26,8 @@ type = "raft" # Choose [raft|etcd|snowflake] type for storing the file id se
# when sequencer.type = etcd, set listen client urls of etcd cluster that store file id sequence
# example : http://127.0.0.1:2379,http://127.0.0.1:2389
sequencer_etcd_urls = "http://127.0.0.1:2379"
+# when sequencer.type = snowflake, the snowflake id must be different from other masters
+sequencer_snowflake_id = 0 # any number between 1~1023
# configurations for tiered cloud storage