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)
Change History (8)
by , 16 years ago
Attachment: | default.htm added |
---|
by , 16 years ago
Attachment: | 0001-db-add-the-ability-to-have-a-seperate-write-databas.patch added |
---|
[PATCH 1/3] db: add the ability to have a seperate write database
by , 16 years ago
Attachment: | 0002-db-distinguish-between-read-and-write-access.patch added |
---|
[PATCH 2/3] db: distinguish between read and write access
by , 16 years ago
Attachment: | 0003-db-make-trac-admin-use-database_write.patch added |
---|
[PATCH 3/3] db: make trac-admin use database_write
comment:1 by , 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 , 16 years ago
Cc: | 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 , 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 , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
[PATCH 1/3] db: add the ability to have a seperate write database