部署 一台服务器上的 app server 数量

nxbtch · October 01, 2014 · Last by nxbtch replied at October 02, 2014 · 1627 hits

项目使用的 ruby server 是 thin, 在内存允许的情况下,一台服务器上的实例数是否越多越好?我在本机测试的结果是,性能随着实例个数的增加的确在增加,而且应该是线性增加(我只测了 3 组,所以不敢确定)。app server 的实例数量除了会带来性能的增加,会有什么副作用么?

nginx 1.6.2 with 3 instance

nginx 1.6.2 with 6 instance

nginx 1.6.2 with 12 instance

影响实际性能的因素太多,理论有很多套,但落到应用上都是实测为准的。既然你实测性能增加那就是好的。

最关键的内存和 CPU 你都不测那还测什么:)这两个要没限制你随便跑多少都可以。

You need to Sign in before reply, if you don't have an account, please Sign up first.