Issues
- Fix proxysql-admin zombie processes issuePSQLADM-282Resolved issue: PSQLADM-282KennT
- PR#184 (use .my.cnf for proxysql-status) and PR#190 (use network addresses instead of guessed wildcard)PSQLADM-272Resolved issue: PSQLADM-272
- Ubuntu 16.04: build custom version of OpenSSL for proxysql-admin 2.0PSQLADM-268Resolved issue: PSQLADM-268illia.pshonkin
- 2.0.13 - failing testsPSQLADM-258Resolved issue: PSQLADM-258KennT
Fix proxysql-admin zombie processes issue
Description
Environment
Attachments
Smart Checklist
Activity
KennTJanuary 26, 2021 at 10:04 AM
Added a new flag --use-stdin-for-credentials.
If this flag is not seet, then process substitution will be used to pass parameters to the mysql client. (this is the default)
If this flag is set, then stdin will be used to pass parameters to the mysql client.
Slava SarzhanDecember 10, 2020 at 7:43 AM
@KennT it is strange why it appeared after 5660a6b653aa3f2ca0c1d4292531a60ba22afac8 commit.
KennTDecember 10, 2020 at 5:18 AM
@Slava Sarzhan That information is enough. It looks like the processes are zombie processes, they've been killed and are waiting for the parent. It looks like one is being created for each time we do process substitution. I'm looking into this to see what we can do.
https://askubuntu.com/questions/201303/what-is-a-defunct-process-and-why-doesnt-it-get-killed
Slava SarzhanDecember 9, 2020 at 4:53 PM
@KennT I have the output of the following command
ps -ef | grep proxysql-admin
which I collected for @Ramesh Sivaraman . Is it ok for you ? Or I need to reproduce the issue once again and collect the output of "ps aux"
.
KennTDecember 9, 2020 at 11:33 AM
@Slava Sarzhan Can you also supply the list of processes? Maybe just adding a "ps aux" at the end of your script.
Hi,
In cloud team we have the following bug report https://jira.percona.com/browse/K8SPXC-541 . I have investigated this issue and can confirm that we have a lot of proxysql-admin zombie processes in proxysql docker in case proxysql ver >= 2.0.13. The root of the issue is the following contribution https://github.com/percona/proxysql-admin-tool/commit/7f08e5c7e35fa6eb0b6b897b98969606e2c330b5 . I have rolled back this commit and the issue disappeared.
Could you please check it and fix.
Thank you.