From 437323eac1b19f3eefeecd67d02a226f5378928b Mon Sep 17 00:00:00 2001 From: Rysryn <81407083+Rysryn@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:17:46 +0530 Subject: [PATCH 1/4] Hi --- environments/.DS_Store | Bin 0 -> 6148 bytes environments/production/environment.yaml | 51 +++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 environments/.DS_Store create mode 100644 environments/production/environment.yaml diff --git a/environments/.DS_Store b/environments/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..00ee2f4102ed4383a932a67f863c5ce937d12258 GIT binary patch literal 6148 zcmeHK!Ab-%3{7+ogI*R-9{US>_fVJd3-$+OcR+<5JBWMlald6hMDU{oUz#X0Yz6Tk zA_=rFZId+fVA_U=c)9BqL~|l)&;(hOipX?z>BNj@KrS(Mw4rBuphS zI0MeWj~T$7Ez+DTdhZN41J1xF19CnDG{I<;8cfmx&LqQ%T$Z} zsf&-C0cYT!F~GBS)h_W-cDEjVp4_zo?G{Z$?6N2j=#xhP26B#EmPK6;qQfp4W<`l2 S^Ti$L4}n66ch0~sFz^l|XEP4~ literal 0 HcmV?d00001 diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml new file mode 100644 index 00000000..768d4ccf --- /dev/null +++ b/environments/production/environment.yaml @@ -0,0 +1,51 @@ +version: 1.0 +app: + # build id to deploy + # version: 1.0-SNAPSHOT-20230716015630 + # number of instances + instances: + # q: consider availability zones? + + # min number of instances. can be 0 for scale to 0. default to 1. + min: 1 + # max number of instances. defaults to 1 if min == 0, otherwise defaults to min + # q: what's the overall limit? + max: 2 + resources: + # max cpu, defaults to 1 cpu limit, half of that for min, min >= 1 + # q: what's the overall limit? + # q: do we support fractions? + cpu: 1 + # memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb + # ephemeral disk limit will be set to 1GB + # List of environment variables that set for the application + # Liberty encrypted values are supported only if referenced in server.xml + env: + - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? + value: "-DenvironmentType=stage" + - name: MY_ENV + value: "1" + # List of variables that can be referenced in server.xml + # Liberty encrypted values are supported + variables: + - name: io_openliberty_sample_system_inMaintenance + value: "false" + - name: discoveryEndpoint + value: "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_eksr97OJU/.well-known/openid-configuration" + - name: clientId + value: 7rgjkvbjl487r2i1bvialvj2f4 + - name: clientSecret + value: "{aes}AIUxkkmTE73hJrAj3oN5OMYQnC9j3NWNJNTXXAchJ97qyrr7MHYMmn1NEtxgHXFqmYp8VNEAYhB5hJS8voLsRYyfA/7GpDdznGs/DtYEqzlw" + # cloudwatch for metrics + metrics: + enabled: false + cloudwatch: + arn: arn:aws:logs:region:account-id:destination:destination_name + metrics: + - a + - b + - c + version: "8a1f5fe6-4cc3-4d26-b00e-98d7a37da4c3" +# probes +# dynamic scaling +# scaling to 0 From ba8c3ccc88ea0516d69e226712dc71823da65bbe Mon Sep 17 00:00:00 2001 From: Rysryn <81407083+Rysryn@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:19:42 +0530 Subject: [PATCH 2/4] Update to stag/prod --- environments/production/environment.yaml | 6 +++--- environments/staging/environment.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml index 768d4ccf..2fec8627 100644 --- a/environments/production/environment.yaml +++ b/environments/production/environment.yaml @@ -4,7 +4,7 @@ app: # version: 1.0-SNAPSHOT-20230716015630 # number of instances instances: - # q: consider availability zones? + # q: consider availability zones? # min number of instances. can be 0 for scale to 0. default to 1. min: 1 @@ -17,14 +17,14 @@ app: # q: do we support fractions? cpu: 1 # memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb - # ephemeral disk limit will be set to 1GB + # ephemeral disk limit will be set to 1GB # List of environment variables that set for the application # Liberty encrypted values are supported only if referenced in server.xml env: - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? value: "-DenvironmentType=stage" - name: MY_ENV - value: "1" + value: "3" # List of variables that can be referenced in server.xml # Liberty encrypted values are supported variables: diff --git a/environments/staging/environment.yaml b/environments/staging/environment.yaml index 768d4ccf..4c30568f 100644 --- a/environments/staging/environment.yaml +++ b/environments/staging/environment.yaml @@ -4,7 +4,7 @@ app: # version: 1.0-SNAPSHOT-20230716015630 # number of instances instances: - # q: consider availability zones? + # q: consider availability zones? # min number of instances. can be 0 for scale to 0. default to 1. min: 1 @@ -17,14 +17,14 @@ app: # q: do we support fractions? cpu: 1 # memory limit is based on cpu value: 1:3 memory ratio, e.g. 1 cpu == 3 gb - # ephemeral disk limit will be set to 1GB + # ephemeral disk limit will be set to 1GB # List of environment variables that set for the application # Liberty encrypted values are supported only if referenced in server.xml env: - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? value: "-DenvironmentType=stage" - name: MY_ENV - value: "1" + value: "2" # List of variables that can be referenced in server.xml # Liberty encrypted values are supported variables: From 3b6f0daac4e549032e231131343235812fcbd40a Mon Sep 17 00:00:00 2001 From: Rysryn <81407083+Rysryn@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:20:45 +0530 Subject: [PATCH 3/4] Update production --- environments/production/environment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml index 2fec8627..179c919e 100644 --- a/environments/production/environment.yaml +++ b/environments/production/environment.yaml @@ -24,7 +24,7 @@ app: - name: JVM_ARGS # q: make that as a top level 'jvmArguments' property? value: "-DenvironmentType=stage" - name: MY_ENV - value: "3" + value: "10" # List of variables that can be referenced in server.xml # Liberty encrypted values are supported variables: From a6197ae2b15d2f4f06973cda4f57aa7c15e6b102 Mon Sep 17 00:00:00 2001 From: Rysryn <81407083+Rysryn@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:21:55 +0530 Subject: [PATCH 4/4] Prod 2 --- environments/production/environment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environments/production/environment.yaml b/environments/production/environment.yaml index 179c919e..12618d21 100644 --- a/environments/production/environment.yaml +++ b/environments/production/environment.yaml @@ -10,7 +10,7 @@ app: min: 1 # max number of instances. defaults to 1 if min == 0, otherwise defaults to min # q: what's the overall limit? - max: 2 + max: 14 resources: # max cpu, defaults to 1 cpu limit, half of that for min, min >= 1 # q: what's the overall limit?