Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2008, 07:15 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Heavy Load on Site, Forcing Visitors to Register

Well lately I've been exceeding my shared hosting's CPU quota by having very many SQL queries. Obviously one thing I can do is try to get rid of extra mods, and try to optimize the queries.
Past couple of days I've been averaging 50-70 people on, and many times reaching high 90's during peak hours.

But for now I decided to force guests to register to see forum content. Now obviously this would limit search spiders for google and yahoo. Is there any way to allow just google to see the content and force the rest to register? Perhaps somehow using useragents?

Thank you in advance.
Reply With Quote
  #2  
Old 09-26-2008, 07:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at googles webmasters guides and see what they think of cloaking (which is what you are talking about doing):

Quote:
Cloaking: Serving different content to users than to Googlebot. This is a violation of our webmaster guidelines. If the file that Googlebot sees is not identical to the file that a typical user sees, then you're in a high-risk category. A program such as md5sum or diff can compute a hash to verify that two different files are identical.
You may find this article interesting when looking at your queries per page - How Many Queries on a New Installation
Reply With Quote
  #3  
Old 09-26-2008, 07:44 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a plugin or mod that will allow me to see how many hooks and queries are executed on each page load?
Reply With Quote
  #4  
Old 09-26-2008, 07:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have a test site, just enable debug mode by putting this somewhere between the first and last line in your config.php page:
PHP Code:
$config['Misc']['debug'] = true
There is also this hack which will tell you the number of queries and more:
Microstats - load times, server loads, queries, uncached templates
Reply With Quote
  #5  
Old 09-26-2008, 10:04 PM
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shared hosting isn't the best for an active forum. If you're running into this issue, you should look at getting a dedicated host.

I rented a single proc dual core Xeon from ThePlanet for $159/month. If you're at the point you need a dedicated host, then you can probably recoup a lot of that cost from ads. I was breaking even on ads until I had to upgrade my box because a single proc couldn't handle 400+ concurrent users.

In addition to Google's stance on cloaking, you can actually open a security vulnerability here. If someone spoofs their useragent string and you're not checking against IP addresses - they can access your site at whatever level you allow the spiders. I've had users try it on my board and I don't even use this method.
Reply With Quote
  #6  
Old 09-27-2008, 12:55 AM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem is that I cannot afford $100+ a month as my userbase isn't that big. I'm just going to have to cut down on some features.

I appreciate your help.
Reply With Quote
  #7  
Old 09-27-2008, 02:53 AM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ask for donations from your members. If you have a solid active user base people dont mind donating 10 bucks a month even setup subscriptions with bonus.
Reply With Quote
  #8  
Old 09-29-2008, 04:47 AM
azn_romeo_4u azn_romeo_4u is offline
 
Join Date: Feb 2006
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ummm....

for 50-70 people online you shouldn't even being getting anything close to a dedicated box. You probably aren't getting that throughout the day, and 50-70 isn't that much either.

Here's some simple tricks. Turn off...

1) Sigs for guest
2) Avators for guest
3) Other informational stuff (like post count, reputation etc)

You can move hosts, if you current host sucks. There's a ton of reputable hosts out there that can handle 50-70 users online. The host you are on, must suck IMO if it can't handle that.

If you really need to move up, I would go with a Virtual Private Server. A lot cheaper than getting a dedi box which you probably won't even need right now and probably don't even know how to use. Start out with the VPS. It's sorta like a dedi and it'll help you on your way once you actually need a Dedi.

http://www.webhostingtalk.com/forumdisplay.php?f=104

Checkout that site for some good deals.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:46 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.04029 seconds
  • Memory Usage 2,228KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete