-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
mysqlctld: allow setting flags / env vars for mysqld #5466
Comments
It would be good to use an |
I'd like to take up this issue. Is the following the right way to go about it?
|
cc @morgo |
Yes
The path will vary on linuxes too. So as long as we accept it as a full path, I believe it should be cross platform.
I will let you use your judgement since it will be easier to understand when viewing the code. But yes - the code is getting a little complicated. I also think that it should do better checking and suggest that mysqld may not have started because of an apparmor / selinux issue. We recently adding checking inside the wrapping shellscripts: #5573 -- but I believe this should be done in the go program instead. |
We just added tcmalloc / jemalloc to the lite build #5444, but as currently constituted, they can't be easily used.
malloc-lib
is amysqld_safe
only option, and for systems withoutmysqld_safe
like the default Percona images, there is no way to propagateLD_PRELOAD
into the child mysqld process.As discussed with @aquarapid at Kubecon, the only workaround available now is to move
mysqld
and setmysqld
to execute a shell withLD_PRELOAD
set, as shown below. It would be nice to have that inherit the parent environment or otherwise allow for variables to be set.The text was updated successfully, but these errors were encountered: