2.7 Harbor开源项目容器镜像远程复制的实现Worker3 Producer Consumer Job queue Dispatcher Modified Producer and Consumer Pattern • Non blocking for producers • Dispatcher queues jobs • Dispatcher distributes jobs to available workers • Workers capacity) • Send: ch <- v • Receive: v:= <- ch • Used to block or unblock threads • Dispatcher thread ( producer) • Worker thread (consumer) • Also used for stopping a job Worker Pool • Predefine l.go Workers Wait for Replication Job • Channel w.RepJobs blocked until a job is dispatched Dispatcher • Receives job and distributes to available worker • Channel WorkerPool.workerChan is blocked0 码力 | 37 页 | 3.47 MB | 1 年前3
Project Harbor Introduction - Open source trusted cloud native registry������Kubernetes ������������Harbor��� Helm Chart���������Chart� �������������Chart��� ������ Storage Layer Dispatcher Docker Distribution Helm Chart Repository Asynchronization Signature Vulnerability Scanning0 码力 | 36 页 | 12.65 MB | 1 年前3
Project Harbor Introduction - Open source trusted cloud native registry������Kubernetes ������������Harbor��� Helm Chart���������Chart� �������������Chart��� ������ Storage Layer Dispatcher Docker Distribution Helm Chart Repository Asynchronization Signature Vulnerability Scanning0 码力 | 36 页 | 12.65 MB | 1 年前3
共 3 条
- 1













