Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7392 closed enhancement (wontfix)

[PATCH] db: add the ability to have a seperate write database

Reported by: Axel Gembe Owned by:
Priority: lowest Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: ashearerw@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This patchset makes Trac able to have a seperate database for writing which is useful in master→slave replication scenarios.

Attachments (4)

default.htm (1.4 KB ) - added by Axel Gembe 16 years ago.
[PATCH 1/3] db: add the ability to have a seperate write database
0001-db-add-the-ability-to-have-a-seperate-write-databas.patch (4.6 KB ) - added by Axel Gembe 16 years ago.
[PATCH 1/3] db: add the ability to have a seperate write database
0002-db-distinguish-between-read-and-write-access.patch (97.2 KB ) - added by Axel Gembe 16 years ago.
[PATCH 2/3] db: distinguish between read and write access
0003-db-make-trac-admin-use-database_write.patch (4.0 KB ) - added by Axel Gembe 16 years ago.
[PATCH 3/3] db: make trac-admin use database_write

Download all attachments as: .zip

Change History (8)

by Axel Gembe, 16 years ago

Attachment: default.htm added

[PATCH 1/3] db: add the ability to have a seperate write database

by Axel Gembe, 16 years ago

[PATCH 1/3] db: add the ability to have a seperate write database

by Axel Gembe, 16 years ago

[PATCH 2/3] db: distinguish between read and write access

by Axel Gembe, 16 years ago

[PATCH 3/3] db: make trac-admin use database_write

comment:1 by Noah Kantrowitz, 16 years ago

To summarize my comments from the email thread: Trac stores things outside the database anyway, so database replication really isn't useful given the added complexity. -1.

comment:2 by Andrew Shearer <ashearerw@…>, 16 years ago

Cc: ashearerw@… added

This would still help with database load balancing, and would also help if the primary database server goes down. As Noah said, it doesn't help the situation much if the web server itself goes down, but that's outside the scope of this ticket. With some installations already having database master/slave replication set up for other applications, and a database server sometimes being a bottleneck, this looks like a net win. +1.

comment:3 by Noah Kantrowitz, 16 years ago

If the concern is just the database, Postgres already offers a number of HA solutions (which would include replication) and I assume MySQL still has its clustering mode.

comment:4 by Remy Blank, 16 years ago

Resolution: wontfix
Status: newclosed

The patch is huge, breaks some of the most basic interfaces used in many plugins as well, and according to comment:3, the same effect can be achieved outside of Trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.