Linux.com

Home Learn Linux Linux Answers Clustering Help me to improve my system performance

Favorite Favorite

Help me to improve my system performance

Author:
Thang Pham Duy
Date added:
Wednesday, 24 June 2009
Last revised:
never
Hits:
2956
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Question Detail



Hi all,

I am administrating some Linux server. One server receive request, query the database, and then reply the location of some js file to clients. Another server stores these js file and serves clients when they request. Each file's size is about some kBs. Each second, the file server receive about 2000 - 4000 request. So the load of the file server is quite high.

I still have some unused server and I need a solution to improve my system.

Any ideas?

Category

Answers  

 
-1 #4 Kunal P.Bharati 2010-01-19 14:56 Loadbalancing will be good for your servers. Enable caching (memcachd). Use servers like lighttpd or nginx to serve static content. Also you can use content delivery networks (CDNs) which can serve static contents.
 
 
#3 Tom Anderson 2010-01-08 22:18 You might consider optimising the server so that it doesn't have to use CPU time to determine the correct js code. You can optimise the js code by removing whitespace and comments, which makes the files smaller.

Also you should reduce the number of requests that are coming in. If there are only a few users compared to the number of requests, then try to combine images/files together. If you're serving pages, put the javascript at the bottom of the pages so that they load last. That way the pages can load the important stuff faster.

Andrea's link to discussion is good if brief www.linux.com/community/groups/viewdiscussion/878-Need+a+good+solution?groupid=168
 
 
+1 #2 Tamas Csaba 2009-09-08 02:43 Hello,

Check it out the latest Apache: you can do loadbalancing in an easy/nice way.
 
 
#1 Andrea Benini 2009-07-02 17:55 Follow discussion on
http://linux.com/community/groups/viewdiscussion/878-Need+a+good+solution?groupid=168
 
Become an Individual Member

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Members / Staff / Board