Re: Kubernetes discovery with readinessProbe

2018-02-15 Thread dkarachentsev
Hi Bryan,

You need to use StatefulSet [1], Kubernetes will start nodes one-by-one when
each comes in a ready state.

[1] https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

Thanks!
-Dmitry



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Kubernetes discovery with readinessProbe

2018-02-13 Thread Bryan Rosander
We're using Apache Ignite in Kubernetes as a caching layer right now and
it's working well for us so far.

One thing that's been problematic is that when defining a readinessProbe,
the TcpDiscoveryKubernetesIpFinder only sees pods already in a ready state.

This means that if you start all your pods at once (as part of deployment
creation) you'll wind up with each pod being in its own grid.

It seems like others are experiencing this problem and I think I have a
workaround:
https://stackoverflow.com/questions/45176143/ignite-readinessprobe/48773865#48773865

The basic premise is to kill pods after they connect to a grid that doesn't
contain the alphabetical first ip in the service list.

I was wondering if there is a better solution to this segmentation problem
or if this seems workable.

Thanks,
Bryan