-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bundle custom my.cnf file. #4
Comments
So in the context of Docker, this raises some questions. For my purposes I've never needed anything more than the few config environment variables that the official MySQL image looks for. I don't think there are environment variables for these, so this might mean doing a custom image build? But I am not sure. Something we will have to look into. I love the convenience of using the official image, but it's not a big deal if we can't. |
Looks easy. Both mariadb and mysql's standard images seem to have something like this in them:
|
Ah, of course, we can just mount it. Digression: Now I'm wondering why we can't do the same thing with traefik, avoiding another custom build and further simplifying the project. I'm working with a lot of patterns from cookiecutter-django... they generally have very good reasons for these kinds of decisions, but I'm not sure about the why in that case. |
Exists--just need to mount |
I generally change to put at least the following variables into the file read by maria/mysql on startup.
A couple of these are custom for my computer, but dividing datadir and tmpdir can occasionally be useful.
Most of these tune build performance. It's actually possible that they should be switched around when going into production mode.
They also assume a fairly large amount of RAM, so it's possible that for instances of less than 1 million documents--or bookworms willing to take the performance hit of not using memory tables--the approach here needs to be a bit different.
The text was updated successfully, but these errors were encountered: