How to speed up - boot faster - loading of IP (startips)

sonny

New member
Joined
Jul 30, 2010
Messages
2
Hello Everyone,

I maintain several DirectAdmin systems and from time to time some users have many hundred IP bound to a server.
I see it takes a very long time for the server to boot up.

I did a test to see just how long it took for startips to run and it took almost 4 minutes for it to complete and this at the time only had 172 IP. :confused:

The system is a VMware hosted setup with:
VDS SETTINGS: 8G RAM 4 CPU
Latest DA. - CentOS 5.5

From console I did:

To remove all Sub-Interface IP:
service network restart

To add back Sub-Interface IP:
time service startips

This startips takes a very on long on bootup and from command-line, so throwing it in a "after booted up script" isn't a solution as it takes just as long.

Any pointers greatly appreciated.

Sonny
 
I believe, you can remove this script from boot quite painless, in a case, you manage adding all IPs with system scripts located in /etc/sysconfig/network-scripts.

Directadmin is using this script in order to give ability to manage IPs via it's interface on all supported OS's.

If you disable startips you'll need to login into SSH every time you add/remove/modify any IP.
 
Last edited:
I appreciate your post!

I understand one can use the "OS" way of doing things, but was wondering if anyone had come up with a "better" script or better "DirectAdmin" way of managing the IP system. Seems an unfair trade off, add them to the OS init for faster startup but then lose DirectAdmin manageability.

I can't be the only person this bothers - concerns? :confused:

Appreciate any other pointers you or others might have!

Thanks.
Sonny
 
Perhaps you are; we, for example, have high uptimes and don't restart our servers too often at all.

I just looked at the startips script and I don't see a way to make it more efficient.

I'm also not sure it will set up all those IP#s any faster if you use the OS scripts, but you might want to try that. If that's slow as well, then you at least know the issue isn't the script.

Jeff
 
Back
Top