defaults.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Example command to start a cluster with this config:
  2. #
  3. # ray start --autoscaling-config=default.yaml --head --block
  4. #
  5. cluster_name: spark
  6. max_workers: 8
  7. provider:
  8. type: spark
  9. # This must be true since the nodes share the same ip!
  10. use_node_id_as_ip: True
  11. disable_node_updaters: True
  12. disable_launch_config_check: True
  13. available_node_types:
  14. ray.head.default:
  15. # You must set this manually to your "head" node resources!! The head
  16. # node is launched via `ray start` and hence the autoscaler cannot
  17. # configure its resources. The resources specified for its node type
  18. # must line up with what Ray detects/is configured with on start.
  19. resources:
  20. CPU: 8 # <-- set this to num CPUs used/detected in `ray start`
  21. GPU: 0 # <-- set this to num GPUs used/detected in `ray start`
  22. node_config: {}
  23. max_workers: 0
  24. ray.worker:
  25. resources:
  26. CPU: 1
  27. object_store_memory: 1000000000
  28. node_config: {}
  29. min_workers: 0
  30. max_workers: 4
  31. head_node_type: ray.head.default
  32. upscaling_speed: 1.0
  33. idle_timeout_minutes: 1.0
  34. #
  35. # !!! Configurations below are not supported in spark cluster mode
  36. #
  37. auth: {}
  38. docker: {}
  39. initialization_commands: []
  40. setup_commands: []
  41. head_setup_commands: []
  42. worker_setup_commands: []
  43. head_start_ray_commands: []
  44. worker_start_ray_commands: []
  45. file_mounts: {}
  46. cluster_synced_files: []
  47. file_mounts_sync_continuously: false
  48. rsync_exclude: []
  49. rsync_filter: []