tillrohrmann commented on a change in pull request #11320:
[FLINK-16437][runtime] Make SlotManager allocate resource from ResourceManager
at the worker granularity.
URL: https://github.com/apache/flink/pull/11320#discussion_r408960934
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/SlotManager.java
##########
@@ -51,7 +53,12 @@
int getNumberFreeSlotsOf(InstanceID instanceId);
- int getNumberPendingTaskManagerSlots();
+ /**
+ * Get number of workers SlotManager requested from {@link
ResourceActions} that are not yet fulfilled.
+ * @return a map whose key set is all the unique resource specs of the
pending workers,
+ * and the corresponding value is number of pending workers of that
resource spec.
+ */
+ Map<WorkerResourceSpec, Integer> getPendingWorkerNums();
Review comment:
```suggestion
Map<WorkerResourceSpec, Integer> getRequiredResources();
```
maybe?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services