Skip to content

Adding custom thread names to component_container_isolated #2818

@Aposhian

Description

@Aposhian

Description

Since component_container_isolated spins up a thread for each node, it would be nice to name those threads in a way that operating system tools can identify them easily. This would involve writing code that uses the platform-specific API's with conditional compilation that sets the thread name at the beginning.

Motivation

Identify resource usage quickly by node using tools like htop, system monitor, task manager, etc.

Design / Implementation Considerations

I think it would be best to use the fully qualified node name, but with namespaces, this could quickly get longer than the character limit for thread names, and would require truncation. So it might be better to do just the node name itself, or maybe some kind of identifier, maybe just an index, that could be logged with debug logs?

Additional Information

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions