[New Scheduler]Add CreationJobManager#5116
Conversation
12e8fff to
1700c8d
Compare
Codecov Report
@@ Coverage Diff @@
## master #5116 +/- ##
==========================================
- Coverage 81.86% 75.75% -6.12%
==========================================
Files 225 227 +2
Lines 11423 11528 +105
Branches 501 497 -4
==========================================
- Hits 9352 8733 -619
- Misses 2071 2795 +724
Continue to review full report at Codecov.
|
|
|
||
| private val topicPrefix = loadConfigOrThrow[String](ConfigKeys.kafkaTopicsPrefix) | ||
| private val topic = s"${topicPrefix}creationAck${schedulerInstanceId.asString}" | ||
| private val maxActiveAcksPerPoll = 128 |
There was a problem hiding this comment.
In Scheduler.scala, this value is configurable.
Can we make it configurable as well?
There was a problem hiding this comment.
it seems other places are also hardcoded
| dataManagementService: ActorRef)(implicit actorSystem: ActorSystem, logging: Logging) | ||
| extends Actor { | ||
| private implicit val ec: ExecutionContext = actorSystem.dispatcher | ||
| private val baseTimeout = loadConfigOrThrow[Int](ConfigKeys.schedulerInProgressJobRetentionSecond).seconds |
There was a problem hiding this comment.
For time configuration, it is better to change it to loadConfigOrThrow[FiniteDuration]
There was a problem hiding this comment.
great catch, I will update
|
LGTM with some small suggestions |
732e6e2 to
219c069
Compare
Description
This module records container creation using a
CreationId, when a new container creation request is created, one entry with an uniqueCreationIdwill be created and saved in to ETCD, and will be deleted when creation is finished(or timeout waiting for creation complete ack).So that a
MemoryQueuecan query how many containers are being created from ETCD and then do containers scheduling based on this value.It can also help to trace/debug the procedure of a container creation.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: