Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
Go to file
yangjun289519474 badd1ef73c
Add go-cache as local cache, add redis as distributed (#272)
* feat(manager): add go-cache as local cache, add redis as distributed cache, add lease based on mysql as manager keepalive owner

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): delete mock config

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): modify sch to scheduler, and replace with GetWithExpiration when call Get method of go-cache

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

Co-authored-by: hanson.yj <hanson.yj@alibaba-inc.com>
2023-06-28 17:22:39 +08:00
.github Add release workflow and optimize other workflows (#277) 2023-06-28 17:22:39 +08:00
api feature: remove redundant configurations (#216) 2023-06-28 17:22:29 +08:00
build Change Dockerfile directory and clean up project (#165) 2023-06-28 17:21:32 +08:00
cdnsystem Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
client Feature/base options (#269) 2023-06-28 17:22:39 +08:00
cmd Feature/base options (#269) 2023-06-28 17:22:39 +08:00
deploy Change Dockerfile directory and clean up project (#165) 2023-06-28 17:21:32 +08:00
docs Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
hack Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
internal Added GC public library (#267) 2023-06-28 17:22:39 +08:00
manager Add go-cache as local cache, add redis as distributed (#272) 2023-06-28 17:22:39 +08:00
pkg Added GC public library (#267) 2023-06-28 17:22:39 +08:00
scheduler Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
version Fix lint (#244) 2023-06-28 17:22:37 +08:00
.gitignore Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
.golangci.yml Fix golang lint (#249) 2023-06-28 17:22:38 +08:00
CODE_OF_CONDUCT.md chore: change manager swagger docs path and add makefile swagger command (#183) 2023-06-28 17:21:32 +08:00
CONTRIBUTING.md Rewrite README.md (#166) 2023-06-28 17:21:33 +08:00
LICENSE Merge branch main-rc to branch main 2023-06-28 17:20:20 +08:00
Makefile Fix: use atomic to avoid data race in client (#254) 2023-06-28 17:22:38 +08:00
README.md fix: ci badge (#281) 2023-06-28 17:22:39 +08:00
SECURITY.md chore: add SECURITY.md (#181) 2023-06-28 17:21:32 +08:00
codecov.yml Fix: use atomic to avoid data race in client (#254) 2023-06-28 17:22:38 +08:00
go.mod Add go-cache as local cache, add redis as distributed (#272) 2023-06-28 17:22:39 +08:00
go.sum Add go-cache as local cache, add redis as distributed (#272) 2023-06-28 17:22:39 +08:00

README.md

Dragonfly

alt

GitHub release CI Coverage Go Report Card Open Source Helpers TODOs Discussions Twitter GoDoc LICENSE

Provide efficient, stable, secure, low-cost file and image distribution services to be the best practice and standard solution in the related Cloud-Native area.

Features

  • Implement P2P files distribution with various storage types (HDFS, storage services from various cloud vendors, Maven, Yum, etc.) through a unified back-to-source adapter layer.
  • Support more distribution modes: active pull, active push, real-time synchronization, remote replication, automatic warm-up, cross-cloud transmission, etc.
  • Provide separation and decoupling between systems, scheduling and plug-in CDN. Support on-demand deployment with flexible types: light or heavy, inside or outside, to meet the actual needs of different scenarios.
  • Newly designed P2P protocol framework based on GRPC with improved efficiency and stability.
  • Perform encrypted transmission, account-based transmission authentication and rate limit, and multi-tenant isolation mechanism.
  • Bear more efficient IO methods: multithreaded IO, memory mapping, DMA, etc.
  • Advocate dynamic compression, in-memory file systems, and more efficient scheduling algorithms to improve distribution efficiency.
  • Client allows third-party software to natively integrate Dragonflys P2P capabilities through C/S mode.
  • Productivity: Support file uploading, task management of various distribution modes, data visualization, global control, etc.
  • Consistent internal and external versions, shared core features, and individual extensions of non-generic features.
  • Enhanced integration with ecology: Harbor, Nydus (on-demand image download), warehouse services for various cloud vendors, etc.

Architecture

alt

Manager: Used to manage the dynamic configuration that each module depends on, and provide keepalive and metrics functions.

Scheduler: The tracker and scheduler in the P2P network that choose appropriate downloading net-path for each peer.

CDN: A CDN server that caches downloaded data from source to avoid downloading same files repeatedly.

Daemon: Used for pulling images only. It establishes a proxy between containerd/CRI-O and registry.

Dfget: The client of Dragonfly used for downloading files. It's similar to wget.

Getting Started

Documentation

You can find the Dragonfly documentation on the website.

Community

Welcome developers to actively participate in community discussions and contribute code to Dragonfly. We will remain concerned about the issues discussed in the community and respond quickly.

Contributing

You should check out our CONTRIBUTING and develop the project together.

Code of Conduct

Please refer to our Code of Conduct.