2020-02-17 13:19:29 UTC - Jack Sheehan: Hi guys https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581945569040200 ---- 2020-02-17 13:21:16 UTC - Jack Sheehan: I'm using OpenWhisk as part of my undergrad research project, and I'm investigating performance differences between keeping a pool of pre-warmed containers vs using ML to pre-warm containers when needed.
I'm still new to OpenWhisk so haven't quite figured out the ins and outs of it all, but the issue I'm facing is when invoking an action it is not using the pre-warmed containers, and instead, starting a new prewarmed container. I'm sure I'm missing something simple so any help would be great! https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581945676042100 ---- 2020-02-17 13:22:09 UTC - Jack Sheehan: I have the manifesto set up correctly I think, and my deployment shows pre-warmed containers already there (with more popping up when I run my action, i.e. the first action call is cold). https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581945729042900 ---- 2020-02-17 15:23:46 UTC - Jack Sheehan: In the below example: In the manifesto I've set stemCell count to 2, with memory of 256MB as per an example on Github which @Rodric Rabbah linked previously. When I deploy OpenWhisk it starts the 2 Node.js containers and 2 python containers. When I create a python action (The example one in the Github - a simple hello world), and then invoke it, it creates the 3rd Python container and gives it a cold start time of 210ms. So it seems that the pre-warmed containers are not being used. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581953026043000 ---- 2020-02-17 15:32:33 UTC - Rodric Rabbah: @Jack Sheehan hi, when a stem cell container is used (_specialized_) the pool is replenished and another stem cell created https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581953553044300 ---- 2020-02-17 15:36:02 UTC - Jack Sheehan: Hi, I just figured that out a few minutes before you sent the message, though I didn't want to keep spamming the chat! I deleted the newest container and realized that the action was still returning a warm result, so I figured it had attached to one of the previous containers. :slightly_smiling_face: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581953762047100 ---- 2020-02-17 15:36:09 UTC - Jack Sheehan: Thanks! https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581953769047300 ---- 2020-02-17 15:40:04 UTC - Rodric Rabbah: yw - looking forward to hearing about your results https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581954004048000 ---- 2020-02-17 16:17:29 UTC - Jack Sheehan: Thanks, I'll be sure to send it into the Slack. Last of the beginner questions for now - should expected pre-warmed container 'cold' times be around 150-220ms for Python, with expected times of 270-300ms+ for a cold start with no pre-warmed containers? Was running into weird results of 40ms duration for a cold start with no pre-warmed container, so I figured I'd messed something up :slightly_smiling_face: A full re-deploy seems to have fixed it and returned results in the 300ms region. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581956249050900 ---- 2020-02-17 16:19:08 UTC - Rodric Rabbah: which image are you using for python action? there is a slow one (where the runtime proxy in the container is using flask) and a faster one (where the runtime proxy inside the container is implemented in go); the latter is referred to as “action loop”. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581956348052300 ---- 2020-02-17 16:20:31 UTC - Rodric Rabbah: you want want to add an annotation on the activations - to help you disambiguate the `waitTime` which currently doesn’t itemize where an activation waits there may be some discussion about this from the past but i dont remember well enough to point you to it https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581956431053800 ---- 2020-02-17 16:43:29 UTC - Justin Halsall: Thanks @Will Plusnick! Yes it works for the default namespace which is a CF one (and for some reason I can't find in my IBM Cloud profile) so I think you are right and it has to do with IAM. Would you be able to submit it to the team? I found this, that was a while ago, not sure if it is still relevant? <https://github.com/serverless/serverless-openwhisk/issues/169#issuecomment-513858552> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581957809053900?thread_ts=1581701740.029400&cid=C3TPCAQG1 ---- 2020-02-17 19:21:42 UTC - Rob Allen: is losing track of which votes he’s verified and which he hasn’t grin : Dave Grove https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581967302054200 ---- 2020-02-17 19:22:19 UTC - Rob Allen: Now I’m wondering how hard it would be to automate parsing the vote emails and their responses and putting on a website https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581967339054900?thread_ts=1581967339.054900&cid=C3TPCAQG1 ---- 2020-02-17 20:14:38 UTC - Will Plusnick: I have a question regarding which container is being run during the tests by Travis. I'm having a test fail on a PR and want to walk through the that test locally by building my own container. The test in question is: <https://github.com/apache/openwhisk-runtime-docker/blob/master/tests/src/test/scala/runtime/actionContainers/ActionProxyContainerTests.scala#L224> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581970478056700 ---- 2020-02-17 20:15:32 UTC - Will Plusnick: I unfortunately don't understand Scala, so I'm only kind of able to read what the test is doing so I could try to trace it back myself. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581970532057400 ---- 2020-02-17 20:16:33 UTC - Will Plusnick: In particular, I'm not sure what JsNull ends up looking like on the request side. I assume either `null` or `{}` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581970593058500 ---- 2020-02-17 20:17:11 UTC - Will Plusnick: I think that it is unfortunately the issue, and it is still open. :disappointed: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581970631058600?thread_ts=1581701740.029400&cid=C3TPCAQG1 ---- 2020-02-17 21:54:07 UTC - Rodric Rabbah: hmm https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1581976447058900?thread_ts=1581967339.054900&cid=C3TPCAQG1 ----