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 2020/05/15 11:50:13 UTC

[GitHub] [openwhisk] acabarbaye opened a new issue #4907: Could action timeout limit be unlimited or configurable?

acabarbaye opened a new issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907


   Documentation states that the maximum time limit for an action is 5 minutes (300000ms) https://github.com/apache/openwhisk/blob/master/docs/reference.md#per-action-timeout-ms-default-60s
   Could this value be unlimited or configurable as some actions (e.g. extensive calculations, network bound actions) may take much longer than 5 minutes?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] ZinuoCai commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
ZinuoCai commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-801780486


   I also want to extend the running time of a function. I deploy my OpenWHisk with K8s. I change the application.conf in the scala directory and rebuild the controller image. I set it below.
   
       time-limit {
           min = 100 ms
           max = 25 m
           std = 20 m
       }
   
   However, it does not work properly. The default running is still 1 minute. Anything else should I modify?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652554672


   @style95 : I've tried to change this value to 500 mins. Now my action can run within 500 mins. I set the timeout to 10 mins, 20 mins, 60 mins and 500 mins.  From activation log I see 10 mins works fine. For 20 mins, my action suddenly stops after 3 mins limit and returns error after 20 minutes. For 60 mins, the action stops after 15 mins returns after 124 mins. For 500 mins, my action didn't return after 20h. What should I do if I need the action to run several hours? 
   ![Screen Shot 2020-07-01 at 13 14 31](https://user-images.githubusercontent.com/48507550/86273380-2c427080-bb9e-11ea-9261-3089a48361e8.png)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi removed a comment on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi removed a comment on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652548971






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] acabarbaye commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
acabarbaye commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-629617282


   @style95 : Thanks for the link. I got misled by the documentation. I thought only default values could be modified. Maybe a link to the application.conf should be added to that page as well.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] style95 commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-801783310


   I think you want to change this.
   https://github.com/apache/openwhisk-deploy-kube/blob/master/helm/openwhisk/values.yaml#L78
   
   Regarding kubernetes timeouts, they are applied when you run a pod or get logs from a pod.
   https://github.com/apache/openwhisk/blob/master/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/kubernetes/KubernetesClient.scala#L177
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi removed a comment on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi removed a comment on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652405832


   @style95 : I change this value to 10 mins, and my action works perfectly. But when I change this to 60 mins or more, the action never returns even after timeout. What should I do if I need the action to run several hours?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652405832


   @style95 : I change this value to 10 mins, and my action works perfectly. But when I change this to 60 mins or more, the action never returns even after timeout. What should I do if I need the action to run several hours?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] ZinuoCai edited a comment on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
ZinuoCai edited a comment on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-801780486


   @rabbah I also want to extend the running time of a function. I deploy my OpenWHisk with K8s. I change the application.conf in the scala directory and rebuild the controller image. I set it below.
   
       time-limit {
           min = 100 ms
           max = 25 m
           std = 20 m
       }
   
   However, it does not work properly. The default running is still 1 minute. Anything else should I modify?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] ZinuoCai commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
ZinuoCai commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-802491465


   Thanks!


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah closed issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
rabbah closed issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652412408


   @style95 : I've tried to change this value to 20 mins. From log I see my action suddenly stops after 5 mins limit and returns error after 20 minutes. But when I change this to 60 mins or more, the action never returns even after timeout. What should I do if I need the action to run several hours?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652558087


   Have you checked the logs in the action or the invoker? This is impossible for us to diagnose with the information provided. It could be your action is running out of memory or just crashing, among other reasons.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-670177491


   Closing as inactionable.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-801891535


   There are the timeouts that you set on individual actions (e.g., `wsk action update --timeout`) which can range from the deployment's `min-max` values. These apply per action.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] style95 commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-629241198


   @acabarbaye It is a cluster-wide configuration.
   You can change this value.
   https://github.com/apache/openwhisk/blob/master/common/scala/src/main/resources/application.conf#L393


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] Jyuqi commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
Jyuqi commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-652548971


   ![Screen Shot 2020-07-01 at 13 14 31](https://user-images.githubusercontent.com/48507550/86273296-04530d00-bb9e-11ea-95e9-af77857cae68.png)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk] ZinuoCai commented on issue #4907: Could action timeout limit be unlimited or configurable?

Posted by GitBox <gi...@apache.org>.
ZinuoCai commented on issue #4907:
URL: https://github.com/apache/openwhisk/issues/4907#issuecomment-801567574


   I see that here is also a time-limit configuration. What is the difference between them? I deploy OpenWhisk with K8s.
   
   https://github.com/apache/openwhisk/blob/625fc5b7593360bc01e74147c02ce5f1461b5cd3/core/invoker/src/main/resources/application.conf#L68
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org