Re: [multisite] How to trigger metadata sync update?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on the metadata master zone, any metadata writes (whether through
rgw::sal::Bucket::put_info() or
RGWBucketCtl::store_bucket_instance_info()) should be writing two
entries to the metatalog log:
https://github.com/ceph/ceph/blob/0345083/src/rgw/services/svc_meta_be_sobj.cc#L83,
both in RGWSI_MetaBackend_SObj::post_modify() and in pre_modify().
these metadata log entries should eventually get picked up by other
zones during metadata sync. you can use `radosgw-admin mdlog list` to
inspect the log entries on the metadata master zone, or `radosgw-admin
sync status` on the other zones to track the progress of metadata sync

On Thu, May 18, 2023 at 11:33 AM Yixin Jin <yjin77@xxxxxxxx> wrote:
>
> Hi Shilpa,
>
> I checked out the calls of "forward_request_to_master()" and noticed that it only serves the purpose of forwarding those requests that came from the external sources, such as S3 clients. The difficulty I have encountered is to make a change in RGWBucketInfo in the master zone and expect that change to be synced up in other zones. The change is made with radosgw-admin, not S3 client. I can see the effect of the change in the master zone via "radosgw-admin bucket stats" but other zones don't show it.
>
> Any other venues I can explore?
>
> Thanks,
> Yixin
>
>
>
>
>
>
> On Wednesday, May 17, 2023 at 05:12:09 p.m. EDT, Shilpa Manjrabad Jagannath <smanjara@xxxxxxxxxx> wrote:
>
>
>
>
>
> Hi Yixin,
>
> Any metadata change will internally call forward_request_to_master() to write the changes on the metadata master zone first and then it is applied on other zones.
> What kind of data item are you trying to add?
>
> -shilpa
>
> On Wed, May 17, 2023 at 4:49 PM Yixin Jin <yjin77@xxxxxxxx> wrote:
> > Hi folks,
> >
> > I desperately need some help to figure out how to trigger metadata sync update in a multisite environment. I'd like to change any data item in RGWBucketInfo at the master zone and want the other zones to pick up the changes. I have tried to use rgw::sal::Bucket::put_info() and RGWBucketCtl::store_bucket_instance_info(). Either approach only updates the local bucket info and the other zones do not pick up the updates. What am I missing? Could someone please show me an example on how to trigger sync update?
> >
> > Thanks a lot,
> > Yixin
> >
> > _______________________________________________
> > Dev mailing list -- dev@xxxxxxx
> > To unsubscribe send an email to dev-leave@xxxxxxx
> >
> >
> >
> _______________________________________________
> Dev mailing list -- dev@xxxxxxx
> To unsubscribe send an email to dev-leave@xxxxxxx
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx




[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux