Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

1.3 KB
Raw Blame

# 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 are skipped while an admin server is connected.
scripts = """
  lock
  ec.encode -fullPercent=95 -quietFor=1h
  ec.rebuild -apply
  ec.balance -apply
  volume.balance -apply
  volume.fix.replication -apply
  unlock
"""
sleep_minutes = 17          # sleep minutes between each script execution

# configurations for tiered cloud storage
# old volumes are transparently moved to cloud for cost efficiency
[storage.backend]
	[storage.backend.s3.default]
	enabled = true
	aws_access_key_id     = "any"     # if empty, loads from the shared credentials file (~/.aws/credentials).
	aws_secret_access_key = "any"     # if empty, loads from the shared credentials file (~/.aws/credentials).
	region = "us-east-2"
	bucket = "volume_bucket"    # an existing bucket
	endpoint = "http://server2:8333"
	storage_class = "STANDARD_IA"
	# upload_concurrency = 5     # concurrent multipart part uploads per volume (volume.tier.upload -concurrent overrides)
	# download_concurrency = 5   # concurrent multipart part downloads per volume (volume.tier.download -concurrent overrides)