Skip to content

DigitalOcean Spaces Rate Limiting #2644

@mattrothenberg

Description

@mattrothenberg

Bug Description

When using DigitalOcean Spaces as my site's remote asset source, I'm consistently running into rate limiting issues (as shown by the screenshot below). This error was triggered by trying to edit an entry from the control panel. Worth noting is that my site has zero web traffic, and my Spaces bucket has < 2mb of content in it.

Screen Shot 2020-10-12 at 8 35 17 AM

How to Reproduce

Given an S3 asset source
When I try to edit an entry that's using one of these assets (e.g., a "cover photo" or a "featured image") in its content
Then I consistently see these 503 Rate Limiting error messages, even over the course of multiple days

Extra Detail

Conversation with DO Support

Hello there, thank you for contacting DigitalOcean. 

Looking over today's logs on our backend I can confirm that this is a case of rate-limiting. I see you are being rate limited on  HEAD requests from IP 161.35.60.117. 

How many requests are you sending per second to your bucket?

750 requests (any operation) per IP address per second to all Spaces on an account
150 PUTs, 150 DELETEs, 150 LISTs, and 240 other requests per second to any individual Space
2 COPYs per 5 minutes on any individual object in a Space

Environment

Statamic version: 3.0.1.6

PHP version: 7.4.11

Install method (choose one):

  • Fresh install from statamic/statamic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions