This method does detailed scheduling itself which is required given that the sample cache is not managed by Spark's scheduler implementations.
This method does detailed scheduling itself which is required given that the sample cache is not managed by Spark's scheduler implementations. Depending on the amount of memory reported as remaining, we will assign appropriate weight to that executor.