Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-06-02 Thread Vincent Behar
> On 01 Jun 2016, at 19:31, Luke Meyer wrote: > > Except, the default rules will ensure that replicas on the same service are > only deployed in the same region (opposite of what you said) and spread > across zones. yes exact, sorry I mixed up serviceAffinity and serviceAntiAffinity. ___

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-06-01 Thread Luke Meyer
Except, the default rules will ensure that replicas on the same service are only deployed in the same region (opposite of what you said) and spread across zones. In both cases, only to the extent that these labels are actually applied to the nodes. You had two failing "PodFitsPorts" because it was

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-31 Thread Stéphane Klein
Thanks :) 2016-05-31 10:37 GMT+02:00 Vincent Behar : > The scheduler doc is > https://docs.openshift.org/latest/admin_guide/scheduler.html > > and if you used ansible to setup your cluster, the default config is > https://github.com/openshift/openshift-ansible/blob/4b734695abf9ca112c9ad3be33f03fc

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-31 Thread Vincent Behar
The scheduler doc is https://docs.openshift.org/latest/admin_guide/scheduler.html and if you used ansible to setup your cluster, the default config is https://github.com/openshift/openshift-ansible/blob/4b734695abf9ca112c9ad3be33f03fcd1a1e7abf/roles/openshift_facts/library/openshift_facts.py#L16

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-31 Thread Stéphane Klein
2016-05-31 8:29 GMT+02:00 Vincent Behar : > > Instead of creating a second DC for the router, I would fix the scheduler > config to fit your needs. Thanks. Where is this configuration, have you a url about this subject ? Best regards, Stéphane ___ us

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-30 Thread Vincent Behar
Hi, that’s because of the default scheduler config, which includes a serviceAffinity predicates on the “region” label. In practice, this rule will make sure you don’t have 2 replicas in the same region, that’s why you have 2 routes in pending status. Instead of creating a second DC for the rout

Re: In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-30 Thread Stéphane Klein
I did the test, all works great if I create two routers DC with oadm router create command. 2016-05-30 16:28 GMT+02:00 Stéphane Klein : > Hi, > > I've two region in my cluster: > > * region A with 2 nodes > * region B with 2 nodes > > Do I need to deploy one "oadm router ..." by region ? > > For

In cluster with 2 regions, do I need to deploy one "oadm router…" by region ?

2016-05-30 Thread Stéphane Klein
Hi, I've two region in my cluster: * region A with 2 nodes * region B with 2 nodes Do I need to deploy one "oadm router ..." by region ? For the moment I've created only one router deploymentconfig and I've: * replicas = 4 * 2 router installed with success on region A * 2 router in pending sta