From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/rgw/driver/dbstore/README.md | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/rgw/driver/dbstore/README.md (limited to 'src/rgw/driver/dbstore/README.md') diff --git a/src/rgw/driver/dbstore/README.md b/src/rgw/driver/dbstore/README.md new file mode 100644 index 000000000..0867bc2cc --- /dev/null +++ b/src/rgw/driver/dbstore/README.md @@ -0,0 +1,53 @@ +# DBStore +Standalone Rados Gateway (RGW) on DBStore (Experimental) + + +## CMake Option +Add below cmake option (enabled by default) + + -DWITH_RADOSGW_DBSTORE=ON + + +## Build + + cd build + ninja [vstart] + + +## Running Test cluster +Edit ceph.conf to add below option + + [client] + rgw backend store = dbstore + +Start vstart cluster + + [..] RGW=1 ../src/vstart.sh -o rgw_backend_store=dbstore -n -d + +The above vstart command brings up RGW server on dbstore and creates few default users (eg., testid) to be used for s3 operations. + +`radosgw-admin` can be used to create and remove other users. + + +By default, dbstore creates .db file *'/var/lib/ceph/radosgw/dbstore-default_ns.db'* to store the data. This can be configured using below options in ceph.conf + + [client] + dbstore db dir = + dbstore db name prefix = + + +## DBStore Unit Tests +To execute DBStore unit test cases (using Gtest framework), from build directory + + ninja unittest_dbstore_tests + ./bin/unittest_dbstore_tests [logfile] [loglevel] + (default logfile: rgw_dbstore_tests.log, loglevel: 20) + ninja unittest_dbstore_mgr_tests + ./bin/unittest_dbstore_mgr_tests + +To execute Sample test file + + ninja src/rgw/driver/dbstore/install + ./bin/dbstore-bin [logfile] [loglevel] + (default logfile: rgw_dbstore_bin.log, loglevel: 20) + -- cgit v1.2.3