Max Conections, Bandwith and Hardware?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
castrejonrex
-


Joined: 12 Sep 2004
Posts: 4

PostPosted: Sun Sep 12, 2004 10:30 pm    Post subject: Max Conections, Bandwith and Hardware? Reply with quote

Hello,

I've read some questions about maximum conections, but I still want to know how can we estimate the number according to CPU, Memory and speed conection. I know there are many people by there with more experience with servers and popular websites. I really have no idea about this.

1) For example, ¿How much Simultaneous conections can I have with a computer AthlonXP +2800, 1 GB RAM and ADSL 128 kbps (Upload) on WindowsXP?

2)With a computer like this ¿Can I run more than 1 website at the same time?

3)¿Can I work in my computer and at the same time use it as a server, without having an interruption in the server funtionality? (I mean, not High CPU Consuming)

4)¿How much CPU% and bandwith does a popular website needs at least? ¿How much visits or simultaneous conections are needed to consider a site as "popular"? I have a AthlonXP +2800. I know the answer depends on other factors, but I just want to have an idea. Aproximately, you can give an example with another procesor.

Well, I think that's enough by now.. =) Many thanks for your answers, I'll really appretiate this. I think these are things that many of us, using Aprelium for the first time and withouth too much experience about servers, have in mind... Thanks folks!!
Back to top View user's profile Send private message MSN Messenger
Foxified
-


Joined: 13 Apr 2004
Posts: 487
Location: Canada

PostPosted: Sun Sep 12, 2004 10:45 pm    Post subject: Reply with quote

if its a Html image site, it doesnt matter, you can have as much as you want.. its not system resource dependant too much,, but your connection will limit 16kb/seconds...



Quote:
* Basic personal home page - nothing special
* FTP file server - fast connection speed
* Streaming media - fast connection speed
* CGI scripts - fast CPU speed (like 400mhz+ is nice,)
* Active server pages - fast CPU speed( like 400mhz+ is nice,)
* Game server - fast connection speed & fast CPU speed


as for cpu, ull do fine, and ram!? like 10mbs ram MAX it will use..Im guessing, you could have 100 people on at one time, but your modem may limit it due to its speed being a bit slow, it all depends what your running, you can have alot of people.. but yea
so what are you wanting to run?



Quote:
The heart and soul of any type of server. The type of server you will need will be partially determined by what you plan on doing with your webserver. If your website is active with cgi, perl, asp, or php, then you need to place a bit more emphasis on CPU speed. If your server is going to be a game server, then you need a fast CPU and a fast Internet connection.

Here are a few guidelines on what you should concentrate on for each particular setup, but remember, it's fairly flexible.

* Basic personal home page - nothing special
* FTP file server - fast connection speed
* Streaming media - fast connection speed
* CGI scripts - fast CPU speed
* Active server pages - fast CPU speed
* Game server - fast connection speed & fast CPU speed

As you can see, different types of web pages have different needs. In general, it is good to make your webserver powerful and robust enough to handle a bit of everything.

The key to a good webserver is to make it STABLE! What good is a fast webserver if you need to reboot it every 3 days? You need a machine that you can leave on for months at a time (theoretically). Because of the reliability factor, many people buy computers from big companies like Dell and Gateway because they tend to use very basic Intel motherboards and CPUs with reference designs. These tend to be very stable machines. You can build your own machine yourself but make sure that you make it STABLE! This means avoiding overclocking, unproven drivers, and high temperatures.

Before we spec out a computer, remember that the bottleneck for your webserver will most likely NOT be your computer, but instead your DSL/Cable line. Most high-speed Internet lines are fast downstream, but pretty slow upstream. For example, my DSL line is rated at 768 Kbps downstream and 128 Kbps upstream. That means that people who are visiting this web page will be able to access things at about 2x the speed of a 56k modem. Although that sounds very bleak, remember that a DSL/Cable line has a much more stable connection than a modem so 128 Kbps on DSL is more like 3-4x faster than a 56k modem. Don't expect to make your webserver a huge file server for the world unless you shelled out some big bucks for a really fast DSL line. Even if you did, that still can't compare to a well connected professional web host.

