Skip to content

Conversation

@mkuratczyk
Copy link
Contributor

I noticed that stop_app would take over 5 seconds on an empty node which is strange. I found this gap in the logs:

2024-04-18 10:49:04.646450+09:00 [info] <0.599.0> Management plugin: to stop collect_statistics.
2024-04-18 10:49:09.647652+09:00 [debug] <0.247.0> Set stop reason to: normal

No point waiting for that stats to stop being emitted when we stop the node completely. It was added in 0e640da5 to ensure the stats stop when the management_agent gets disabled

I noticed that `stop_app` would take over 5 seconds on an empty
node which is strange. I found this gap in the logs:
```
2024-04-18 10:49:04.646450+09:00 [info] <0.599.0> Management plugin: to stop collect_statistics.
2024-04-18 10:49:09.647652+09:00 [debug] <0.247.0> Set stop reason to: normal
```
No point waiting for that stats to stop being emitted when we stop the
node completely. It was added in 0e640da5
to ensure the stats stop when the management_agent gets disabled
Copy link
Collaborator

@michaelklishin michaelklishin left a comment

Choose a reason for hiding this comment

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

I can confirm that time rabbitmqctl stop_app goes down from 5.4s to 0.4s on this branch.

@michaelklishin michaelklishin changed the title Speed up stop_app Speed up 'rabbitmqctl stop_app' Apr 24, 2024
@michaelklishin michaelklishin merged commit e23ac84 into main Apr 24, 2024
@michaelklishin michaelklishin deleted the faster-stop_app branch April 24, 2024 15:30
michaelklishin added a commit that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants