fix: disabling yash's autoscaling
This commit is contained in:
@@ -4102,8 +4102,8 @@ func runWebserver(listener net.Listener) {
|
|||||||
log.Printf("[DEBUG] Running webserver config for SWARM and K8s")
|
log.Printf("[DEBUG] Running webserver config for SWARM and K8s")
|
||||||
}
|
}
|
||||||
/*** ENDREMOVE ***/
|
/*** ENDREMOVE ***/
|
||||||
var dockercli *dockerclient.Client
|
// var dockercli *dockerclient.Client
|
||||||
ctx := context.Background()
|
// ctx := context.Background()
|
||||||
scaleReplicas := os.Getenv("SHUFFLE_APP_REPLICAS")
|
scaleReplicas := os.Getenv("SHUFFLE_APP_REPLICAS")
|
||||||
if len(scaleReplicas) > 0 {
|
if len(scaleReplicas) > 0 {
|
||||||
tmpInt, err := strconv.Atoi(scaleReplicas)
|
tmpInt, err := strconv.Atoi(scaleReplicas)
|
||||||
@@ -4130,7 +4130,7 @@ func runWebserver(listener net.Listener) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if strings.ToLower(os.Getenv("SHUFFLE_SWARM_CONFIG")) == "run" || strings.ToLower(os.Getenv("SHUFFLE_APP_REPLICAS")) == "" {
|
if strings.ToLower(os.Getenv("SHUFFLE_SWARM_CONFIG")) == "run" || strings.ToLower(os.Getenv("SHUFFLE_APP_REPLICAS")) == "" {
|
||||||
go AutoScaleApps(ctx, dockercli, maxExecutionsPerMinute)
|
// go AutoScaleApps(ctx, dockercli, maxExecutionsPerMinute)
|
||||||
}
|
}
|
||||||
if strings.ToLower(os.Getenv("SHUFFLE_DEBUG_MEMORY")) == "true" {
|
if strings.ToLower(os.Getenv("SHUFFLE_DEBUG_MEMORY")) == "true" {
|
||||||
r.HandleFunc("/debug/pprof/", pprof.Index)
|
r.HandleFunc("/debug/pprof/", pprof.Index)
|
||||||
|
|||||||
Reference in New Issue
Block a user