You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2022. It is now read-only.
OpenStack Swift clusters have a maximum object
size (5 GiB per default). Objects larger in size have to be split into smaller segments. The basic transfer agent shipped by git-lfs has no knowledge about this.
The git-lfs-swift transfer agent is able to handle large objects.
Installation
In principle, only the script git_lfs_swift_transfer.py (with executable permission) and the python-swiftclient is required.
You can also use setuptools to install the python-swiftclient requirement and to install the transfer script
to the default location:
git clone https://github.com/cbartz/git-lfs-swift-transfer-agent
cd git-lfs-swift-transfer-agent
python setup.py install
is sufficient for your particular git repository. But there are optional configuration parameters, which can be
set with the git configuration variable lfs.custromtransfer.swift.args :
--logfile /path/to/file write logs to specified file
--loglevel LVL choose one of: DEBUG, INFO, WARNING, ERROR, CRITICAL
--use-slo per default, DLOs
are used to store large objects. If not supported or wanted, SLOs
can be used with this option.
--segment-size n The size of the segments for large objects. Files larger than this size, gets split up. If not specified, 5 GiB are used.
--tempdir /path/to/dir git-lfs downloads the files first to a specified directory, before moving to the final destination. With this option, the download directory can be specified.
If not specified, it is tried to create a temporary directory inside python.
So, for example, if logs with a loglevel DEBUG are desired to the file /tmp/logfile, do the configuration as follows:
Please be aware, that if logging and concurrency is used (with lfs.customtransfer.swift.concurrent), depending on your running
platform, the logfiles could end up mangled.
About
Transfer agent for the custom transfer type "swift" for git-lfs.