I had one mysql pod with one container using persistent storage (NFS). This is working well.
But now I scaled the database to 3 replicas. The first replica (the original) remains stable.
But the other keeps deleting and recreating their container (pod remains existing).
They look to work fine. Every new addition in the db remains and is detected by every database. The only issue is that the container keeps recreating.
It keeps pulling the image:
Successfully pulled image "openshift/mysql-55-centos7 sha256:2946218cb0312967a6dea7f8001c6e25afb6a1192ad46205ee2f1b05ba379bae" (7 times in the last 11 minutes)
So this is normal because I'm not working with the master-slave scenario like you explained in Q1?
From: bparees redhat com
Date: Tue, 17 Nov 2015 09:14:30 -0500
Subject: Re: Multiple instances (pods) of one Database in OpenShift V3
To: lorenz vanthillo outlook com
On Tue, Nov 17, 2015 at 8:47 AM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
This is handled in the same way as any data update to the DB, so again it depends on you having a proper cluster/replication setup defined. If you do, the change will be replicated among the members, if you don't, it will not.
Postgres replication is documented here:
Ben Parees | OpenShift