Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod instances change #128

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added environments/.DS_Store
Binary file not shown.
51 changes: 51 additions & 0 deletions environments/production/environment.yaml
Original file line number Diff line number Diff line change
@@ -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: 14
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: "10"
# 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
6 changes: 3 additions & 3 deletions environments/staging/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down