taskmetadata: bump throttles
Because all containers in a task share the same IP address in an
"awsvpc" task, and a task can be constituted of up to 10 containers, the
steady state rate is set at 10 rps. Burst rate is set to 15 rps.
@@ -41,9 +41,20 @@ const (
apiVersion1 = 1
apiVersion2 = 2
- // Rate limits for the metadata endpoint(s) and APIs by request ip addresses
- rateLimitPerSecond = 3
- rateLimitBurstPerSecond = 6
+ // Rate limits for the metadata endpoint(s) and APIs by request ip addresses. Today, we
+ // support the following endpoints:
+ // 1. /v2/credentials: For serving IAM role credentials
+ // 2. /v2/metadata: For serving task and container metadata information (for "awsvpc" tasks)
+ // 3. /v2/stats: For serving task and container stats information (for "awsvpc" tasks)
+
+ // rateLimitPerSecond specifies the steady state throttle for the task metadata endpoint.
+ // Because all containers in a task share the same IP address in an "awsvpc" task, and a
+ // task can be constituted of up to 10 containers, the steady state rate is set at 10
+ // per second
+ rateLimitPerSecond = 10
+
+ // rateLimitBurstPerSecond specifies the burst rate throttle for the task metadata endpoint.
+ rateLimitBurstPerSecond = 15
)
// ServeHTTP serves IAM Role Credentials for Tasks being managed by the agent.
