Consensys / web3signer

Web3Signer is an open-source signing service capable of signing on multiple platforms (Ethereum1 and 2, Filecoin) using private keys stored in an external vault, or encrypted on a disk.
https://docs.web3signer.consensys.net/
Apache License 2.0
201 stars 78 forks source link

Return 503 when web3signer gets overloaded #974

Open siladu opened 9 months ago

siladu commented 9 months ago

Currently if web3signer is overloaded, it can bring down the whole service.

It might be a better approach to detect saturation of resources and start returning 503s so the CL can respond accordingly.

Idea came from https://www.brendangregg.com/blog/2020-07-15/systems-performance-2nd-edition.html

Linear scalability of response time could occur if the application begins to return errors when resources are unavailable, instead of queueing work. For example, a web server may return 503 “Service Unavailable” instead of adding requests to a queue, so that those requests that are served can be performed with a consistent response time.