You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> All requests to the API Management gateway, including those rejected by policy configurations, count toward configured rate limits, quotas, and billing limits if applied in the service tier.
33
+
34
+
30
35
## Managed and self-hosted
31
36
32
37
API Management offers both managed and self-hosted gateways:
@@ -52,6 +57,7 @@ The following table compares features available in the managed gateway versus th
52
57
53
58
> [!NOTE]
54
59
> * Some features of managed and self-hosted gateways are supported only in certain [service tiers](api-management-features.md) or with certain [deployment environments](self-hosted-gateway-overview.md#packaging) for self-hosted gateways.
60
+
> * For the current supported features of the self-hosted gateway, ensure that you have upgraded to the latest major version of the self-hosted gateway [container image](self-hosted-gateway-overview.md#container-images).
55
61
> * See also self-hosted gateway [limitations](self-hosted-gateway-overview.md#limitations).
56
62
57
63
### Infrastructure
@@ -92,17 +98,19 @@ The following table compares features available in the managed gateway versus th
92
98
93
99
### Policies
94
100
95
-
Managed and self-hosted gateways support all available [policies](api-management-howto-policies.md) in policy definitions with the following exceptions.
101
+
Managed and self-hosted gateways support all available [policies](api-management-policies.md) in policy definitions with the following exceptions.
Copy file name to clipboardExpand all lines: articles/api-management/how-to-self-hosted-gateway-on-kubernetes-in-production.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: api-management
7
7
ms.workload: mobile
8
8
ms.topic: article
9
9
ms.author: tomkerkhove
10
-
ms.date: 12/17/2021
10
+
ms.date: 01/17/2023
11
11
---
12
12
13
13
# Guidance for running self-hosted gateway on Kubernetes in production
@@ -173,6 +173,16 @@ By default, a self-hosted gateway is deployed with a **RollingUpdate** deploymen
173
173
174
174
We recommend reducing container logs to warnings (`warn`) to improve for performance. Learn more in our [self-hosted gateway configuration reference](self-hosted-gateway-settings-reference.md).
175
175
176
+
## Request throttling
177
+
178
+
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 among gateway instances across cluster nodes by exposing the following ports in the Kubernetes deployment for instance discovery:
179
+
180
+
* Port 4290 (UDP), for the rate limiting synchronization
181
+
* Port 4291 (UDP), for sending heartbeats to other instances
The self-hosted gateway is able to run as non-root in Kubernetes allowing customers to run the gateway securely.
178
188
@@ -195,6 +205,7 @@ securityContext:
195
205
> [!WARNING]
196
206
> 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.
197
207
208
+
198
209
## Next steps
199
210
200
211
* To learn more about the self-hosted gateway, see [Self-hosted gateway overview](self-hosted-gateway-overview.md).
In the following example, the rate limit of 10 calls per 60 seconds is keyed by the caller IP address. After each policy execution, the remaining calls allowed in the time period are stored in the variable `remainingCallsPerIP`.
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 gateway resources configured in the API Management instance, including the managed gateway in the cloud.
0 commit comments