-
Notifications
You must be signed in to change notification settings - Fork 201
K8SPXC-735: ProxySQL scheduler improvements #2281
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
base: main
Are you sure you want to change the base?
Conversation
This commit includes various improvements for scheduler implementation: 1. Cleaning up zombie processes created by percona-scheduler-admin in pxc-monit container. 2. Running zombie reaper in proxysql container only when scheduler is enabled. 3. Running percona-scheduler-admin with `--force` to overcome unique constraint failures.
pkg/pxc/app/statefulset/proxysql.go
Outdated
| }, | ||
| }...) | ||
|
|
||
| pxcMonit.Command = []string{"/opt/percona/proxysql_peer_list_entrypoint.sh"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egegunes the problem is that you changed entrypoint and now the operator can't update
/etc/proxysql-admin.cnf and the container just use default one e.g. with default passwords
| sleep 0.5 | ||
| # Reap any zombie processes that are children of PID 1 | ||
| while wait -n 2>/dev/null; do :; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| sleep 0.5 | |
| # Reap any zombie processes that are children of PID 1 | |
| while wait -n 2>/dev/null; do :; done | |
| sleep 0.5 | |
| # Reap any zombie processes that are children of PID 1 | |
| while wait -n 2>/dev/null; do :; done |
| # Forward signals to main process | ||
| forward_signal() { | ||
| kill -"$1" "$PROXYSQL_PID" 2>/dev/null || true | ||
| kill -"$1" "$MAIN_PID" 2>/dev/null || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| kill -"$1" "$MAIN_PID" 2>/dev/null || true | |
| kill -"$1" "$MAIN_PID" 2>/dev/null || true |
commit: 3aa4f94 |
CHANGE DESCRIPTION
This commit includes various improvements for scheduler implementation:
--forceto overcome unique constraint failures.CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability