Skip to content

Commit a10cb51

Browse files
committed
added brief rate limit information to K8s production guidance for self-hosted gateway
1 parent b4dc6a6 commit a10cb51

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

articles/api-management/how-to-self-hosted-gateway-on-kubernetes-in-production.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: api-management
77
ms.workload: mobile
88
ms.topic: article
99
ms.author: tomkerkhove
10-
ms.date: 12/17/2021
10+
ms.date: 01/17/2023
1111
---
1212

1313
# Guidance for running self-hosted gateway on Kubernetes in production
@@ -195,6 +195,18 @@ securityContext:
195195
> [!WARNING]
196196
> When using local CA certificates, the self-hosted gateway must run with user ID (UID) `1001` in order to manage the CA certificates otherwise the gateway will not start up.
197197

198+
## Request throttling
199+
200+
Request throttling in a self-hosted gateway can be enabled by using the API Management [rate-limit](rate-limit-policy.md) or [rate-limit-by-key](rate-limit-by-key-policy.md) policy. Configure rate limit counts to synchronize locally (among gateway instances across cluster nodes) by exposing the following ports in the Kubernetes deployment for instance discovery:
201+
202+
* Port 4290 (UDP), for the rate limiting synchronization
203+
* Port 4291 (UDP), for sending heartbeats to other instances
204+
205+
Configure these settings, for example, using the default [Helm chart deployment](how-to-deploy-self-hosted-gateway-kubernetes-helm.md) for Kubernetes or using the Azure portal [deployment templates](../articles/api-management/how-to-deploy-self-hosted-gateway-kubernetes.md).
206+
207+
> [!NOTE]
208+
> Rate limit counts don't synchronize with other gateways, including the managed gateway in the cloud.
209+
198210
## Next steps
199211

200212
* To learn more about the self-hosted gateway, see [Self-hosted gateway overview](self-hosted-gateway-overview.md).

includes/api-management-self-hosted-gateway-rate-limit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: dlepow
33
ms.service: api-management
44
ms.topic: include
5-
ms.date: 01/11/2023
5+
ms.date: 01/17/2023
66
ms.author: danlep
77
---
8-
Rate limit counts in a self-hosted gateway can be configured to synchronize locally (among gateway instances across cluster nodes), for example, through [Helm chart deployment](../articles/api-management/how-to-deploy-self-hosted-gateway-kubernetes-helm.md) for Kubernetes or using the Azure Portal [deployment templates](../articles/api-management/how-to-deploy-self-hosted-gateway-kubernetes.md). However, rate limit counts don't synchronize with other gateways, including the managed gateway in the cloud.
8+
Rate limit counts in a self-hosted gateway can be configured to synchronize locally (among gateway instances across cluster nodes), for example, through Helm chart deployment for Kubernetes or using the Azure portal [deployment templates](../articles/api-management/how-to-deploy-self-hosted-gateway-kubernetes.md). However, rate limit counts don't synchronize with other gateways, including the managed gateway in the cloud. [Learn more](../articles/api-management/how-to-self-hosted-gateway-on-kubernetes-in-production.md#request-throttling)

0 commit comments

Comments
 (0)