HA-readiness (overview & discussion) #428
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
General issue discussing HA-deployment of Gitea using the helm chart.
There has been an initial effort by @luhahn two years ago which was never fully finished and seems stale now (#205).
Yet much of the discussion and issues can be picked up on and this issue aims to summarize and give an overview.
Another effort in documenting all individiual components is #350. The final result of this issue should make it into #350.
Another discussion is whether Gitea should use statefulsets or deployments for it's replicas (#426).
Cache
Applies to "session cache" and "general cache".
memcached: even when deployed in "high-availability",memcacheddoes not provide a smooth experience when Gitea replicas are > 1. Reason unclear, but often the user is reset to the home page without an active action.redis: Redis should be used for HA. Two redis variants exist:redisandredis-cluster. While the latter might be preferable for larger instances, it functions a bit different and can currently not be used together with Gitea. See https://github.com/go-gitea/gitea/issues/23869.DB
FIXME
Queues
Redis should be used for
queuein HA mode.Indexers
There's a difference between the ISSUE indexer and CODE/REPO indexer.
Code indexer
The issue indexer via
db,elasticsearch,meilisearch(as of Gitea 1.20) ordb.Only
meilisearchanddb(if a HA-ready DB is in use) can be used in this case.Code/Repo indexer
The only supported HA-ready repo indexer as of now is
elasticsearch. If you don't have anelasticsearchinstance, we recommend to turn it off for now while we work on a better solution.In
values.yml:Storage
RWXvolumeminio.redisis not supported forindexer.And two missed parties are
sessionandqueue.#437 has a condensed overview markdown doc now which will hopefully make into
mainsoonish. I suggest to look it up for further information. The content in OP here is only slighlty accurate.