bjornjorgensen commented on code in PR #44130:
URL: https://github.com/apache/spark/pull/44130#discussion_r1413211357
##########
core/src/test/scala/org/apache/spark/deploy/master/PersistenceEngineBenchmark.scala:
##########
@@ -124,6 +134,35 @@ object PersistenceEngineBenchmark extends BenchmarkBase {
workerInfo
}
+ private def createDriverInfo(id: Int): DriverInfo = {
+ val now = System.currentTimeMillis()
+ val date = new Date(now)
+ new DriverInfo(now, f"driver-20240101000000-$id%04d", DriverDescription(
+ jarUrl = "local:///opt/spark/examples/jars/spark-examples.jar",
+ mem = 1024,
+ cores = 1,
+ supervise = false,
+ command = DeployTestUtils.createDriverCommand()
+ ), date)
+ }
+
+ private def createApplicationInfo(id: Int): ApplicationInfo = {
+ val now = System.currentTimeMillis()
+ val submitDate = new Date(now)
+ val customResources = Map(
+ GPU -> 3,
Review Comment:
do we need this?
--
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]