Skip to main content
Container limits
Last update:

Container limits

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

You can limit the storage of objects in a container using limits:

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

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

When you set a limit on how long files can be stored in the container, it is only applied to new objects — each object's metadata is automatically labeled with a header with the date when the object will be deleted. When 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 container limits are reset. Read more about deferred deletion in Swift API documentation.

You can set a storage limit on all storage (all containers within a project), see the Object Storage Limits instructions for details.

Configure container limits

  1. In Control Panel, go to Object StorageContainers.
  2. Open the container page → Configuration tab.
  3. Press Modify.
  4. In the Container Object Limits block, configure the limits.
  5. Click Save.