mirror of
https://github.com/block/buzz.git
synced 2026-10-28 21:11:48 +00:00
perf(relay): cache Git pack hydration (#2169)
This commit is contained in:
@@ -145,6 +145,9 @@ spec:
|
||||
# ── Git ──────────────────────────────────────────────────
|
||||
- { name: BUZZ_GIT_REPO_PATH, value: {{ .Values.persistence.git.mountPath | quote }} }
|
||||
- { name: BUZZ_GIT_MAX_PACK_BYTES, value: {{ .Values.git.maxPackBytes | quote }} }
|
||||
- { name: BUZZ_GIT_PACK_CACHE_PATH, value: {{ .Values.git.packCachePath | quote }} }
|
||||
- { name: BUZZ_GIT_PACK_CACHE_MAX_BYTES, value: {{ .Values.git.packCacheMaxBytes | quote }} }
|
||||
- { name: BUZZ_GIT_PACK_CACHE_MAX_CONCURRENT_POPULATIONS, value: {{ .Values.git.packCacheMaxConcurrentPopulations | quote }} }
|
||||
- { name: BUZZ_GIT_MAX_REPOS_PER_PUBKEY, value: {{ .Values.git.maxReposPerPubkey | quote }} }
|
||||
- { name: BUZZ_GIT_MAX_CONCURRENT_OPS, value: {{ .Values.git.maxConcurrentOps | quote }} }
|
||||
|
||||
@@ -221,6 +224,7 @@ spec:
|
||||
|
||||
volumeMounts:
|
||||
- { name: git-repos, mountPath: {{ .Values.persistence.git.mountPath | quote }} }
|
||||
- { name: git-pack-cache, mountPath: {{ .Values.git.packCachePath | quote }} }
|
||||
|
||||
volumes:
|
||||
- name: git-repos
|
||||
@@ -231,3 +235,6 @@ spec:
|
||||
emptyDir:
|
||||
sizeLimit: {{ .Values.persistence.git.size | quote }}
|
||||
{{- end }}
|
||||
- name: git-pack-cache
|
||||
emptyDir:
|
||||
sizeLimit: {{ .Values.git.packCacheVolumeSize | quote }}
|
||||
|
||||
@@ -199,6 +199,10 @@
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"maxPackBytes": { "type": "integer", "minimum": 1 },
|
||||
"packCachePath": { "type": "string", "minLength": 1 },
|
||||
"packCacheMaxBytes": { "type": "integer", "minimum": 0 },
|
||||
"packCacheMaxConcurrentPopulations": { "type": "integer", "minimum": 1 },
|
||||
"packCacheVolumeSize": { "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?(E|P|T|G|M|K|Ei|Pi|Ti|Gi|Mi|Ki)?$" },
|
||||
"maxReposPerPubkey": { "type": "integer", "minimum": 1 },
|
||||
"maxConcurrentOps": { "type": "integer", "minimum": 1 }
|
||||
}
|
||||
|
||||
@@ -323,6 +323,10 @@ minio:
|
||||
# ── Git server config ────────────────────────────────────────────────────────
|
||||
git:
|
||||
maxPackBytes: 524288000 # 500 MiB
|
||||
packCachePath: /var/cache/buzz/git-packs
|
||||
packCacheMaxBytes: 5368709120 # 5 GiB
|
||||
packCacheMaxConcurrentPopulations: 2
|
||||
packCacheVolumeSize: 7Gi # per-pod emptyDir; includes cold-population staging
|
||||
maxReposPerPubkey: 100
|
||||
maxConcurrentOps: 20
|
||||
|
||||
|
||||
Reference in New Issue
Block a user