How to upload large objects?

Overview

Swift has a size limit of 5GB per object, to upload larger objects one needs to use the --segment-size option.

Using Swift Tool

  • Install the Swift command Line Client
         1. Install openstack client. You can refer the detail link as below:
 
 
         2. Install swift client as following command:
         sudo pip install python-swiftclient
 
  • Upload and download large file using swift

               Use the --segment-size option to specify the segment size when upload large file.

               For example:

               swift upload test_container --segment-size 1073741824 large_file

               The following swift command would download the entire large object.

               swift download test_container large_file

       Refer to: https:https://docs.openstack.org/swift/latest/overview_large_objects.html

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.