谷歌应用引擎负载平衡 [英] google app engine load balancing

查看:96
本文介绍了谷歌应用引擎负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google应用引擎上有付费应用。众所周知,谷歌会在您的实例小时内收取费用。



我唯一无法理解的是,什么是导致谷歌温暖另一个实例的逻辑,或者他们如何决定如何负载平衡流量这些实例。



正如您可以从截图中看到的的appengine实例屏幕(抱歉链接,我是新的stackoverflow,并且不允许张贴实际图像),为了确保我的用户不会遭受长时间的加载请求,我有一个常驻的实例。

有趣的是,似乎没有任何流量进入驻留实例,所有流量都是实际上将转到其中一个动态实例。此外,让我们假设根据负载平衡算法,动态实例不堪重负,而不是将流量引导到驻留实例,而是预热另一个似乎不会获得那么多流量的动态实例。



如果我不支付tripple时间,我不会在意。不幸的是,我需要支付这些时间:)

如果任何人可以分享一些关于以下内容的更多信息,我将不胜感激:

1。 GAE的负载平衡如何工作?

2.我可以做些什么来获得更好的流量分布(并通过减少特定时间的动态实例数量) p>

感谢您的帮助!

解决方案

本文档页面解释了App Engine调度程序的工作原理。并且这个其他页面会教导哪些参数可以改变为控制表演。



然而,我们正在努力改进调度行为。请继续关注 Google云端平台博客。 (我在App Engine上工作)

I have a paid app on google app engine. As you all know, google will charge you for your instance hours.

The only thing I was not able to understand is, what is the logic that causes google to warm another instance, or how do they decide how to load balancing the traffic between those instances.

As you can see from the screenshot of the appengine instances screen (sorry for the link, I am new to stackoverflow, and was not allowed to post an actual image), in order to make sure that my users won't suffer from a long load request, I have one instance resident at all times.

The funny thing about it is, that it appears that none of the traffic is getting to the resident instance, all the traffic is actually going to one of the dynamic instances. Moreover, let's assume that according to their load balancing algorithm that dynamic instance is overwhelmed, instead of directing traffic to the resident instance, they warmed up another dynamic instance which appears to not get that much traffic either.

If I was not paying for the tripple instance hours, I wouldn't care. Unfortunately, I need to pay for these hours :)

I will appreciate it if anyone can share some more light regarding the following:
1. How does the load balancing of GAE works?
2. What can I do to get a better distribution of the traffic on my instances (and by that reduce the amount of dynamic instances at a given time)

Thanks for the help!

解决方案

This documentation page explains how the App Engine scheduler works. And this other page teaches what parameters can be changed to control performances.

However we are working on improving the scheduling behavior. Stay tuned by following the Google Cloud Platform blog. (I work on App Engine)

这篇关于谷歌应用引擎负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