@ -4,7 +4,6 @@
# ./filer.toml
# $HOME/.seaweedfs/filer.toml
# /etc/seaweedfs/filer.toml
####################################################
# Customizable filer server options
####################################################
@ -14,34 +13,28 @@
recursive_delete = false
# directories under this folder will be automatically creating a separate bucket
buckets_folder = "/buckets"
####################################################
# The following are filer store options
####################################################
[ leveldb2 ]
# local on disk, mostly for simple single-machine setup, fairly scalable
# faster than previous leveldb, recommended.
enabled = false
dir = "./filerldb2" # directory to store level db files
enabled = true
dir = "./filerldb2" # directory to store level db files
[ leveldb3 ]
# similar to leveldb2.
# each bucket has its own meta store.
enabled = true
dir = "./filerldb3" # directory to store level db files
enabled = false
dir = "./filerldb3" # directory to store level db files
[ rocksdb ]
# local on disk, similar to leveldb
# since it is using a C wrapper, you need to install rocksdb and build it by yourself
enabled = false
dir = "./filerrdb" # directory to store rocksdb files
dir = "./filerrdb" # directory to store rocksdb files
[ sqlite ]
# local on disk, similar to leveldb
enabled = false
dbFile = "./filer.db" # sqlite db file
dbFile = "./filer.db" # sqlite db file
[ mysql ] # or memsql, tidb
# CREATE TABLE IF NOT EXISTS filemeta (
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
@ -50,30 +43,6 @@ dbFile = "./filer.db" # sqlite db file
# meta LONGBLOB,
# PRIMARY KEY (dirhash, name)
# ) DEFAULT CHARSET=utf8;
# create table if not exists bucket_meta
# (
# id bigint primary key auto_increment comment 'increment id',
# name VARCHAR(127) not null default '' comment 'identity of bucket',
# cipher varchar(127) default null comment 'chunked data encrypt algorithm such as AES. if not empty encrypt buckets data',
# root varchar(64) comment 'root key. must be unchanged',
# shards varchar(8) not null default '' comment 'ec config , such as 4x2',
# chunk_size int not null default '4194304' comment 'chunk size',
# disabled int not null default '0' comment '0=enable',
# replication VARCHAR(3) not null default '000' comment 'replication 000, 001, 002, etc https://github.com/chrislusf/seaweedfs/wiki/Replication"',
# disk_type VARCHAR(127) not null default '' comment '[hdd|ssd|<tag>] hard drive or solid state drive or any tag',
# collection VARCHAR(127) not null default '' comment 'bucket data will be stored in this collection',
# data_center VARCHAR(127) not null default '' comment 'bucket data will be stored in this dataCenter',
# rack VARCHAR(127) not null default '' comment 'bucket data will be stored in this rack',
# ttl_seconds int not null default '0' comment 'time to live unit is second',
# fsync bool not null default '0' comment 'fsync for the writes',
# volume_growth_count int not null default '0' comment 'the number of physical volumes to add if no writable volumes',
# version int not null default '1' comment 'version of bucket',
# created_at datetime not null default current_timestamp comment 'create time',
# updated_at datetime not null default current_timestamp on update current_timestamp comment 'last update time',
# unique idx_unq_name (name)
# ) DEFAULT CHARSET = utf8mb4 comment 'buckets meta management';
enabled = false
hostname = "localhost"
port = 3306
@ -87,7 +56,6 @@ interpolateParams = false
# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:
enableUpsert = true
upsertQuery = "" "INSERT INTO ` + " ` % s ` " + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)" ""
[ mysql2 ] # or memsql, tidb
enabled = false
createTable = "" "
@ -99,35 +67,11 @@ createTable = """
PRIMARY KEY ( dirhash , name )
) DEFAULT CHARSET = utf8 ;
"" "
createTableBucketMeta = "" "
create table if not exists bucket_meta
(
id bigint primary key auto_increment comment 'increment id' ,
name VARCHAR ( 127 ) not null default '' comment 'identity of bucket' ,
cipher varchar ( 127 ) default null comment 'chunked data encrypt algorithm such as AES. if not empty encrypt buckets data' ,
root varchar ( 64 ) comment 'root key. must be unchanged' ,
shards varchar ( 8 ) not null default '' comment 'ec config , such as 4x2' ,
chunk_size int not null default '4194304' comment 'chunk size' ,
disabled int not null default '0' comment '0=enable' ,
replication VARCHAR ( 3 ) not null default '000' comment 'replication 000, 001, 002, etc https://github.com/chrislusf/seaweedfs/wiki/Replication"' ,
disk_type VARCHAR ( 127 ) not null default '' comment '[hdd|ssd|<tag>] hard drive or solid state drive or any tag' ,
collection VARCHAR ( 127 ) not null default '' comment 'bucket data will be stored in this collection' ,
data_center VARCHAR ( 127 ) not null default '' comment 'bucket data will be stored in this dataCenter' ,
rack VARCHAR ( 127 ) not null default '' comment 'bucket data will be stored in this rack' ,
ttl_seconds int not null default '0' comment 'time to live unit is second' ,
fsync bool not null default '0' comment 'fsync for the writes' ,
volume_growth_count int not null default '0' comment 'the number of physical volumes to add if no writable volumes' ,
version int not null default '1' comment 'version of bucket' ,
created_at datetime not null default current_timestamp comment 'create time' ,
updated_at datetime not null default current_timestamp on update current_timestamp comment 'last update time' ,
unique idx_unq_name ( name )
) DEFAULT CHARSET = utf8mb4 comment 'buckets meta management' ;
"" "
hostname = "localhost"
port = 3306
username = "beefs "
password = "beefs "
database = "beefs " # create or use an existing database
username = "root"
password = ""
database = "" # create or use an existing database
connection_max_idle = 2
connection_max_open = 100
connection_max_lifetime_seconds = 0
@ -135,7 +79,6 @@ interpolateParams = false
# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:
enableUpsert = true
upsertQuery = "" "INSERT INTO ` + " ` % s ` " + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)" ""
[ postgres ] # or cockroachdb, YugabyteDB
# CREATE TABLE IF NOT EXISTS filemeta (
# dirhash BIGINT,
@ -158,7 +101,6 @@ connection_max_lifetime_seconds = 0
# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:
enableUpsert = true
upsertQuery = "" "INSERT INTO " % [ 1 ] s " (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT (dirhash,name) DO UPDATE SET meta = EXCLUDED.meta WHERE " % [ 1 ] s ".meta != EXCLUDED.meta" ""
[ postgres2 ]
enabled = false
createTable = "" "
@ -183,7 +125,6 @@ connection_max_lifetime_seconds = 0
# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:
enableUpsert = true
upsertQuery = "" "INSERT INTO " % [ 1 ] s " (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT (dirhash,name) DO UPDATE SET meta = EXCLUDED.meta WHERE " % [ 1 ] s ".meta != EXCLUDED.meta" ""
[ cassandra ]
# CREATE TABLE filemeta (
# directory varchar,
@ -192,28 +133,27 @@ upsertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,
# PRIMARY KEY (directory, name)
# ) WITH CLUSTERING ORDER BY (name ASC);
enabled = false
keyspace = "seaweedfs"
hosts = [
keyspace = "seaweedfs"
hosts = [
"localhost:9042" ,
]
username = ""
password = ""
username = ""
password = ""
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
superLargeDirectories = [ ]
# Name of the datacenter local to this filer, used as host selection fallback.
localDC = ""
[ hbase ]
enabled = false
zkquorum = ""
table = "seaweedfs"
[ redis2 ]
enabled = false
address = "localhost:6379"
address = "localhost:6379"
password = ""
database = 0
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
superLargeDirectories = [ ]
[ redis_cluster2 ]
enabled = false
addresses = [
@ -231,18 +171,15 @@ readOnly = false
routeByLatency = false
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
superLargeDirectories = [ ]
[ etcd ]
enabled = false
servers = "localhost:2379"
timeout = "3s"
[ mongodb ]
enabled = false
uri = "mongodb://localhost:27017"
option_pool_size = 0
database = "seaweedfs"
[ elastic7 ]
enabled = false
servers = [
@ -256,9 +193,6 @@ sniff_enabled = false
healthcheck_enabled = false
# increase the value is recommend, be sure the value in Elastic is greater or equal here
index . max_result_window = 10000
##########################
##########################
# To add path-specific filer store:
@ -274,6 +208,6 @@ index.max_result_window = 10000
[ redis2 . tmp ]
enabled = false
location = "/tmp/"
address = "localhost:6379"
address = "localhost:6379"
password = ""
database = 1