Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can multiple reposilite instances share the same data volume ? #251

Closed
xfabre opened this issue Sep 16, 2020 · 4 comments
Closed

Can multiple reposilite instances share the same data volume ? #251

xfabre opened this issue Sep 16, 2020 · 4 comments
Assignees
Labels
enhancement Improvement of existing feature request question Questions about project and how to use it
Milestone

Comments

@xfabre
Copy link

xfabre commented Sep 16, 2020

Hi there, nice project.
My question is about HA situation having kubernetes deployment in mind where we would like to have many reposilite pods (thus containers) accessing concurrently to the same data volume.
Is it something somewhat supported or by design it would not work due to potential conflicting access to the same files?
Thank you.

@dzikoysk
Copy link
Owner

Thanks :) I am not familiar with kubernetes, but I think it should work. Reposilite serves files directly from disk, so it mostly depends on the available within volume IO.

@dzikoysk dzikoysk changed the title [Question] Can multiple reposilite instances share the same data volume ? Can multiple reposilite instances share the same data volume ? Sep 16, 2020
@dzikoysk dzikoysk added the question Questions about project and how to use it label Sep 16, 2020
@xfabre
Copy link
Author

xfabre commented Sep 16, 2020

Thanks for your quick answer.
Perhaps I clarify my question then, would concurrent mvn deploy on the same maven coordinates taken simultaneously by two reposilite instances sharing a same data volume would cause conflicting writes? Or maybe that's just the last deploy who win?
BTW perhaps the situation is not that different from a single instance handling 2 concurrent requests, how is it handled?

@dzikoysk
Copy link
Owner

Well, concurrent deploy of the same file is not really supported at this moment. I may add a locking mechanism using FileLock 🤔

@dzikoysk dzikoysk added the enhancement Improvement of existing feature request label Sep 16, 2020
@dzikoysk dzikoysk added this to the 2.9 milestone Sep 17, 2020
@dzikoysk dzikoysk self-assigned this Sep 19, 2020
@dzikoysk
Copy link
Owner

dzikoysk commented Sep 25, 2020

Related conversation: 9dd2017

Ok, I think that all of these changes in previous days should make it possible to use Reposilite 2.9 in that way. The only limitation is that you can not create user accounts that are synchronized between instances. To add a new token you have to restart other instances, because tokens.dat file is loaded only at startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing feature request question Questions about project and how to use it
Projects
None yet
Development

No branches or pull requests

2 participants