Re-removed CPU restrictions from apps to speed them up

This commit is contained in:
frikky
2021-05-29 20:46:48 +02:00
parent 5423685321
commit 49453f6041
5 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class AppBase:
# for action["parameters"]
# print("AUTH: ", key, value)
# params[item["key"]] = item["value"]
#except KeyError:
#except KeyError:
# print("No authentication specified!")
# pass
+1 -1
View File
@@ -50,7 +50,7 @@ services:
#- database
orborus:
#build: ./functions/onprem/orborus
image: ghcr.io/frikky/shuffle-orborus:0.8.97
image: ghcr.io/frikky/shuffle-orborus:nightly
container_name: shuffle-orborus
hostname: shuffle-orborus
networks:
+1 -1
View File
@@ -1,5 +1,5 @@
NAME=shuffle-orborus
VERSION=0.8.90
VERSION=0.8.97
echo "Running docker build with $NAME:$VERSION"
#docker rmi frikky/shuffle:$NAME --force
+5 -5
View File
@@ -123,16 +123,16 @@ func getThisContainerId() {
func deployWorker(image string, identifier string, env []string) {
// Binds is the actual "-v" volume.
// Max 20% CPU every second
//CPUQuota: 25000,
//CPUPeriod: 100000,
//CPUShares: 256,
hostConfig := &container.HostConfig{
LogConfig: container.LogConfig{
Type: "json-file",
Config: map[string]string{},
},
Resources: container.Resources{
CPUShares: 256,
CPUQuota: 25000,
CPUPeriod: 100000,
},
Resources: container.Resources{},
Binds: []string{
"/var/run/docker.sock:/var/run/docker.sock:rw",
},
+4 -5
View File
@@ -201,16 +201,15 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
ctx := context.Background()
// Max 10% CPU every second
//CPUShares: 128,
//CPUQuota: 10000,
//CPUPeriod: 100000,
hostConfig := &container.HostConfig{
LogConfig: container.LogConfig{
Type: "json-file",
Config: map[string]string{},
},
Resources: container.Resources{
CPUShares: 128,
CPUQuota: 10000,
CPUPeriod: 100000,
},
Resources: container.Resources{},
}
// form container id and use it as network source if it's not empty