erigon-pulse/cl/sentinel
Bayram Guvanjov e7e1bf444c
Caplin: Add a request limiter (#8868)
This PR is to add the request rate limiter. 

The solution is to count the request number for each peer for each
minute, if the peer exceeds the limit, block the requests for a
specified time.

Current limits:
- Request limited to `5000` requests per minute for each handler.
- Penalty blockage time `1-minute`
2023-12-01 20:11:18 +01:00
..
communication Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
handlers Caplin: Add a request limiter (#8868) 2023-12-01 20:11:18 +01:00
handshake Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
httpreqresp Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
peers Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
service Add full support to beacon snapshots (#8665) 2023-11-13 14:10:57 +01:00
config_test.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
config.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
discovery.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
gater.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
gossip.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
libp2p_settings.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
msg_id_test.go Adds flags to enable/disable backfilling and enable full historical beacon node (#8813) 2023-11-22 13:24:35 +01:00
msg_id.go Adds flags to enable/disable backfilling and enable full historical beacon node (#8813) 2023-11-22 13:24:35 +01:00
sentinel.go Discovery zero refresh timer (#8661) 2023-11-07 08:48:58 +00:00
utils_test.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
utils.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00