linux - Scaling a Ruby on Rails site -
I am developing a Ruby on Rail application and want to deploy in a production environment. I have many equally configured Ubuntu web servers that I can use but I do not know how to scale ROR app and DB data in many hosts.
I would like to have both a web server and a DB server on each host.
On the Web server / Ruby middleware side, I want to control the sessions. A master web server that balances the load on the web server / ruby middleware layers should shut the new session for free hosts < / P>
I need to load the load on the web server / ruby middleware. I should have web / middleware sessions atom (I am not interested in copying them in many hosts)
Mu Sector transactions that keep transaction data which is intermediate re-log-in to run again in case of failure-recovery.
In the DB layer:
I want to duplicate DB data on one host 2 for other hosts (3 DB hosts in each DB set)
< P> I do not have to replicate duplicated DB data in all hosts because it takes a very long time.I like an algorithm to be placed in that place, which will direct the types of requests for the correct DB. Load balance comes to mind.
The DB Master Controller should know what the 3-DB has to go for 'Update / Read / Delete' requests.
My test web server and backend DB are PostGrasskal (though it does not really matter with ROR).
I believe that I need to start the session for each transaction and then load that session again after the failure again.
What other design problems do I have the possibility of running? Besides, what should I use for the web server and DB server to work harder? What are the best options for Master DB and Master Web Server?
I understand that this is a complex problem that spreads in many domains of knowledge. I would like to know what I am asking for, it is possible.
We have a very good fate with the following infrastructure at my last job:
1 Load Balancer - nginx
3 App Servers -
2 mysql server writing unnecessary
2 Backup boxes
Currently We have 4 big and mission critical apps running on that environment We have two app servers to take care of five apps.
If you are more important than this, then perhaps probably better than Heroko on ROI. Undoubtedly, Heroko is a better bet for issues of small scaling, the above plan has a dream in your system.
Comments
Post a Comment