2019-03-28 04:51:46 UTC - Xue Shuai: Hi, everyone, do i have to redeploy the entire openwhisk with openwhisk.yml every time I change parameters, eg. invoker_user_memory, or just redeploy invoker with invoker.yml? Thank you. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553748706001900?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 04:52:30 UTC - chetanm: You can run `wskdev invoker` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553748750002000?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 04:52:39 UTC - chetanm: That would just redeploy invoker https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553748759002200?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 04:55:25 UTC - Xue Shuai: @chetanm Thanks for your relpy, You mean that I can change the parameters `invoker_user_memory`, just redeploy invoker? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553748925002400?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 04:57:47 UTC - chetanm: Yup https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553749067002600?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:06:00 UTC - Xue Shuai: Got it, thank you. By the way, i used ansible to redeoloy invoker and passed the env variable with -e before , like `ansible-playbook -i environments/local invoker.yml -e skip_pull_runtimes=True -e invoker_user_memory="2048m" ` . Is there any documnet for the tool `wskdev`. I only found a [readme](<https://github.com/apache/incubator-openwhisk/blob/ccac7d5131a80bddeb1b6dc0c6580051c90bc264/tools/vagrant/README.md>) mentioned it, I dont down how to change the env variable this way. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553749560002800?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:16:51 UTC - chetanm: Its documented as `redo` here at <https://github.com/apache/incubator-openwhisk/tree/ccac7d5131a80bddeb1b6dc0c6580051c90bc264/tools/build#how-to-use-redo> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553750211003100?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:17:14 UTC - chetanm: Opened <https://github.com/apache/incubator-openwhisk/issues/4405> to update the docs https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553750234003300?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:18:04 UTC - chetanm: I typically update the `ansible/environment/local/group_vars/all` and add any ansible variable there https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553750284003500?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:18:38 UTC - chetanm: May be there is a better way as I often need to shelve my changes when refreshing the git repo https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553750318003700?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 05:25:48 UTC - Xue Shuai: Your support is greatly appreciated.:heart: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553750748003900?thread_ts=1553748706.001900&cid=C3TPCAQG1 ---- 2019-03-28 10:29:17 UTC - Barry: Hi, My controller log says "No invokers available" after I restart the invoker container, but invoker keeps receive "invokerHealthTestAction" action and the results are "ok"
Controller log [ShardingContainerPoolBalancer] [marker:controller_kafka_start:32283281] [ShardingContainerPoolBalancer] posted to invoker1[0][308] [marker:controller_kafka_finish:32283283:2] Invoker log [DockerContainer] initialization result: ok [DockerContainer] running result: ok https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553768957005400 ---- 2019-03-28 10:42:30 UTC - Dominic Kim: You can try run /invokers API against the controller. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553769750006000 ---- 2019-03-28 10:42:56 UTC - Dominic Kim: Is the invoker offline or unhealthy? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553769776006700 ---- 2019-03-28 10:55:14 UTC - Barry: Hi, I already terminated the cluster, I remember the invoker is unhealthy https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770514007300 ---- 2019-03-28 10:56:30 UTC - Barry: What is the condition of a invoker change to healthy ? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770590009200 ---- 2019-03-28 10:56:32 UTC - Dominic Kim: Invoker is supposed to be Healthy after health action is successfully invoked 7 times. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770592009300 ---- 2019-03-28 10:57:13 UTC - Barry: by default is 7 times? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770633009600 ---- 2019-03-28 10:57:48 UTC - Barry: I seems checked more than 7 times https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770668010200 ---- 2019-03-28 10:58:37 UTC - Dominic Kim: AFAIK, if Invoker does not become healthy the controller will send health action. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770717011500 ---- 2019-03-28 11:01:17 UTC - Barry: [2019-03-28T10:58:01.164Z] [INFO] [#tid_sid_invokerHealth] [ShardingContainerPoolBalancer] [marker:controller_kafka_start:1386619] [2019-03-28T10:58:01.173Z] [INFO] [#tid_sid_invokerHealth] [ShardingContainerPoolBalancer] posted to invoker1[0][346] [marker:controller_kafka_finish:1386623:3] https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770877012100 ---- 2019-03-28 11:01:38 UTC - Barry: These logs are checking the health of invoker ? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553770898012800 ---- 2019-03-28 11:04:13 UTC - Barry: There are many repeated logs like these https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771053013400 ---- 2019-03-28 11:05:46 UTC - Dominic Kim: Those logs denote the controller successfully sent health invocation to Kafka. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771146014300 ---- 2019-03-28 11:13:46 UTC - Barry: My invoker logs of test action https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771626014900 ---- 2019-03-28 11:13:46 UTC - Barry: [2019-03-28T11:10:01.170Z] [INFO] [#tid_sid_invokerHealth] [InvokerReactive] [marker:invoker_activation_start:2106626] [2019-03-28T11:10:01.177Z] [WARN] [#tid_sid_invokerHealth] [InvokerReactive] revision was not provided for whisk.system/invokerHealthTestAction--id [2019-03-28T11:10:01.180Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [GET] 'local_whisks' finding document: 'id: whisk.system/invokerHealthTestAction--id' [marker:database_getDocument_start:2106626] [2019-03-28T11:10:01.187Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [marker:database_getDocument_finish:2106643:17] [2019-03-28T11:10:01.191Z] [INFO] [#tid_sid_invokerHealth] [ContainerPool] containerStart containerState: cold container: None activations: 1 of max 1 action: invokerHealthTestAction--id namespace: whisk.system activationId: 68627cb41a0a49f1a27cb41a0ab9f1a6 [marker:invoker_containerStart.cold_count:2106644] [2019-03-28T11:10:01.194Z] [INFO] [#tid_sid_invokerHealth] [DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 64 --memory 128m --memory-swap 128m --network openwhisk_default -e __OW_API_HOST=https://*** --name wsk1_137_whisksystem_invokerHealthTestActionid --cap-drop NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --pids-limit 1024 --log-driver json-file openwhisk/nodejs6action:latest (timeout: 1 minute) [marker:invoker_docker.run_start:2106644] [2019-03-28T11:10:01.259Z] [INFO] [#tid_sid_invokerHealth] [DockerClientWithFileAccess] [marker:invoker_docker.run_finish:2106715:71] [2019-03-28T11:10:01.262Z] [INFO] [#tid_sid_invokerHealth] [DockerClientWithFileAccess] running /usr/bin/docker inspect --format {{.NetworkSettings.Networks.openwhisk_default.IPAddress}} *** (timeout: 1 minute) [marker:invoker_docker.inspect_start:2106715] [2019-03-28T11:10:01.594Z] [INFO] [#tid_sid_invokerHealth] [DockerClientWithFileAccess] [marker:invoker_docker.inspect_finish:2107050:335] [2019-03-28T11:10:01.598Z] [INFO] [#tid_sid_invokerHealth] [DockerContainer] sending initialization to ContainerId(***) ContainerAddress(***) [marker:invoker_activationInit_start:2107050] [2019-03-28T11:10:01.646Z] [INFO] [#tid_sid_invokerHealth] [DockerContainer] initialization result: ok [marker:invoker_activationInit_finish:2107102:52] [2019-03-28T11:10:01.650Z] [INFO] [#tid_sid_invokerHealth] [DockerContainer] sending arguments to /whisk.system/invokerHealthTestAction--id at ContainerId(***) ContainerAddress(***) [marker:invoker_activationRun_start:2107102] [2019-03-28T11:10:01.658Z] [INFO] [#tid_sid_invokerHealth] [DockerContainer] running result: ok [marker:invoker_activationRun_finish:2107114:12] [2019-03-28T11:10:01.661Z] [INFO] [#tid_sid_invokerHealth] [ContainerProxy] [marker:invoker_collectLogs_start:2107114] [2019-03-28T11:10:01.665Z] [INFO] [#tid_sid_invokerNanny] [DockerClientWithFileAccess] running /usr/bin/docker rm -f *** (timeout: 1 minute) [marker:invoker_docker.rm_start:8200116] [2019-03-28T11:10:08.413Z] [INFO] [#tid_sid_invokerNanny] [DockerClientWithFileAccess] [marker:invoker_docker.rm_finish:8206870:6754] https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771626015000 ---- 2019-03-28 11:16:22 UTC - Dominic Kim: Hm it seems there’s no clue I think. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771782015700 ---- 2019-03-28 11:19:00 UTC - Barry: Yes, I will restart everything, it will be ok, thanks for your help ^^ https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553771940017800 ---- 2019-03-28 17:39:45 UTC - Karan Kamatgi: Is there a directory that openwhisk uses to persist any of the modules loaded, so that it could be re-used during warm start? like how lambda has /tmp folder that is persisted https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553794785019900 ---- 2019-03-28 17:40:49 UTC - Karan Kamatgi: My goal is to find out if my function was a cold start or not https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553794849021200 ---- 2019-03-28 17:41:11 UTC - Rodric Rabbah: on a warm start the container is reused so anything you do inside the container persists wrt the fs https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553794871021600 ---- 2019-03-28 17:41:28 UTC - Rodric Rabbah: a global variable in your function will also work https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553794888022000 ---- 2019-03-28 17:45:05 UTC - Karan Kamatgi: _global=False def <my_function>: if (_global): start="warm" else: start="cold" <rest of handler code> _global=True https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553795105022200 ---- 2019-03-28 17:45:17 UTC - Karan Kamatgi: is that ok? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553795117022400 ---- 2019-03-28 17:49:20 UTC - Rodric Rabbah: something like that yes https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553795360022600 ---- 2019-03-28 17:52:43 UTC - Karan Kamatgi: i get error that i tried to access "_global" variable before it was defined https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553795563023500 ---- 2019-03-28 20:32:40 UTC - Michele Sciabarra: draft of the actionloop tutorial: <https://github.com/sciabarracom/incubator-openwhisk/blob/actionloop-documentation/docs/actionloop-runtime.md> 100 : Satwik Kolhe https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553805160023800 ---- 2019-03-28 20:34:17 UTC - Michele Sciabarra: still incomplete - I have to write the compiler and the testing section https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1553805257024400 ----
