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

wip: Add mariadb primary/secondary cluster #241

Merged
merged 5 commits into from
Dec 3, 2023
Merged

Conversation

juliusknorr
Copy link
Owner

@juliusknorr juliusknorr commented Nov 2, 2023

docker-compose exec mariadb-master mysql -h maxscale -u my_user -pmy_password my_database
docker-compose exec mariadb-primary mysql -u my_user -pmy_password my_database
docker-compose exec mariadb-replica mysql -u my_user -pmy_password my_database

Useful log not exposed through docker compose logs:

docker-compose exec maxscale cat /var/log/maxscale/maxscale.log
  • Needs to be hooked up to nextcloud containers
  • Probably document as a standalone docker compose file (by just exposing the port directly)
  • Customize health checks to wait for maxscale to be reported as ready until full setup is complete
  • Check if there is a way to turn on the delay at runtime
  • Replace master/slave to primary/replica where possible

@juliusknorr juliusknorr marked this pull request as ready for review December 3, 2023 13:34
@juliusknorr juliusknorr merged commit e941833 into master Dec 3, 2023
20 checks passed
@juliusknorr juliusknorr deleted the enh/db-cluster branch December 3, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant