And what about GlusterFS - does Open Shift driver support checking if
GlusterFS endpoint is up and running?



David Strejc
t: +420734270131
e: david.str...@gmail.com

On Tue, Apr 5, 2016 at 5:54 PM, Ben Parees <bpar...@redhat.com> wrote:

>
>
> On Tue, Apr 5, 2016 at 11:26 AM, Tomáš Kukrál <t...@6shore.net> wrote:
>
>> Hi,
>> is it really possible to attach Endpoint?
>>
>> I think readiness probes are limited to containers and thus is can not
>> solve David's problem because mysql servers are running outside of
>> OpenShift.
>>
>>
> ​sorry, didn't realize it's an external service, my advice would not apply
> if that is the case.
> ​
>
>
>
>> tom
>>
>>
>>
>> On 04-05 09:04, Ben Parees wrote:
>> > On Tue, Apr 5, 2016 at 3:59 AM, David Strejc <david.str...@gmail.com>
>> 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: david.str...@gmail.com
>> > >
>> > > _______________________________________________
>> > > users mailing list
>> > > users@lists.openshift.redhat.com
>> > > http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> > >
>> > >
>> >
>> >
>> > --
>> > Ben Parees | OpenShift
>>
>> > _______________________________________________
>> > users mailing list
>> > users@lists.openshift.redhat.com
>> > http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>> _______________________________________________
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>
>
> --
> Ben Parees | OpenShift
>
>
> _______________________________________________
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to