Edgewall Software

Ticket #7392 (closed enhancement: wontfix)

Opened 5 months ago

Last modified 6 weeks ago

[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@…

Description

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

Attachments

default.htm (1.4 KB) - added by Axel Gembe 5 months 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 5 months 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 5 months 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 5 months ago.
[PATCH 3/3] db: make trac-admin use database_write

Change History

Changed 5 months ago by Axel Gembe

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

Changed 5 months ago by Axel Gembe

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

Changed 5 months ago by Axel Gembe

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

Changed 5 months ago by Axel Gembe

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

Changed 5 months ago by nkantrowitz

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.

Changed 5 months ago by Andrew Shearer <ashearerw@…>

  • 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.

Changed 5 months ago by nkantrowitz

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.

Changed 6 weeks ago by rblank

  • status changed from new to closed
  • resolution set to wontfix

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.

Add/Change #7392 ([PATCH] db: add the ability to have a seperate write database)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from (none). Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.