معرفی شرکت ها


cloudRunStayAwake-1.0.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Reduce Cloud Run cold start with targetted self call
ویژگی مقدار
سیستم عامل -
نام فایل cloudRunStayAwake-1.0.5
نام cloudRunStayAwake
نسخه کتابخانه 1.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Resousse
ایمیل نویسنده resousegit@gmail.com
آدرس صفحه اصلی https://github.com/Resousse/cloudrun-stay-awake
آدرس اینترنتی https://pypi.org/project/cloudRunStayAwake/
مجوز Apache 2.0
# Cloud Run Stay Awake Python implementation of the cold start mitigation proposed by [@guillaumeblaquiere](https://github.com/guillaumeblaquiere) (already implemented in [Go](https://github.com/guillaumeblaquiere/cloudrun-sigterm-selfcall) & [NodeJS](https://github.com/Resousse/cloudrun-stay-awake-js) ) ## Purpose A Cloud Run GCP service stop after an idle period, this time cannot be forseen. As a result, the next request after the stop, will have a **cold start**, a delay of one or several seconds, Cloud Run takes to start a new container. One of the cheap solutions proposed by Guillaume (https://medium.com/google-cloud/3-solutions-to-mitigate-the-cold-starts-on-cloud-run-8c60f0ae7894) is to schedule an http call every minute to keep alive the service. However this solution is not accurate as the stop can occurs in less than a minute after the last request. And Cloud Scheduling can't go under a minute. Another solutions is presented to trigger the stop signal (a SIGTERM signal) to self call the service to try to keep it alive. This is what this code is about. ## How to Use Easy steps: - `pip install cloudRunStayAwake ` - In the main file of your code (Flask, Django, other...), add `import cloudRunStayAwake` ## Tests In case you want to perform some tests before deploying to your code, there is a Dockerfile that can be used to test it on Cloud Run ## License This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/Resousse/cloudrun-stay-awake/tree/main/LICENSE).


نیازمندی

مقدار نام
- requests


نحوه نصب


نصب پکیج whl cloudRunStayAwake-1.0.5:

    pip install cloudRunStayAwake-1.0.5.whl


نصب پکیج tar.gz cloudRunStayAwake-1.0.5:

    pip install cloudRunStayAwake-1.0.5.tar.gz