API request rate

More
4 years 10 months ago - 4 years 10 months ago #4931 by mw0uzo
API request rate was created by mw0uzo
To combat the large number of pyradmon users sending requests to test_user and test_password I have implemented a rate limit on the radmon API of 10 requests in 30 seconds.
Typically, a user monitoring the map and with 3 logging stations running and sending some experimental requests should not exceed 10 requests per 30s for sure so it seems like a sensible level to set.
The ban after exceeding the request limit is 10 minutes.
Please report if you experience any logging failures on a regular basis with 10 minute interval. The limit may need to be raised, or there may be a problem that needs investigating.
Last edit: 4 years 10 months ago by mw0uzo.

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #4934 by mw0uzo
Replied by mw0uzo on topic API request rate
This have been disabled for the time being as anyone browsing to the Stations page would get banned due to the flood of requests for station status and cpm meters, resulting in a connection refused error.
Clearly this will need improving.

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #4935 by mw0uzo
Replied by mw0uzo on topic API request rate
Fixed. Rate limits restricted to data submit function only, to combat this specific issue.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.147 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 49% Memory 21% Swap 69% CPU temp=53.5'C Uptime 72 Days