Skip to content
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

mgr/progress: optimize global recovery module #37544

Merged
merged 1 commit into from Sep 23, 2021

Conversation

kamoltat
Copy link
Member

@kamoltat kamoltat commented Oct 5, 2020

Instead of traversing through each PGs for active+clean state.
We traverse through the PGs in
ActivePyModules.cc which is in C++ and use get
method to directly get active+clean PG nums, as
well as number of PGs.

Signed-off-by: Kamoltat ksirivad@redhat.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@tchaikov
Copy link
Contributor

tchaikov commented Oct 5, 2020

jenkins test docs

src/mgr/ActivePyModules.cc Outdated Show resolved Hide resolved
@kamoltat
Copy link
Member Author

kamoltat commented Oct 8, 2020

jenkins test docs

@kamoltat kamoltat force-pushed the wip-mgr-progress-global-efficiency branch 2 times, most recently from 5d7019b to ee4e4a4 Compare November 9, 2020 10:56
@kamoltat
Copy link
Member Author

kamoltat commented Nov 9, 2020

jenkins retest this please

1 similar comment
@kamoltat
Copy link
Member Author

kamoltat commented Nov 9, 2020

jenkins retest this please

@kamoltat
Copy link
Member Author

jenkins retest this please

@kamoltat

This comment has been minimized.

@kamoltat
Copy link
Member Author

jenkins retest this please

@kamoltat kamoltat force-pushed the wip-mgr-progress-global-efficiency branch from e11b788 to 040a4e9 Compare November 19, 2020 16:15
@kamoltat kamoltat removed the needs-qa label Nov 21, 2020
@kamoltat
Copy link
Member Author

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

src/mgr/ActivePyModules.cc Outdated Show resolved Hide resolved
@kamoltat kamoltat force-pushed the wip-mgr-progress-global-efficiency branch from 2adcf85 to 36ca17c Compare February 2, 2021 09:12
@github-actions
Copy link

github-actions bot commented Feb 4, 2021

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@tchaikov

This comment has been minimized.

@tchaikov
Copy link
Contributor

tchaikov commented Feb 5, 2021

@kamoltat i have following build failure

/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-572-gccc67fce/rpm/el8/BUILD/ceph-17.0.0-572-gccc67fce/src/mgr/ActivePyModules.cc: In member function 'PyObject* ActivePyModules::get_python(const string&)':
/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-572-gccc67fce/rpm/el8/BUILD/ceph-17.0.0-572-gccc67fce/src/mgr/ActivePyModules.cc:485:15: error: 'tstate' was not declared in this scope
         [&f, &tstate](const PGMap &pg_map) {
               ^~~~~~
/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-572-gccc67fce/rpm/el8/BUILD/ceph-17.0.0-572-gccc67fce/src/mgr/ActivePyModules.cc:485:15: note: suggested alternative: '_xstate'
         [&f, &tstate](const PGMap &pg_map) {
               ^~~~~~
               _xstate

while compiling my batch when testing this PR. could you fix the build failure and repush?

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@kamoltat
Copy link
Member Author

jenkins test docs

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@jdurgin
Copy link
Member

jdurgin commented Sep 15, 2021

@kamoltat this was looking good, seems like it just needs a rebase

@neha-ojha neha-ojha self-requested a review September 17, 2021 14:50
@kamoltat kamoltat force-pushed the wip-mgr-progress-global-efficiency branch from ca1ab3b to beee50e Compare September 20, 2021 23:49
@kamoltat kamoltat force-pushed the wip-mgr-progress-global-efficiency branch 2 times, most recently from b6c5d88 to 0eb3d21 Compare September 21, 2021 16:23
@kamoltat
Copy link
Member Author

Instead of fetching `pg_stats` from the python
part of manager module, we filter out the pgs
that are in active + clean state in ActivePyModules.cc
then parse these pgs along with `reported_epoch` and
the `total_num_pgs` of the clusters to global recovery
module.

Signed-off-by: Kamoltat <ksirivad@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants