Search before asking
Description
In production environments, we often need to print the stack of doris_be, but using methods like pstack is not acceptable because:
- It is slow
- It might cause the BE to crash
Therefore, we need a better way to print the stack, limiting the impact on the process to the second/sub-second level, accurate and without crash risk.
Solution
Conduct thorough research on mainstream C++ server stack tracing methods, including but not limited to https://github.com/oceanbase/obstack for OceanBase, https://clickhouse.com/docs/operations/system-tables/stack_trace for ClickHouse, and brpc's /threads API. Verify their performance and stability in practice. Output research and design documentations.
Complete the code development and detailed stability verification according to the decided plan.
Are you willing to submit PR?
Code of Conduct
Search before asking
Description
In production environments, we often need to print the stack of doris_be, but using methods like pstack is not acceptable because:
Therefore, we need a better way to print the stack, limiting the impact on the process to the second/sub-second level, accurate and without crash risk.
Solution
Conduct thorough research on mainstream C++ server stack tracing methods, including but not limited to https://github.com/oceanbase/obstack for OceanBase, https://clickhouse.com/docs/operations/system-tables/stack_trace for ClickHouse, and brpc's
/threadsAPI. Verify their performance and stability in practice. Output research and design documentations.Complete the code development and detailed stability verification according to the decided plan.
Are you willing to submit PR?
Code of Conduct