Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
143 views
in Technique[技术] by (71.8m points)

How can I check how many instances of a Google Cloud Run container are running?

Google Cloud Run lets me set a concurrency for a given container, which is how many concurrent requests it will service before a new container is spun up.

How do I actually check how many containers are running at any given time? The web interface mentions which services are running but not how many of them there are, and the same is true when I do gcloud beta run services (list|describe).

question from:https://stackoverflow.com/questions/65889462/can-you-view-running-cloud-run-instances

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The Billable instance time metric can give you a sense of how many instances were running.For example, if a Revision with 2 container instances has been continuously serving traffic in the last minute, the value is 2s/s

Alternatively, you can export your logs to BigQuery. Each log entry has an instance ID as label (see docs) that you could group by and count.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...