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