如果测试没有使服务器负载达到临界点,则有些问题将检测不到,所以要确保服务器的负载超过您预期的最高峰流量。
If the tests don't load the server to the point where things break, you won't detect some of the problems, so be sure you load your server beyond your expected peak traffic.
在大多数用例中,这是理想的行为,并被视为一个调优问题:增加maxdepth值,直到队列能吸收最高峰值负载。
In most cases, this is the desired behavior and is treated as a tuning problem: increase MAXDEPTH until the queue can absorb the highest peak loads.
更好的是,我的应用程序将在流量高峰期自动扩展到4个实例,前端就有一个负载平衡器,无需我亲自配置。
What's even better, my application will auto scale to four instances in the case of a traffic spike, with a load balancer in front that I didn't have to configure.
应用推荐