Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qual tool cluster info - calculating the number of exec nodes on yarn should look at all executors over time when dynamic allocation on #1121

Open
tgravescs opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working tools

Comments

@tgravescs
Copy link
Collaborator

Describe the bug
Currently the logic for calculating the number of nodes used on a YARN cluster only looks at the active executors. This is an ok approximation but with dynamic allocation this number could change a lot over the lifetime of an application.

Our logic:

 val activeExecInfo = executorIdToInfo.values.collect {
      case execInfo if execInfo.isActive => (execInfo.host, execInfo.totalCores)
    }

 activeHosts.toSet.size

We should be looking at the maximum number of executor going at any point in time and then calculating the number of nodes needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tools
Projects
None yet
Development

No branches or pull requests

2 participants