What is the rate limit for GCE instance metadata service?

断了今生、忘了曾经 提交于 2021-02-08 09:08:26

问题


On a GCP compute environment, I need to get an id_token (expires every 3600s) to make service-to-service authentication (using GCF, Cloud Run etc).

I get this id_token from the instance metadata service:

http://metadata/computeMetadata/v1/instance/service-accounts/default/identity?audience=[...]

Instead of implementing some form of caching+TTL for this identity token, I'm curious if I can call this endpoint every time I will make an outbound RPC (I might make a lot).

That's why I'm curious:

  1. What's the rate limit for the instance metadata service?

  2. Does the rate limit differ between GCE vs serverless platforms (GAE, GCF, Cloud Run)?

来源:https://stackoverflow.com/questions/58495465/what-is-the-rate-limit-for-gce-instance-metadata-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!