mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
5ae7a028d9
* feat(cluster): initial commit for scale-out cluster Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * feat(cluster): support shared storage scale out This change introduces support for shared storage backed zot cluster scale out. New feature Multiple stateless zot instances can run using the same shared storage backend where each instance looks at a specific set of repositories based on a siphash of the repository name to improve scale as the load is distributed across multiple instances. For a given config, there will only be one instance that can perform dist-spec read/write on a given repository. What's changed? - introduced a transparent request proxy for dist-spec endpoints based on siphash of repository name. - new config for scale out cluster that specifies list of cluster members. Signed-off-by: Vishwas Rajashekar <vrajashe@cisco.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Vishwas Rajashekar <vrajashe@cisco.com> Co-authored-by: Ramkumar Chinchani <rchincha@cisco.com>
26 lines
604 B
INI
26 lines
604 B
INI
global
|
|
log /tmp/log local0
|
|
log /tmp/log local1 notice
|
|
maxconn 2000
|
|
stats timeout 30s
|
|
daemon
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
option httplog
|
|
option dontlognull
|
|
timeout connect 5000
|
|
timeout client 50000
|
|
timeout server 50000
|
|
|
|
frontend zot
|
|
bind *:8080
|
|
default_backend zot-cluster
|
|
|
|
backend zot-cluster
|
|
balance roundrobin
|
|
cookie SERVER insert indirect nocache
|
|
server zot0 127.0.0.1:9000 cookie zot0
|
|
server zot1 127.0.0.1:9001 cookie zot1
|
|
server zot2 127.0.0.1:9002 cookie zot2
|