CPU:
Although fairly popular, dual CPU's may be a bit of an overkill for a webserver at home. Okay, so your dualie crunches all the information the web user requests, but then it still has to get through that little old DSL/Cable line, which negates any speed gains. If you're just serving up plain html pages, you will not be able to tell the difference between a 486/66 and a Pentium III 933 MHz. Trust me, I've tried it. I know of several people who use 486-based computers for hosting their websites just fine. However, if your website has a bunch of dynamic material (perl, cgi, asp, php, and cold fusion), then the extra CPU speed certainly will help. Depending on how deep your pockets are, get a decent speed chip. AMD or Intel? Doesn't matter. I even have a Cyrix running a webserver over here.

Motherboard:
This is the component that will singly determine how stable your computer is. If your mobo sucks, your server will suck too. Please do not buy one of these generic $20 specials at the computer show. Get a motherboard from a reputable manufacturer like Asus, Abit, MSI, or Tyan. I must admit that you can't go wrong getting an Intel motherboard just for the sake of stability. The Intel boards are simply rock solid. If you're an AMD fan, the major companies also all have very stable boards. Once you get the motherboard, check the bios version and see if there are any flash updates for it. Don't get the latest bios, but instead, ask around on the web and see which revisions are the most stable. The latest doesn't mean greatest.

RAM:
How much memory does your server need? This actually depend more on your operating system than on what your webserver will be serving. Get the minimum amount needed to run your operating system decently. If you're using Windows 98, then 64 Megs will be just fine. If you're using any of the Windows 2000 OS's, then 128 will work great. People always say that more memory is better, but remember, the bottleneck is your DSL/cable connection which gives your server plenty of time to go to your hard disk to get the material that it wants. Really.

Hard disk:
With typical servers, you always hear that they need super fast SCSI hard disks and subsystems, but that's because in the old days, the network speed was faster than the hard disk was. In our situation, almost any modern hard disk will easily saturate our DSL/Cable line. So that means at 15,000 rpm SCSI drive really isn't necessary. A plain jane EIDE HD will be just fine. Even a (gasp) 5400rpm HD will be fine although 7200rpm are probably a better buy (price/performance). You should concentrate on the size of the hard disk and how much noise it makes. Remember, your server will be on 24 hours a day, and the constant humming of a hard disk could drive your crazy.

Another thing you might want to consider when designing the hard disk layout is whether or not you want to setup a RAID. RAID stands for "Redundant Array of Inexpensive Disks". The popular versions of RAID are: striping RAID 0, mirroring RAID 1, and mirroring + striping RAID 0+1. What I'm talking about is RAID 1, or mirroring. For RAID you need a special RAID controller and two hard drives that are identical in size and speed. In RAID 1, all the information on 1 drive is mirrored onto the other drive. In the unfortunate instance that one drive should fail, the other drive will still have all the information. This may be crucial if your webserver also acts as a file server or as a backup server. A RAID setup isn't all that expensive these days and think of the peace of mind such a setup would provide!

Network card:
Preferably a PCI card in order to minimize CPU utilization and one that has good driver support in your Operating System. Which is the best brand? We wondered the same thing so we did some tests and came up with some interesting answers. Check it out: Network Adapter Testing.

Video card:
If your webserver will only act as a webserver and nobody will be using it, then get a cheapo video card for $10. If somebody is going to use the computer, get a card with decent image quality. Don't get a card that plays games really well since you don't want anybody to bog down your webserver by fragging away in Unreal Tournament.

UPS:
AKA - uninterruptible power supply. You probably want to get on for those pesky brown outs or short blackouts. The things you should have connected to the UPS are your webserver, router, and DSL/Cable modem. Basically anything between the server and the wire coming out of the wall. It doesn't need to be a super huge UPS, because if you have a sustained blackout, you're website is going down no matter what.

The rest of your computer is up to you. A rule is that the part can be cheapo if nobody is using the webserver as a workstation, a slightly nicer part if somebody will be using the webserver as a workstation. But make sure the part is stable and reliable. One bad peripheral or driver is all it takes to crash your server.

Noise:
The thing that many people forget when they build a webserver is the fact that your computer will be left on 24 hours a day, 7 days a week, etc. This means that the noise of the server will NOT go away when you go to sleep. Maybe this doesn't matter to you because the webserver is located in another room, but if the computer is located where you sleep, or if you're sensitive to noise, or if you just want to cut down your electricity bill, you might want to try some of these noise/energy saving tips.

Disclaimer: DSL/Cable Webserver is not responsible for any injury or harm caused by the following modifications. Remember, so of these tips may work for you or they may cause serious damage/injury/bodily harm/horror. Make sure your server is safe before you leave the server unattended for any period of time. Fire Fire Fire.

