Results 1 to 10 of 10
Thread: multi server website
-
01-07-2014, 11:46 AM #1Newbie
- Join Date
- Jan 2014
- Posts
- 5
multi server website
Hi everyone,
I want to run my website from 2 servers so my question is what i need to do that?
Do I need hosting panel and load balance ? note please that i want to run my website completely using my servers so no external service is needed e.g no-ip dns.
my second question is can the server use load balance software and host panel at the same time??
Please help me ..
I'm 3rd uear IT student
-
01-07-2014, 01:11 PM #2Aspiring Evangelist
- Join Date
- Jan 2014
- Location
- Fort Lauderdale
- Posts
- 362
Your question is better answered if its devided into sections. First if all you are looking to load balance, you need to have something in front of your servers that controls the flow of information to different servers, look into HAProxy. Once you configure that to balance between your servers, you need to sync the content - if its static, I think you can use some form of SSH + Rsync between the servers. If there is a database involved, you will need to look into some type of clustering like galeria (this will need a proxy as well). These are just some starter points. May I ask what the ultimate goal is with this setup?
-
01-07-2014, 02:55 PM #3Newbie
- Join Date
- Jul 2013
- Posts
- 25
hi,
could you tell us the reason why you want to use 2 servers?
Regards██ Cache Simple
██ CDN provider - Akamai authorized reseller
██ Make your site faster, more secure and 100% available
██ www.cachesimple.com
-
01-07-2014, 03:23 PM #4Web Hosting Evangelist
- Join Date
- Jul 2012
- Location
- Charlotte, NC, US
- Posts
- 513
Here is something for you on load balancer. http://www.zenloadbalancer.org/web/
ⓐ➒AlphaNine
✿Shared hosting | cPanel/WHM reseller | KVM VPS | Dedicated Servers | SSL | VoIP | Management |
✿99.9% uptime | 24/7 Support | Easy Control Panels | Operating Since 2000 |
-
01-15-2014, 10:22 AM #5Newbie
- Join Date
- Jan 2014
- Posts
- 5
The goal
it is a project which is a website for engineering schools in my university so i expect a lot of visitors to this website.
the website will contain a lectures in pdf format avilable to download and some kind of questions area about lectures.. thinking to use mongodb.
But, must set up this service without using external services like dns e.g no-ip.
so any advice please ?
-
01-15-2014, 10:49 AM #6Newbie
- Join Date
- Jan 2014
- Posts
- 5
-
01-15-2014, 10:55 AM #7Aspiring Evangelist
- Join Date
- Jan 2014
- Location
- Fort Lauderdale
- Posts
- 362
I think you will find all that you want to accomplish can be done by choosing the right setup to start. For a single site you have a few options but it depends on your comfort level. (This all assumes you have registered your domain name, and have at least three servers running - either all three in house or two vps somewhere else and one dedicated in house for your main site).
First - hardware, if the server will host your schools site and not a several websites from different people than I would focus on a simple raid 1 with as much ram as you can afford and the server supports.
Second - Here is where it gets tricky; You could setup your own DNS servers in house using CPanel DNS and then utilize CPanel itself as your control panel. You will have to spend some time reading through setup guides and actually using their panel (unless you already know how). This will save you some time at the command line. The downside is for the most part you are restricted to using what they give you to enhance your site, unless you go with plugins (which rely on the plugins developers to keep them up to date). Another option and one that I hope you go with if you are comfortable is ISPConfig. Some consider it slightly more difficult, but in my oppinion it is lighter and more flexible. You can also setup your own DNS servers in-house.
Third - This will be where the magic happens - Depending on how you program your site you can get hundreds of thousands of visits without your server breaking a sweat. You can use Nginx or eevn lighttpd instead of Apache for speed. These two webservers will handle your static content (html,jepg,etc...). You can use PHP-FPM as your PHP handler for dynamic content (php files). Configure a cache of your choice. And you are set.
I dont wont to imply that any of this is trivial or that you can have it up in a day. What I do hope to imply is that it is not difficult if you patience, use google, and ask questions here.
Cpanel and Cpanel DNS setup -
http://docs.cpanel.net/twiki/bin/vie...nGuide/WebHome
Security -
http://docs.cpanel.net/twiki/bin/vie...rverChecklists
http://www.whmsecurity.com/firewalls...erver-firewall
Ispconfig with instructions for php-fpm-
http://www.ispconfig.org/page/en/documentation.html
Ispconfig DNS -
http://www.ispconfig.org/blog/1/entr...ebian-squeeze/
Nginx
For nginx or lighttpd it would depend on your choices above - once you select from above google the best way to install either one.
Your journey will require alot of reading but these are great starting points. Please excuse spelling and grammar.
-
01-15-2014, 11:51 AM #8Newbie
- Join Date
- Jan 2014
- Posts
- 5
Dear sir,
A lot thanks for you helping me .. Pleae just another question i'd like you to answer me.. What about load balance? shall i use haproxy or some like??
maybe my questions sounds very silly for you but i'm specialized in programming not networking so if you may detail your answer as much as you can ... Note please that there are more 50000+ student in all the schools i will provide mt websie to ..
-
01-15-2014, 12:27 PM #9Newbie
- Join Date
- Jan 2014
- Posts
- 5
-
01-15-2014, 01:14 PM #10Aspiring Evangelist
- Join Date
- Jan 2014
- Location
- Fort Lauderdale
- Posts
- 362
In my opinion adding a proxy will just complicate your setup, as everything still points to your primary server as a point of failure. This is not a cause for alarm, it just means you need to plan accordingly. Example, say you add a proxy. you will need at least two primary servers in order to (load balance the requests). In a good setup, one of those primary servers would need to be located somewhere that does not share power/internet with the other primary server. This is usually solved geographically. But it gets away from your stated goal of having everything in house. The number of people that you want to have this site available for is well within the what a reasonably powerful server configured with the strategy that I have outlined can handle.
First is that you wont have that many students clicking on a link on your site at the exact same time every second.
Second, is that because you are allocating a generous amount of RAM to caching, many of your request may never read from the hard drive, and thus will load quickly for your stated user count.
The ISPConfig Setup page I linked to has several tutorials that already include Nginx as part of setup. If you wanted to use a different OS than the ones linked there, you would google that os + ispconfig + nginx.
Similar Threads
-
Multi-server cluster setup so any website loads faster and handles ENORMOUS traffic!
By UNIXy in forum Other Hosting OffersReplies: 0Last Post: 03-17-2013, 11:08 PM -
Multi-server cluster setup so any website loads faster and handles ENORMOUS traffic!
By UNIXy in forum Other Hosting OffersReplies: 0Last Post: 12-17-2012, 12:48 PM -
Multi-server setup so your website handles ENORMOUS traffic! **Limited Time Offer**
By UNIXy in forum Other Hosting OffersReplies: 0Last Post: 12-13-2012, 01:21 PM -
Website Boards for Sale - Free Multi-Forums Website Provider
By waveweb in forum Other Offers & RequestsReplies: 3Last Post: 12-24-2005, 05:28 AM -
Additional 10% off for WHT Members !, Multi Domain, Multi Server, Hsphere Hosting
By CRego3D in forum Shared Hosting OffersReplies: 0Last Post: 02-23-2005, 07:44 AM