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

Add basic read-only replica handling #470

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mumblepins
Copy link

Implements basic handling of a database (repositories and indices) that are read only, intended to work as a read only replica.

Example:

# primary runner, pulls updates and runs indexing
docker run -d --rm --name hound-primary \
  -v $PWD/config.json:/data/config.json:ro \
  -v $PWD/db:/data/db -p 6080:6080 hound

# read only replica, watches for changes to repositories and looks for updated index

docker run -d --rm --name hound-ro \
  -v $PWD/config.json:/data/config.json:ro \
  -v $PWD/db:/data/db:ro -p 6081:6080 hound

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

The PR fulfills these requirements:

  • All tests are passing?
  • New/updated tests are included?
  • If any static assets have been updated, has ui/bindata.go been regenerated?
  • Are there doc blocks for functions that I updated/created?

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Implements basic handling of a database (repositories and indices) that are read only, intended to work as a read only replica.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant