master-cloud.toml 1.0 KB

12345678910111213141516171819202122232425262728293031
  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.balance -force
  14. volume.fix.replication
  15. unlock
  16. """
  17. sleep_minutes = 17 # sleep minutes between each script execution
  18. # configurations for tiered cloud storage
  19. # old volumes are transparently moved to cloud for cost efficiency
  20. [storage.backend]
  21. [storage.backend.s3.default]
  22. enabled = true
  23. aws_access_key_id = "any" # if empty, loads from the shared credentials file (~/.aws/credentials).
  24. aws_secret_access_key = "any" # if empty, loads from the shared credentials file (~/.aws/credentials).
  25. region = "us-east-2"
  26. bucket = "volume_bucket" # an existing bucket
  27. endpoint = "http://server2:8333"
  28. storage_class = "STANDARD_IA"