You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/02/16 10:56:55 UTC
[GitHub] [openwhisk] xuanlinhha opened a new issue #5197: Warm/pre-warm/cold container
xuanlinhha opened a new issue #5197:
URL: https://github.com/apache/openwhisk/issues/5197
When I invoke the same action multiple times, a new container is created for each time.
Does container reuse supported for now?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] xuanlinhha edited a comment on issue #5197: Warm/pre-warm/cold container
Posted by GitBox <gi...@apache.org>.
xuanlinhha edited a comment on issue #5197:
URL: https://github.com/apache/openwhisk/issues/5197#issuecomment-1041487413
When I invoke the function, the result is fine:
```
$ wsk -i action invoke go-action-1 -p name "Test" --result
{
"single-main": "Hello, Test!"
}
$ wsk -i action invoke go-action-1 -p name "Test 1" --result
{
"single-main": "Hello, Test 1!"
}
```
and this is the list of containers, there are multiple running container for `goaction1`
```
NAME READY STATUS RESTARTS AGE
ow-alarmprovider-7cfddf7459-rjch4 1/1 Running 0 54m
ow-apigateway-7bb9b95fff-mf275 1/1 Running 0 54m
ow-controller-0 1/1 Running 0 54m
ow-gen-certs--1-xvb4j 0/1 Completed 0 54m
ow-init-couchdb--1-qhq4g 0/1 Completed 0 54m
ow-install-packages--1-sc9ql 0/1 Completed 0 54m
ow-invoker-0 1/1 Running 0 54m
ow-kafka-0 1/1 Running 0 54m
ow-kafkaprovider-7bc6799ffb-gcczq 1/1 Running 0 54m
ow-nginx-5b5cd5f9c8-2qrwm 1/1 Running 0 54m
ow-wskadmin 1/1 Running 0 54m
ow-zookeeper-0 1/1 Running 0 54m
wskow-invoker-00-1-guest-goaction 1/1 Running 0 53m
wskow-invoker-00-2-guest-jsaction 1/1 Running 0 53m
wskow-invoker-00-3-guest-goaction1 1/1 Running 0 52m
wskow-invoker-00-4-guest-goaction1 1/1 Running 0 2m25s
wskow-invoker-00-5-guest-goaction1 1/1 Running 0 2m
wskow-invoker-00-6-guest-goaction1 1/1 Running 0 18s
wskow-invoker-00-7-guest-goaction1 1/1 Running 0 8s
```
- I have changed in this file `openwhisk-deploy-kube/helm/openwhisk/templates/invoker-pod.yaml` to increase `timeouts` of the containers to reuse:
```yaml
- name: "CONFIG_whisk_containerProxy_timeouts_idleContainer"
value: "36500 days"
```
and there is no prewarm container, I don't know it will cause the affect?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] xuanlinhha commented on issue #5197: Warm/pre-warm/cold container
Posted by GitBox <gi...@apache.org>.
xuanlinhha commented on issue #5197:
URL: https://github.com/apache/openwhisk/issues/5197#issuecomment-1041487413
When I invoke the function, the result is fine:
```
$ wsk -i action invoke go-action-1 -p name "Test" --result
{
"single-main": "Hello, Test!"
}
$ wsk -i action invoke go-action-1 -p name "Test 1" --result
{
"single-main": "Hello, Test 1!"
}
```
and this is the list of containers, there are multiple running container for `goaction1`
```
NAME READY STATUS RESTARTS AGE
ow-alarmprovider-7cfddf7459-rjch4 1/1 Running 0 54m
ow-apigateway-7bb9b95fff-mf275 1/1 Running 0 54m
ow-controller-0 1/1 Running 0 54m
ow-gen-certs--1-xvb4j 0/1 Completed 0 54m
ow-init-couchdb--1-qhq4g 0/1 Completed 0 54m
ow-install-packages--1-sc9ql 0/1 Completed 0 54m
ow-invoker-0 1/1 Running 0 54m
ow-kafka-0 1/1 Running 0 54m
ow-kafkaprovider-7bc6799ffb-gcczq 1/1 Running 0 54m
ow-nginx-5b5cd5f9c8-2qrwm 1/1 Running 0 54m
ow-wskadmin 1/1 Running 0 54m
ow-zookeeper-0 1/1 Running 0 54m
wskow-invoker-00-1-guest-goaction 1/1 Running 0 53m
wskow-invoker-00-2-guest-jsaction 1/1 Running 0 53m
wskow-invoker-00-3-guest-goaction1 1/1 Running 0 52m
wskow-invoker-00-4-guest-goaction1 1/1 Running 0 2m25s
wskow-invoker-00-5-guest-goaction1 1/1 Running 0 2m
wskow-invoker-00-6-guest-goaction1 1/1 Running 0 18s
wskow-invoker-00-7-guest-goaction1 1/1 Running 0 8s
```
- I have changed in this file `openwhisk-deploy-kube/helm/openwhisk/templates/invoker-pod.yaml` to make the container always in running:
```yaml
- name: "CONFIG_whisk_containerProxy_timeouts_idleContainer"
value: "36500 days"
```
and there is no prewarm container, I don't know it will cause the affect?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk] rabbah commented on issue #5197: Warm/pre-warm/cold container
Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #5197:
URL: https://github.com/apache/openwhisk/issues/5197#issuecomment-1041478595
Container reuse is the default behavior. If you're not seeing reuse, check that the action is not failing on return, or the invoker is pausing the container successfully (look for errors in the invoker logs).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org