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

Support debugger-side configuration for what application to debug #27

Open
akoptelov opened this issue Feb 6, 2023 · 0 comments
Open

Comments

@akoptelov
Copy link
Contributor

akoptelov commented Feb 6, 2023

Currently debugger decides whether to debug a particular application basing on the BPF_ALIAS environment variable set for that application.

There are some limits for the number of environment variables the debugger can process (#25, currently 256, can be increased to 1024, but I failed to increase to e.g. 4098).

In Kubernetes, the number of variables set for Mina node executable can be quite huge (kubelet injects a lot of variables, to enable service discovery). With high probability, the BPF_ALIAS will be out of that limit, and won't be processed by the debugger, so it won't process Mina node executable, and won't intercept any of its traffic.

We need another way to specify what process to debug. It might be a PID of the main Mina daemon process. Also it can be a path to executable that should be debugged. The later option would be very handy in case of VM-isolated nodes -- the executable name can be used to discover the main PID. There might also be other options.

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

1 participant