Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: Amzo on February 24, 2008, 10:00:57 AM

Title: Making bots causing services to lag
Post by: Amzo on February 24, 2008, 10:00:57 AM
I tried searching for 'bots lag' and 'bots make services lag' but i couldn't find anything. The problem is that when i add a bot to botserv, it cause the services to lag tremendously, and it takes about 2 minutes and longer to respond to commands, but when i delete the bots, it works fine. It adds qlines for the bot, but the bot won't automatically op its self when assigned to a channel. I tried searching google for answers but nothing seems to work.

I forgot to add, it causes my server to use all cpu usage with is using a 2.0ghz xeon processor, and chanserv floods with "this channel has been registered"

[Edited on 24-2-2008 by Amzo]
Title:
Post by: Jan Milants on February 24, 2008, 11:04:25 AM
sounds like a possible TS desync...
if you run unreal, check the TS on all servers with /tsctl alltime ,for other ircds, check the docs

you need to make sure the ircd has the same time as services. services time will be exactly the same as the box they run on whereas ircds may use an internal clock with an offset...
Title:
Post by: Amzo on February 24, 2008, 11:23:57 AM
It says that the servers are in sync.

"TStime=1203852015 time()=1203852015 TSoffset=0"

"is now synced [secs: 0 recv: 7.967 sent: 6.31]"

but the bots still causes services to lag, so i have to delete the bot.

It's actually when i assign the bot to a channel it starts to lag, but it's fine if i don't assign it.

[Edited on 24-2-2008 by Amzo]
Title:
Post by: katsklaw on February 24, 2008, 12:31:46 PM
Another possible reason is one or more servers do not have proper U:Lines or ulines block for services.
Title:
Post by: Amzo on February 24, 2008, 12:44:09 PM
My Ublock is

link            services.rebellion-chat.co.uk
{
        username        *;
        hostname        *;
        bind-ip         ip*;
        port            9966;
        hub             *;
        password-connect "password";
        password-receive "password";
 class servers;
options {
};
};

anope conf

RemoteServer    localhost 9966 "password"

ServerName  "services.rebellion-chat.co.uk"

ServerDesc  "Rebellion-chat services"

ServiceUser "services@rebellion-chat.co.uk"

the services run fine until i assign a bot to a channel.
Title:
Post by: Jan Milants on February 24, 2008, 01:53:15 PM
that is not a ublock.... that s a link block, not a uline block

ulines {
   services.xxx.net;
};
Title:
Post by: Amzo on February 24, 2008, 02:41:28 PM
I added the uline for services, but they keep crashing when i join them to a channel.

ulines {
        services.rebellion-chat.co.uk;
        defender.rebellion-chat.co.uk;
        stats.rebellion-chat.co.uk;
};


[Edited on 24-2-2008 by Amzo]
Title:
Post by: katsklaw on February 24, 2008, 03:22:38 PM
Services must be re-introduced to the network after all servers have the correct uline information. That means that after all servers have that block, Services needs to be restarted.
Title:
Post by: Amzo on February 24, 2008, 03:32:25 PM
YAY, it's working now. thanks alot for your time and help.