master.toml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Put this file to one of the location, with descending priority
  2. # ./master.toml
  3. # $HOME/.seaweedfs/master.toml
  4. # /etc/seaweedfs/master.toml
  5. # this file is read by master
  6. [master.maintenance]
  7. # periodically run these scripts are the same as running them from 'weed shell'
  8. scripts = """
  9. lock
  10. ec.encode -fullPercent=95 -quietFor=1h
  11. ec.rebuild -force
  12. ec.balance -force
  13. volume.deleteEmpty -quietFor=24h -force
  14. volume.balance -force
  15. volume.fix.replication
  16. s3.clean.uploads -timeAgo=24h
  17. unlock
  18. """
  19. sleep_minutes = 17 # sleep minutes between each script execution
  20. [master.sequencer]
  21. type = "raft" # Choose [raft|snowflake] type for storing the file id sequence
  22. # when sequencer.type = snowflake, the snowflake id must be different from other masters
  23. sequencer_snowflake_id = 0 # any number between 1~1023
  24. # configurations for tiered cloud storage
  25. # old volumes are transparently moved to cloud for cost efficiency
  26. [storage.backend]
  27. [storage.backend.s3.default]
  28. enabled = false
  29. aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  30. aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  31. region = "us-east-2"
  32. bucket = "your_bucket_name" # an existing bucket
  33. endpoint = ""
  34. # create this number of logical volumes if no more writable volumes
  35. # count_x means how many copies of data.
  36. # e.g.:
  37. # 000 has only one copy, copy_1
  38. # 010 and 001 has two copies, copy_2
  39. # 011 has only 3 copies, copy_3
  40. [master.volume_growth]
  41. copy_1 = 7 # create 1 x 7 = 7 actual volumes
  42. copy_2 = 6 # create 2 x 6 = 12 actual volumes
  43. copy_3 = 3 # create 3 x 3 = 9 actual volumes
  44. copy_other = 1 # create n x 1 = n actual volumes
  45. # configuration flags for replication
  46. [master.replication]
  47. # any replication counts should be considered minimums. If you specify 010 and
  48. # have 3 different racks, that's still considered writable. Writes will still
  49. # try to replicate to all available volumes. You should only use this option
  50. # if you are doing your own replication or periodic sync of volumes.
  51. treat_replication_as_minimums = false