-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow differentiating blobstores by buckets #376
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,18 @@ public final class S3ProxyConstants { | |
"s3proxy.max-single-part-object-size"; | ||
public static final String PROPERTY_V4_MAX_NON_CHUNKED_REQUEST_SIZE = | ||
"s3proxy.v4-max-non-chunked-request-size"; | ||
/** Used to locate blobstores by specified bucket names. Each property | ||
* file should contain a list of buckets associated with it, e.g. | ||
* s3proxy.bucket-locator.1 = data | ||
* s3proxy.bucket-locator.2 = metadata | ||
* s3proxy.bucket-locator.3 = other | ||
* When a request is made for the specified bucket, the backend defined | ||
* in that properties file is used. This allows using the same | ||
* credentials in multiple properties file and select the backend based | ||
* on the bucket names. | ||
*/ | ||
public static final String PROPERTY_BUCKET_LOCATOR = | ||
"s3proxy.bucket-locator"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am unclear how to use this feature -- can you add some more documentation? Does each properties file have a unique identifier? Is it used for something? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expanded the description. The bucket-locator property specifies the bucket names associated with the backend specified in the properties file. Different properties files can specify different buckets, allowing a client to use the same S3Proxy credentials, but have the requests route to different backends. |
||
/** When true, model eventual consistency using two storage backends. */ | ||
public static final String PROPERTY_EVENTUAL_CONSISTENCY = | ||
"s3proxy.eventual-consistency"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to check whether buckets is empty? The foreach loop should handle this already.