Fixed environment management and minor bugs onprem
This commit is contained in:
@@ -496,7 +496,8 @@ func deployServiceWorkers(image string) {
|
||||
//}
|
||||
}
|
||||
|
||||
replicas := uint64(1)
|
||||
// Running 2 by default instead of 1. Higher scale mechanisms - es
|
||||
replicas := uint64(2)
|
||||
scaleReplicas := os.Getenv("SHUFFLE_SCALE_REPLICAS")
|
||||
if len(scaleReplicas) > 0 {
|
||||
tmpInt, err := strconv.Atoi(scaleReplicas)
|
||||
@@ -521,7 +522,7 @@ func deployServiceWorkers(image string) {
|
||||
}
|
||||
|
||||
appReplicas := os.Getenv("SHUFFLE_APP_REPLICAS")
|
||||
appReplicaCnt := 1
|
||||
appReplicaCnt := 2
|
||||
if len(appReplicas) > 0 {
|
||||
newCnt, err := strconv.Atoi(appReplicas)
|
||||
if err != nil {
|
||||
|
||||
@@ -612,8 +612,8 @@ 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
|
||||
replicaNumberStr := os.Getenv("SHUFFLE_SCALE_REPLICAS")
|
||||
replicaNumber := 1
|
||||
if len(replicaNumberStr) > 0 {
|
||||
tmpInt, err := strconv.Atoi(replicaNumberStr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user