Skip to content

Commit

Permalink
Renew OpenSearch reserved instance leases (#6731, PR #6783)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed Dec 22, 2024
2 parents 315adce + e2f9df7 commit 181ebd8
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 54 deletions.
5 changes: 2 additions & 3 deletions deployments/anvilbox/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down Expand Up @@ -128,8 +128,7 @@ def env() -> Mapping[str, Optional[str]]:

**(
{
# $0.382/h × 2 × 24h/d × 30d/mo = $550.08/mo
'AZUL_ES_INSTANCE_TYPE': 'r6gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_TYPE': 'r7gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_COUNT': '2',
} if is_sandbox else {
# Personal deployments share an ES domain with `anvilbox`
Expand Down
2 changes: 1 addition & 1 deletion deployments/anvildev.browser/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/anvildev.gitlab/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
15 changes: 7 additions & 8 deletions deployments/anvildev/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand All @@ -81,11 +81,11 @@ def env() -> Mapping[str, Optional[str]]:
# Set variables for the `anvildev` (short for AnVIL development)
# deployment here.
#
# Only modify this file if you intend to commit those changes. To change the
# environment with a setting that's specific to you AND the deployment, create
# a environment.local.py right next to this file and make your changes there.
# Settings applicable to all environments but specific to you go into
# environment.local.py at the project root.
# Only modify this file if you intend to commit those changes. To apply
# a setting that's specific to you AND the deployment, create an
# `environment.local.py` file right next to this one and apply that
# setting there. Settings that are applicable to all environments but
# specific to you go into `environment.local.py` at the project root.

'AZUL_DEPLOYMENT_STAGE': 'anvildev',

Expand Down Expand Up @@ -115,8 +115,7 @@ def env() -> Mapping[str, Optional[str]]:

'AZUL_ENABLE_MONITORING': '1',

# $0.382/h × 3 × 24h/d × 30d/mo = $825.12/mo
'AZUL_ES_INSTANCE_TYPE': 'r6gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_TYPE': 'r7gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_COUNT': '2',

'AZUL_DEBUG': '1',
Expand Down
2 changes: 1 addition & 1 deletion deployments/anvilprod.browser/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/anvilprod.gitlab/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/anvilprod.shared/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
12 changes: 6 additions & 6 deletions deployments/anvilprod/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand All @@ -957,11 +957,11 @@ def env() -> Mapping[str, Optional[str]]:
# Set variables for the `anvilprod` (short for AnVIL production)
# deployment here.
#
# Only modify this file if you intend to commit those changes. To change the
# environment with a setting that's specific to you AND the deployment, create
# a environment.local.py right next to this file and make your changes there.
# Settings applicable to all environments but specific to you go into
# environment.local.py at the project root.
# Only modify this file if you intend to commit those changes. To apply
# a setting that's specific to you AND the deployment, create an
# `environment.local.py` file right next to this one and apply that
# setting there. Settings that are applicable to all environments but
# specific to you go into `environment.local.py` at the project root.

'AZUL_DEPLOYMENT_STAGE': 'anvilprod',

Expand Down
2 changes: 1 addition & 1 deletion deployments/dev.browser/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/dev.gitlab/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/dev.shared/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
15 changes: 7 additions & 8 deletions deployments/dev/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def env() -> Mapping[str, Optional[str]]:
return {
# Set variables for the `dev` (short for development) deployment here.
#
# Only modify this file if you intend to commit those changes. To change the
# environment with a setting that's specific to you AND the deployment, create
# a environment.local.py right next to this file and make your changes there.
# Settings applicable to all environments but specific to you go into
# environment.local.py at the project root.
# Only modify this file if you intend to commit those changes. To apply
# a setting that's specific to you AND the deployment, create an
# `environment.local.py` file right next to this one and apply that
# setting there. Settings that are applicable to all environments but
# specific to you go into `environment.local.py` at the project root.

'AZUL_DEPLOYMENT_STAGE': 'dev',

Expand Down Expand Up @@ -238,9 +238,8 @@ def env() -> Mapping[str, Optional[str]]:

'AZUL_ENABLE_MONITORING': '1',

# $0.382/h × 3 × 24h/d × 30d/mo = $825.12/mo
'AZUL_ES_INSTANCE_TYPE': 'r6gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_COUNT': '4',
'AZUL_ES_INSTANCE_TYPE': 'r7gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_COUNT': '2',

'AZUL_DEBUG': '1',

Expand Down
2 changes: 1 addition & 1 deletion deployments/hammerbox/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/prod.browser/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/prod.gitlab/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
12 changes: 6 additions & 6 deletions deployments/prod/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand All @@ -1373,11 +1373,11 @@ def env() -> Mapping[str, Optional[str]]:
return {
# Set variables for the `prod` (short for production) deployment here.
#
# Only modify this file if you intend to commit those changes. To change the
# environment with a setting that's specific to you AND the deployment, create
# a environment.local.py right next to this file and make your changes there.
# Settings applicable to all environments but specific to you go into
# environment.local.py at the project root.
# Only modify this file if you intend to commit those changes. To apply
# a setting that's specific to you AND the deployment, create an
# `environment.local.py` file right next to this one and apply that
# setting there. Settings that are applicable to all environments but
# specific to you go into `environment.local.py` at the project root.

'AZUL_DEPLOYMENT_STAGE': 'prod',

Expand Down
5 changes: 2 additions & 3 deletions deployments/sandbox/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down Expand Up @@ -251,8 +251,7 @@ def env() -> Mapping[str, Optional[str]]:

**(
{
# $0.382/h × 2 × 24h/d × 30d/mo = $550.08/mo
'AZUL_ES_INSTANCE_TYPE': 'r6gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_TYPE': 'r7gd.xlarge.elasticsearch',
'AZUL_ES_INSTANCE_COUNT': '2',
} if is_sandbox else {
# Personal deployments share an ES domain with `sandbox`
Expand Down
2 changes: 1 addition & 1 deletion deployments/tempdev.browser/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/tempdev.gitlab/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
2 changes: 1 addition & 1 deletion deployments/tempdev.shared/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand Down
12 changes: 6 additions & 6 deletions deployments/tempdev/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def env() -> Mapping[str, Optional[str]]:
other environment variables in the form `{FOO}` where FOO is the name of an
environment variable. See
https://docs.python.org/3.11/library/string.html#format-string-syntax
https://docs.python.org/3.12/library/string.html#format-string-syntax
for the concrete syntax. These references will be resolved *after* the
overall environment has been compiled by merging all relevant
Expand All @@ -81,11 +81,11 @@ def env() -> Mapping[str, Optional[str]]:
# Set variables for the `anvildev` (short for AnVIL development)
# deployment here.
#
# Only modify this file if you intend to commit those changes. To change the
# environment with a setting that's specific to you AND the deployment, create
# a environment.local.py right next to this file and make your changes there.
# Settings applicable to all environments but specific to you go into
# environment.local.py at the project root.
# Only modify this file if you intend to commit those changes. To apply
# a setting that's specific to you AND the deployment, create an
# `environment.local.py` file right next to this one and apply that
# setting there. Settings that are applicable to all environments but
# specific to you go into `environment.local.py` at the project root.

'AZUL_DEPLOYMENT_STAGE': 'tempdev',

Expand Down

0 comments on commit 181ebd8

Please sign in to comment.