Re: Limiting scaling of a pod

2016-05-25 Thread Philippe Lafoucrière
On Sun, May 22, 2016 at 7:05 PM, Clayton Coleman 
wrote:

> What are you trying to defend against?  The more concrete examples you
> can provide (where the app would be broken if there is >1 copy) the
> more we can do to ensure the use case is solved.
>

We have a legacy Resque Scheduler pod running. If this pod is running more
than once at a time, jobs are schedule (queued) more than once, and it
leads to other issues.
This pod doesn't have any PV, so we can't use a ReadWriteOnce PV to ensure
that.
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Limiting scaling of a pod

2016-05-20 Thread Luis Pabón
Hi Michail and Humble,
  The goal is for the user/admin to be unable to scale up an application which 
cannot scale past one container.  Michail, I'll try out what you pointed out.

Thanks,

- Luis

- Original Message -
From: "Michail Kargakis" <mkarg...@redhat.com>
To: "Humble Devassy Chirammal" <humble.deva...@gmail.com>
Cc: "Luis Pabón" <lpa...@redhat.com>, "users" <users@lists.openshift.redhat.com>
Sent: Friday, May 20, 2016 5:01:56 AM
Subject: Re: Limiting scaling of a pod

Luis,

you can setup an horizontal pod autoscaler on top of your replication
controller or deployment config with a MAX number of pods you want
For HPA to work, you will need to enable cluster metrics

https://docs.openshift.org/latest/install_config/cluster_metrics.html
https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html

On Fri, May 20, 2016 at 10:56 AM, Humble Devassy Chirammal <
humble.deva...@gmail.com> wrote:

> Hi Luis,
>
> Isnt it the 'replicas' setting in the pod yml/json does ? Or are you
> looking for some other scaling limit here ?
>
> --Humble
>
>
> On Thu, May 19, 2016 at 9:06 AM, Luis Pabón <lpa...@redhat.com> wrote:
>
>> Is there a way to set OpenShift/Kubernetes maximum scaling limit of a Pod
>> in the yml/json file for either manual scaling or autoscaling?
>>
>> - Luis
>>
>> ___
>> 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
>
>

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Limiting scaling of a pod

2016-05-20 Thread Michail Kargakis
Luis,

you can setup an horizontal pod autoscaler on top of your replication
controller or deployment config with a MAX number of pods you want
For HPA to work, you will need to enable cluster metrics

https://docs.openshift.org/latest/install_config/cluster_metrics.html
https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html

On Fri, May 20, 2016 at 10:56 AM, Humble Devassy Chirammal <
humble.deva...@gmail.com> wrote:

> Hi Luis,
>
> Isnt it the 'replicas' setting in the pod yml/json does ? Or are you
> looking for some other scaling limit here ?
>
> --Humble
>
>
> On Thu, May 19, 2016 at 9:06 AM, Luis Pabón  wrote:
>
>> Is there a way to set OpenShift/Kubernetes maximum scaling limit of a Pod
>> in the yml/json file for either manual scaling or autoscaling?
>>
>> - Luis
>>
>> ___
>> 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
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users