1. See if your CPU can be run with a heatsink without a fan. I know it sounds crazy, but depending on the size of your heatsink, you might not have to use a fan. This is done all the time in Dell computers. They slap on a huge heatsink and forgo the fan. It doesn't get quieter than a bare heatsink. The bigger the heatsink, the better. You may have to spend a little more cash to get a larger, more efficient heatsink, but it's worth it. After you decide to go fanless, run some type of program to stress your CPU for several hours to check if the computer crashes or if the heatsink gets too hot. My CPU is barely warm to the touch even under full load.

2. If your power supply is of moderate power (200-250 watts), you may be able to get with rewiring your power supply fan to run at 5 volts instead of 12 volts. At 5 volts, the fan will turn slower and in the process generate less noise. Conversely, it also is less efficient at cooling your power supply so it could possibly overheat. My advice is to try it out and see if the power supply gets too hot. You can accomplish this by opening your power supply, cutting the wires to the fan. Outside of the power supply, take a free power connector (not the one to your motherboard and you see 4 wires. The yellow wire and the black ground wire next to it are 12 volts. The red wire and the black ground wire next to it are 5 volts. You can spliced the fan wire to the 5 volt yellow wire and adjacent ground wire. Make sure there are no exposed wires anywhere along your splices. Use electrical tape or heat shrink tubing to cover any exposed areas.

3. Use this adapter to lower the voltages of some of your fans. How to make a 5 volt and 7 volt wiring adapter out of a Molex Y adapter

Once again, be very careful with these modifications. If your computer has a lot of components drawing a lot of electricity, the power supply modification probably shouldn't be done, but use good sense in any case.

If these mods work right, your server will NOT run at high temps, the CPU will run moderately warm, and it will be safe. If these mods don't work, you should reverse them right away.

My server currently has both mods and it runs cool as a cucumber. I just have the power supply fan running at 5 volts, which is barely audible at night.

KVM - Keyboard, Video, Mouse
Okay, so now you got you webserver up and running, but what do you do if you have a dedicated webserver and another workstation? Do you need to buy two monitors, keyboards, and mice? The answer is no. Having two of everything is expensive, not to mention takes up too much space. The answer is a KVM switch.

KVM stands for "Keyboard, Video, Mouse". It is a device that allows you to connect two computers to one keyboard, monitor, and mouse. By pressing a button on the KVM, you can switch between the two computers. Some models have a Hot Key combination on the keyboard that does the switch. On my Linksys KVM kit, I hit the "Control" button twice really quick to switch between my server and my workstation.

You may have seen other solutions like those boxes that have a turn knob that says "A" and "B" which will do the same thing, but STAY AWAY from those boxes. Those boxes are mechanical units that may introduce electrical shock into your components. They're really cheap because they have no electronics or intelligence to protect your equipment.

The electronic KVM's all are able to "buffer" the transfer from one computer to the other so that there is no damage to your computers. Also, these electronic KVM's can remember the settings of each computer so that your computer or operating system won't suddenly hang or crash because it thinks the keyboard, monitor, and mouse have been detached (a problem with the mechanical switch boxes).

Even if you did have a second monitor, keyboard, and mouse to use with your server, they are probably not as good quality as your main workstation computer and it's nice to be able to sit in one place and can control your empire. A downside is that you can't see both computers at the same time.

KVM's come in many different configurations. They range from being able to control 2 computers to about 10 computers.

What to look for: Try to buy a KVM kit instead of purchasing the cables and box separately. This way you'll save money and also make sure all the equipment works correctly. Also look for kits that have high quality cables. Don't skimp here. You're introducing another device between your video card and monitor which can degrade your image quality if the cables aren't shielded and of the proper gauge.

I love my KVM and don't know what I'd do without it. It was e
xpensive - about $80, but it's totally worth it.


source:
http://dslwebserver.com/main/server-hardware.html

ultimatly, as long as your server isnt to crazy image filled, large file sizes, ull be fine.
_________________
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
senshi
-


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Sun Sep 12, 2004 11:57 pm    Post subject: Reply with quote

if your hosting from home, your going to need a connection thats got more upstream bandwidth or a symetrical connection at the very least. Most home connections only give high downstream bandwidths and upstream usuall 50% of the downstream total, in my case, my ISP is a tight fisted git (part owned by mr billy gates) and upstream is 25% of the downstream bandwidth.

So you need to be worrying more about what bandwidth you have out of your server than the capacity of the server. Without good bandwidth, your going to find that when your system is busy, you can appear to be down when all it is down to is congestion, too much incioming and not enough out going.
Back to top View user's profile Send private message
castrejonrex
-


Joined: 12 Sep 2004
Posts: 4

PostPosted: Mon Sep 13, 2004 8:06 am    Post subject: Thanks!! Reply with quote

Foxfied and Senshi,

Many thanks, I think these are very complete answers. Now I have an idea about how much resources I need. Basically I'm thinking about a site with pictures and databases. I'll use MySQL 4.1, PHP 5 and Aprelium. For SMTP I'm trying PostCast Server. And DirectUpdate to update my domain DNS. As I read, the main limitation is the bandwith, so first I must have the website online in order to experiment how much people visit the site.
Back to top View user's profile Send private message MSN Messenger
senshi
-


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Mon Sep 13, 2004 2:01 pm    Post subject: Reply with quote

Have you any idea on what amount of traffic you will be getting?
Back to top View user's profile Send private message
castrejonrex
-


Joined: 12 Sep 2004
Posts: 4

PostPosted: Mon Sep 13, 2004 7:54 pm    Post subject: How much people will visit the site? Reply with quote

Well, it depends, but probably in the begining about 300 will visit the site in one week. What I don' know is how many will do it at the same time. It will be a site for our schooll mates, so I expect them to change data, search for others mates data and see some photos.

It's an interesting problem, because supose I send an email on Monday. Many of them work, others don't see their mails everyday, others won't be even interested into visit the site, many of the mails I'll send won't arrive because have changed or something... So I won't have 500 at the same time. Being very optimistic, I expect 300 in one week.

So it could be 20 at one time, other times only 1. I also would like to build other projects and host them. The main point about this, is that I can control the server, install anything and however, it's something experimental, so no one will kill me if something goes wrong. In fact I have other ideas for my server, but they depends on how much traffic I have.

Now that you're asking, you made me think about other questions. I hope someone can help:

1) Consider that more than one people is querying MySQL database at the same time. Considering the previous answer, capacity depends on procesor and bandwith. But talking about a query of a database with names, telephones, emails and photos. How much people do you think with a 128 kbps upload DSL, AntlonXP +2800 1 GB RAM, could do it at the same time?

2)Is there a limit about this in Aprelium, MySQL or PHP?

3)If the limit exist and that limit is reached. What does the visitor will see in his browser? a "MySQL ERROR" or just won't find the server online?

4)If I don't have MySQL, but imagine Aprelium reaches the limit of conections. What will the visitor that is out of that limit will see? An "404 ERROR", "DNS ERROR" or just nothing??

Well, I know this is a little complex because also depends on many factors, like size of the pictures, complexity of the database, traffic, etc.. But just a clue about this will be helpful.
Back to top View user's profile Send private message MSN Messenger
Foxified
-


Joined: 13 Apr 2004
Posts: 487
Location: Canada

PostPosted: Mon Sep 13, 2004 8:56 pm    Post subject: Reply with quote

no limits, think it like this, they wont be requesting the data all the time while theyre viewing ur site, like, theyre going to be looking at the content, while other people will load the data, so itll be easier.

Aprelium has no limits, only limits are the limits of your connection.My sql, can have thousands to hundreds of thousands of connections.

if they request at same time, the php will excecute the code one at a time, but usually, for you in 0.07seconds, so dont worry.. about that, you have a good cpu, its the connection that may be a problem, if your really worried, consider a co-location, like, host mysql off someone elses comp, or something,

just dont use BMP files.. those are killer sizes, use reduced jpg, or gif.. if your really worried, consider asking a friend, or getting somewhere off site to handle extra connections if your to congestion.

mysql, will just slow down alot if it has problems, it usually doesnt..

Mind showing us the site? so we can critique the speed, etc. and give you greater support?
_________________
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
castrejonrex
-


Joined: 12 Sep 2004
Posts: 4

PostPosted: Tue Sep 14, 2004 2:53 am    Post subject: Thanks! Reply with quote

Well, that would be very nice. Thanks. As soon as I have everything working I'll do it. By now, I'm fighting against MySQL, because it doesn't work. When I start the Server it automatically stops. I've recently upgraded to WindowsXP Service Pack 2, maybe is the SP2, the firewall or something. I'm trying to guess what. Maybe you can help me with this, but I'll open another topic since it's a different thing. Many thanks for your help.
Back to top View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group