Skip to content

Commit

Permalink
Fix env var for sqs url
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 23, 2024
1 parent 1f8afc0 commit 049a3c9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chartpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ jobs:
## tiler
PRODUCTION_TILER_DB_PASSWORD: ${{ secrets.PRODUCTION_TILER_DB_PASSWORD }}
PRODUCTION_TILER_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_TILER_CACHE_AWS_ACCESS_KEY_ID }}
RODUCTION_SQS_QUEUE_URL: ${{ secrets.RODUCTION_SQS_QUEUE_URL }}
## tm
PRODUCTION_TILER_CACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.PRODUCTION_TILER_CACHE_AWS_SECRET_ACCESS_KEY }}
PRODUCTION_TM_API_CONSUMER_KEY: ${{ secrets.PRODUCTION_TM_API_CONSUMER_KEY }}
Expand Down
31 changes: 30 additions & 1 deletion values.production.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -912,4 +912,33 @@ osm-seed:
# ====================================================================================================
planetFiles:
enabled: false


# ====================================================================================================
# Tiles cache SQS processor
# ====================================================================================================
ohm:
tilerCacheSqs:
enabled: false
env:
ENVIRONMENT: production
REGION_NAME: "us-east-1"
NAMESPACE: "default"
DOCKER_IMAGE: "ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1741.h7dadda7" # TODO, this should be automatically updated from tiler server image
SQS_QUEUE_URL: {{PRODUCTION_SQS_QUEUE_URL}}
NODEGROUP_TYPE: "api_db" # Nodegroup type to run the job
MAX_ACTIVE_JOBS: 10 # 1o changesets to process at the same time
DELETE_OLD_JOBS_AGE: 1200 # 10 min
MIN_ZOOM: 8 # Minimum zoom level to clean and seed cache
MAX_ZOOM: 16 # Maximum zoom level to clean and seed cache
resources:
enabled: false
requests:
memory: "20Gi"
cpu: "8"
limits:
memory: "24Gi"
cpu: "10"
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
2 changes: 1 addition & 1 deletion values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ ohm:
REGION_NAME: "us-east-1"
NAMESPACE: "default" # Namespace to run the job
DOCKER_IMAGE: "ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1741.h7dadda7" # TODO, this should be automatically updated from tiler server image
SQS_QUEUE_URL: {{ STAGING_SQS_QUEUE_URL}}
SQS_QUEUE_URL: {{STAGING_SQS_QUEUE_URL}}
NODEGROUP_TYPE: "job_large" # Nodegroup type to run the job
MAX_ACTIVE_JOBS: 2 # Maximum number of active jobs in high concurrency queue
DELETE_OLD_JOBS_AGE: 600 # Age in seconds to delete old jobs
Expand Down

0 comments on commit 049a3c9

Please sign in to comment.