Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm deployment with multiple worker configuration profiles #470

Open
ghost opened this issue Dec 21, 2021 · 1 comment
Open

Helm deployment with multiple worker configuration profiles #470

ghost opened this issue Dec 21, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 21, 2021

In an effort to provide cost-optimization on the cluster scaling, I've been trying to schedule worker pods on to different sized nodes. I have two nodepools: small and large. I set the default pod limits to 1vcpu and 11GB RAM (wrt RAM, two fit on a small node and four would fit on to a large node), however, I also want some users to, through the cluster.options configuration when starting a cluster, to request higher limits (3vcpus and 21GB RAM for a full small node or even 7vcpu and 45GB RAM for a large node).

Below is the NodeAffinity solution that kind of works, however, when a large enough cluster is scaled up with the default limits (1vcpu and 11GB RAM), sometimes this triggers the scale up of the larger nodes. This isn't a surprise due to the kube-scheduler and the non-guarantee of the preferredDuringSchedulingIgnoredDuringExecution preferences.

dask-gateway:
 gateway:
  baskend:
   worker:
        extraPodConfig:
          tolerations:
            - key: node_toleration
              value: worker
              operator: Equal
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: node_label
                    operator: In
                    values:
                      - worker
                      - lgworker
              preferredDuringSchedulingIgnoredDuringExecution:
                - weight: 100
                  preference:
                    matchExpressions:
                    - key: node_label
                      operator: In
                      values: 
                      - worker
                - weight: 1
                  preference:
                    matchExpressions:
                    - key: node_label
                      operator: In
                      values: 
                      - lgworker

So, I was wondering, is it feasible to have multiple profiles for worker pods? Something that would effectively extend the cluster profile options here.

Otherwise, perhaps someone may have some better insight in how to achieve what I'm trying to accomplish.

@ghost ghost closed this as completed Feb 17, 2022
@ghost ghost reopened this Feb 18, 2022
@ghost
Copy link
Author

ghost commented Feb 18, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants