Autorestarting mariadb cluster after node reconnection

53 Views Asked by At

I use official mariadb/columnstore docker image. I run docker compose with MaxScale and try to imitate the situation when one of the msc node is disconnected and connected again. I can see in mcs cluster status that dbrm_mode is offline and when I try to make queries from my app I get an error Lost connection to DDLProc until I restart cluster with mcs cluster restart command. Isn't it suppose to work automatically? What other settings may I need? Is this docker image production ready?

1

There are 1 best solutions below

1
Todd Stoffel On

Assuming, no modifications to the project, you should be connecting to the cluster through MaxScale. The default port for MaxScale 1 is 3310.