mohammed.yahya Posted March 2, 2010 Share Posted March 2, 2010 Hi all I am developing my own website. The plan of the website is to have 40 sections in its menu (somehow like Yahoo). And expect to have 1000000 (1 Million) visitors in the first year. And you know each one will make a number of hits in his visit. My concern is that: Is one server enough to handle my application and the expected number of visitors? Do I need a servers cluster? What server specifications do I need? thanks Yahya Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/ Share on other sites More sharing options...
Philip Posted March 2, 2010 Share Posted March 2, 2010 I am developing my own website. ... And expect to have 1000000 (1 Million) visitors in the first year. Where did you pull that number from? Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1020423 Share on other sites More sharing options...
mohammed.yahya Posted March 3, 2010 Author Share Posted March 3, 2010 This is my goal to have 1 million visitors a year. So, I want to be ready in case I could make it. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1020758 Share on other sites More sharing options...
Philip Posted March 3, 2010 Share Posted March 3, 2010 Well - good luck with that goal.. it is set pretty high It's all about how well the application is designed & applied. It's really a case by case topic, and you'll know when you need to add another server to your rack. With 1m visitors, I'd imagine you'd need a couple of servers for sure. Once you get to the point where you go beyond one server, you'll need to look into load balancing (either hardware or software, both have their pros/cons), other server software/OSs (lighttpd, nginx, etc) to fit your needs. And when in doubt, hire a server management company to help you out, especially with an aggressive goal with such rapid growth. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1020762 Share on other sites More sharing options...
corbin Posted March 5, 2010 Share Posted March 5, 2010 What do you mean by 1 mil visitors? As in 1 million unique visitors? 1 mil unique hits? 1 mil hits of any kind? 1 mil users on at any given time (good luck). How many actual hits would you expect in a year? What's the number of hits/second that you would expect per peak time? On a realistic note, I would wait until you need to scale to scale. Perhaps code the site so that it would be easy to add another server or whatever later, but don't waste the money right now on hardware overkill. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1021828 Share on other sites More sharing options...
roopurt18 Posted March 5, 2010 Share Posted March 5, 2010 I would start with a VPS or similar, code the site, launch it, and track performance. When your memory, cpu, or hard drive are approaching their limits you need to profile the code to figure out why and update bottlenecked sections of code. At that point you'd also want to start playing with indexes on queries and making sure all of that is optimal. When there's nothing left you can do config or programming wise, then it's time to invest in better or multiple servers. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1022047 Share on other sites More sharing options...
mohammed.yahya Posted March 8, 2010 Author Share Posted March 8, 2010 Lets break the solutions down: KingPhilip: server management company Would you guide me to some top line companies. corbin: What's the number of hits/second that you would expect per peak time ? Lets say 2000 http requests + 2000 sql queries Perhaps code the site so that it would be easy to add another server or whatever later Would you elaborate more. What code strategies should I follow? roopurt18: track performance What is the top line software that I can use for this purpose? All: 1-In case I got a dedicated server. Don't I need to check their network setup (switches and routers...etc) . thanks for your interaction. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1023209 Share on other sites More sharing options...
corbin Posted March 9, 2010 Share Posted March 9, 2010 2000 HTTP requests per second? Yeah... Errr.... You won't reach that overnight. Or even in a year (unless your site catches on like youtube did or facebook). 172.8 mil hits per day is quite a beastly load. Basically I would say roopurt offered the best advice. Scale as needed: don't waste money. (From what you said though, I gather that you got a dedi server.) As for performance monitoring tools, there are quite a few free ones if you're under linux. http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html goes over a few of the basic ones. As for more indepth ones, I've no idea. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1023344 Share on other sites More sharing options...
roopurt18 Posted March 9, 2010 Share Posted March 9, 2010 roopurt18: track performance What is the top line software that I can use for this purpose? Hell if I know. Probably some basic linux utilities. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1023416 Share on other sites More sharing options...
Daniel0 Posted March 9, 2010 Share Posted March 9, 2010 Monit can monitor services' resource usage and send alert emails if they get too high. Munin can generate graphs over resource usage. Vnstat can generate bandwidth statistics. Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1023459 Share on other sites More sharing options...
mohammed.yahya Posted March 9, 2010 Author Share Posted March 9, 2010 Do I need to use Enterprise MySql or just the community version of MySql? If MySql Enterprise... Which option (Basic, Platinum, etc) what do u think? Quote Link to comment https://forums.phpfreaks.com/topic/193865-one-million-visitors-in-one-year/#findComment-1023857 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.