Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Draymonders/cloudstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于golang实现的一种简易分布式云存储服务

linux默认存储路径/data/tmp/

启动服务

# windows 启动 consul
consul agent -dev
# 启动 gateway 服务
go run service/apigw/main.go --registry=consul
# 启动 account 服务
go run service/account/main.go --registry=consul
# 启动 upload 服务
go run service/upload/main.go --registry=consul
# 启动 download 服务
go run service/download/main.go --registry=consul
# 启动 transfer 服务
go run service/transfer/main.go --registry=consul

功能

  • 单机文件存储
  • MySQL 主从复制
  • Redis 主从复制 + shell 脚本故障转移
  • 秒传功能
  • 分块上传
  • 断点续传
  • Ceph 私有云存储
  • Kodo 公有云存储 (七牛云对象存储)
  • Rabbitmq 异步复制
  • 微服务改造
  • 运维自动化

开发环境参数

操作系统 Win 10        IDE VSCode        Go go version go1.12.5 windows/amd64

文档