HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
128 stars 53 forks source link

one HSDS instance - one bucket #172

Closed untereiner closed 1 year ago

untereiner commented 2 years ago

Hello,

Quick question just to to confirm what i think. Is one instance of an HSDS service connected to one specific bucket ? Is this bucket configured before the instance starts ?

Would it be possible to request data from a URL like this one: protocol://resource/sub_path where:

jreadey commented 2 years ago

Hi, There's a hsds config, BUCKET_NAME, which can be set to a bucket name (or container name for Azure or directory name for posix). When a request comes in that doesn't otherwise specify a bucket, the default bucket name is used.

The request can specify a specific bucket by sending a "bucket" query param.

There's currently no support for one HSDS instance to work with multiple storage accounts - say using S3 or Azure based on the request.  In any case, performance-wise it's best to have HSDS running in the same. region where the storage is located.  If you need this, perhaps you could create a proxy that would forward requests on to specific HSDS instance.

Let me know if this helps!

jreadey commented 1 year ago

Closing issue - @untereiner, please reopen if you have additional questions.