Compare commits
1 commit
bf00d74a26
...
827e4398d7
| Author | SHA1 | Date | |
|---|---|---|---|
|
827e4398d7 |
2 changed files with 2 additions and 2 deletions
|
|
@ -16,6 +16,7 @@ func StartMetadata(config NoCloudConfig, db *badger.DB, dryrun bool) error {
|
||||||
|
|
||||||
LoadNcCloudInDB(config, db)
|
LoadNcCloudInDB(config, db)
|
||||||
if !dryrun {
|
if !dryrun {
|
||||||
|
fmt.Println("try to start metadata server")
|
||||||
if err := service.Start("metadata@" + config.Name + ".service"); err != nil {
|
if err := service.Start("metadata@" + config.Name + ".service"); err != nil {
|
||||||
return fmt.Errorf("failed to start metadata@%s: %w", config.Name, err)
|
return fmt.Errorf("failed to start metadata@%s: %w", config.Name, err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ import (
|
||||||
|
|
||||||
func InitDB(conf Config, readonly bool) *badger.DB {
|
func InitDB(conf Config, readonly bool) *badger.DB {
|
||||||
opts := badger.DefaultOptions(conf.Path).
|
opts := badger.DefaultOptions(conf.Path).
|
||||||
WithReadOnly(readonly).
|
WithReadOnly(readonly)
|
||||||
WithBypassLockGuard(readonly)
|
|
||||||
opts.Logger = nil
|
opts.Logger = nil
|
||||||
opts.ValueLogFileSize = 10 << 20 // 10 Mo par fichier vlog
|
opts.ValueLogFileSize = 10 << 20 // 10 Mo par fichier vlog
|
||||||
opts.NumMemtables = 1
|
opts.NumMemtables = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue