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 the time files are stored in the container, it applies 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 container limits are reset. For more information about deferred deletion, see the Swift API documentation.
You can set a storage limit on the entire storage (all containers within a project), see the Object Storage Limits tutorial for details.
Configure container limits
- In the Control Panel, on the top menu, click Products and select Object Storage.
- Go to the Containers section.
- Open the container page → Configuration tab.
- Click Edit.
- In the Container Object Limits block, configure the limits.
- Click Save.