SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

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 Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 19th, 2003, 03:43 PM
X-Istence X-Istence is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 X-Istence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
djbdns and multiple IP's

As off currently, i am looking for a way to switch from bind to djbdns, from exim to qMail, but one thing that is holding me back is this:

I have 5 resellers on my box, and they all have 2 ips each for their own nameservers.

As i know DJBDNS needs one process per IP to be run, so this would mean that there are 5 x 2 = 10 processess running that are just for resellers, and then 2 more just for my main dns servers for shared hosting.

Wouldnt this be a little bit innefficient? Wouldnt it make it slower? Or is this a good thing?

The good thing i can see from it is that there are 5 different data files, meaning you can query the DNS server, but only get replies for the domains that, the reseller has.

Thats all i could see as being good, for the rest wouldnt it be resource wasting to have 10 different processes running instead of 2 that support all?

X-Istence

Reply With Quote
  #2  
Old October 19th, 2003, 03:48 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
Wouldnt this be a little bit innefficient? Wouldnt it make it slower? Or is this a good thing?

There's no real harm in this. Just make sure you have enough RAM spare; that way, your operating system will store the data.cdb files in memory if they're accessed frequently enough, thus eliminating the problem of having to answer DNS queries from 5 separate files on disk (if all your resellers had to constantly answer queries at the same time).
Quote:
The good thing i can see from it is that there are 5 different data files, meaning you can query the DNS server, but only get replies for the domains that, the reseller has.

Yep.
Quote:
Thats all i could see as being good, for the rest wouldnt it be resource wasting to have 10 different processes running instead of 2 that support all?

It depends on what kind of resources your server has (CPU, RAM, etc). It would be cleaner to have 10 processes rather than 2 with some kludgery to make it only answer queries for some domains based on other factors. Linux can support hundreds, maybe thousands, of processes without any problems, so you're not likely to run into issues here.

Use top, free and ps to measure resource usage on your system if you have performance problems.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old October 19th, 2003, 03:53 PM
X-Istence X-Istence is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 X-Istence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The target boxes are:

700 Mhz AMD Duron
256 MB Sdram
Running:
Apache, MySQL, qMail, and djbdns.
Low resource usage websites, with 2 resellers

2 Ghz
2 GB ram
Running:
Apache, MySQL, qMail, djbdns
High resource usage sites. This is the box with 5 resellers

2.4 Ghz dual pentium
4 GB ram
Apache, MySQL, PostGreSQL, qMail, and djbdns
High resource usage sites, with 10 resellers, and around 50 shared hosting sites.

Currently all these servers use BIND and Exim, taking Exim off the 2.4 Dual really helped the load, as it went down instantly. Ram usage was also less.

So do you think this would be okay?

Reply With Quote
  #4  
Old October 19th, 2003, 04:43 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
So do you think this would be okay?

The machine specifications are more than adequate, though it depends on the size of the data.cdb file and what else is competing for RAM on the machines as to whether the caching will be effective or not.

The best way to find out is just to monitor the boxes with top and sysstat; look for excessive (>75%) CPU usage, and disk I/O bottlenecks (using sysstat).

Depending on how much mail/HTTP traffic you handle, you can realise significant performance increases by mounting your log partition on a separate physical drive. This means that log files can be written at the same time as other files are read/written - else you may find that a lot of I/O is tied up writing log file entries (which will happen a lot on a busy system, since each HTTP request results in one log file line being written, and each mail message that is received and processed results in around 15 lines being written).

Reply With Quote
  #5  
Old October 19th, 2003, 05:06 PM
X-Istence X-Istence is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 X-Istence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Log files are allready being written to a different drive, just for that reason.

I monitored one box like you said, the one with the 10 resellers, load went down from when i was using bind.

Per reseller, there are about 10 - 15 accounts avg.

So far i am liking it, more resources are open for use on that box. And load is down.

Thanks alexgreg.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > djbdns and multiple IP's


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 6 hosted by Hostway