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_r403046204
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/ResourceActions.java
##########
@@ -42,9 +40,9 @@
* Requests to allocate a resource with the given {@link
ResourceProfile}.
*
* @param resourceProfile for the to be allocated resource
- * @return Collection of {@link ResourceProfile} describing the
allocated slots
+ * @return whether the resource can be allocated
*/
- Collection<ResourceProfile> allocateResource(ResourceProfile
resourceProfile);
+ boolean allocateResource(ResourceProfile resourceProfile);
Review comment:
Wouldn't it be required for future developments that we can tell
`allocateResource` how big resource-wise the worker should be?
----------------------------------------------------------------
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