gtrettenero commented on PR #56957:
URL: https://github.com/apache/spark/pull/56957#issuecomment-5136937960
@ulysses-you Do you think it's worth it to break ties based on executor
age? I was doing something similar on my end and used something like this. The
point would be to favor executors that have existed the longest.
`Random.shuffle(offers).sortBy(o => (o.cores,
TaskSchedulerImpl.executorAge(o.executorId)))`
```
private[scheduler] def executorAge(executorId: String): Int = {
try {
executorId.toInt
} catch {
case _: NumberFormatException => Int.MaxValue
}
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]