Skip to content

Commit 86f5531

Browse files
committed
Remove /memory api
1 parent c2ea992 commit 86f5531

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/v2/InvokerHealthManager.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ class InvokerHealthManager(instanceId: InvokerInstanceId,
153153
data.memory.inProgressMemory,
154154
instanceId.tags,
155155
instanceId.dedicatedNamespaces)
156-
InvokerHealthManager.useMemory = invokerResourceMessage.busyMemory + invokerResourceMessage.inProgressMemory
157156
dataManagementService ! UpdateDataOnChange(InvokerKeys.health(instanceId), invokerResourceMessage.serialize)
158157
stay using data.copy(currentInvokerResource = Some(invokerResourceMessage))
159158

@@ -270,7 +269,6 @@ object InvokerHealthManager {
270269
val healthActionNamePrefix = "invokerHealthTestAction"
271270
val bufferSize = 10
272271
val bufferErrorTolerance = 3
273-
var useMemory = 0l
274272
val healthActionIdentity: Identity = {
275273
val whiskSystem = "whisk.system"
276274
val uuid = UUID()

core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/FPCInvokerServer.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import akka.http.scaladsl.model.StatusCodes
2222
import akka.http.scaladsl.model.headers.BasicHttpCredentials
2323
import akka.http.scaladsl.server.Route
2424
import org.apache.openwhisk.common.{Logging, TransactionId}
25-
import org.apache.openwhisk.core.containerpool.v2.InvokerHealthManager
2625
import org.apache.openwhisk.http.BasicRasService
2726
import org.apache.openwhisk.http.ErrorResponse.terminate
2827
import spray.json.PrettyPrinter
@@ -48,8 +47,6 @@ class FPCInvokerServer(val invoker: InvokerCore, systemUsername: String, systemP
4847
invoker.enable()
4948
} ~ (path("disable") & post) {
5049
invoker.disable()
51-
} ~ (path("memory") & get) {
52-
complete(InvokerHealthManager.useMemory.toString)
5350
}
5451
case _ => terminate(StatusCodes.Unauthorized)
5552
}

0 commit comments

Comments
 (0)