mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: cpuset limits was determined in a way that apps only used 1 CPU max, ehh, sorry.
This commit is contained in:
1 parent
f1298d1db4
commit
5e7c6906b3
14 files changed
+113
-18
No files matched your search
@@ -66,7 +66,6 @@ class StartRedis
|
||||
'mem_swappiness' => $this->database->limits_memory_swappiness,
|
||||
'mem_reservation' => $this->database->limits_memory_reservation,
|
||||
'cpus' => (float) $this->database->limits_cpus,
|
||||
'cpuset' => $this->database->limits_cpuset,
|
||||
'cpu_shares' => $this->database->limits_cpu_shares,
|
||||
]
|
||||
],
|
||||
@@ -78,6 +77,9 @@ class StartRedis
|
||||
]
|
||||
]
|
||||
];
|
||||
if ($this->database->limits_cpuset !== 0) {
|
||||
data_set($docker_compose, "services.{$container_name}.cpuset", $this->database->limits_cpuset);
|
||||
}
|
||||
if ($this->database->destination->server->isLogDrainEnabled() && $this->database->isLogDrainEnabled()) {
|
||||
$docker_compose['services'][$container_name]['logging'] = [
|
||||
'driver' => 'fluentd',
|
||||
|
||||
Reference in new issue
Block a user