-
Notifications
You must be signed in to change notification settings - Fork 12
Add multidim api service. #182
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,6 +172,7 @@ pgstacBootstrap: | |
| ###################### | ||
| apiServices: | ||
| - raster | ||
| - multidim | ||
| - stac | ||
| - vector | ||
|
|
||
|
|
@@ -236,6 +237,67 @@ raster: | |
| # https://www.uvicorn.org/settings/#production | ||
| WEB_CONCURRENCY: "5" | ||
|
|
||
| multidim: | ||
| enabled: false # disabled by default | ||
| autoscaling: | ||
| # NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart | ||
| # see ../../../docs/autoscaling.md for more information | ||
| enabled: false | ||
| minReplicas: 1 | ||
| maxReplicas: 10 | ||
| # `type`: "cpu" || "requestRate" || "both" | ||
| type: "requestRate" | ||
| behaviour: | ||
| scaleDown: | ||
| stabilizationWindowSeconds: 60 | ||
| scaleUp: | ||
| stabilizationWindowSeconds: 0 | ||
| targets: | ||
| # matches `type` value above unless `type: "both"` is selected | ||
| cpu: 75 | ||
| # 'm' units here represents generic milli (one-thousandth) unit instead of 'decimal' | ||
| # https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#quantities | ||
| # so when the average unit among these pods is <requestRate>/1000 then scale | ||
| # you can watch the actual/target in real time using `kubectl get hpa/<name>` | ||
| requestRate: 100000m | ||
| image: | ||
| name: ghcr.io/developmentseed/titiler-md-demo | ||
| tag: 0ea56bfa44457b92e804fd4c0c2192019c002965 | ||
| command: | ||
| - "uvicorn" | ||
| - "titiler.pgstac.main:app" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this need to be
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for noticing. |
||
| - "--host=$(HOST)" | ||
| - "--port=$(PORT)" | ||
| settings: | ||
| # https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | ||
| resources: | ||
| limits: | ||
| cpu: "768m" | ||
| memory: "4096Mi" | ||
| requests: | ||
| cpu: "256m" | ||
| memory: "3072Mi" | ||
| envVars: | ||
| ############## | ||
| # titiler | ||
| ############## | ||
| GDAL_CACHEMAX: "200" # 200 mb | ||
| GDAL_DISABLE_READDIR_ON_OPEN: "EMPTY_DIR" | ||
| GDAL_INGESTED_BYTES_AT_OPEN: "32768" | ||
| GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: "YES" | ||
| GDAL_HTTP_MULTIPLEX: "YES" | ||
| GDAL_HTTP_VERSION: "2" | ||
| PYTHONWARNINGS: "ignore" | ||
| VSI_CACHE: "TRUE" | ||
| VSI_CACHE_SIZE: "5000000" # 5 MB (per file-handle) | ||
| ############## | ||
| # uvicorn | ||
| ############## | ||
| HOST: "0.0.0.0" | ||
| PORT: "8080" | ||
| # https://www.uvicorn.org/settings/#production | ||
| WEB_CONCURRENCY: "5" | ||
|
|
||
| stac: | ||
| enabled: true | ||
| autoscaling: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess checking one implies the rest worked? Or is this value very special to check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is set by
titilerwhenever it supports multidimensional datasets. There might be issues ontitilerbut those are/should be tested within the app's test. For the deployment it seems a good initial test to see if the capabilities are activated. We might add some actual data test later, though.