Add CPU Thread assignments

Added CPU Thread assignments for each server
This commit is contained in:
AreYouScared 2020-03-29 14:41:55 -04:00
parent ab4c4e7e9e
commit 2561e3e8d5
9 changed files with 28 additions and 2 deletions

View file

@ -98,6 +98,7 @@ class BuildModificationService
'swap' => array_get($data, 'swap'),
'io' => array_get($data, 'io'),
'cpu' => array_get($data, 'cpu'),
'threads' => array_get($data, 'threads'),
'disk' => array_get($data, 'disk'),
'allocation_id' => array_get($data, 'allocation_id'),
'database_limit' => array_get($data, 'database_limit'),

View file

@ -81,6 +81,7 @@ class ServerConfigurationStructureService
'swap' => $server->swap,
'io_weight' => $server->io,
'cpu_limit' => $server->cpu,
'cpu_threads' => $server->threads,
'disk_space' => $server->disk,
],
'service' => [
@ -130,6 +131,7 @@ class ServerConfigurationStructureService
'swap' => (int) $server->swap,
'io' => (int) $server->io,
'cpu' => (int) $server->cpu,
'threads' => $server->threads,
'disk' => (int) $server->disk,
'image' => $server->image,
],

View file

@ -242,6 +242,7 @@ class ServerCreationService
'disk' => Arr::get($data, 'disk'),
'io' => Arr::get($data, 'io'),
'cpu' => Arr::get($data, 'cpu'),
'threads' => Arr::get($data, 'threads'),
'oom_disabled' => Arr::get($data, 'oom_disabled', true),
'allocation_id' => Arr::get($data, 'allocation_id'),
'nest_id' => Arr::get($data, 'nest_id'),