snowflake sequencer need an unique id

fix https://github.com/chrislusf/seaweedfs/issues/2213
This commit is contained in:
Chris Lu
2021-07-23 20:54:03 -07:00
parent 5c14da0f1e
commit ac28611817
3 changed files with 9 additions and 2 deletions

View File

@@ -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