emqx / emqx

The most scalable open-source MQTT broker for IoT, IIoT, and connected vehicles
https://www.emqx.com/
Other
14.15k stars 2.25k forks source link

feat: add a timestamp to the crash_dump file #14264

Closed zhongwencool closed 16 hours ago

zhongwencool commented 3 days ago

Add a timestamp to the crash_dump file to ensure that it is not overwritten by the next crash dump.

NOTE: crash_dump_file is hidden configuration.

./bin/emqx eval "emqx_config:get([node,crash_dump_file])."
"/emqx/_build/emqx/rel/emqx/log/erl_crash.2024.11.22.08.17.24.dump"
cat data/configs/vm.2024.11.22.08.17.23.args
...
-env ERL_CRASH_DUMP_BYTES 104857600
-env ERL_CRASH_DUMP_SECONDS 30
-env ERL_CRASH_DUMP /emqx/_build/emqx/rel/emqx/log/erl_crash.2024.11.22.08.17.24.dump
...

Fixes

Release version: v/e5.9.0

Summary

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

Checklist for CI (.github/workflows) changes