Skip to main content

Bucket limits

Last update:

By default, there are no limits on buckets, you can store any amount of files in a bucket as long as there is money in your balance to pay for the storage.

You can limit the storage of objects in the bucket using limits:

  • on the total size of the objects;
  • number of objects;
  • time of storage of objects in the baguette.

If the limit on the total file size or number of files is reached, it will be impossible to upload objects to the bucket.

When you set a limit for the time of storing files in the bucket, it is applied only to new objects — a header with the date when the object will be deleted is automatically inserted in the metadata of each object. If the limit is changed or deleted, the header for previously uploaded objects will not change — objects uploaded before the limit was set will not be deleted, and objects with the header in the metadata will be deleted at the specified time even if the baket limits are reset. For more information about deferred deletion, see the Swift API documentation.

You can set a storage limit for all storage (all bucket within a project), see the S3 Limits instructions for details.

Customize buckets limits

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Buckets section.
  3. Open the baket page → Configuration tab.
  4. Click Edit.
  5. In the Bucket Object Limits block, configure the limits.
  6. Click Save.