Results 1 to 7 of 7

Thread: Suggestion for High Traffic WebServer Setup

  1. #1
    Senior Member
    Join Date
    Jul 2006
    Location
    India, Delhi
    Posts
    208
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    8

    Default [Solved] Suggestion for High Traffic WebServer Setup

    Hello all,

    I need a suggestion for setup a server

    I have a php page of 40KB, that has to provide 1 Lakhs users simultaneously.
    That is a online exam page.

    So my question is, what configuration of server should be ?
    I have 2 choices either can go for IBM server or SUN server... which one is better

    What should be Bandwith for this task.

    If i am missing here some other considerations that i should take care of that, pl. let me..


    Thanks
    Regards
    Last edited by kasimani; 13th July 2009 at 01:56 PM.

  2. #2
    Contributors amitabh's Avatar
    Join Date
    Jul 2008
    Location
    New Delhi
    Posts
    123
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    8

    Default

    You need to be more descriptive in what exactly your setup is: i.e. your database server, number of queries per page etc... Also, it make more sense to have multiple server setup like one for DB, one for dynamic contents and the third for any static images, all connected internally through a second Gigabit NIC.

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,500
    Thanks
    17
    Thanked 790 Times in 507 Posts
    Rep Power
    10

    Default

    For 1 lacks user connection per sec you need cluster not a single IBM or Sun server will work. If I were you I will consider something as follows:

    1) Load balancer in front of webserver nodes. It can be hardware based or software based using nginx or LVS or redhat cluster suite.

    2) Dedicated database server with RAID-10 array with 8 or more disks.

    3) Nodes - multiple nodes.

    4) CDN if you use lots of JS, images etc.

    As amitabh said provide more info.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  4. The Following User Says Thank You to nixcraft For This Useful Post:

    kasimani (13th July 2009)

  5. #4
    Senior Member
    Join Date
    Jul 2006
    Location
    India, Delhi
    Posts
    208
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    8

    Default

    Here are the details:

    I have a website for registered users, This website is intended for Objective exams.
    Now i want, let 1-1.5 Lakh users can login simultaneously and give exams, in sort, request to webserver will be about 2 Lakh per day.


    I am going to use Mysql, but still hopping for good suggestion from ur side
    OS would me CentOS


    Now suggest me what sort of Hardware/Servers they needed and what should be bandwidth for all that.

    That setup also require HA and Loadbalancing, firewall (All should be Hardware)

  6. #5
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,500
    Thanks
    17
    Thanked 790 Times in 507 Posts
    Rep Power
    10

    Default

    Since we not seen your source code and have no idea about code size. You need to perform a few test on your own. Usually, you need

    1. Hardware or software based load balancer to spread load among the web server node.
    2. Do not use Apache with PHP, it will kill performance. Use lighttpd or nginx with FastCGI. You need 3-4 web server nodes, each with 4-8GB RAM, RAID-1 SAS, Xeon CPU etc.
    3. Get master / slave MySQL server setup with RAID10x15k SAS disks. Get lots of RAM 12-16GB. Cache mysql queries using memcached.
    4. Install xcache on all php boxes.
    5. Tune Linux TCP/IP stack.

    Bandwidth usage depends upon various factors such as

    1. Does web site uses lots of java script, images and css code?
    2. Does web site uses flash?
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  7. #6
    Senior Member
    Join Date
    Jul 2006
    Location
    India, Delhi
    Posts
    208
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    8

    Default

    hi

    My site is gzipped, using memcache, using css, js, images

    images comes from other server.

    My question, how do i calculate the memory for Apache connections (for 1 lakh connection)

    suppose my webpage without compression is 144 KB, and after gzipped, it goes 30KB.

    Pl. tell me any formula to calculate the required RAM, CPU

    Thanks in Adv.

    Regards
    Last edited by kasimani; 13th July 2009 at 01:56 PM.

  8. #7
    Contributors amitabh's Avatar
    Join Date
    Jul 2008
    Location
    New Delhi
    Posts
    123
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    8

    Default

    There is not set formula to calculate the required RAM CPU etc. It is based on more on experience with handling server administration. What you can do though is use Apache Bench to simulate multiple connections to see how your server behaves under heavy load.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I setup/configure DNS, Sendmail, and Apache webserver using DHCP to allow out
    By ibolah in forum Computer Networking and Internet/broadband
    Replies: 0
    Last Post: 20th February 2009, 12:35 PM
  2. Need suggestion for installing Solaris in my system
    By vaibhav.kanchan in forum Solaris/OpenSolaris
    Replies: 1
    Last Post: 26th July 2008, 11:03 AM
  3. iptables for webserver
    By asim.mcp in forum Networking, Firewalls and Security
    Replies: 7
    Last Post: 12th August 2007, 12:05 PM
  4. need suggestion!!!
    By jayesh in forum Computer Networking and Internet/broadband
    Replies: 3
    Last Post: 27th June 2006, 01:08 AM
  5. Hacker high school documentation
    By monk in forum The Hangout
    Replies: 1
    Last Post: 26th April 2005, 12:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •