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

Implement VPA/HPA(s) and Replicas #3

Closed
2 tasks
ranchodeluxe opened this issue May 18, 2023 · 4 comments
Closed
2 tasks

Implement VPA/HPA(s) and Replicas #3

ranchodeluxe opened this issue May 18, 2023 · 4 comments

Comments

@ranchodeluxe
Copy link
Contributor

ranchodeluxe commented May 18, 2023

Depends On

#41
#42

Background

In the far future it would be nice to set up folks immediately with the default k8s metrics server and HPA rules so they don't have to guess about this stuff. Given that these flows are IO bound that will only come from us load testing and understanding which metrics will trigger HPA auto scaling (request rate and memory likely)

AC

  • k8s metric server
  • HPA rules
@ranchodeluxe ranchodeluxe self-assigned this May 18, 2023
@ranchodeluxe ranchodeluxe added the question Further information is requested label May 18, 2023
@ranchodeluxe ranchodeluxe changed the title MEDIUM: HPA(s), Replicas vs Multiple Processes and Uvicorn Workers MEDIUM: K8S HPA(s)/Replicas vs Multiple Processes and Uvicorn Workers May 18, 2023
@vincentsarago
Copy link
Member

Given that the STAC service

you're talking about the database here (pgSTAC) ?

have two "raster" services -- one exposed via ALB and the internal one

I'm not sure to understand this

@ividito
Copy link
Contributor

ividito commented May 18, 2023

Given that the STAC service

you're talking about the database here (pgSTAC) ?

have two "raster" services -- one exposed via ALB and the internal one

I'm not sure to understand this

Greg's talking about the stac-fastapi service, which optionally refers to the titiler service here. IIUC external /raster requests will go through our ingress/ALB, but requests coming through that internal reference will not, which is where we might want to divide things up a bit more.

@vincentsarago
Copy link
Member

The stac-fastapi service itself will not use the raster endpoint but just redirect to it: https://github.com/developmentseed/eoAPI/blob/main/runtime/eoapi/stac/eoapi/stac/extension.py#L92-L103
https://github.com/developmentseed/eoAPI/blob/main/runtime/eoapi/stac/eoapi/stac/extension.py#L79-L82

This is ONLY enable if the titiler endpoint environment is set in the stac-fastapi service https://github.com/developmentseed/eoAPI/blob/main/runtime/eoapi/stac/eoapi/stac/app.py#L58-L61

@ranchodeluxe
Copy link
Contributor Author

Thanks for the context @vincentsarago ! I'll rework this ticket to mostly be about HPA when I get a chance

@ranchodeluxe ranchodeluxe removed the question Further information is requested label May 23, 2023
@ranchodeluxe ranchodeluxe changed the title MEDIUM: K8S HPA(s)/Replicas vs Multiple Processes and Uvicorn Workers MEDIUM: Implement HPA(s) and Replicas May 23, 2023
@ranchodeluxe ranchodeluxe transferred this issue from developmentseed/eoAPI Jun 7, 2023
@ranchodeluxe ranchodeluxe changed the title MEDIUM: Implement HPA(s) and Replicas Implement VPA/HPA(s) and Replicas Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants