Opensearch and app optimisations

This commit is contained in:
Frikky
2025-08-27 12:54:50 +02:00
parent 19c07f0f07
commit 4fe311cc99
6 changed files with 59 additions and 37 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ func deployServiceWorkers(image string) {
}
// Running 2 by default instead of 1. Higher scale mechanisms - es
replicas := uint64(2)
replicas := uint64(1)
scaleReplicas := os.Getenv("SHUFFLE_SCALE_REPLICAS")
if len(scaleReplicas) > 0 {
tmpInt, err := strconv.Atoi(scaleReplicas)
+4 -4
View File
@@ -612,7 +612,7 @@ func deployk8sApp(image string, identifier string, env []string) error {
// use deployment instead of pod
// then expose a service similarly.
// number of replicas can be set to os.Getenv("SHUFFLE_SCALE_REPLICAS")
replicaNumber := 2
replicaNumber := 1
replicaNumberStr := os.Getenv("SHUFFLE_SCALE_REPLICAS")
if len(replicaNumberStr) > 0 {
tmpInt, err := strconv.Atoi(replicaNumberStr)
@@ -3222,9 +3222,9 @@ func deploySwarmService(dockercli *dockerclient.Client, name, image string, depl
// Apps used a lot should have 2 replicas (default)
replicas := uint64(1)
if (strings.Contains(strings.ToLower(name), "shuffle") && strings.Contains(strings.ToLower(name), "tools")) || strings.Contains(strings.ToLower(name), "http") {
replicas = 2
}
//if (strings.Contains(strings.ToLower(name), "shuffle") && strings.Contains(strings.ToLower(name), "tools")) || strings.Contains(strings.ToLower(name), "http") {
// replicas = 2
//}
// Sent from Orborus
// Should be equal to