vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Limit # of searches possible at once (https://vborg.vbsupport.ru/showthread.php?t=35583)

Overgrow 03-02-2002 06:39 AM

Limit # of searches possible at once
 
Anyone with a large vB probably knows that excessive amounts of searches being run at once is a problem for database server speed. Often when my site hangs a bit, checking the open processes reveals 8 or 10 searches being run at the same time.

My thought is to write a search queueing routine that would only allow a certain # of searches to be run at once, sitewide. Not just limiting someone to 1 search every 10 seconds, but limiting all users to only having 3 or 5 searches open at once.

I've always wondered how vulnerable a large vB is to a DOS attack by people running numerous searches from numerous IPs. I know it probably wouldn't take many to put most sites to a halt.

So.... my question......... to other vB hackers.. think this is feasible?

-every time a new search is run via search.php it:

-inserts a listing into an "activesearchlog" saying that there is a new search being run
-cleans out all activesearchlogs that have been completed and put into the search table
-checks to make sure that there aren't too many searches being run already

If there are too many active searches it needs to somehow 'queue' up the user's search and give them a delay screen that would forward them in a few seconds to a new page that checks to see if the search is ready.

hmmmmmmmm

Neo 03-02-2002 08:34 AM

Heh, give me some time and I could put something like that together for you.... in my mind it seems easy to make....... but I guess I can also fly in my mind :stupid:

I will take a shot at it.

Neo 03-06-2002 10:28 AM

Here you go :china:

https://vborg.vbsupport.ru/showthrea...threadid=35777


All times are GMT. The time now is 07:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete