English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

I want to change JMS to use multiple databases...
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: I want to change JMS to use multiple databases...
#9515
I want to change JMS to use multiple databases... 12 Years, 9 Months ago Karma: 0
Hello, our configuration of JMS is set to use one database for all slave sites (and master). we have now problems to backup this because of the huge amount of tables... for only 15 sites. I wonder if it is possible to change this setting easily? we would like to use a database for each slave site or would you not prefer this because of some reason?

how many tables are possible in a database without having stability problems? or is this determined by the amount of visitors on our websites?
staeren
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/03/02 11:36 By staeren.
The administrator has disabled public write access.
 
#9525
Re: I want to change JMS to use multiple databases... 12 Years, 9 Months ago Karma: 54
You can change the way that the slave sites are created easily.
Just change the JMS template rule that you are using to add a rule concerning the DB name.

The problem of the backup and the number of tables in a DB is not related to the stability.
The problem of backup that you probably encounter is related to the number of files that MySQL can lock simultanously. This is a configuration of MySQL that you can ajust.

For us, the limitation should better analyzed in terms of performance and also in terms of the number of files that are created for a specific DB.

The number of files can be computed as the number of MySQL tables * 3.
So if a website requires 100 tables and that you have 15 websites, this mean that the DB uses 4500 files in the same directory on the disk.
This means that MySQL needs to lock 4500 files to perform the backup.

So if you have problem with the Backup, you should have a look on the number of MySQL tables that can be locked simultanously and find a tradeoff between the number of files in a same DB and the performance.

Personnaly, I try avoid have more than 15,000 files into the same directory.
The operating system can become slower when you have a very large number of files in a same directory.

If you have problem of locking to backup a DB, you can also add a parameter in the MySQL Dump to ignore the locking.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla