Add support for defining specific threads for containers

This commit is contained in:
Dane Everitt
2020-03-29 12:31:17 -07:00
parent f0e37f1e98
commit ddca34f9e8
3 changed files with 6 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ func New(data []byte) (*Installer, error) {
IoWeight: uint16(getInt(data, "build", "io")),
CpuLimit: getInt(data, "build", "cpu"),
DiskSpace: getInt(data, "build", "disk"),
Threads: getString(data, "build", "threads"),
},
Allocations: server.Allocations{
Mappings: make(map[string][]int),
@@ -115,7 +116,6 @@ func (i *Installer) Execute() {
return
}
zap.S().Debugw("creating required environment for server instance", zap.String("server", i.Uuid()))
if err := i.server.Environment.Create(); err != nil {
zap.S().Errorw("failed to create environment for server", zap.String("server", i.Uuid()), zap.Error(err))