Add support for defining specific threads for containers
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user