Skip to content

RGW Zipper - don't load stats for every bucket load#44538

Merged
dang merged 1 commit intoceph:masterfrom
dang:wip-dang-zipper-perf
Jan 13, 2022
Merged

RGW Zipper - don't load stats for every bucket load#44538
dang merged 1 commit intoceph:masterfrom
dang:wip-dang-zipper-perf

Conversation

@dang
Copy link
Contributor

@dang dang commented Jan 11, 2022

This was a side-effect of consolidating the Zipper API, and resulted in
a large performance hit. Stats are only needed if they are requested,
so don't load them every time.

Signed-off-by: Daniel Gryniewicz dang@redhat.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@dang dang added the rgw label Jan 11, 2022
virtual RGWAccessControlPolicy& get_acl(void) override { return acls; }
virtual int set_acl(const DoutPrefixProvider* dpp, RGWAccessControlPolicy& acl, optional_yield y) override;
virtual int load_bucket(const DoutPrefixProvider* dpp, optional_yield y) override;
virtual int load_bucket(const DoutPrefixProvider* dpp, optional_yield y, bool get_stats = false) override;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: avoid default arguments in virtual interfaces

@markhpc markhpc self-requested a review January 11, 2022 21:02
@markhpc
Copy link
Member

markhpc commented Jan 11, 2022

Fixed the performance issue observed during OSD cache aging binning testing. Thanks @dang!

@dang
Copy link
Contributor Author

dang commented Jan 12, 2022

jenkins test api

This was a side-effect of consolidating the Zipper API, and resulted in
a large performance hit.  Stats are only needed if they are requested,
so don't load them every time.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
@dang dang force-pushed the wip-dang-zipper-perf branch from f5cb997 to 661cda6 Compare January 12, 2022 17:48
@dang
Copy link
Contributor Author

dang commented Jan 13, 2022

@dang dang merged commit 65900a9 into ceph:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants