On Tue, Apr 5, 2016 at 3:59 AM, David Strejc <[email protected]> wrote:
> Dear all, > > my use case is as follows: > > I got MariaDB galera cluster on each node I got Open Shift installed on > (they are bare metals). > > I've created endpoints such as this: > > - apiVersion: v1 > kind: Endpoints > metadata: > name: mysql > subsets: > - addresses: > - ip: 10.3.0.1 > ports: > - port: 3306 > - addresses: > - ip: 10.3.1.1 > ports: > - port: 3306 > - addresses: > - ip: 10.3.2.1 > ports: > - port: 3306 > > And I got service which points to this endpoint. > > My question is - Kubernetes doesn't have any kind of "HA proxy mode" so it > can tell that any of nodes behind Endpoint is failing? So lets say I got > 10.3.0.1 mysql service stopped and kubernetes round robins connection to > this host so every third request on my webapp is failing? > > This is what I've experienced in my setup. > > Am I doing something wrong? Or is this a standard behaviour so I have to > deploy HA Proxy in between the endpoints and my MySQL database cluster? > this what readiness checks are for. If a container fails its readiness check, the endpoint will be removed from the list so it does not serve requests: https://docs.openshift.org/latest/dev_guide/application_health.html#container-health-checks-using-probes > > Many thanks for advice. > > David Strejc > t: +420734270131 > e: [email protected] > > _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > > -- Ben Parees | OpenShift
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
