summaryrefslogtreecommitdiffstats
path: root/distrib
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-10-28 13:27:26 -0400
committerJames Moger <james.moger@gitblit.com>2012-10-28 13:27:26 -0400
commite92c6d230b3a350749fdb9fa2150bb1773260b8c (patch)
tree135b01ea4c8174f5e79725dd2b99d72b01cc50f1 /distrib
parent5b831a0981491cabbbdbb02dba237308947a5e7d (diff)
downloadgitblit-e92c6d230b3a350749fdb9fa2150bb1773260b8c.tar.gz
gitblit-e92c6d230b3a350749fdb9fa2150bb1773260b8c.zip
Experimental JGit-based GC Executor
Diffstat (limited to 'distrib')
-rw-r--r--distrib/gitblit.properties61
1 files changed, 61 insertions, 0 deletions
diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties
index 89a7c2f3..43432294 100644
--- a/distrib/gitblit.properties
+++ b/distrib/gitblit.properties
@@ -108,6 +108,67 @@ git.defaultAccessRestriction = NONE
# SINCE 1.1.0
git.defaultAuthorizationControl = NAMED
+# Enable JGit-based garbage collection. (!!EXPERIMENTAL!!)
+#
+# If enabled, the garbage collection executor scans all repositories once a day
+# at the hour of your choosing. The GC executor will take each repository "offline",
+# one-at-a-time, to check if the repository satisfies it's GC trigger requirements.
+#
+# While the repository is offline it will be inaccessible from the web UI or from
+# any of the other services (git, rpc, rss, etc).
+#
+# Gitblit's GC Executor MAY NOT PLAY NICE with the other Git kids on the block,
+# especially on Windows systems, so if you are using other tools please coordinate
+# their usage with your GC Executor schedule or do not use this feature.
+#
+# Use this feature at your own risk!
+#
+# The GC algorithm complex and the JGit team advises caution when using their
+# young implementation of GC.
+#
+# http://wiki.eclipse.org/EGit/New_and_Noteworthy/2.1#Garbage_Collector_and_Repository_Storage_Statistics
+#
+# EXPERIMENTAL
+# SINCE 1.2.0
+# RESTART REQUIRED
+git.enableGarbageCollection = false
+
+# Hour of the day for the GC Executor to scan repositories.
+# This value is in 24-hour time.
+#
+# SINCE 1.2.0
+git.garbageCollectionHour = 0
+
+# The default minimum total filesize of loose objects to trigger early garbage
+# collection.
+#
+# You may specify a custom threshold for a repository in the repository's settings.
+# Common unit suffixes of k, m, or g are supported.
+#
+# SINCE 1.2.0
+git.defaultGarbageCollectionThreshold = 500k
+
+# The default period between GCs for a repository. If the total filesize of the
+# loose object exceeds *git.garbageCollectionThreshold* or the repository's
+# custom threshold, this period will be short-circuited.
+#
+# e.g. if a repository collects 100KB of loose objects every day with a 500KB
+# threshold and a period of 7 days, it will take 5 days for the loose objects to
+# be collected, packed, and pruned.
+#
+# OR
+#
+# if a repository collects 10KB of loose objects every day with a 500KB threshold
+# and a period of 7 days, it will take the full 7 days for the loose objects to be
+# collected, packed, and pruned.
+#
+# You may specify a custom period for a repository in the repository's settings.
+#
+# The minimum value is 1 day since the GC Executor only runs once a day.
+#
+# SINCE 1.2.0
+git.defaultGarbageCollectionPeriod = 7 days
+
# Number of bytes of a pack file to load into memory in a single read operation.
# This is the "page size" of the JGit buffer cache, used for all pack access
# operations. All disk IO occurs as single window reads. Setting this too large