Accessing the Spark history server
The Spark history server allows you to view the stages of running and completed Spark applications on a watsonx.data instance.
If you want to analyze how different stages of your Spark application performed, you can view the details in the Spark history server UI.
- Required permissions
- To submit Spark runtime, you must have the User role.
About this task
Applies to :
Spark engine
Apache Gluten accelerated Spark engine
Procedure
Stopping the Spark history server
Procedure
Automatically terminating idle Spark history servers
About this task
To optimize resource utilization, the Spark History Server is automatically terminated when it remains idle beyond a configurable duration. This prevents unnecessary consumption of compute resources when the History Server is not actively serving requests.
The idle monitoring mechanism periodically checks for user activity on the Spark History Server. If no activity is detected within the configured timeout window, the service is gracefully stopped.
serviceConfig.historyServerIdleMonitor:
enabled: true
idleTimeoutMinutes: 30
checkIntervalSeconds: 60
- When enabled, the idle monitor tracks incoming requests to the Spark History Server UI.
- If no activity is detected for the duration specified by
idleTimeoutMinutes, the History Server is automatically shut down. - The inactivity check runs at intervals defined by
checkIntervalSeconds. - When new activity is required (for example, accessing the History Server UI again), the service can be restarted based on the platform’s standard lifecycle behavior.