Skip to content

Commit 8abb2f8

Browse files
committed
fix(env): increase default rate limit burst value
This change increases the API's capacity to handle sudden spikes in traffic. By allowing a burst size of 100, the system can accommodate more incoming requests within the rate interval without immediately rejecting excess traffic. Sometimes, the UI can generate a high volume of requests within the rate interval, which could lead to a 429 status code (Too Many Requests). This adjustment helps prevent such errors and improves the overall user experience.
1 parent 361d52e commit 8abb2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ SHELLHUB_API_RATE_LIMIT_ZONE_SIZE=10m
162162

163163
# Defines the maximum burst size for incoming requests to the ShellHub API.
164164
# VALUES: A positive integer
165-
SHELLHUB_API_BURST_SIZE=1
165+
SHELLHUB_API_BURST_SIZE=100
166166

167167
# Defines the delay strategy for handling bursts of incoming requests.
168168
# VALUES: nodelay, or the number of requests to delay.

0 commit comments

Comments
 (0)