开发者

cheap way to scale a rails application

开发者 https://www.devze.com 2022-12-23 06:37 出处:网络
I have an application, that is becoming big, but until now, its not giving me a good revenue. That means, short money to re-invest on that. In this scenario, i found a way to make a \"cheap distribute

I have an application, that is becoming big, but until now, its not giving me a good revenue. That means, short money to re-invest on that. In this scenario, i found a way to make a "cheap distributed rails" deployment.

I've got 4 VPS. All of them are in the same physical server. I added a load balance server running HAproxy in one dedicated VPS. There i pointed my virtual ip address where my domain name is associated. Behind this HAproxy i have more two VPS running my rails APP, passenger and memcache. Both开发者_StackOverflow中文版 apps servers are looking to the same database server, my 4th VPS. So with $44/month, i mounted a distributed environment. It won't be my final choice, but now, that the budget is short, is that a good way to deploy a rails application? Any pros or cons? It worth my $44/month?


It may be more efficient to increase the resources on a single VPS and tune passenger to handle more memory and concurrent Rails instances.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号