简体   繁体   English

Http加载标志true和false之间的区别

[英]Difference between Http loading flag true and false

We got stackdriver monitoring set up on our GCP environments. 我们在GCP环境中设置了堆栈驱动程序监视。 And we are struggling with loading=false and loading=true on HTTP response metrics. 而且,我们正在努力应对HTTP响应指标上的loading=falseloading=true Responses marked with 'loading=true' flag have much higher latency. 标有“ loading = true”标志的响应具有更高的延迟。 What is the difference between 'true' and 'false'? “ true”和“ false”有什么区别?

The only description available in docs: "loading: (BOOL) Indicates whether the request was loading". docs中唯一可用的描述:“ loading:(BOOL)指示请求是否正在加载”。

You didn't specify for which kind of resource these metrics were reported but I suspect you may be using App Engine. 您没有指定这些指标针对哪种资源进行报告,但我怀疑您可能正在使用App Engine。 Correct me if I'm wrong. 如果我错了纠正我。

In this context, a loading request is the first request that hit a newly created instance. 在这种情况下,加载请求是命中新创建实例的第一个请求。 The instance then needs to load dependencies, set configuration etc... before it can actually process the request and respond to it, which makes the response time bigger. 然后,该实例需要加载依赖项,设置配置等​​...,才能实际处理请求并对其进行响应,这会使响应时间变长。 You'll find more details about loading requests here . 您可以在此处找到有关加载请求的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM