-
Will be solved in next patch release. Thx!
-
OneDev
changed state to 'Closed' 2 years ago
Previous Value Current Value Open
Closed
-
State changed as code fixing the issue is committed (c76fe983)
-
OneDev
changed state to 'Released' 2 years ago
Previous Value Current Value Closed
Released
-
State changed as build #4097 is successful
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
9.1.5
|
| Labels |
No labels
|
Issue Votes (0)
I am using PostgreSQL and their JDBC driver allows to specify multiple servers so the JDBC driver can automatically failover to the primary server in a primary + multiple secondaries DB cluster.
JDBC string with two servers (could be even more):
OneDev now uses the DB host to detect the cluster IP, see https://code.onedev.io/onedev/server/~files/c0546d4c877acc58b5a857411cac605c90112fa9/server-core/src/main/java/io/onedev/server/ServerConfig.java?position=source-107.1-113.6-1
OneDev should continue to try additional hosts:port if the first one fails and multiple DB hosts have been configured.
Currently, OneDev fails to start if the first DB host is down for maintenance.