3

I have been building a PHP web application using the following techniques in the past 2 months:

  • PHP 5.3.4
  • MongoDB
  • MySql

I just got my dedicated server running Ubuntu 10.4 LTS x64 with the following hardware:

  • 100Mbit networking speed
  • 120GB SSD
  • 16GB RAM @ 1600 MHZ
  • AMD FX 6100 6 core CPU @ 1400 MHZ each core (3600 MHz total)
  • Linux Kernel 2.6.33 (to support SSD trim)
  • Ubuntu 10.4 LTS x64

The static content for the web application is (uncompressed, unminified) 200kb total. The PHP web application required scalability, it can get a lot of traffic in the start.

Now I have a few questions:

  • What should I configure in terms of DDOS protection, I got no competitors, the project is underground and unknown, so what should I consider? What would help me with this since there are so many things around like use a Nginx mod or use Iptables? And how can I configure these?
  • How can I calculate the bandwidth, and how much traffic the server can handle?
Scott Pack
  • 14,937
  • There is no real protection against DDOS, disable keepalive, but the rest should be your hosters business.
  • Depends on the count of your visitors and your application (can't really give you an advice, just that you will see in production), the maximum traffic is about 31TB with an 100mbit (oneway) connection in theory ;)
  • – zaub3r3r Mar 08 '12 at 22:50
  • @zaub3r3r where do you base that 31TB off is that per month? what do you mean by oneway? and is there a way to test my server's network speed? – Mike Vercoelen Mar 08 '12 at 23:00
  • 100mbit = 12mb/sec and so on (for 30days on fullspeed thats ~31tb, but that's not the point and just a calculation), with oneway i mean that this is just the down traffic (from client side), for sure there will be some up traffic (from user to server, for example the requests). You can measure your network speed with some testfiles (just search for "server speedtest file"), of course this is not an accurate measurement, obviously you never will get an accurate one. – zaub3r3r Mar 08 '12 at 23:15