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 11-07-2008, 04:13 PM
shalsaid shalsaid is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Large Installation

Hello

we have a vbulletin installation that gets about 1.5 million pageviews per day

we use one apache server and two db servers one master (8 cpus 16G RAM)and the other is slave (8 CPUs 16 G RAM)

we use mysql 5

we use this confogration
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = 'x.y.z.a';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = 'xxxxxxx';
$config['SlaveServer']['password'] = 'yyyyyyy';
$config['SlaveServer']['usepconnect'] = 0;

we have a problem that there is lag between the master and slave and sometimes locks on peak hours, which cause the server to be down

how can we scale the DB? if we use another slave i belive the locks will be worse since master need to synch two slaves.

I read that some people use memcache we installed a memcache server and configured the forum to connect to it
// ****** DATASTORE CACHE CONFIGURATION *****
// Here you can configure different methods for caching datastore items.
// vB_Datastore_Filecache - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
// vB_Datastore_Memcached - for using a Memcache server
// It is also necessary to specify the hostname or IP address and the port the server is listening on
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$config['Misc']['memcacheserver'] = '10.0.0.1';
$config['Misc']['memcacheport'] = '11211';

we noticed that it just conume 60M of memcache only. how can we store more data in the datastore? can we store other stuff in the memcache

since i read that somepeople have two server of memcache. so there is a way to cahce more data

your help is appreciated

thanks
shadi
Reply With Quote
  #2  
Old 11-07-2008, 04:20 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are aware that vbulletin only dumps off the search to the slave correct?

Have you tried using sphinx search to cut down on the search resource requirement?

You didnt provide to much data about how many posts etc are on the site, online users, how many searches are going on etc.
Reply With Quote
  #3  
Old 11-07-2008, 04:36 PM
shalsaid shalsaid is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for quick reply
we have about 20000 online users at peak

18 million post

we used sphinx, But alot of users complain about wrong search results, since out forum is non english forum

we Intel(R) Xeon(R) CPU 2.13GHz 4 cpus and 8 G RAM on master and same specs for slave.

now we removed the sphnix
Reply With Quote
  #4  
Old 11-07-2008, 04:49 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, without knowing all the specs of how every thing is already setup, i can only suggest that you check customizing vbulletin, there are a couple firms doing custom work in redesigning vbulletin and a few of its functions.

I forget the link, but there is a thread or two at vbulletin.com talking about it.

Im sure you have things like xcache running, an optimized my.cnf etc...
Reply With Quote
  #5  
Old 11-07-2008, 05:17 PM
shalsaid shalsaid is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes we use xcache on apache, as i told you the apache is ok
please find the info attached
Attached Files
File Type: txt slave-variables.txt (22.2 KB, 7 views)
File Type: txt master-variables.txt (22.2 KB, 7 views)
File Type: txt iostat-Master-Slave.txt (805 Bytes, 2 views)
File Type: txt Master-conf.txt (1.9 KB, 3 views)
File Type: txt salve-conf.txt (2.1 KB, 2 views)
File Type: txt master-top.txt (6.6 KB, 1 views)
File Type: txt Master-CPU-RAM.txt (3.9 KB, 4 views)
File Type: txt slave-top.txt (6.6 KB, 2 views)
File Type: txt Slave-CPU-RAM.txt (3.9 KB, 5 views)
Reply With Quote
  #6  
Old 11-07-2008, 05:30 PM
shalsaid shalsaid is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about memcache? how can we increase the data stored in it to reduce the hits on DB?
Reply With Quote
  #7  
Old 11-07-2008, 06:28 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are no other default options in vbulletin to store other data, that would be custom as well.
Reply With Quote
  #8  
Old 11-08-2008, 03:55 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The database settings are very well tuned and would say they are not a direct cause of locking up. Some vBulletin settings may make the difference, such as similar threads search, viewing users in forums and discussions, immediate view / visit update, some of the scheduled tasks, and of course some vBulletin products/plugins.

The largest board I've been looking after was 12 million posts, and reducing the extra features down to the bone helped to increase the speed noticeably, which also has a positive side effect on database operations. However that server had only a single master database, so I can't tell...
Reply With Quote
  #9  
Old 11-08-2008, 07:00 PM
shalsaid shalsaid is offline
 
Join Date: Aug 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Giovanni

so what do you suggest? what should we do?

have two masters and two slaves would solve the problem?

what settings should we change?

i read some one has two servers for memcache, how can i store more data in memcache?

thanks
Reply With Quote
  #10  
Old 11-09-2008, 12:33 AM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If possible I'd use as less database servers as possible and rather would try to get a true beast with best performance. For example, a large RAM or Solid State disk for temporary tables and eAccelerator data storage would push the time critical procedures wide over the top, and because they are clean after booting, they never get too filled. You also could use a Solid State disk for the operating system and just a SATA storage disk for the data. The large Solid State disks are still very expensive, so I don't believe they would be a good investment right now.

For power servers the number of processors is not so much a question, but L1, L2 cache and RAM sizes are, and also the FSB (Front-side Bus) speed. Also the processors should not be overclocked and have a good speed margin. This particular avoids overheating and shutting down unadvertedly.

Also the networking should be as fast as possible, 1000 MBits LAN should be the one. Since a LAN is only as fast as the slowest link, make sure your servers are connected by high speed and eventually have a second network card to connect to the provider, if they run at 100 MBit or less.

If possible load your operating system fully into memory and disallow disk swapping for the Kernel. Disk swapping can make all operation very slow, and may happen at any moment, often at the very wrong time. It happens, when the system is already low on memory and if it swaps the database or other essential services on disk, the system seems to hang, although it isn't, it is just executing very, very slow. However if your temporary space is on RAM / Solid State disks, this problem is much less evident, because it still runs in fast memory.

Finally, the disk size and daily disk maintenance is essential. If your disks are constantly or daily defragmented, and the used space is about 10% of the total disk space, you boost your overall performance, because new entries can be stored without searching a free slot. Defragmenting on the other side boosts the read time, because data can be read in one block.

Last not least, check the best way how to format the data disks. If the interleave is wrong, it may take more time to read and write data. Also make sure not to connect optical (DVD/CD) drives on the same data bus as hard disks (critical to EIDE if used). Best would be not to have any optical or floppy drive mounted.

I think I haven't forgot anything, have a nice evening
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 01:24 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.04213 seconds
  • Memory Usage 2,283KB
  • Queries Executed 12 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete