Project

General

Profile

Actions

Feature #55157

closed

Support for MySQL replication

Added by Pascal Dürsteler over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-01-20
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

I made a setup which runs on two different hosts, with a MySQL master (A) and slave (B) replication. However, there is IMHO a lot of optimization potential.

The main problem occurs when visiting the page on B. As TYPO3 wants to write data to e.g fe_session_data or index_*, the slave will lock up on the next few transactions because of a duplicate primary key error. However, setting B's mysql to read only will result in failed queries.

Related: http://forge.typo3.org/issues/17088

I am not sure if that would generally help, but maybe an option in the install tool to set the TYPO3 instance to a "slave" mode would trigger a switch in the persistence layer to not execute INSERT and UPDATE statements on the slave. Of course, this would be extension- and setup-dependent, because you can't e.g. edit your fe_user profile on the slave then.

I just wanted to "braindump" this here, maybe it results in a constructive discussion and an enhancement to TYPO3, or it gets ignored or buried.


Files

slave.diff (3.45 KB) slave.diff Thomas Löffler, 2014-07-16 12:00

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #17088: "Duplicate entry" in cache_pagesection when using framesClosedMichael Stucki2007-03-07

Actions
Actions

Also available in: Atom PDF