Skip to content
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

does dyno support profiling process from different container? #262

Open
savitamittal1 opened this issue May 21, 2024 · 2 comments
Open

does dyno support profiling process from different container? #262

savitamittal1 opened this issue May 21, 2024 · 2 comments

Comments

@savitamittal1
Copy link

I have dynolog daemon running in container A. Python process is running in Container B. Is there a way for dyno gputrace from container A to collect profile for python process running in Container B? If its possible, can you please share an example?

@yingjun8
Copy link

By using a hostPath volume, you can mount the dynolog socket from Container A into the diagnostic Container B, and then inject the necessary environment variables to complete the setup.
env:
- name: KINETO_USE_DAEMON
value: "1"
- name: KINETO_IPC_SOCKET_DIR
value: /run/dyno
volumes:
- hostPath:
path: /run/dyno
type: DirectoryOrCreate
name: dyno-socket-dir

@briancoutinho
Copy link
Contributor

Hi guys, this issue is still open. Just wanted to share, an alternative is to have the dynolog binary within the Container A itself. This would conceptually be something like dynolog ... & ./myapp, thus ensuring you have the same namespace for both processes. To trigger trace you would need to point to the IP Address of the Container A essentially.

Sharing sockets also works :) Please let us know if there are any other concerns.

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

No branches or pull requests

3 participants