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

Added spark driver info to UI with alerts #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DanielAronovich
Copy link
Contributor

@DanielAronovich DanielAronovich commented Sep 11, 2024

Added spark driver info to the memory usage in the status and summary tabs
Added relevant alerts for driver over usage

</Typography>
<Typography variant="subtitle2">
"Memory Usage" is the peak memory usage of the most
<Typography variant="body1" color="inherit" textAlign={"center"}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when no data please hide the text

);
const driverMaxMemory = environmentInfo?.driverXmxBytes ?? 1;
const driverMemoryUsage = driverExecutor?.memoryUsageBytes ?? 0;
const driverMemoryUsagePercentage =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the calculatePercentage util I wrote

else (listener: SparkListenerInterface, queue: String) => context.listenerBus.addToQueue(listener, queue)
addToQueueMethod(dataflintListener, "dataflint")
context.listenerBus.post(DataflintEnvironmentInfoEvent(environmentInfo))
logInfo(s"Posted DataflintEnvironmentInfoEvent max driver memory: ${driverXmxBytes}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this log line from production

logInfo(s"Posted DataflintEnvironmentInfoEvent max driver memory: ${driverXmxBytes}")
if (isDatabricks) {
addToQueueMethod(DataflintDatabricksLiveListener(context.listenerBus), "dataflint")
logInfo("Added DataflintDatabricksLiveListener to the Spark context")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this line from production

? Object.values(executors).find((exec) => exec.id === "driver")
: undefined;
const driverMaxMemory = environmentInfo?.driverXmxBytes ?? 1;
const driverMemoryUsage = driverExecutor?.memoryUsageBytes ?? 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change memoryUsageBytes to use only on heap memory (+ executors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants