@@ -172,6 +172,7 @@ pgstacBootstrap:
172172# #####################
173173apiServices :
174174 - raster
175+ - multidim
175176 - stac
176177 - vector
177178
@@ -236,6 +237,67 @@ raster:
236237 # https://www.uvicorn.org/settings/#production
237238 WEB_CONCURRENCY : " 5"
238239
240+ multidim :
241+ enabled : true
242+ autoscaling :
243+ # NOTE: to have autoscaling working you'll need to install the `eoapi-support` chart
244+ # see ../../../docs/autoscaling.md for more information
245+ enabled : false
246+ minReplicas : 1
247+ maxReplicas : 10
248+ # `type`: "cpu" || "requestRate" || "both"
249+ type : " requestRate"
250+ behaviour :
251+ scaleDown :
252+ stabilizationWindowSeconds : 60
253+ scaleUp :
254+ stabilizationWindowSeconds : 0
255+ targets :
256+ # matches `type` value above unless `type: "both"` is selected
257+ cpu : 75
258+ # 'm' units here represents generic milli (one-thousandth) unit instead of 'decimal'
259+ # https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#quantities
260+ # so when the average unit among these pods is <requestRate>/1000 then scale
261+ # you can watch the actual/target in real time using `kubectl get hpa/<name>`
262+ requestRate : 100000m
263+ image :
264+ name : ghcr.io/developmentseed/titiler-md-demo
265+ tag : 0ea56bfa44457b92e804fd4c0c2192019c002965
266+ command :
267+ - " uvicorn"
268+ - " titiler.pgstac.main:app"
269+ - " --host=$(HOST)"
270+ - " --port=$(PORT)"
271+ settings :
272+ # https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
273+ resources :
274+ limits :
275+ cpu : " 768m"
276+ memory : " 4096Mi"
277+ requests :
278+ cpu : " 256m"
279+ memory : " 3072Mi"
280+ envVars :
281+ # #############
282+ # titiler
283+ # #############
284+ GDAL_CACHEMAX : " 200" # 200 mb
285+ GDAL_DISABLE_READDIR_ON_OPEN : " EMPTY_DIR"
286+ GDAL_INGESTED_BYTES_AT_OPEN : " 32768"
287+ GDAL_HTTP_MERGE_CONSECUTIVE_RANGES : " YES"
288+ GDAL_HTTP_MULTIPLEX : " YES"
289+ GDAL_HTTP_VERSION : " 2"
290+ PYTHONWARNINGS : " ignore"
291+ VSI_CACHE : " TRUE"
292+ VSI_CACHE_SIZE : " 5000000" # 5 MB (per file-handle)
293+ # #############
294+ # uvicorn
295+ # #############
296+ HOST : " 0.0.0.0"
297+ PORT : " 8080"
298+ # https://www.uvicorn.org/settings/#production
299+ WEB_CONCURRENCY : " 5"
300+
239301stac :
240302 enabled : true
241303 autoscaling :
0 commit comments