projectbismark/bismark-data-server — Issue #3: Implement rate limiting
Author: sburnett
Created: 2012-03-05 14:56:24+00:00
State: open

We currently limit the size of each uploaded file, but don't limit the rate at which they're uploaded, so someone could easily DoS the server by uploading many small files.

We should implement a token bucket rate limiter with the following parameters:

- Token size: 1 byte
- Bucket size: router_uploads_buffer_size + max_upload_file_size*retry_interval/expected_upload_interval
- Refill rate: max_upload_file_size / expected_upload_interval