PDA

View Full Version : MyDNS ? Why ?


bl4ckb1rd
16th February 2009, 06:05
One question only... why was mydns imported into ISPconfig 3, instead of bind like old versions ?

For example... this crapy program is taking way too much cpu usage by doing absolutely nothing. I didn't even put server online and it's already consuming 9% of CPU usage... Here is just an example:


top - 05:56:34 up 2 days, 8:38, 1 user, load average: 0.04, 0.06, 0.07
Tasks: 95 total, 2 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0%us, 6.9%sy, 0.0%ni, 90.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1035288k total, 951480k used, 83808k free, 148416k buffers
Swap: 6136312k total, 160k used, 6136152k free, 482920k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24024 nobody 15 0 5700 980 540 S 8.8 0.1 0:09.12 mydns

I wonder how this thing will perform when i put like 100+ pages on it... it'll go nuts probably. I dont think changing defacto best dns service as bind is good idea, but ok please tell your opinion please.

zcworld
16th February 2009, 07:42
not sure why
but here is what i think
due to the MyDNS use an SQL backend to handle the DNS recoards
and you can add / change them on the fly without needing to restart the DNS server

but its odd that mydns is runing at an high level on your system there
i use it for my DNS server on my network for privte DNS and access to outside my LAN DNS lookups
without a problem / any CPU being used


maybe restart the system

or do an install in VM and see how its goes
see if it is using less CPU

till
16th February 2009, 12:50
Seems to be a problem with your server only. We are using mydns on several heavy used dns servers and the load is very low.

falko
16th February 2009, 19:19
You can configure caching in the MyDNS configuration. That might decrease your load. Also, you can optimize MySQL (e.g. enable the query cache).

bl4ckb1rd
17th February 2009, 19:34
Well as i dont have any zone in mydns yet, nor i have port open for dns, this means the daemon is idling in background doing nothing. That's the thing. So enabling cache or mysql cache wouldn't really help out at all i think. But ok i'll wait till repositories of centos 5.2 bring new mydns port and i'll update it and see if that fixes the issue. Else it's just very unoptimized dns daemon i guess...

