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/03/25 20:36:04 UTC

[GitHub] [openwhisk-runtime-dotnet] kamyker opened a new issue #34: Running 3.1 on IBM

kamyker opened a new issue #34: Running 3.1 on IBM
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34
 
 
   You’d need to ask ibm :) 
   
   As an Apache project we’d love the contribution, which you could then build and push to dockerhub and use independent of the ibm lifecycle.
   
   _Originally posted by @rabbah in https://github.com/apache/openwhisk-runtime-dotnet/issues/22#issuecomment-556197318_
   
   Didn't know it was possible but 3.1 image from docker works fine with ibm functions.
   
   Instead of:
   ```
   ibmcloud fn action update {methodName} out.zip --kind dotnet:2.2 --main {namespaceName}::{namespaceName}.{className}::{methodName} --web true
   ```
   Simply run:
   ```
   ibmcloud fn action update {methodName} out.zip --docker openwhisk/action-dotnet-v3.1 --main {namespaceName}::{namespaceName}.{className}::{methodName} --web true
   ```

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605538818
 
 
   Removed Newtonsoft json and used System.Text.Json that overall has less dependencies. Used few more features to strip down C# build.
   
   Cold start of empty function ~350ms
   
   The one in the post above (it's 6mb zip) ~570ms
   
   That's almost 1 sec lower than --kind dotnet:3.1 and 2.2 :)
   
   Great results, much better than Azure Functions or even AWS Lambda.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker commented on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker commented on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605538818
 
 
   Removed Newtonsoft json and used System.Text.Json that overall has less dependencies. Used few more features to strip down C# build.
   
   Cold start of empty function ~350ms
   
   The one in the post above (it's 6kb zip) ~570ms
   
   That's almost 1 sec lower than --kind dotnet:3.1 and 2.2 :)

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605538818
 
 
   Removed Newtonsoft json and used System.Text.Json that overall has less dependencies. Used few more features to strip down C# build.
   
   Cold start of empty function ~350ms
   
   The one in the post above (it's 6kb zip) ~570ms
   
   That's almost 1 sec lower than --kind dotnet:3.1 and 2.2 :)
   
   Great results, much better than Azure Functions or even AWS Lambda.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605396525
 
 
   After some changes my cold start compared to openwhisk/action-dotnet-v3.1 and --kind 2.2 on ibm almost halved!
   From ~1.45 sec
   To ~750ms
   
   > That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.
   Opposite :)
   
   What's also interesting is that real response time dropped by more than 2 sec:
   ![455eae900901de551c170ac274a3e40a](https://user-images.githubusercontent.com/9093037/77815445-73aaf380-70bb-11ea-968c-c95daa02ceee.png)
   ![9df9f59f7fc2a4a204645a6803928baa](https://user-images.githubusercontent.com/9093037/77815437-62fa7d80-70bb-11ea-9dc2-cb51b7396414.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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604771583
 
 
   Changing issue name and will write sometime what I've found.
   
   This should speed up cold times:
   https://github.com/kamyker/openwhisk-runtime-dotnet/commit/f9a739779887b4262c987c0be8bf2b77071c651b#diff-6bc49d26f451cad6d8312deca5a0eadeL89-L96
   
   Instead of writing zip and deleting it, we simply extract it from memory. Probably there's a way to do it directly from stream.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605396525
 
 
   After some changes my cold start compared to openwhisk/action-dotnet-v3.1 and --kind 2.2 on ibm almost halved!
   From ~1.45 sec
   To ~750ms
   
   > That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.
   
   What's also interesting is that real response time dropped by more than 2 sec:
   ![455eae900901de551c170ac274a3e40a](https://user-images.githubusercontent.com/9093037/77815445-73aaf380-70bb-11ea-968c-c95daa02ceee.png)
   ![9df9f59f7fc2a4a204645a6803928baa](https://user-images.githubusercontent.com/9093037/77815437-62fa7d80-70bb-11ea-9dc2-cb51b7396414.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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker commented on issue #34: Running 3.1 on IBM

Posted by GitBox <gi...@apache.org>.
kamyker commented on issue #34: Running 3.1 on IBM
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604639785
 
 
   Interesting!
   
   Finally managed to make openwhisk work on my windows with the kubernates guide. Also made (my first :) ) docker image of 3.1.
   
   Created simple bat to make iteration little bit faster
   ```
   docker build -t kamyker/openwhisk-action-dotnet-v3.1:latest .
   docker push kamyker/openwhisk-action-dotnet-v3.1:latest
   pause
   ```
   It takes only 20-30 sec but I guess there's a better way.
   
   Is there any way to use local image? Something like this https://github.com/apache/openwhisk-deploy-kube#deploying-a-locally-built-docker-image but for runtime --kind 3.1

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604771583
 
 
   Changing issues name and will write sometime what I've found.
   
   This should speed up cold time:
   https://github.com/kamyker/openwhisk-runtime-dotnet/commit/f9a739779887b4262c987c0be8bf2b77071c651b#diff-6bc49d26f451cad6d8312deca5a0eadeL89-L96
   
   Instead of writing zip and deleting it, we simply extract it from memory. Probably there's a way to do it directly from stream.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605396525
 
 
   After some changes my cold start compared to openwhisk/action-dotnet-v3.1 and --kind 2.2 on ibm almost halved!
   From ~1.45 sec
   To ~750ms
   
   > That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.
   
   Opposite :)
   
   What's also interesting is that real response time dropped by more than 2 sec:
   ![455eae900901de551c170ac274a3e40a](https://user-images.githubusercontent.com/9093037/77815445-73aaf380-70bb-11ea-968c-c95daa02ceee.png)
   ![9df9f59f7fc2a4a204645a6803928baa](https://user-images.githubusercontent.com/9093037/77815437-62fa7d80-70bb-11ea-9dc2-cb51b7396414.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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker commented on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker commented on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605396525
 
 
   After some changes my cold time compared to openwhisk/action-dotnet-v3.1 and --kind 2.2 on ibm almost halved!
   From ~1.45 sec
   To ~750ms
   
   > That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.
   
   What's also interesting is that real response time dropped by more than 2 sec:
   ![9df9f59f7fc2a4a204645a6803928baa](https://user-images.githubusercontent.com/9093037/77815437-62fa7d80-70bb-11ea-9dc2-cb51b7396414.png)
   ![455eae900901de551c170ac274a3e40a](https://user-images.githubusercontent.com/9093037/77815445-73aaf380-70bb-11ea-968c-c95daa02ceee.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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604771583
 
 
   Changing issues name and will write sometime what I've found.
   
   This should speed up cold times:
   https://github.com/kamyker/openwhisk-runtime-dotnet/commit/f9a739779887b4262c987c0be8bf2b77071c651b#diff-6bc49d26f451cad6d8312deca5a0eadeL89-L96
   
   Instead of writing zip and deleting it, we simply extract it from memory. Probably there's a way to do it directly from stream.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker commented on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker commented on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604771583
 
 
   Changing issues name will write sometime what I've found.
   
   This should speed up cold time:
   https://github.com/kamyker/openwhisk-runtime-dotnet/commit/f9a739779887b4262c987c0be8bf2b77071c651b#diff-6bc49d26f451cad6d8312deca5a0eadeL89-L96
   
   Instead of writing zip and deleting it, we simply extract it from memory. Probably there's a way to do it directly from stream.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] rabbah commented on issue #34: Running 3.1 on IBM

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #34: Running 3.1 on IBM
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-604096105
 
 
   That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.

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


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] kamyker edited a comment on issue #34: My fork changes

Posted by GitBox <gi...@apache.org>.
kamyker edited a comment on issue #34: My fork changes
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-605396525
 
 
   After some changes my cold time compared to openwhisk/action-dotnet-v3.1 and --kind 2.2 on ibm almost halved!
   From ~1.45 sec
   To ~750ms
   
   > That's right. You can even push your own images with your own dependencies and use them as "docker actions". The main difference is performance. The platform built-in images will load faster whereas the docker actions will have occasional slow starts because the image is pulled.
   
   What's also interesting is that real response time dropped by more than 2 sec:
   ![455eae900901de551c170ac274a3e40a](https://user-images.githubusercontent.com/9093037/77815445-73aaf380-70bb-11ea-968c-c95daa02ceee.png)
   ![9df9f59f7fc2a4a204645a6803928baa](https://user-images.githubusercontent.com/9093037/77815437-62fa7d80-70bb-11ea-9dc2-cb51b7396414.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


With regards,
Apache Git Services