L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 02:15:12 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: Whois cache and out-of-bot managing of members lists
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Whois cache and out-of-bot managing of members lists  (Read 511 times)
0 Members and 1 Guest are viewing this topic.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Whois cache and out-of-bot managing of members lists
« on: December 01, 2005, 08:42:08 AM »

Coming back to our discussion in the bebot 0.3.0 thread Smiley

Quote from: "Khalem"
Just making a "mirror" of all the data isnt much good, youd use more resources than you save. It only makes sense if your making a character database like Auno.org, but not otherwise.

I went ahead and implemented my whois-cache. Here what I did and my current experiences with it.

I added a new module handling all whois queries, and modified all other modules doing get_site queries for character information to use the whois module. Then I added a script outside of the bots as cron job, updating the whois-cache once each day. First getting the org roster for all orgs in the cache, then getting the current information for all not yet updated characters. With now 25k entries the update took 9mins.
For the org member lists I did something similar - I moved the update of the rosters in a bot doing nothing but handling the members lists (updating them twice a day like now), and notifying the org bots I host if an update happened, so they can update their buddy list. Can't use a script here, as the members table needs the user ids, which are only available in-game.

Those two things together work extremely well, reducing any latency I had due to whois queries to almost zero (if you are in the cache once, you stay in it forever, so there is only once any lag for an http query per character). And it reduces the time the org bots lag due to the roster updates too.

I know that I'm not running any usual configuration, hosting 4 org bots and 3 raidbots, with at least one more raidbot to follow. And I'm running them all on an almost dedicated server (it's my file server too, but that load is quite low). But I have to say for me the work it took to implement this and the additional ressources needed (the bot handling the roster updates, and the cron job for the cache) are worth the won speed.
Logged
Akarah
BeBot Contributor
Rookie
*******
Offline Offline

Posts: 72


WWW
Whois cache and out-of-bot managing of members lists
« Reply #1 on: December 01, 2005, 09:32:40 AM »

i've updated the towerattack module again (for my own purposes mostly, just to change the way it displays a bit.. colorizing the attacker/defender names by side, instead of saying what the side is -- blue=omni,orange=clan,white=neutral Wink ), just haven't submitted my changes.. i'll try to merge my changes into yours if you plan to share the code  -- i'd definitely use this.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Whois cache and out-of-bot managing of members lists
« Reply #2 on: December 01, 2005, 09:47:45 AM »

Sure, I'll try to go around and post the relevant files later today.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: Whois cache and out-of-bot managing of members lists
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 20
Total: 21
xlDanek

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.255 seconds with 28 queries. (Pretty URLs adds 0.028s, 4q)
Loading...