From f900dc83f2f6ba64ead84c69e423d063e61b84d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nejra=20Selimovi=C4=87?= Date: Fri, 25 Feb 2022 11:01:51 +0100 Subject: [PATCH] doc: Small notes for resource limiting (#792) --- doc/content/reference/resource-limiting/_index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/content/reference/resource-limiting/_index.md b/doc/content/reference/resource-limiting/_index.md index 85fb45b6b7..0db3510a46 100644 --- a/doc/content/reference/resource-limiting/_index.md +++ b/doc/content/reference/resource-limiting/_index.md @@ -15,7 +15,7 @@ The resource limiting configuration is split into multiple profiles. For each pr Enable resource limiting by adding the following configuration to your `ttn-lw-stack.yml`. -The values shown below are only meant as an example. Make sure to adjust them accordingly, depending on the actual traffic of your deployment. +Resource limiting can be applied per application, as well as for all applications in a tenant. The values shown below are only meant as an example. Make sure to adjust them accordingly, depending on the actual traffic of your deployment. ```yaml resource-limiting: @@ -50,6 +50,8 @@ The following table describes how {{% tts %}} reacts when the maximum resource l | gRPC Application Connections | Calls to `Subscribe` RPC will fail with an error of type `ResourceExhausted`. | Terminate existing connections and retry. | | MQTT Application Connections | A `ServerUnavailable` response is returned for new connections. | Terminate existing connections and retry. | +For example, if an MQTT connection is failing due to resource limits exceeding, you will see an error such as `Resource limit 16 exceeded for resource with key as:conn:frontend:mqtt:app:test-app-1@test-tenant-1`. The resolution would be to terminate existing connections and retry. + ## External configuration It is possible to load extra resource limiting profiles from an external file. Create a file named `/opt/config/resource-limiting.yml` (replace `/opt/config` with any path you like) with the following contents: