Comments (6)
I did not implement the GCP support, but to answer the question - no, it is not expected. The expected behavior from basic_external
implementations is that they provide an external URL (in this case a signed GCP URL) to send the data to via PUT. If you are getting an error instead, please provide it.
Also since this has the "question" tag I will try to clarify the architecture a bit, so this can later go into documentaiton: basic_streaming
and basic_external
are two transfer adapters. Each one of them can use different storage backend adapters, and sometimes they can both use the same backend adapter class because that backend supports both "streaming" and "direct" access. I will try to clarify what that means:
basic_streaming
is suitable for setups where we want the Giftless server itself to also serve files (or more correctly put, "streams of data"). When enabled, it exposes 3 new endpoints in the Giftless HTTP server to upload, download and verify files. It then delegates all the work of actually working with "files" to the selected storage backend object, which must implement the StreamingStorage
interface. This can be anything from local file system (implemented by the LocalStorage
backend), Azure, GCP or AWS storage or even anything else, as long as the upload / download / verify requests are streamed through Giftless itself. This adapter has an upside of simplicity, but a downside that resource-intensive upload / download requests are handled by Giftless itself and not by a highly-scalable backend.
basic_external
uses storage backends that implement the ExternalStorage
interface and is used for setups where Giftless only handles batch
requests and verify
requests, and leaves resource intensive upload / download requests to be handled by a separate HTTP service - typically, a cloud storage provider (S3, Azure Blobs, GCP Cloud Storage etc.). When asked for an upload URL, ExternalStorage
adapters will provide a signed URL, and based on the LFS basic
transfer adapter will send a PUT request to that URL with the data. So light-weight "control" requests are sent to Giftless, and intensive "data" requests are send to an external service.
In reality, some backend adapters can implement both ExternalStorage
and StreamingStorage
and be used by both basic_*
transfer adapters. This is true in the case of the Azure backend, and should probably be true for other cloud backends as well.
BTW the reason they are both called basic_*
is because both of them implement the same transfer adapter protocol defined by the LFS spec: the "basic"
transfer protocol.
from giftless.
Thanks for the clarification! I think part of this comment needs to go to the README; I probably got an error for basic_external
for not using it properly. It would be good to re-test it on gcp_integration.py
and double-check if it was misuse or if there's a bug on the implementation
from giftless.
Let's split this into two issues:
- Add more background on the different transfer adapters to the docs - copy from the comments above
- Let's check that the GCP implementation works properly with
basic_external
and if not create separate issue(s).
from giftless.
There is no bug with GCP basic_streaming upload.
from giftless.
basic_external is not working. Creating a bug - #34
from giftless.
I'm closing this as the docs have been updated and the other issue is reported in #34.
from giftless.
Related Issues (20)
- pypi release (0.5.0) broken HOT 2
- Not able to make the quickstart example to work HOT 4
- S3 basic_external doesn't work HOT 4
- I'm running build on google cloud build, can i use google auth instead of using the JSON file? HOT 9
- Example in document does not work HOT 1
- Add support for CGI middleware HOT 2
- TypeError: 'NoneType' object is not iterable HOT 3
- Time for a new release? HOT 1
- I think merging pyjwt 2 broke things HOT 7
- [epic] Springclean and update Giftless (2023/2024) - for latest python etc HOT 11
- [enhancement] Implement auth provider for GitHub HOT 11
- Docker container doesn't die gracefully on SIGTERM HOT 1
- [suggestion|lint] wrap code at column 120 HOT 3
- [github-auth] Implement core functionality
- [github-auth] Write tests
- [enhancement] Use automatic LFS server discovery endpoints HOT 1
- Make Google token exchange/signed URL acquisition more robust
- Error when pulling, after push worked fine HOT 4
- default_lifetime config value set in yml config is ignored in favour of default value from `config.py`
- batch operation fails if optional hash_algo key is used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giftless.