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
Disk monitor improvements #3895
Disk monitor improvements #3895
Conversation
e0a1d4c
to
de8eddc
Compare
d531182
to
545da1a
Compare
545da1a
to
be691a0
Compare
I added the ETS table after running this command to test:
Since the Since the minimum update interval is 100ms I figured better safe than sorry. |
Can the ets:lookup functions be called before the value is first computed, and if so, can that cause an issue? |
Related to VESC-1015 * Remove `infinity` timeouts * Improve free disk space retrieval on win32 Run commands with a timeout This PR fixes an issue I observed while reproducing VESC-1015 on Windows 10. Within an hour or so of running a 3-node cluster that has health checks being run against it, one or more nodes' memory use would spike. I would see that the rabbit_disk_monitor process is stuck executing os:cmd to retrieve free disk space information. Thus, all gen_server:call calls to the process would never return, especially since they used an infinity timeout. Do something with timeout Fix unit_disk_monitor_mocks_SUITE
3e0af4c
to
89aa4f7
Compare
89aa4f7
to
2b63bae
Compare
@lhoguin thanks for the reviews. All set for the next one. |
Disk monitor improvements (backport #3895)
Fsutil has language-specific messages. Fix by using wmic.exe instead. Follow-up to #3895 Reported here: https://groups.google.com/g/rabbitmq-users/c/ypk51AtmrSM
Fsutil has language-specific messages. Fix by using wmic.exe instead. Follow-up to #3895 Reported here: https://groups.google.com/g/rabbitmq-users/c/ypk51AtmrSM
Fsutil has language-specific messages. Fix by using powershell.exe instead. Follow-up to #3895 Reported here: https://groups.google.com/g/rabbitmq-users/c/ypk51AtmrSM
Fsutil has language-specific messages. Fix by using powershell.exe instead. Follow-up to #3895 Reported here: https://groups.google.com/g/rabbitmq-users/c/ypk51AtmrSM (cherry picked from commit fd78144)
Fix issue with fsutil (cherry picked from commit 98539b9)
Fsutil has language-specific messages. Fix by using powershell.exe instead. Follow-up to #3895 Reported here: https://groups.google.com/g/rabbitmq-users/c/ypk51AtmrSM
Related to VESC-1015
infinity
timeoutsThis PR fixes an issue I observed while reproducing VESC-1015 on Windows 10. Within an hour or so of running a 3-node cluster that has health checks being run against it, one or more nodes' memory use would spike. I would see that the
rabbit_disk_monitor
process is stuck executingos:cmd
to retrieve free disk space information. Thus, allgen_server:call
calls to the process would never return, especially since they used aninfinity
timeout.