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

documentation: run Git garbage collection to address performance issues. #3192

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- fixed prompt for vyos/vyatta to allow logins with non-priviliged accounts. Fixes #3111 (@h-lopez)
- fixed power consumption included in ArubaOS-CX diffs starting with FL.10.13.xxx. Fixes #3142 (@terratalpi)
- fixed oxidized-web getting "version not found" when fetching a version from git and no group is defined. Fixes #2222 (@robertcheramy)
- docs: run Git garbage collection to address performance issues. Fixes #3121 (@robertcheramy)

## [0.30.1 – 2024-04-12]

Expand Down
2 changes: 2 additions & 0 deletions docs/Outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ output:

```

Over time, your Git repository will expand, potentially leading to performance issues. For instructions on how to address this, see [git performance issues with large device counts](Troubleshooting.md#git-performance-issues-with-large-device-counts).

## Output: Git-Crypt

This uses the gem git and system git-crypt interfaces. Have a look at [GIT-Crypt](https://www.agwa.name/projects/git-crypt/) documentation to know how to install it.
Expand Down
15 changes: 15 additions & 0 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Troubleshooting
## Table of contents
1. [Connects but no/partial configuration collected](d#oxidized-connects-to-a-supported-device-but-no-or-partial-configuration-is-collected)
2. [No push to remote git repository](#oxidized-does-not-push-to-a-remote-git-repository-hook-githubrepo)
3. [Git performance issues with large device counts](#git-performance-issues-with-large-device-counts)

## Oxidized connects to a supported device but no (or partial) configuration is collected

Expand Down Expand Up @@ -80,3 +84,14 @@ If you are running oxidized in a container, you need to map /home/oxidized/.ssh
container to a local repository and save the known_hosts in the local repository. You can
find an example how to do this under [examples/podman-compose](/examples/podman-compose/)

## Git performance issues with large device counts
When you use git to store your configurations, the size of your repository will
grow over time. This growth can lead to performance issues. To resolve these issues, you should perform a Git garbage collection on your repository.

Follow these steps to do so:

1. Stop oxidized (no one should access the git repository while running garbage collection)
2. Make a backup of your oxidized data, especially the Git repository
3. Change directory your oxidized git repository (as configured in oxidized configuration file)
4. Execute the command `git gc` to run the garbage collection
5. Restart oxidized - you're done!
Loading