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
rgw: Add option to configure backend store #43054
Conversation
2227f23
to
4039ad3
Compare
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.
Otherwise, looks good.
src/common/options/rgw.yaml.in
Outdated
- name: rgw_backend_store | ||
type: str | ||
level: advanced | ||
desc: Backend store type |
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.
I'm not sure that this is how we want to pick the store long term, so can we add to the description that this is experimental, so that we can easily change it to some other method if that's what we want?
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.
done.
dcc2a82
to
273fb58
Compare
agreed with @dang - this looks fine for now, but we'll want to revisit it later:
specific to dbstore's use of the local filesystem, that means radosgw+dbstore isn't 'stateless' like it is with the rados store. since the rados backend is shared by all radosgws, we can start as many daemons as we want, and move them around between machines because dbstore isn't stateless, the orchestrator won't be able to move them around between machines, and should avoid deploying more than one daemon on the same zone |
2db5725
to
cdf72ff
Compare
src/rgw/rgw_main.cc
Outdated
@@ -364,6 +376,25 @@ int radosgw_Main(int argc, const char **argv) | |||
derr << "Couldn't init storage provider (RADOS)" << dendl; | |||
return EIO; | |||
} | |||
|
|||
#ifdef WITH_RADOSGW_DBSTORE | |||
if (config_store == "dbstore") { |
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.
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.
I'm okay with this.
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.
sure. my only feedback here is that it doesn't need to be in rgw_main.cc; maybe StoreManager::init_storage_provider()
in rgw_sal.cc is a better place for it?
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.
done.
17d2d5b
to
40480a9
Compare
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Its temporary change to insert testid user while starting up rgw server on dbstore. Signed-off-by: Soumya Koduri <skoduri@redhat.com>
40480a9
to
44b7a56
Compare
Include a config option to be able to configure backend store type. Also till there is CLI available to configure options for dbstore, insert testID user during startup.
Signed-off-by: Soumya Koduri skoduri@redhat.com