bl4ckb1rd
17th February 2009, 21:52
Oh yes and here is munin graph of cpu usage... before you can see there was all the time cpu usage by "system"... and after i turned off "mydns" (i'll probably use bind for now), you can see how much system usage dropped out. Almost to zero...

http://www.shrani.si/?3N/6H/PPPsIVa/localhost-cpu-day.png

Best regards.

Thanks for the replies though.

till
18th February 2009, 10:42
From a freshly installed ispconfig 3 server without load on the dns server:

ps aux | grep mydns
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
nobody 11622 0.0 0.0 4792 1328 ? Ss Feb15 0:00 /usr/local/sbin/mydns -b
nobody 11623 0.0 0.0 4956 1468 ? S Feb15 0:00 /usr/local/sbin/mydns -b
root 26214 0.0 0.0 1720 504 pts/0 R+ 08:41 0:00 grep mydn

bl4ckb1rd
18th February 2009, 16:01
what distro is this ?

till
18th February 2009, 19:47
Debian Lenny, latest released mydns-ng version.

sefs
23rd March 2009, 09:58
Same problem here ... MyDns is stuck at 94% CPU usage. What could this be.

till
23rd March 2009, 11:20
Which mydns version?

sefs
23rd March 2009, 16:24
mydns-1.2.8.15.tar.gz

I was following the install txt file in the ispconfig distro.

I just went though and see they have realeased up to...mydns-1.2.8.26.tar.gz.

I note though that ispconfig install was done after the installation of mydns which means it is possible that isconfig did some configuration and setup of mydns after it was installed?

If so how can I safely upgrade to the latest version there to see if that solves the issues, and still maintain the integration of mydns and the ispconfig panel.

Thanks.

till
23rd March 2009, 16:30
Please upadte to the latest mydns-ng version:

https://sourceforge.net/projects/mydns-ng

sefs
23rd March 2009, 16:32
Please upadte to the latest mydns-ng version:

https://sourceforge.net/projects/mydns-ng

Can you see my question above before I attempt this. I will do the install the same way as i did the first install for mydns? That's all? I dont have to worry about doing anything fancy to maintain its integration with isconfig?

sefs
23rd March 2009, 22:35
I've upgrade MyDns to .26 ... still the same problem...it starts off good then after a while it shoots up and maintins 90+ cpu usuage until i stop the dns service. Which leads to system state going back to normal.

How widely has this been beta tested and will there be a deluge or bug reports when this comes out of rc and is more widely used.

Its a fresh install of ubuntu 8.04 + ispconfig 3.0.0.9 rc2


Is there a way to uninstall safely and integrate bind into ispconfig? Some help is needed here if possible.

till
23rd March 2009, 22:40
How widely has this been beta tested and will there be a deluge or bug reports when this comes out of rc and is more widely used.

More then 10 000 installations and I use it also in production on a few of my own servers without any problem.

sefs
23rd March 2009, 22:42
More then 10 000 installations and I use it also in production on a few of my own servers without any problem.


Is there a way to replace it with bind. will it mess up my ispconfig install.

Will i be still able to use dns wizard with bind?

till
23rd March 2009, 22:53
Bind is not supported by ISPconfig 3. As mydns works fine in thousands of installations there must be a problem with your specific install.

sefs
23rd March 2009, 23:25
Bind is not supported by ISPconfig 3. As mydns works fine in thousands of installations there must be a problem with your specific install.
I was looking at this page http://www.howtoforge.com/installing-mydns-mydnsconfig-centos-5.1-p2

And saw this...

Finally, we need to fix the system startup links for MyDNS. MyDNS depends on MySQL, so MyDNS must start after MySQL has started, otherwise it will fail. The default startup links for MyDNS make it start before MySQL which is wrong, so we fix this as follows:

cd /etc/rc.d/rc3.d
mv S52mydns S99mydns
cd /etc/rc.d/rc4.d
mv S52mydns S99mydns
cd /etc/rc.d/rc5.d
mv S52mydns S99mydns

MySQL uses the startup links S64mysql, so renaming the MyDNS startup links from S52mydns to S99mydns makes sure that MyDNS starts after MySQL.


I looked into my rc* directories and saw that rc0.d. rc1.d and rc6.d has mydns coming before mysql (which i guess means it starts before mysql?)
BUT in rc2.d to rc2.5 it starts very close after.

Do you think this could be a problem....I am not to sure how to address rc0, rc1 and rc6 as the guy above talks only about rc3, rc4 and rc5.

What do your rc* folder arrangement looks like.

Would rc0,1,6 cause a problem with mydns comming before mysql and if so what should i do in my context.

Thanks...listing of my rc* directories below



#### mydns starts before mysql
rc0.d:
K01gdm K20clamav-daemon K20mydns K22mysql-ndb README
K01usplash K20clamav-freshclam K20postfix K23mysql-ndb-mgm S15wpa-ifupdown
K08vmware-tools K20courier-authdaemon K20pure-ftpd-mysql K25hwclock.sh S20sendsigs
K09apache2 K20courier-imap K20saslauthd K50alsa-utils S30urandom
K16dhcdbd K20courier-imap-ssl K20xinetd K59mountoverflowtmp S31umountnfs.sh
K19samba K20courier-pop K21amavis K79quotarpc S40umountfs
K20apport K20courier-pop-ssl K21mysql K85quota S60umountroot
K20avahi-daemon K20denyhosts K21spamassassin K99laptop-mode S90halt


#### mydns starts before mysql
rc1.d:
K01gdm K20acpi-support K20courier-pop-ssl K21acpid K80cupsys
K01usplash K20apmd K20denyhosts K21amavis K84ssh
K09apache2 K20apport K20hotkey-setup K21mysql K88dbus
K11anacron K20avahi-daemon K20mydns K21spamassassin K89klogd
K11atd K20clamav-daemon K20postfix K22mysql-ndb K90sysklogd
K11cron K20clamav-freshclam K20powernowd K23mysql-ndb-mgm K99laptop-mode
K15pulseaudio K20courier-authdaemon K20pure-ftpd-mysql K23ntp K99policykit
K16dhcdbd K20courier-imap K20rsync K39ufw README
K16hal K20courier-imap-ssl K20saslauthd K74bluetooth S30killprocs
K19samba K20courier-pop K20xinetd K79quotarpc S90single


#### mydns starts just after mysql?
rc2.d:
K08vmware-tools S19amavis S20denyhosts S25bluetooth
README S19mysql S20hotkey-setup S25pulseaudio
S01policykit S19spamassassin S20mydns S30gdm
S05vbesave S19vmware-tools S20postfix S89anacron
S10acpid S20apmd S20powernowd S89atd
S10powernowd.early S20apport S20pure-ftpd-mysql S89cron
S10sysklogd S20clamav-daemon S20rsync S91apache2
S10xserver-xorg-input-wacom S20clamav-freshclam S20samba S98usplash
S11klogd S20courier-authdaemon S20saslauthd S99acpi-support
S12dbus S20courier-imap S20xinetd S99laptop-mode
S16ssh S20courier-imap-ssl S21quotarpc S99rc.local
S17mysql-ndb-mgm S20courier-pop S23ntp S99rmnologin
S18avahi-daemon S20courier-pop-ssl S24dhcdbd S99stop-readahead
S18mysql-ndb S20cupsys S24hal


#### mydns starts just after mysql?
rc3.d:
K08vmware-tools S19mysql S20hotkey-setup S25pulseaudio
README S19spamassassin S20mydns S30gdm
S01policykit S19vmware-tools S20postfix S89anacron
S05vbesave S20apmd S20powernowd S89atd
S10acpid S20apport S20pure-ftpd-mysql S89cron
S10sysklogd S20clamav-daemon S20rsync S91apache2
S10xserver-xorg-input-wacom S20clamav-freshclam S20samba S98usplash
S11klogd S20courier-authdaemon S20saslauthd S99acpi-support
S12dbus S20courier-imap S20xinetd S99laptop-mode
S16ssh S20courier-imap-ssl S21quotarpc S99rc.local
S17mysql-ndb-mgm S20courier-pop S23ntp S99rmnologin
S18avahi-daemon S20courier-pop-ssl S24dhcdbd
S18mysql-ndb S20cupsys S24hal
S19amavis S20denyhosts S25bluetooth

#### mydns starts just after mysql?
rc4.d:
README S19mysql S20hotkey-setup S25bluetooth
S01policykit S19spamassassin S20mydns S25pulseaudio
S05vbesave S20apmd S20postfix S30gdm
S10acpid S20apport S20powernowd S89anacron
S10sysklogd S20clamav-daemon S20pure-ftpd-mysql S89atd
S10xserver-xorg-input-wacom S20clamav-freshclam S20rsync S89cron
S11klogd S20courier-authdaemon S20samba S91apache2
S12dbus S20courier-imap S20saslauthd S98usplash
S16ssh S20courier-imap-ssl S20xinetd S99acpi-support
S17mysql-ndb-mgm S20courier-pop S21quotarpc S99laptop-mode
S18avahi-daemon S20courier-pop-ssl S23ntp S99rc.local
S18mysql-ndb S20cupsys S24dhcdbd S99rmnologin
S19amavis S20denyhosts S24hal


#### mydns starts just after mysql?
rc5.d:
K08vmware-tools S19mysql S20hotkey-setup S25pulseaudio
README S19spamassassin S20mydns S30gdm
S01policykit S19vmware-tools S20postfix S89anacron
S05vbesave S20apmd S20powernowd S89atd
S10acpid S20apport S20pure-ftpd-mysql S89cron
S10sysklogd S20clamav-daemon S20rsync S91apache2
S10xserver-xorg-input-wacom S20clamav-freshclam S20samba S98usplash
S11klogd S20courier-authdaemon S20saslauthd S99acpi-support
S12dbus S20courier-imap S20xinetd S99laptop-mode
S16ssh S20courier-imap-ssl S21quotarpc S99rc.local
S17mysql-ndb-mgm S20courier-pop S23ntp S99rmnologin
S18avahi-daemon S20courier-pop-ssl S24dhcdbd
S18mysql-ndb S20cupsys S24hal
S19amavis S20denyhosts S25bluetooth


#### mydns starts before mysql?
rc6.d:
K01gdm K20clamav-daemon K20mydns K22mysql-ndb README
K01usplash K20clamav-freshclam K20postfix K23mysql-ndb-mgm S15wpa-ifupdown
K08vmware-tools K20courier-authdaemon K20pure-ftpd-mysql K25hwclock.sh S20sendsigs
K09apache2 K20courier-imap K20saslauthd K50alsa-utils S30urandom
K16dhcdbd K20courier-imap-ssl K20xinetd K59mountoverflowtmp S31umountnfs.sh
K19samba K20courier-pop K21amavis K79quotarpc S40umountfs
K20apport K20courier-pop-ssl K21mysql K85quota S60umountroot
K20avahi-daemon K20denyhosts K21spamassassin K99laptop-mode S90reboot

till
23rd March 2009, 23:44
Do you use ubuntu or centos? Above you said that you use ubuntu and now you link to a centos installation.

sefs
23rd March 2009, 23:47
Do you use ubuntu or centos? Above you said that you use ubuntu and now you link to a centos installation.


Ubuntu 8.04

Polk
24th March 2009, 07:28
Anyway, why was MyDNS chosen? I have no problem use one or another. I'm just curious why MyDNS and not BIND?

Thanks

till
24th March 2009, 09:42
The bind version delivered with all major linux distributions does not have a mysql binding.

sefs
26th March 2009, 19:38
Can anyone who has mydns installed with ispconfig and is experiencing high cpu usage try this fix?

http://sourceforge.net/tracker/?func=detail&atid=1010042&aid=2707240&group_id=209520

Its a new version said to fix the problem maybe, but I dont have it installed anymore.

If not let me know so I can reinstall ispconfig + mydns again and do a test to see if it does fix the issue and report back.

sefs
4th April 2009, 03:23
To anyone experiencing the high CPU usage of mydns, it now appears to be fixed in package 1.2.8.27.