database="postgres"# create or use an existing database
schema=""
sslmode="disable"
connection_max_idle=100
connection_max_open=100
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="""
CREATETABLEIFNOTEXISTS"%s"(
dirhashBIGINT,
nameVARCHAR(65535),
directoryVARCHAR(65535),
metabytea,
PRIMARYKEY(dirhash,name)
);
"""
hostname="localhost"
port=5432
username="postgres"
password=""
database="postgres"# create or use an existing database
schema=""
sslmode="disable"
connection_max_idle=100
connection_max_open=100
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,
# name varchar,
# meta blob,
# PRIMARY KEY (directory, name)
# ) WITH CLUSTERING ORDER BY (name ASC);
enabled=false
keyspace="seaweedfs"
hosts=[
"localhost:9042",
]
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"
password=""
database=0
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
superLargeDirectories=[]
[redis_cluster2]
enabled=false
addresses=[
"localhost:30001",
"localhost:30002",
"localhost:30003",
"localhost:30004",
"localhost:30005",
"localhost:30006",
]
password=""
# allows reads from slave servers or the master, but all writes still go to the master
readOnly=false
# automatically use the closest Redis server for reads
routeByLatency=false
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.