You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scaling up process would be executed immediately, when I added num_cpus=1 either to the decorator or the options(). The ray status showed
Demands:
{'CPU': 1.0}: 50+ pending tasks/actors
It's weird the default parameter seems not to affect Actors.
Versions / Dependencies
Python 3.8.13
ray 1.12.0
GKE 1.21.12-gke.1700
Reproduction script
fromtimeimportsleepimportthreadingimportray@ray.remotedefgo():
sleep(1)
return"OK"@ray.remoteclassThreadedActor:
deftask(self):
returnf"native id: {threading.get_native_id()}"if__name__=="__main__":
ray.init(address="ray://HEAD-IP:10001")
objs= [go.remote() for_inrange(50)] # scaling up worksactors= [
ThreadedActor.options(max_concurrency=5).remote() for_inrange(50) # scaling up does not work
]
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered:
orcahmlee
added
bug
Something that is supposed to be working; but isn't
triage
Needs triage (eg: priority, bug/not-bug, and owning component)
labels
Aug 5, 2022
@orcahmlee happy to elaborate if you're interested, but for now i will close this as a duplicate of #26806. Please reopen if you can repro on a nightly after that commit.
What happened + What you expected to happen
I set up a Ray cluster on K8s which would auto-scaling the ray workers from
0
to6
. Thevalues.yaml
as follows:I submitted 50
tasks
when there has0
ray worker. Theray status
showedThen the scaling up process would be executed immediately. This is the expected behavior.
However, I submitted 50
actors
when there has0
ray worker. The scaling up process would NOT be executed, and theray status
showed:I noticed the
ray staus
message did not list the CPU numbers, so I did two trials.The scaling up process would be executed immediately, when I added
num_cpus=1
either to the decorator or theoptions()
. Theray status
showedIt's weird the default parameter seems not to affect Actors.
Versions / Dependencies
Reproduction script
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: