Search code examples
kubernetesgispostgisgeoserver

Sizing resources with Kubernetes for GIS application


I am thinking to use the stack Geoserver, PostGIS, Openlayers, ReactJS for my GIS project. I also plan to deploy this solution on Kubernetes with AWS.

Questions:

Assume the traffic will be : 100 requests/s -> to 1000rq/s What is the minimum resources (vCPU, RAM) for: - Each node K8s - Each Geoserver (pod) - PostGIS

Is there any formula so I can apply to have that result?

Thank you in advance

Lp Ccmu


Solution

  • Not really. It all depends on the footprint of all the different components of your specific application. I suggest you start small, gather a lot of metrics, and adjust.

    Either grow or shrink depending on what you see on your metrics and make use of Kubernetes autoscaling tools like HPAs and the cluster autoscaler.

    You can gather metrics using the AWS tools or something like Prometheus. There are many available resources on how to use Prometheus to gather Kubernetes metrics on the web.