refactoring mysql store code
This commit is contained in:
@@ -6,36 +6,6 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
/*
|
||||
To improve performance when storing billion of files, you could shar
|
||||
At each mysql instance, we will try to create 1024 tables if not exist, table name will be something like:
|
||||
filer_mapping_0000
|
||||
filer_mapping_0001
|
||||
.....
|
||||
filer_mapping_1023
|
||||
sample conf should be
|
||||
|
||||
>$cat filer_conf.json
|
||||
{
|
||||
"mysql": [
|
||||
{
|
||||
"User": "root",
|
||||
"Password": "root",
|
||||
"HostName": "127.0.0.1",
|
||||
"Port": 3306,
|
||||
"DataBase": "seaweedfs"
|
||||
},
|
||||
{
|
||||
"User": "root",
|
||||
"Password": "root",
|
||||
"HostName": "127.0.0.2",
|
||||
"Port": 3306,
|
||||
"DataBase": "seaweedfs"
|
||||
}
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
func TestGenerateMysqlConf(t *testing.T) {
|
||||
var conf []MySqlConf
|
||||
conf = append(conf, MySqlConf{
|
||||
|
||||
Reference in New Issue
Block a user