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
Now any node raylet has ActorLabels information for all nodes.
472
+
However, when ActorAffinity schedules, if it traverses the Labels of all Actors of each node, the algorithm complexity is very large, and the performance will be poor.
473
+
<b>Therefore, it is necessary to generate a full-cluster ActorLabels index table to improve scheduling performance. <b>
<b>VS. putting Labels into the custom resource solution <b>
495
+
<b>Advantages:<b>
496
+
1.Compared with the scheme of putting Labels in the custom resource. This scheme can also reuse the resource synchronization mechanism. Then it won't destroy the concept of coustrom resouce.
497
+
2. The Label index table of all nodes can be constructed from the ActorLabels information of each node. If you use Custom Resource, you can't build.
498
+
3.If the CustomResouces scheme is used, the accuracy of custom resouces scheduling will be affected. The current scheme is completely independent of existing scheduling policies and resources and will not affect them. The code is also more concise.
499
+
500
+
501
+
<b>DisAdvantages:<b>
502
+
1. The interfacefor resource reporting and updating needs to be adapted to ActorLabels in ResouceData.
503
+
504
+
<b>Issue<b>
505
+
1. Because there must be a delay in resource synchronization under raylet scheduling. So if actor affinity is Soft semantics, there will be inaccurate scheduling.
506
+
507
+
404
508
### Failures and Special Scenarios
405
509
#### 1、If the Match Expression Cannot be satisfied
406
510
If the matching expression cannot be satisfied, The actor will be add to the pending actor queue. Util the matching expression all be statisfied。
@@ -428,3 +532,11 @@ All APIs will be fully unit tested. All specifications in this documentation wil
428
532
429
533
## (Optional) Follow-on Work
430
534
535
+
### Expression of "OR" semantics.
536
+
Later, if necessary, you can extend the semantics of "OR" by adding "is_or_semantics" to ActorAffinitySchedulingStrategy.
0 commit comments