question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[raysgd] How to set spot workers for an Azure cluster?

See original GitHub issue

In Azure, we should be able to set a node as spot (preemptible) by setting properties.priority = ‘Spot’. However, I can’t understand how to translate this into my cluster configuration YAML, as there is no information on GitHub or the documentation that I’m aware of which indicates the spot parameter for Azure clusters.

For reference, in the automatic cluster setup documentation, while the Azure example mentions a setting of an on-demand head node and spot worker nodes, that’s not what actually happens, as I get all the workers as on-demand in Azure. In fact, I wouldn’t expect otherwise as, contrary to the GCP and AWS examples, there is no difference in the parameters between head_node and worker_nodes.

Is there any way to set spot workers in an Azure cluster? Or is this feature not yet implemented?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gramhagencommented, Jun 15, 2020

@AndreCNF not sure why that build failed?

But I found some time and added a PR (#8938) to address this. There’s a wheel built for python3.7 here: https://sdgraystorage.blob.core.windows.net/ray-wheels/ray-0.9.0.dev0-cp37-cp37m-manylinux1_x86_64.whl

Just install that and grab changes in the new example-full.yaml

  • the main addition is under worker_nodes: azure_arm_parameters: priority: Spot
  • make sure to change the wheel in the setup_commands section to match the one above
1reaction
eisbercommented, May 11, 2020

if that is a common ask, than I think it’s a good idea to make it accessible through the yaml config.

Maybe we should document how to copy and modify the templates to get full control over all aspects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Launching Cloud Clusters — Ray 0.8.7 documentation
First, install the Azure CLI ( pip install azure-cli azure-core ) then login using ( az ... configured to autoscale up to two...
Read more >
Add an Azure Spot node pool to an Azure Kubernetes Service ...
Learn how to add an Azure Spot node pool to an Azure Kubernetes Service (AKS) cluster.
Read more >
Configure an AKS cluster - Azure Kubernetes Service
When you deploy an Azure Kubernetes Service cluster in Azure, a second resource group is created for the worker nodes. By default, AKS...
Read more >
Customize the node configuration for Azure Kubernetes ...
When you create an AKS cluster or add a node pool to your cluster, you can customize a subset of commonly used OS...
Read more >
Quickstart: Deploy an AKS cluster by using the Azure portal
Learn how to quickly create a Kubernetes cluster, deploy an application, and monitor performance in Azure Kubernetes Service (AKS) using the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found