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

How to calculate cpu allocated for warm containers(or idle containers)? #142

Open
wuyafang opened this issue Jun 3, 2021 · 2 comments
Open

Comments

@wuyafang
Copy link

wuyafang commented Jun 3, 2021

I noticed that warm containers get their CPU throttled to ~0% when they are not processing requests,while in pricing tables(https://cloud.google.com/run/pricing) idle containers still need to be paid $0.00000250 for vCPU-seconds unit.

I was wondering how to calculate CPU allocated for warm containers(or idle containers) ?

@ahmetb
Copy link
Owner

ahmetb commented Jun 3, 2021

@wuyafang the question is unclear to me.
Warm containers are charged at the specified rate as long as they stay around, even though they can't use the CPU (because there are no requests coming).

@tsu1980
Copy link

tsu1980 commented Jun 7, 2021

For about when container startup is described in the Document.

Your container instances must listen for requests within 4 minutes after being started. During this startup time, container instances are allocated CPU.

https://cloud.google.com/run/docs/reference/container-contract#startup

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

No branches or pull requests

3 participants