Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments to "Visualizing Cold Starts" #6

Open
mikhailshilkov opened this issue Mar 14, 2019 · 7 comments
Open

Comments to "Visualizing Cold Starts" #6

mikhailshilkov opened this issue Mar 14, 2019 · 7 comments

Comments

@mikhailshilkov
Copy link
Owner

@mikhailshilkov mikhailshilkov commented Mar 14, 2019

Add your comment to Visualizing Cold Starts.
The comments will be displayed directly on the page.

@JRiggenbach
Copy link

@JRiggenbach JRiggenbach commented Mar 16, 2019

Nice way to visualize the startup times. The way you deploy your application, especially when it comes to node functions, can greatly increase increase your cold startup times. How were each of these applications deployed?

@johnz
Copy link

@johnz johnz commented Mar 16, 2019

Are you using windows or Linux instance for Azure test, can it make any difference?

@mikhailshilkov
Copy link
Owner Author

@mikhailshilkov mikhailshilkov commented Mar 16, 2019

@JRiggenbach On Azure I deploy with "Run from Package" with a local zip file, that's currently the recommended way from the team.
AWS and GCP are deployed with a zip sitting in S3/Cloud Storage, both controlled from Pulumi.
Which deployment options are you referring to as greatly increasing the startup time? Any links?

@mikhailshilkov
Copy link
Owner Author

@mikhailshilkov mikhailshilkov commented Mar 16, 2019

@johnz Azure test is on Windows. Currently, only python runs on Linux on Consumption plan, and that's still in preview. You can check the comparison in Azure Functions on Linux.

@ThomasKeralla
Copy link

@ThomasKeralla ThomasKeralla commented Aug 10, 2020

Hi Mikhail. Very interesting read, and love your content in general. I am writing my thesis right now on FaaS and was wondering how you track function instances? how do you get the id?

@mikhailshilkov
Copy link
Owner Author

@mikhailshilkov mikhailshilkov commented Aug 12, 2020

Thanks for the kind words! You can find the ID extraction in the code:

  • AWS - from /proc/self/cgroup
  • Azure - WEBSITE_INSTANCE_ID env variable
  • GCP is simply a random value generated at startup time

@ThomasKeralla
Copy link

@ThomasKeralla ThomasKeralla commented Aug 14, 2020

Thanks for your reply. Unfortunately it dose not seem to be a solution with python, we can only get to what seems to be the python process running in the app and not the app itself. But thanks for sharing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants