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

Scheduler pool docs #569

Merged
merged 2 commits into from Mar 25, 2020

Conversation

TomAugspurger
Copy link
Member

@TomAugspurger TomAugspurger commented Mar 23, 2020

@scottyhq I've added a pool dedicated for schedulers in 2cbef8b (autoscaling from 0 - 50 machines).

We'll need to update the configs to ensure that scheduler pods end up there. I'll do that in #536 once everyone is ready?

@TomAugspurger
Copy link
Member Author

cc @tjcrone as well. Are you able to create a "scheduler" pool with the taint

  taints:
  - effect: NO_SCHEDULE
    key: k8s.dask.org/dedicated
    value: scheduler

@scottyhq
Copy link
Member

Sounds good - feel free to merge and then we can test to make sure everything works as planned. I just created a new nodegroup on AWS. here is the eksctl config:

  - name: scheduler-spot
    minSize: 0
    maxSize: 20
    desiredCapacity: 0
    privateNetworking: true
    instancesDistribution:
      instanceTypes:
        - t3.large
        - t3a.large
      spotInstancePools: 2
      onDemandBaseCapacity: 0
      onDemandPercentageAboveBaseCapacity: 0
    volumeSize: 100
    volumeType: gp2
    labels:
      node-role.kubernetes.io/scheduler: scheduler
      k8s.dask.org/node-purpose: scheduler
    taints:
      k8s.dask.org/dedicated: 'scheduler:NoSchedule'
    tags:
        k8s.io/cluster-autoscaler/node-template/label/k8s.dask.org/node-purpose: scheduler
        k8s.io/cluster-autoscaler/node-template/taint/k8s.dask.org/dedicated: "scheduler:NoSchedule"
    ami: auto
    amiFamily: AmazonLinux2
    iam:
      withAddonPolicies:
        autoScaler: true
    preBootstrapCommands: # see https://github.com/weaveworks/eksctl/issues/1310
      - yum install -y iptables-services
      - iptables --insert FORWARD 1 --in-interface eni+ --destination 169.254.169.254/32 --jump DROP
      - iptables-save | tee /etc/sysconfig/iptables
      - systemctl enable --now iptables

@TomAugspurger
Copy link
Member Author

I'll merge this since we're just updating the docs.

@TomAugspurger TomAugspurger merged commit a3cc5f9 into pangeo-data:staging Mar 25, 2020
@TomAugspurger TomAugspurger deleted the scheduler-pool-docs branch March 25, 2020 13:43
@scottyhq scottyhq mentioned this pull request Apr 3, 2020
8 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants