Is there any limit for Http route that can attach to single gateway #1225
-
Hello Team, We have around 1000+ microservices in GKE and planning to expose all these services via Gateway. We have two namespaces in the cluster and planning to use two gateways, one for each namespace. As per our requirement. I need to configure 500+ routing rules per gateway. Is there any limit for httproute that can attach to gateway? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @joby-kurian! I am not aware of any hard limits for the number of HTTPRoutes that can attach to a Gateway. For this project, we have scale tested 1000 HTTPRoutes attached to a single Gateway - you can see the results here. This, again, is not a hard limit, just the max we have conducted testing for. We do have limits on the number of match conditions for a single hostname/path - see this issue for more details. You mention creating 2 Gateways. It is worth noting that NGF does not currently support multiple Gateway instances for a single GatewayClass. To configure multiple Gateways managed by NGF for an environment, it would be necessary to create 2 NGF deployments, each with a unique corresponding GatewayClass resource, and then one Gateway per GatewayClass. I'm not sure what your use-case is for creating a separate Gateway per namespace, but it is also worth noting that the AllowedRoutes field of a Listener can be used to define "the trusted namespaces where those Route resources MAY be present", and so the Gateway resource does not need to exist in the same Namespace as any HTTPRoutes attached to it. By default, only the HTTPRoutes in the same Namespace are allowed, but |
Beta Was this translation helpful? Give feedback.
Hi @joby-kurian!
I am not aware of any hard limits for the number of HTTPRoutes that can attach to a Gateway. For this project, we have scale tested 1000 HTTPRoutes attached to a single Gateway - you can see the results here. This, again, is not a hard limit, just the max we have conducted testing for. We do have limits on the number of match conditions for a single hostname/path - see this issue for more details.
You mention creating 2 Gateways. It is worth noting that NGF does not currently support multiple Gateway instances for a single GatewayClass. To configure multiple Gateways managed by NGF for an environment, it would be necessary to create 2 NGF deployments, each with a unique c…