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

fix(cogify): lower concurrency and set resource limits to memory = 2x cpu #176

Merged
merged 2 commits into from
Sep 18, 2023
Merged
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
9 changes: 4 additions & 5 deletions workflows/basemaps/imagery-import-cogify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,9 @@ spec:
container:
resources:
requests:
memory: 15.6Gi
cpu: 15000m
ephemeral-storage: 100Gi
limits:
memory: 15.6Gi
memory: 30Gi
cpu: 15000m # AWS gives 2x cpu cores = memory for most instances
ephemeral-storage: 98Gi # 2 pods per 200GB of storage
image: ghcr.io/linz/basemaps/cli:{{ workflow.parameters.version_basemaps_cli }}
command: [node, /app/node_modules/.bin/cogify]
env:
Expand All @@ -239,6 +237,7 @@ spec:
args:
- "create"
- "--from-file={{= inputs.artifacts.covering_grouped.path }}{{inputs.parameters.covering_grouped_id}}.json"
- "--concurrency=2"

# Create a basemaps configuration file to view the imagery
- name: create-config
Expand Down
Loading