Re: Scheduler policy in 3.6 (default and custom at install time)

2017-08-14 Thread Avesh Agarwal
On Mon, Aug 14, 2017 at 3:20 AM, Per Carlson  wrote:

> Hi.
>
> On 12 August 2017 at 18:39, Avesh Agarwal  wrote:
>
>>
>>
>> On Sat, Aug 12, 2017 at 11:59 AM, Avesh Agarwal 
>> wrote:
>>
>>>
>>>
>>> On Fri, Aug 11, 2017 at 2:28 AM, Per Carlson  wrote:
>>>
 Hi.

 We are in the process of rebuilding a cluster with a new topology, and
 I'm trying to fit the node labels to a scheduler policy, and would like to
 base the policy on the default one.

 I've searched both the openshift/origin and and
 openshift/openshift-ansible repos on GitHub without finding any traces of
 what the default scheduler policy looks like. I can list it in a 3.5
 cluster, but has things changed in 3.6? (after all, there are some new
 knobs in 3.6).

>>>
>>> The scheduler default policy in 3.6 is not very different from 3.5.
>>> There is one new pedicate MaxAzureDiskVolumeCount in 3.6. So you could just
>>> reuse 3.5 default policy for 3.6 by adding this new predicate to the
>>> default list.
>>>
>>
> ​OK.​
>
>
>> ​Throws in a related second question too: Is there any simple way to pass
 a custom scheduler to the playbook (byo/openshift-cluster/config.yml)
 at install time?

 If by custom scheduler you mean custom policy + default scheduler then
>> you could just pass your custom policy path to
>> ​​
>> PolicyConfigFile argument in
>> ​​
>> openshift_master_scheduler_args at install time i think.
>>
> ​
> Yes, that's what I meant (should have written "tailored scheduler
> policy"). Do you have a reference to any sort of documentation/code about
> the "PolicyConfigFile" argument and "openshift_master_sheduler_args"
> variable?
> ​
>
I can not find exact references but it seems there are a couple ways to do
this:

openshift_master_scheduler_conf=

Or

openshift_master_scheduler_args={'policy-config-file':  ['']}

You might have to tweak the above options a bit, as I have not verified
these.

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


Re: Scheduler policy in 3.6 (default and custom at install time)

2017-08-14 Thread Per Carlson
Hi.

On 12 August 2017 at 18:39, Avesh Agarwal  wrote:

>
>
> On Sat, Aug 12, 2017 at 11:59 AM, Avesh Agarwal 
> wrote:
>
>>
>>
>> On Fri, Aug 11, 2017 at 2:28 AM, Per Carlson  wrote:
>>
>>> Hi.
>>>
>>> We are in the process of rebuilding a cluster with a new topology, and
>>> I'm trying to fit the node labels to a scheduler policy, and would like to
>>> base the policy on the default one.
>>>
>>> I've searched both the openshift/origin and and
>>> openshift/openshift-ansible repos on GitHub without finding any traces of
>>> what the default scheduler policy looks like. I can list it in a 3.5
>>> cluster, but has things changed in 3.6? (after all, there are some new
>>> knobs in 3.6).
>>>
>>
>> The scheduler default policy in 3.6 is not very different from 3.5. There
>> is one new pedicate MaxAzureDiskVolumeCount in 3.6. So you could just reuse
>> 3.5 default policy for 3.6 by adding this new predicate to the default
>> list.
>>
>
​OK.​


> ​Throws in a related second question too: Is there any simple way to pass
>>> a custom scheduler to the playbook (byo/openshift-cluster/config.yml)
>>> at install time?
>>>
>>> If by custom scheduler you mean custom policy + default scheduler then
> you could just pass your custom policy path to
> ​​
> PolicyConfigFile argument in
> ​​
> openshift_master_scheduler_args at install time i think.
>
​
Yes, that's what I meant (should have written "tailored scheduler policy").
Do you have a reference to any sort of documentation/code about the
"PolicyConfigFile" argument and "openshift_master_sheduler_args" variable?
​
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Scheduler policy in 3.6 (default and custom at install time)

2017-08-12 Thread Avesh Agarwal
On Sat, Aug 12, 2017 at 11:59 AM, Avesh Agarwal  wrote:

>
>
> On Fri, Aug 11, 2017 at 2:28 AM, Per Carlson  wrote:
>
>> Hi.
>>
>> We are in the process of rebuilding a cluster with a new topology, and
>> I'm trying to fit the node labels to a scheduler policy, and would like to
>> base the policy on the default one.
>>
>> I've searched both the openshift/origin and and
>> openshift/openshift-ansible repos on GitHub without finding any traces of
>> what the default scheduler policy looks like. I can list it in a 3.5
>> cluster, but has things changed in 3.6? (after all, there are some new
>> knobs in 3.6).
>>
>
> The scheduler default policy in 3.6 is not very different from 3.5. There
> is one new pedicate MaxAzureDiskVolumeCount in 3.6. So you could just reuse
> 3.5 default policy for 3.6 by adding this new predicate to the default
> list.
>
>
>>
>> ​Throws in a related second question too: Is there any simple way to pass
>> a custom scheduler to the playbook (byo/openshift-cluster/config.yml) at
>> install time?
>>
>> If by custom scheduler you mean custom policy + default scheduler then
you could just pass your custom policy path to PolicyConfigFile argument in
openshift_master_scheduler_args at install time i think.

OTOH, if by custom scheduler you mean some other scheduler implementation
built out of openshift/kubernetes, then I dont think so openshift-ansible
installer can take care of this, and would require some other manual
manipulations to make that work.


> --
>> Pelle
>>
>> Research is what I'm doing when I don't know what I'm doing.
>> - Wernher von Braun
>>
>> ___
>> 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: Scheduler policy in 3.6 (default and custom at install time)

2017-08-12 Thread Avesh Agarwal
On Fri, Aug 11, 2017 at 2:28 AM, Per Carlson  wrote:

> Hi.
>
> We are in the process of rebuilding a cluster with a new topology, and I'm
> trying to fit the node labels to a scheduler policy, and would like to base
> the policy on the default one.
>
> I've searched both the openshift/origin and and
> openshift/openshift-ansible repos on GitHub without finding any traces of
> what the default scheduler policy looks like. I can list it in a 3.5
> cluster, but has things changed in 3.6? (after all, there are some new
> knobs in 3.6).
>

The scheduler default policy in 3.6 is not very different from 3.5. There
is one new pedicate MaxAzureDiskVolumeCount in 3.6. So you could just reuse
3.5 default policy for 3.6 by adding this new predicate to the default
list.


>
> ​Throws in a related second question too: Is there any simple way to pass
> a custom scheduler to the playbook (byo/openshift-cluster/config.yml) at
> install time?
>
> --
> Pelle
>
> Research is what I'm doing when I don't know what I'm doing.
> - Wernher von Braun
>
> ___
> 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