PDA

View Full Version : Can only make 19,474 forums


davio33
03-04-2012, 05:07 AM
So it looks like i can only make 19,474 forum before the poop hits the fan.

When i get to this point the table row will be created, the it never shows in the forum manager or on the site

The _forum table with this many forums is about 4.5mib

I am on a dedicated server with 2 gb rams

Any suggestions on what is causing this?

DivisionByZero
03-04-2012, 05:28 AM
you do realize that all of those forums, their permissions and access masks are read and session stored on each page load, right? you're asking for one slow site =\

Lynne
03-04-2012, 04:37 PM
I would strongly, strongly, STRONGLY suggest you not have that many forums. Can you imagine going to a site with that many forums and trying to figure out where to post?!?! Honestly, that is just really not a good idea. Did I strongly recommend against this yet?

You should really look into thread prefixes. Most likely you can do what you want by using them.

Trevor Hannant
03-04-2012, 04:37 PM
Have to ask, why would you want so many forums? And are you hoping that users will be able to find their way round and post in the correct forum every time?!

BirdOPrey5
03-04-2012, 04:42 PM
I'm curious what this ~20k forum site look like. :eek:

Amaury
03-04-2012, 04:54 PM
I'm curious what this ~20k forum site look like. :eek:

I am, too. Please give us a link.

egysc
03-04-2012, 05:01 PM
whatever the number of created forums , What would be the solution for such problem ? any ideas ?
I'm just need to know in case I needed some thing like that ,
Sorry for interruption .

Mark.B
03-04-2012, 05:05 PM
whatever the number of created forums , What would be the solution for such problem ? any ideas ?
I'm just need to know in case I needed some thing like that ,
Sorry for interruption .
In case you needed 20,000 forums??

BirdOPrey5
03-04-2012, 07:30 PM
What are your PHP Memory Limit and MySQL Packet Size settings?

davio33
03-04-2012, 07:40 PM
I would strongly, strongly, STRONGLY suggest you not have that many forums. Can you imagine going to a site with that many forums and trying to figure out where to post?!?! Honestly, that is just really not a good idea. Did I strongly recommend against this yet?

You should really look into thread prefixes. Most likely you can do what you want by using them.

You don't think vbulletin can scale to that size?

The site is an internal site for a large corporation. I cant go into to much detail, but it will be closed to the public, and each department is assigned, and given a link to a specific forum. Individual forums is the only solution for there needs. They need the features that are available in a VB post/thread, unlike whats available in say wordpress/joomla/wiki/facebook-reddit like script.

I figure vbulletin is the most stable and capable forum to pull it off, at least i hope.

Does vbulletin have limitations on the amount of forums it can do?

The table size, and rows, if you compare that to a large forums _thread / _post tables is actually very small. So im just trying to figure out what is going on here.

--------------- Added 1330893762 at 1330893762 ---------------

What are your PHP Memory Limit and MySQL Packet Size settings?

120 and 32..thanks for your reply

BirdOPrey5
03-04-2012, 08:03 PM
Those should be fine...

in Settings -> Admin Control Panel Options -> Forum Manager Display are you set to "Single" ? You should be with that many forums.

There is no hard limit built into vbulletin just practical limits with php/memory/queries.

DivisionByZero
03-04-2012, 08:21 PM
My few sites run on a server with a 3.2GHz Quad Core Xeon E3-1230 CPU on 32GB ram. I just tried to do what you're doing and I started noticing a serious decrease in performance around 2,500 empty top-level forums.

You could probably pull this off, but you'd have to have some serious hardware. If these are for different departments, could you split them up into different vbulletin installations altogether?

Zachery
03-04-2012, 08:25 PM
vBulletin ends up hitting hardware/software limitations. There are no imposed limitations to the vBulletin software. Designs issues however can keep the site from growing. To date you will have the largest known number of forums. I think our previous king was around 2000~ and even for them it was not pretty.

I would advise installing APC/xcache/etc and moving the vBulletin datastore into it.
Increase the php memory limit to 256, mysql max_packet_size should be fine.

Just for the idea of why it slows down/doesn't work well.

Each forum has to store a set of permissions for itself (global to that forum) and all of the usergroups permissions (8) by default on the forumhome load.

So 19,474 forums times 9 (sets of permissions) is a lot of data to store. This assumes you don't have custom uergroups outside of the default ones.

Its just a lot of data to process.

BirdOPrey5
03-04-2012, 08:37 PM
Zach,

Since he's running a private forum it's conceivable he will never need some usergroups like coppa, moderated, banned.. do you think any good would come from deleting unused groups?

DivisionByZero
03-04-2012, 10:57 PM
Also, davio33, if this is on a server by itself, have you reconfigured MySQL with a "huge" configuration, such as copying /usr/share/mysql/my-huge.cnf to /etc/my.cnf to boost its performance?

davio33
03-05-2012, 09:58 PM
Thank you for the replys.


Each forum has to store a set of permissions for itself (global to that forum) and all of the usergroups permissions (8) by default on the forumhome load.

Is there a way around this, so i guess maybe so it isnt checking permissions per forum?

You said "by defualt on the forumhome load" does this mean the permissions are asked only on forum home?

do you think any good would come from deleting unused groups?

This is a good idea. I see were i can delete additional groups, but not the defualt groups. I really dont need, users awaiting confirmation/moderated users/ banned users...of course, without these groups, would the software still try to place these users

such as copying /usr/share/mysql/my-huge.cnf to /etc/my.cnf to boost its performance?

This is a little above me. my.cnf is looking good, but im not sure what you mean by copying it. I tryed googling it, but need more to go on. thanks for your input

I would advise installing APC/xcache/etc and moving the vBulletin datastore into it.
Increase the php memory limit to 256, mysql max_packet_size should be fine.

Thank you, will increase limit and instal xchache

in Settings -> Admin Control Panel Options -> Forum Manager Display are you set to "Single" ? You should be with that many forums.

whoa! 7 years with vb and i never noticed that. Finally I dont have to wait for the forum manager to load...:)

DivisionByZero
03-05-2012, 10:02 PM
There's a few different sample mySQL configuration files in /usr/share/mysql for different levels of performance. Pick one that suits you and use that one to boost performance.

Zachery
03-05-2012, 11:02 PM
Well, there is no easy way to disable permissions checking on the forumhome. I actually think a lot of hat data is loaded onto every pageview, since it is in the datastore and we keep that data available to every script in the software.

Simon Lloyd
03-05-2012, 11:33 PM
As an added i suggest you don't add a single add on or mod, turn off any guest permissions and the who's online, are you going to set that many usergroups for that many forums?

Also make sure you dont have two lots of gzip running, if its running on your server then you dont need it turned on in your forum, i had issues early days with my forum being slow to load or sometimes hanging and that was the culprit.

Try to use css wherever you can for your styling including turning that on in the vboptions. Any extra JS you use should load with the footer and any extra css files should load with the header, should help speed things up a little.

What a nightmare to set up and admin!

Chris8
03-05-2012, 11:49 PM
Interesting, I was once wondering if vBulletin is able to handle like 200 subforums, now I got the answer, it can handle even 20 000... wow, cool stuff.
Oh 20 000 forums and each for one department? And this all on only 2 GB ram machine? I would definitely look toward some more advanced solutions, clustering, grid, cloud.
BTW have you tried vbulletin 3.8 as well? It has much better performance than 4.0+ but it depends on what you need...

Zachery
03-08-2012, 08:58 PM
Interesting, I was once wondering if vBulletin is able to handle like 200 subforums, now I got the answer, it can handle even 20 000... wow, cool stuff.
Oh 20 000 forums and each for one department? And this all on only 2 GB ram machine? I would definitely look toward some more advanced solutions, clustering, grid, cloud.
BTW have you tried vbulletin 3.8 as well? It has much better performance than 4.0+ but it depends on what you need...
Not really, and not in this case. vBulletin 4.x forum is better if not the same for the actual forum software. The CMS is a different story, there is no vb3 cms so its not comparable. But yes, the vb4 cms does use more resources.

The vB3 forum and vb4 forum, permissions/etc are actually nearly the same when it comes to resources and how things are loaded.

It was actually easier IIRC in vB2 to have lots of forums and usergroups. But it didn't scale well in other areas.