In-Portal Issue Tracker - In-Portal CMS
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: |
576 | [In-Portal CMS] Database | feature request | always | 2010-02-08 18:40 | 2012-07-25 05:33 |
|
|||||
Reporter: | Dmitry | Platform: | |||
Assigned To: | alex | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 5.1.0 | ||
Product Build: | Resolution: | fixed | |||
ETA: | none | Fixed in Version: | 5.2.0-B1 | ||
Reference: | https://groups.google.com/d/topic/in-portal-dev/tq_MUQiFDmQ/discussion | ||||
Change Log Message: | added Database Load Balancing | ||||
Estimate Points: | 3 | ||||
|
|||||
Summary: | 0000576: Separating Database Master/Slave Requests | ||||
Description: |
Add ability to have MASTER/SLAVE(s) configuration. This will separate WRITE/READ database requests between 2 servers. 1. all Admin requests go to MASTER 2. all Front READ requests go to SLAVE 3. all Front WRITE requests go to MASTER 4. all Front Search READ go to MASTER For live examples refer to VO project. In the future, we'd like to add function for have a Pool of Slaves servers. -------- To enable load balancing: 1. add $_CONFIG['Database']['LoadBalancing'] = '1'; to /system/config.php file 2. create /system/db_servers.php file with following content: <?php $_CONFIG['Databases'] = Array ( Array ( 'DBHost' => 'slave.host1', 'DBUser' => 'slave.user1', 'DBUserPassword' => 'slave.user.password1', 'DBLoad' => 1, ), Array ( 'DBHost' => 'slave.host2', 'DBUser' => 'slave.user2', 'DBUserPassword' => 'slave.user.password2', 'DBLoad' => 1, 'DBMaxLag' => 15, // optional, slave replication delay in seconds 'DBMaxThreads' => 100, // optional, when slave thread count is above this number, then it won't be used ), ); 3. only slave servers are listed in file above, since database server defined in /system/config.php is considered as master server for backwards compatibility. See http://www.mediawiki.org/wiki/Manual:$wgDBservers for more details. |
||||
Steps To Reproduce: | |||||
Additional Information: |
Database name isn't mentioned in slave server configuration, since it's must much during replication anyway. Additional notes in In-B 23001 |
||||
Relationships | |||||
Attached Files: |
db_load_balancer.patch (23,887) 2011-07-05 12:00 http://tracker.in-portal.org/file_download.php?file_id=1054&type=bug db_load_balancer_v2.patch (25,715) 2011-07-29 03:32 http://tracker.in-portal.org/file_download.php?file_id=1086&type=bug db_load_balancer_v3_520.patch (54,735) 2011-10-03 08:02 http://tracker.in-portal.org/file_download.php?file_id=1181&type=bug |
||||
|
|||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-25 05:33 | alex | Note Added: 0005092 | |||
2012-07-25 05:33 | alex | Status | resolved => closed | ||
2011-10-22 05:33 | alex | Estimate Points | => 3 | ||
2011-10-03 08:05 | alex | Note Added: 0003967 | |||
2011-10-03 08:05 | alex | Status | reviewed and tested => resolved | ||
2011-10-03 08:05 | alex | Fixed in Version | => 5.2.0-B1 | ||
2011-10-03 08:05 | alex | Resolution | open => fixed | ||
2011-10-03 08:05 | alex | Assigned To | !COMMUNITY => alex | ||
2011-10-03 08:05 | alex | Changeset attached | 5.2.x r14609 | ||
2011-10-03 08:04 | alex | Note Added: 0003966 | |||
2011-10-03 08:04 | alex | Status | needs testing => reviewed and tested | ||
2011-10-03 08:03 | alex | Time Estimate Removed | 1 => | ||
2011-10-03 08:03 | alex | Note Added: 0003965 | |||
2011-10-03 08:03 | alex | Status | needs work => needs testing | ||
2011-10-03 08:02 | alex | File Added: db_load_balancer_v3_520.patch | |||
2011-09-26 04:53 | alex | Time Estimate Added | 1 | ||
2011-09-23 20:46 | Dmitry | Status | needs testing => needs work | ||
2011-09-23 20:46 | Dmitry | Note Added: 0003881 | |||
2011-09-23 20:31 | Dmitry | Target Version | Icebox => 5.2.0 | ||
2011-09-11 21:17 | Dmitry | Issue Monitored: alex | |||
2011-09-11 21:17 | Dmitry | Note Added: 0003728 | |||
2011-09-11 21:02 | Dmitry | Reference | => https://groups.google.com/d/topic/in-portal-dev/tq_MUQiFDmQ/discussion | ||
2011-09-11 21:02 | Dmitry | Change Log Message | => added Database Load Balancing | ||
2011-07-29 03:32 | alex | Assigned To | alex => !COMMUNITY | ||
2011-07-29 03:32 | alex | Status | needs work => needs testing | ||
2011-07-29 03:32 | alex | File Added: db_load_balancer_v2.patch | |||
2011-07-29 03:32 | alex | Note Added: 0003643 | |||
2011-07-29 03:32 | alex | Assigned To | !COMMUNITY => alex | ||
2011-07-29 03:32 | alex | Status | needs testing => needs work | ||
2011-07-12 05:58 | alex | Note Added: 0003621 | |||
2011-07-12 04:22 | alex | Note Added: 0003620 | |||
2011-07-05 12:03 | alex | Note Added: 0003584 | |||
2011-07-05 12:03 | alex | Assigned To | => !COMMUNITY | ||
2011-07-05 12:03 | alex | Developer | => alex | ||
2011-07-05 12:03 | alex | Status | active => needs testing | ||
2011-07-05 12:00 | alex | File Added: db_load_balancer.patch | |||
2011-07-05 05:10 | alex | Additional Information Updated | bug_revision_view_page.php?rev_id=733#r733 | ||
2011-07-05 05:09 | alex | Description Updated | bug_revision_view_page.php?rev_id=731#r731 | ||
2011-07-04 18:29 | Dmitry | Note Edited: 0003581 | bug_revision_view_page.php?bugnote_id=0003581#r730 | ||
2011-07-04 18:24 | Dmitry | Note Edited: 0003581 | bug_revision_view_page.php?bugnote_id=0003581#r729 | ||
2011-07-04 18:23 | Dmitry | Note Added: 0003581 | |||
2011-06-30 11:29 | alex | Note Added: 0003579 | |||
2011-06-30 11:23 | alex | Description Updated | bug_revision_view_page.php?rev_id=727#r727 | ||
2010-08-31 14:16 | alex | version | => 5.1.0 | ||
2010-04-25 07:11 | alex | Note Added: 0001922 | |||
2010-04-25 07:11 | alex | Target Version | 5.1.0 => Icebox | ||
2010-02-08 18:40 | Dmitry | New Issue |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|