|
@ -3,8 +3,8 @@ package filer2 |
|
|
import ( |
|
|
import ( |
|
|
"os" |
|
|
"os" |
|
|
|
|
|
|
|
|
"github.com/spf13/viper" |
|
|
|
|
|
"github.com/chrislusf/seaweedfs/weed/glog" |
|
|
"github.com/chrislusf/seaweedfs/weed/glog" |
|
|
|
|
|
"github.com/spf13/viper" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
const ( |
|
|
const ( |
|
@ -20,12 +20,11 @@ enabled = false |
|
|
enabled = false |
|
|
enabled = false |
|
|
dir = "." # directory to store level db files |
|
|
dir = "." # directory to store level db files |
|
|
|
|
|
|
|
|
[mysql] |
|
|
|
|
|
|
|
|
#################################################### |
|
|
# multiple filers on shared storage, fairly scalable |
|
|
# multiple filers on shared storage, fairly scalable |
|
|
# |
|
|
|
|
|
# need to choose or create a database. |
|
|
|
|
|
# need to manually create a table "filemeta". |
|
|
|
|
|
# |
|
|
|
|
|
|
|
|
#################################################### |
|
|
|
|
|
|
|
|
|
|
|
[mysql] |
|
|
# CREATE TABLE IF NOT EXISTS filemeta ( |
|
|
# CREATE TABLE IF NOT EXISTS filemeta ( |
|
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field', |
|
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field', |
|
|
# name VARCHAR(1000) COMMENT 'directory or file name', |
|
|
# name VARCHAR(1000) COMMENT 'directory or file name', |
|
@ -33,7 +32,6 @@ dir = "." # directory to store level db files |
|
|
# meta BLOB, |
|
|
# meta BLOB, |
|
|
# PRIMARY KEY (dirhash, name) |
|
|
# PRIMARY KEY (dirhash, name) |
|
|
# ) DEFAULT CHARSET=utf8; |
|
|
# ) DEFAULT CHARSET=utf8; |
|
|
# |
|
|
|
|
|
enabled = true |
|
|
enabled = true |
|
|
hostname = "localhost" |
|
|
hostname = "localhost" |
|
|
port = 3306 |
|
|
port = 3306 |
|
|