Re-removed CPU restrictions from apps to speed them up
This commit is contained in:
@@ -55,7 +55,7 @@ class AppBase:
|
|||||||
# for action["parameters"]
|
# for action["parameters"]
|
||||||
# print("AUTH: ", key, value)
|
# print("AUTH: ", key, value)
|
||||||
# params[item["key"]] = item["value"]
|
# params[item["key"]] = item["value"]
|
||||||
#except KeyError:
|
#except KeyError:
|
||||||
# print("No authentication specified!")
|
# print("No authentication specified!")
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ services:
|
|||||||
#- database
|
#- database
|
||||||
orborus:
|
orborus:
|
||||||
#build: ./functions/onprem/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
|
container_name: shuffle-orborus
|
||||||
hostname: shuffle-orborus
|
hostname: shuffle-orborus
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME=shuffle-orborus
|
NAME=shuffle-orborus
|
||||||
VERSION=0.8.90
|
VERSION=0.8.97
|
||||||
|
|
||||||
echo "Running docker build with $NAME:$VERSION"
|
echo "Running docker build with $NAME:$VERSION"
|
||||||
#docker rmi frikky/shuffle:$NAME --force
|
#docker rmi frikky/shuffle:$NAME --force
|
||||||
|
|||||||
@@ -123,16 +123,16 @@ func getThisContainerId() {
|
|||||||
func deployWorker(image string, identifier string, env []string) {
|
func deployWorker(image string, identifier string, env []string) {
|
||||||
// Binds is the actual "-v" volume.
|
// Binds is the actual "-v" volume.
|
||||||
// Max 20% CPU every second
|
// Max 20% CPU every second
|
||||||
|
|
||||||
|
//CPUQuota: 25000,
|
||||||
|
//CPUPeriod: 100000,
|
||||||
|
//CPUShares: 256,
|
||||||
hostConfig := &container.HostConfig{
|
hostConfig := &container.HostConfig{
|
||||||
LogConfig: container.LogConfig{
|
LogConfig: container.LogConfig{
|
||||||
Type: "json-file",
|
Type: "json-file",
|
||||||
Config: map[string]string{},
|
Config: map[string]string{},
|
||||||
},
|
},
|
||||||
Resources: container.Resources{
|
Resources: container.Resources{},
|
||||||
CPUShares: 256,
|
|
||||||
CPUQuota: 25000,
|
|
||||||
CPUPeriod: 100000,
|
|
||||||
},
|
|
||||||
Binds: []string{
|
Binds: []string{
|
||||||
"/var/run/docker.sock:/var/run/docker.sock:rw",
|
"/var/run/docker.sock:/var/run/docker.sock:rw",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -201,16 +201,15 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// Max 10% CPU every second
|
// Max 10% CPU every second
|
||||||
|
//CPUShares: 128,
|
||||||
|
//CPUQuota: 10000,
|
||||||
|
//CPUPeriod: 100000,
|
||||||
hostConfig := &container.HostConfig{
|
hostConfig := &container.HostConfig{
|
||||||
LogConfig: container.LogConfig{
|
LogConfig: container.LogConfig{
|
||||||
Type: "json-file",
|
Type: "json-file",
|
||||||
Config: map[string]string{},
|
Config: map[string]string{},
|
||||||
},
|
},
|
||||||
Resources: container.Resources{
|
Resources: container.Resources{},
|
||||||
CPUShares: 128,
|
|
||||||
CPUQuota: 10000,
|
|
||||||
CPUPeriod: 100000,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// form container id and use it as network source if it's not empty
|
// form container id and use it as network source if it's not empty
|
||||||
|
|||||||
Reference in New Issue
Block a user