API Gateway scaling

Hi,

I am looking into deploying Consul API gateway.
I followed the official tutorial and everything worked out.
I noticed when you deploy the Gateway manifest it creates only one instance of the gateway.
I there a way to scale it? Because I would like to have multiple instances to handle the ingress traffic to prevent overloading and have some redundancy.

Is there I am missing or is scaling at this time not supported yet?

Best Adrian

1 Like

Hi @adrianNEMO,

Thank you for reaching out! We are excited you are trying out API Gateways. Can I assume you are running this on Kubernetes? If so, you can increase the number of instances by changing apiGateway.controller.replicas in the Helm values file.

Please let me know if this solves the problem for you. If not, we can find another solution.

Hi @t-eckert,
thanks for the quick reply.

I think I was a bit unclear. I did not mean the API Gateway controller itself. I meant the envoy instance created by the gateway controller when you apply the gateway.networking.k8s.io/v1alpha2 manifest.
E.g. in the tutorial (Control Access into the Service Mesh with Consul API Gateway | Consul - HashiCorp Learn) the example-gateway.

I checked if there is anything configurable in GatewayClassConfig but found nothing to configure replicas.

Best Adrian

@adrianNEMO,

I’m the Product Manager for this product and I appreciate your interest in using it. Currently, we don’t provide a way to configure the number of instances of a gateway are deployed.

Adding this this feature is one our highest priorities. I’ll come back to this thread and post an update once we have released this feature.

Let us know if you have any other questions.

Hi @Jeff-Apple ,

thank you for the insight! I am very excited about the update. Is there a rough timeline on when one can expect this update?

Best Adrian

@adrianNEMO,

I can’t disclose the timing yet, but this feature is in the top 5 in priority of features to add.