Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: Fix big layer uploads for Ceph/RADOS driver (PROJQUAY-6586) (#…
…2601) * storage: Fix big layer uploads for Ceph/RADOS driver (PROJQUAY-6586) Current uploads of large images usually fail on Ceph/RADOS compatible implementations (including Noobaa) because during the last assembly, copy is done all at once. For large layers, this takes a long while and Boto times out. With this patch, we limit the size of the used chunk to 32 MB so the final copy is done in parts of up to 32 MB each. The size can be overridden by specifying the parameter `maximum_chunk_size_mb` in the driver settings. For backwards compatibility, an additional parameter was added: if `server_side_assembly: true` then we force server side assembly and the final blob push in chunks, if `server_side_assembly: false` we fall back to default client side assembly (we increase the boto timeout in this case to still support large layer upload): ~~~ DISTRIBUTED_STORAGE_CONFIG: default: - RadosGWStorage - ... maximum_chunk_size_mb: 100 server_side_assembly: true ~~~ * Fix formatting * Added backward compatiblity switch and increased boto timeout * Changed name of variable in config * Small fixes to if statements
- Loading branch information