summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_period_pusher.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rgw/rgw_period : remove realm name from period configJiffin Tony Thottan2023-10-311-1/+1
| | | | | | | | The realm name is used in period configuration, only initialised in the beginning. Only value which is needed is the realm_id, hence removing realm_name from period config. Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
* RGW - Zipper - Rename rgw::sal::Store to rgw::sal::DriverDaniel Gryniewicz2022-12-081-15/+15
| | | | | | | | | | | | All along, we've had an overload of the term "store". It was the base class of the entrypoint, and it was the lowest layer in a stack. This renames the base class to Driver. So, the primary elements of zipper that to work are now Drivers, and they come in two different flavors: Filters live in the middle of the stack, and do not need to implement every API, but pass through instead. And Stores live a the bottom of the stack, and must implement the entire API. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* RGW - Zipper - Make Zone genericDaniel Gryniewicz2022-08-161-1/+1
| | | | | | | | | | - RadosStore had a dummy implementation of Zone that just passed through to the Zone service to get info about the local zone. Implement the Zone API for real, so that we can reference multiple zones. - Convert get_id() to string; it was only ever used as a string anyway. - Add get_zone_by*() to zonegroup and use it apporpriately Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* RGW: Zipper - zonegroup, placement tierDaniel Gryniewicz2022-04-201-5/+5
| | | | | | | | | Add ZoneGroup and PlacementTier to the Zipper API. This cleaned up a lot of issues in the Module branch. In addition, add cloud transition. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* rgw: add DPP's to logging for most opsAli Maredia2021-05-041-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | This commit contains the following major changes: - Most log output lines for major ops now have DoutPrefixProviders. - Create new macro ldpp_subdout. This macro is meant as a replacement for lsubdout for headerfiles that do not define the rgw subsys. - Changes to RGWObjManifest begin and end iterators. - Make it so that rgw_dencoder.cc should only contain the logic related to encoding. Also add dpp to ldouts and lderr's already using req_state and replace sync_env/env->dpp's with dpp's Signed-off-by: Ali Maredia <amaredia@redhat.com> Signed-off-by: Kalpesh Pandya <kapandya@redhat.com> Signed-off-by: Casey Bodley <cbodley@redhat.com>
* RGW Zipper - Fix style violationsDaniel Gryniewicz2021-04-151-1/+1
| | | | | | Change type *var; to type* var; Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* RGW Zipper - The Great RenameDaniel Gryniewicz2021-04-151-3/+3
| | | | | | | Rename RGWFoo to Foo. It's all in the rgw::sal namespace anyway, so the RGW is redundant. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* rgw, rgw-admin: config and pass region name for aws auth v4Yehuda Sadeh2021-03-091-2/+2
| | | | | | | | aws auth v4 requires region name. Allow configuring it for remote endpoints, and also provide a command line option that would allow passing it. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* RGW Zipper - Add zone abstractionDaniel Gryniewicz2021-03-021-6/+6
| | | | Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* RGW - Zipper 10: Pull The ThreadDaniel Gryniewicz2021-03-021-11/+12
| | | | | | | | This commit changes the RGWStoreManager to return a RGWStore* rather than a RGWRadosStore*. This is the thread that unravels the rest of the Zipper work, removing hard-coded uses of the RGWRados* classes. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* rgw: Make some thread entry-points noexceptAdam C. Emerson2021-01-111-1/+1
| | | | | | As mentioned above. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* rgw: No null_yield in rgw_zoneAdam C. Emerson2020-11-131-2/+3
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* Zipper - Split RadosStore from base SALDaniel Gryniewicz2020-09-081-0/+1
| | | | Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* RGW - Make sure editor settings are correct for all filesDaniel Gryniewicz2019-08-191-1/+1
| | | | Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* Project Zipper Part 1 - Framework and RGWRadosStoreDaniel Gryniewicz2019-08-151-11/+12
| | | | | | | | | | | | This is the first part of Project Zipper, the Store Abstraction Layer. It introduces the basic framework, and wraps RGWRados in RGWRadosStore. The goal over the next few weeks is to do the same for user, bucket, and object. This will make most of the remaining users of RGWRados wrapped in SAL classes, allowing it to be completely absorbed into the private RGWRadosStore. This will also expose all the APIs that need to be pusheg up to higher layers in the SAL. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* rgw: RGWPeriodPusher uses zone system key for inter-zonegroup messagesCasey Bodley2019-04-131-1/+1
| | | | | | | | | | | RGWPeriodPusher was using an empty RGWAccessKey for inter-zonegroup messages, which were rejected as an anonymous user with 403 Forbidden. this prevented multi-zonegroup configurations from converging on the same period configuration Fixes: http://tracker.ceph.com/issues/39287 Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw: rgw_zone api adjustmentsYehuda Sadeh2018-11-081-9/+14
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: use const_iterator for decodeKefu Chai2018-05-171-1/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* rgw: amend http client manager interfaceYehuda Sadeh2018-04-101-2/+2
| | | | | | | s/set_threaded/start s/is_threaded/is_started Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: fixes following rebaseYehuda Sadeh2018-04-101-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: Use unqualified encode/decodeAdam C. Emerson2018-01-101-1/+1
| | | | | | | This is a portion of Part 1 of the namespace project: using ADL properly in encode and decode so we can use namespaces easily in Ceph. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* rgw: drop asio/{yield,coroutine}.hpp replacementsKefu Chai2017-06-021-2/+1
| | | | | | | as we requires boost 1.61+ now, which offers them. see http://www.boost.org/doc/libs/1_61_0/boost/asio/. Signed-off-by: Kefu Chai <kchai@redhat.com>
* rgw: RGWPeriodPusher spawns http thread before cr threadCasey Bodley2017-05-031-2/+3
| | | | | | Fixes: http://tracker.ceph.com/issues/19834 Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw: RGWPeriodPusher, stop http manager explicitlyYehuda Sadeh2016-05-091-0/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: use realm epoch to choose most recent period to pushCasey Bodley2016-02-121-11/+11
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw: start pushing current period on startupCasey Bodley2016-02-121-1/+17
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw: hook cr managers to admin socketYehuda Sadeh2016-02-121-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: framework for per-rgw sync status reportingYehuda Sadeh2016-02-121-2/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: fix compilation error in RGWPeriodPusher::handle_notifyOrit Wasserman2016-02-121-1/+1
| | | | Signed-off-by: Orit Wasserman <owasserm@redhat.com>
* rgw: RGWPeriodPusher shares periods between zones/groupsCasey Bodley2016-02-121-0/+285
RGWPeriodPusher implements the RGWRealmWatcher interface to get notifications for new periods. when it discovers that it needs to push a period to other zones, it spawns a thread to send them (and keep retrying) until all of those zones successfully acknowledge the period Signed-off-by: Casey Bodley <cbodley@redhat.com>