Awesome Open Source
Awesome Open Source

distributed-fileserver

golang

go get github.com/garyburd/redigo/redis
go get github.com/go-sql-driver/mysql
go get github.com/garyburd/redigo/redis
go get github.com/gomodule/redigo/redis
go get github.com/json-iterator/go
go get github.com/aliyun/aliyun-oss-go-sdk/oss
go get gopkg.in/amz.v1/aws
go get gopkg.in/amz.v1/s3
go get github.com/streadway/amqp
go get github.com/gin-gonic/gin
go get github.com/gin-contrib/cors
go get github.com/micro/go-micro
go get github.com/mitchellh/mapstructure
go get github.com/jteeuwen/go-bindata/...
go get github.com/moxiaomomo/go-bindata-assetfs/...
go get github.com/gin-gonic/contrib/static
go get github.com/micro/go-micro/cmd
go get github.com/micro/go-plugins/registry/kubernetes
go get -v github.com/micro/go-plugins/wrapper/breaker/hystrix
go get -v github.com/juju/ratelimit
go get -v github.com/micro/go-plugins/wrapper/ratelimiter/ratelimit

golang.org/x: golang.org/x/net

  • rabbitMQ

    • :
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run main.go
  • rabbitMQ()

    • :
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run service/upload/main.go
- :
# cd $GOPATH/<>
> cd $GOPATH/filestore-server
> go run service/transfer/main.go
  • ():

    • (start-all.sh):
> cd $GOPATH/filestore-server
> ./service/start-all.sh
 :  service/bin/dbproxy
 :  service/bin/upload
 :  service/bin/download
 :  service/bin/transfer
 :  service/bin/account
 :  service/bin/apigw
   dbproxy
   upload
   download
   transfer
   account
   apigw
.
- (stop-all.sh):
> cd $GOPATH/filestore-server
> ./service/stop-all.sh
 :  apigw
 :  account
 :  transfer
 :  download
 :  upload
 :  dbproxy
.
  • ():
> cd $GOPATH/filestore-server
# 
> ./deploy/start-all.sh
# 
> ./deploy/stop-all.sh
# docker-compose
> cd ./deploy/service_dc
> sudo docker-compose up -d
# k8s
> cd ./deploy/service_k8s
> kubectl apply -f svc_account.yaml
> kubectl apply -f svc_apigw.yaml
> kubectl apply -f svc_dbproxy.yaml
> kubectl apply -f svc_download.yaml
> kubectl apply -f svc_transfer.yaml
> kubectl apply -f svc_upload.yaml
> cd ./deploy/traefik_k8s
> kubectl apply -f service-ingress.yaml

  • [x]
  • [x] mysql
  • [x] , //
  • [x]
  • [x]
  • [x] /
  • [x] Ceph
  • [x] OSS
  • [x] RabbitMQ
  • [x] (API, , RPC)
  • [x] CI/CD()

  • Go:
  • MySQL:
  • Redis:
  • Ceph:
  • RabbitMQ:
  • OSS:
  • gRPC:
  • go-micro: github
  • gin web: github
  • k8s:
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Golang (155,873
Docker (96,992
Mysql (30,915
Kubernetes (24,502
Redis (23,807
Microservices (11,956
Rabbitmq (6,227
Ci Cd (2,172
Ceph (870