Skip to content

[Core] Assign a fractional CPU to the Ray node #39260

@John-Almardeny

Description

@John-Almardeny

What happened + What you expected to happen

I tried to assign a fractional CPU to the Ray Worker Node, yet it threw the following error:

error invalid value for '--num cpus': 0.5 is not a valid integer ray

It is clear that --num cpus does not accept a float, but in our case, assigning a fractional CPU to the Ray node is crucial.

Versions / Dependencies

ray[default]==2.2.0

Reproduction script

In the K8s YAML file : Deployment of Worker Nodes

We pass the following command to start Ray worker node:

args:
     - "ray start --num-cpus=0.5 --redis-password=5241590000000000 ....."

Issue Severity

High: It blocks me from completing my task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issue, but not time-criticalcoreIssues that should be addressed in Ray Corecore-hardwareHardware support in Ray core: e.g. acceleratorsenhancementRequest for new feature and/or capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions