vvraskin commented on a change in pull request #2531: Use akka distributed map 
to store the shared state
URL: 
https://github.com/apache/incubator-openwhisk/pull/2531#discussion_r137289774
 
 

 ##########
 File path: 
core/controller/src/main/scala/whisk/core/loadBalancer/LoadBalancerData.scala
 ##########
 @@ -87,9 +94,9 @@ class LoadBalancerData() {
     def putActivation(id: ActivationId, update: => ActivationEntry): 
ActivationEntry = {
         activationsById.getOrElseUpdate(id, {
             val entry = update
-            totalActivations.incrementAndGet()
-            activationByNamespaceId.getOrElseUpdate(entry.namespaceId, new 
AtomicInteger(0)).incrementAndGet()
-            activationByInvoker.getOrElseUpdate(entry.invokerName, new 
AtomicInteger(0)).incrementAndGet()
+            sharedStateNamespaces ! 
IncreaseCounter(entry.namespaceId.asString, 1)
+            sharedStateInvokers ! IncreaseCounter(entry.invokerName.toString, 
1)
+            logging.info(s"increased shared counters")
 
 Review comment:
   Done
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to