Skip to content

[New Scheduler] Implement FunctionPullingContainerProxy #5113

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

Merged
merged 7 commits into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ object TransactionId {
val invokerHealthManager = TransactionId(systemPrefix + "invokerHealthManager") // Invoker startup/shutdown or GC activity
def invokerHealthActivation = TransactionId(systemPrefix + "invokerHealthActivation") // Invoker health activation
val invokerWarmup = TransactionId(systemPrefix + "invokerWarmup") // Invoker warmup thread that makes stem-cell containers
val invokerColdstart = TransactionId(systemPrefix + "invokerColdstart") //Invoker cold start thread
val invokerNanny = TransactionId(systemPrefix + "invokerNanny") // Invoker nanny thread
val dispatcher = TransactionId(systemPrefix + "dispatcher") // Kafka message dispatcher
val loadbalancer = TransactionId(systemPrefix + "loadbalancer") // Loadbalancer thread
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package org.apache.openwhisk.core.containerpool.v2

import akka.actor.ActorRef
import org.apache.openwhisk.core.connector.ActivationMessage
import org.apache.openwhisk.core.entity.{DocRevision, FullyQualifiedEntityName}
import org.apache.openwhisk.core.scheduler.SchedulerEndpoints

// Event send by the actor
Expand All @@ -28,6 +30,14 @@ case object CloseClientProxy
// Event received by the actor
case object StartClient
case class RequestActivation(lastDuration: Option[Long] = None, newScheduler: Option[SchedulerEndpoints] = None)
case class RescheduleActivation(invocationNamespace: String,
fqn: FullyQualifiedEntityName,
rev: DocRevision,
msg: ActivationMessage)

case object RetryRequestActivation
case object ContainerWarmed
case object StopClientProxy

// TODO, use grpc to fetch activation from memoryQueue
class ActivationClientProxy {}
Loading