This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

User requests for a script are in a stack

Old posts that have not been replied to for several years.
Locked
S
Spirit
Voice
Posts: 15
Joined: Sat Oct 11, 2003 5:57 am

User requests for a script are in a stack

Post by Spirit »

Hi @ll!

My tcl-script is working perfectly ..thanks for your help folks!
BUT the bot is just running it user after user.
Is it possible, that the bot is serving the results of the script to several user at the same time and not one by one?

Thx in advance!
it's not a bug - it's a feature!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

what script, what does it do ?

also sending lots of queries at the same time isn't a good idea.
S
Spirit
Voice
Posts: 15
Joined: Sat Oct 11, 2003 5:57 am

Post by Spirit »

The script connects to a php site, which returns couple of results from a mysql db. The bot shows those results then to the user, who started that query.
But the script is able to return a pretty long list and any other user requests are on hold, until the script is done with the current user.

It would be nice, when the bot is able to work with several user at the same time and not one by one.

I was already wondering why the bot takes so long to post any results. The help for this query is in a local file and it shouldn't take long to read the file and msg it to the user. But the bot takes about a second per line (way to long).
it's not a bug - it's a feature!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The reasons why information is spat out 1 line per second is to prevent it being flooded off.

If you have lots of information as you state, then thie queue feature is doing you a favour.

If you are getting large amounts of requests, IE, your getting 2 requests queued for every 1 fulfilled, then you need a second bot.

You would have to run some form of load balancing script, to state which bot should do the processing.

I did have some code that would perform load balancing, and it wouldn't take long to remake now that the theory and knowledge has been obtained.
S
Spirit
Voice
Posts: 15
Joined: Sat Oct 11, 2003 5:57 am

Post by Spirit »

Ok, that makes sense, that the bot doesn't want to be flooded off the server :wink:
I already thought about it to make a script, which builds its own queue and notifies every user, that he is on hold (may be with the queue number). This way, the user doesn't make any more requests, because he thinks the bot died (this would build up the bot-queue pretty good).

Is it possible to hold the process of one script as soon as a new requests comes in, adds the new request to the queue and returns to the other script? Otherwise i need a 2nd bot to do this, because of the process queue of the bot.
it's not a bug - it's a feature!
Locked