add a snowflake sequencer as more robust fid generator, but less compressable than small auto-inc id

This commit is contained in:
李海
2021-03-25 18:49:26 +08:00
parent 82dfe06066
commit 69b2dab9c6
5 changed files with 55 additions and 1 deletions

View File

@@ -506,7 +506,7 @@ default = "localhost:8888" # used by maintenance scripts if the scripts needs
[master.sequencer]
type = "raft" # Choose [raft|etcd] type for storing the file id sequence
type = "raft" # Choose [raft|etcd|snowflake] type for storing the file id sequence
# 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"