Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
IBM developerWorks
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old June 13th, 2006, 04:44 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
server file limits

I recently took on a project where the previous developer was also administering the server and didn't seem to be expert at either. The biggest problem is she was dynamicly creating a new subdirectory for each "member" who joined the site. She was also creating virtual host records to point a tld at the subdirectory. The problem is there are 9000+ members and growing. The file structure is giant and getting worse.

imagine a site called:
www.mywebstore.com and every single member had a directory called
www.mywebstore.com/userid
instead of using mod_rewrite to make the server see
www.mywebstore.com/userid as
www.mywebstore.com/index.php?id=userid
which would put the users into 9000 db records instead of 9000 directories. I'm very worried that the server performance is being seriously impacted by this situation and it's only going to get worse because they sell dozens of sites a day. This could easily be 50,000 directories in the next year.

does anyone know what the directory limitations are?

any ideas on what should be done?

right now the domains the users buy also point at the subdirectoy and I'm not entirely sure how to point them at the main page and have the server know the user id. I guess I could read the URL info and correlate that to the user in the db, but is there a problem with having 50,000 domain pointers?

Reply With Quote
  #2  
Old June 14th, 2006, 04:36 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 44 sec
Reputation Power: 4
RE: server file limits

Quote:
does anyone know what the directory limitations are?


If you mean what the actual limits concerning the filesystem are (meaning how many files and directories you can have), well, it depends on which filesystem you're running. According to Wikipedia, ext3 has the following:

Quote:
The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is the volume size in blocks, then the default number of inodes is given by V/213, and the minimum by V/223. The default was deemed sufficient for most applications.


On the other hand, if it's a Windows server and you're running NTFS, it has a fixed limit of 4,294,967,295 (or 2³² − 1) files.

If you meant how many directories you can have before the server slows down a lot, well, that's very difficult for me to answer.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > server file limits


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway