forgejo_backup/services/doctor
pat-s 63a80bf2b9 feat: use XORM EngineGroup instead of single Engine connection (#7212)
Resolves #7207

Add new configuration to make XORM work with a main and replicas database instances. The follow configuration parameters were added:

- `HOST_PRIMARY`
- `HOST_REPLICAS`
- `LOAD_BALANCE_POLICY`. Options:
    - `"WeightRandom"` -> `xorm.WeightRandomPolicy`
    - `"WeightRoundRobin`  -> `WeightRoundRobinPolicy`
    - `"LeastCon"` -> `LeastConnPolicy`
    - `"RoundRobin"` -> `xorm.RoundRobinPolicy()`
    - default: `xorm.RandomPolicy()`
- `LOAD_BALANCE_WEIGHTS`

Co-authored-by: pat-s <patrick.schratz@gmail.com@>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7212
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-03-30 11:34:02 +00:00
..
actions.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
authorizedkeys.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
breaking.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
checkOldArchives.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
dbconsistency.go feat: use XORM EngineGroup instead of single Engine connection (#7212) 2025-03-30 11:34:02 +00:00
dbversion.go feat: use XORM EngineGroup instead of single Engine connection (#7212) 2025-03-30 11:34:02 +00:00
doctor.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix8312.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix16961.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix16961_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
heads.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mergebase.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
misc.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages_nuget.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
paths.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
push_mirror_consistency.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repository.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
storage.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
usertype.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00