I've created a container named jobs
some months ago, and today i see another container named jobs_segments
holding several Gigabytes of data.
I've read that it is created to hold the individual parts when doing a segmented SWIFT upload.
Questions are :
- can or should this container or files inside it be deleted once the segmented upload has finished?
- is there any option to avoid this second container
_segments
and work only at the main one,jobs
?
Containers named
SOMETHING_segments
are probably the product of a large object upload. The term "large object" is a bit misleading; "segmented objects" would be more descriptive, but this feature is mostly used to store large objects, in particular larger than the object size limit of 5GB.Since your container is named
jobs_segments
, I would normally assume that it contains the data of an object namedjobs
, not a container with this name. However, nothing prevents you from creating a container that has the same name as an object.To answer the first question: If you delete
jobs_segments
, you lose the data of thejobs
object. Better delete thejobs
object rather that only its segments.Second question: The
jobs
container is not directly related tojobs_segments
.Having said all this, you can create a container
SOMETHING_segments
and use it for something else than large objects. In the end,jobs_segments
could be an ordinary container.From the Openstack Swift documentation:
see https://docs.openstack.org/swift/latest/overview_large_objects.html