vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   Does mysql connections include guests? (https://vborg.vbsupport.ru/showthread.php?t=169000)

Theoldwiz 01-28-2008 09:32 PM

Does mysql connections include guests?
 
Does max mysql connections include guests or just logged in users? I current have a plan that lets me have 25 and I need to know this.

Thanks!

unitedpunjab 01-28-2008 09:35 PM

Yes it includes guests and Spiders.

Adrian Schneider 01-28-2008 09:50 PM

Every visitor causes vBulletin to connect to the database, so yes.

Theoldwiz 01-28-2008 09:59 PM

Thats too bad, I cant find one shared plan that lets you get above this

Adrian Schneider 01-28-2008 10:02 PM

If you have more than one MySQL account, you can alter config.php to use a random one at run-time, so you get # of accounts * maximum connections per account.

Theoldwiz 01-28-2008 10:05 PM

Is that legal though?

Adrian Schneider 01-29-2008 12:09 AM

Should be... if you are paranoid you can check your terms of service.

But the limit is X connections per account, so if you use more than one account, you aren't breaking the limitation. :)

UberMensch 01-29-2008 12:53 AM

Plus the connections only count if 25 people were to click at exactly the same time.

It's simply a limitation of Shared hosting. I'm looking at getting a dedicated machine for my site.

Marco van Herwaarden 01-29-2008 05:41 AM

25 visitors does not mean that you have 25 open SQL connections. An SQL connection is opened when a script is called and will be closed again once the script has finished retrieving data and displaying it on a page.

This means that if 25 people would open a page each 5 seconds apart, then you will still have 25 users (with a 15 minute cookie timeout) but probably only 1 SQL connection at any time. On the other hand 1 user could be opening 30 pages at the same time and create 30 connections in this period.

Theoldwiz 01-29-2008 02:05 PM

Thanks for all the help with this, I finally understand what a Mysql connection is. :D


All times are GMT. The time now is 06:41 AM.

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.01005 seconds
  • Memory Usage 1,716KB
  • 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
  • (10)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