#290  High availability of OneDev server
Open
Robin Shen opened 6 months ago
No comment
bufferUnderrun commented 6 months ago

What do you mean ?

Robin Shen commented 6 months ago
bufferUnderrun commented 6 months ago

i mean, technically : multiple instances of onedev with sync... ?

Robin Shen commented 6 months ago

Create a cluster with multiple OneDev servers to achieve scalability and reliability.

Artur commented 6 months ago

For the start, like a basic, first version it would be good to have multiple instances of OneDev front end connected to one database (maybe in cluster mode) and store code repository in shared file system, like NFS or something like this.

Artur commented 6 months ago

I think, one way to have kind of simplified HA setup would be to have 2 independent installations and set projects in kind of mirror mode on one system to periodically update source code and issues from another system.
This would be acceptable HA setup for many cases.

It seems relatively simple to implement.

And if the mirroring is done on the project level it would allow for a "smart" setup. Let's say you have a team in the US and a team in the EU. You could have 2 OneDev systems running, one in the US and one in the EU.

Then, the team in the EU would use EU system to work, and their projects would be mirrored on the US server and then the team from the US would connect to the US server and their projects would be mirrored on the EU server.
If one server fails, both teams cold just switch over to the working server.

Robin Shen commented 6 months ago

You may prototype this if interested. I have not got time to think about it yet.

Noel Nuguid commented 3 months ago

Hello, I'm currently working on trying to implement ondev on AWS ECS Fargate to achieve high availability. My question is that is the git repository data stored on a particular directory?

Robin Shen commented 3 months ago

For a particular project, it is stored under <OneDev install dir>/site/projects/<project id>/git

Noel Nuguid commented 3 months ago

Thanks for responding. some addtional questions:

  • I was originally planning to setup an NFS server to host the data files of onedev. Is there a specific directory that i can mount to achieve this?
  • Is it possible to use an external GIT repository to host the code (ie AWS codecommit?)

Thanks,
Noel

Robin Shen commented 3 months ago

You may mount the site as NFS directory. Using external git repository is not supported in OneDev.

Noel Nuguid commented 3 months ago

thanks for clarifying. good day!

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Issue Votes (1)
Watchers (4)
Reference
issue onedev/server#290
Please wait...
Page is in error, reload to recover