Giter Site home page Giter Site logo

hetianyi / godfs Goto Github PK

View Code? Open in Web Editor NEW
291.0 24.0 57.0 2.54 MB

A simple fast, easy use distributed file system written in go.

License: Apache License 2.0

Go 99.43% Shell 0.12% Dockerfile 0.35% Batchfile 0.10%
dfs golang docker godfs download upload

godfs's People

Contributors

chaunceyjiang avatar hetianyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

godfs's Issues

请问secret=OASAD834jA97AAQE761==是如何生成的?

你好,我安装并启动服务后,在上传文件的时候,无法通过校验。所以想请问一下secret=OASAD834jA97AAQE761==是如何生成的?是secret的原因吗?期盼回复,非常感谢!
下面是报错信息:
wx20190214-171056

token问题

没看明白token如何使用,可否详细说明下,如何提交和获取呀

[base_dao.go:58] error prepare db file: open source file failed

no db file。

安装一切都成功了,可是提示没有db file。

[root@localhost godfs]# /usr/local/godfs/bin/tracker -c /usr/local/godfs/conf/tracker.conf
INFO - 2019-10-21 19:31:06,340 [tracker.go:32] using config file: /usr/local/godfs/conf/tracker.conf
INFO - 2019-10-21 19:31:06,341 [base_dao.go:54] no db file found, init db file from template.

docker 在这有什么用

我使用docker 安装完, 容器启动 ,可以使用curl 来上传文件
但是怎么下载文件呢??
还是要在容器外在完整的安装一遍??

docker部署api获取

docker 部署之后:

  1. tracker容器是-p 1022:1022
  2. storage容器是 -p 1024:1024 -p 80:8001

目前我是在单机,而且只有一个 stroage,为什么每次我上传是通过 stroage上传,下载也是通过 stroage 下载,那么 tracker 有什么作用?

只是做多个 stroage 之间的同步么?

如果是多个 storage 那么我该如何确定到底访问哪一个去上传/下载资源?

使用curl无法上传文件

curl -v -F "file=@/home/xxxx/tmpfiles/test.bin" "http://192.168.2.58:1024/upload/"

  • Hostname was NOT found in DNS cache
  • Trying 192.168.2.58...
  • Connected to 192.168.2.58 (192.168.2.58) port 1024 (#0)

POST /upload/ HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.2.58:1024
Accept: /
Content-Length: 1048776
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------ae65b7cb65f4f67e

  • Recv failure: Connection reset by peer
  • Closing connection 0
    curl: (56) Recv failure: Connection reset by peer

binlog同步时,dataset为什么要修改?

197f44b这个版本,svc/binlog_synchronizer.go文件中, watch方法250行,这里写了Binlog为什么要写dataset呢? 我理解的是,Binlog记录的是文件的元数据, dataset记录的是文件内容本身是否存在, 这里watch的方法的作用是找其他存储服务器同步文件的元数据而非文件内容本身, 文件内容的同步有svc/file_synchronizer.go下229行sync_file来完成, 是否在这里而非svc/binlog_synchronizer.go watch 250行 写dataset会更合理呢?

建议要能可以mount

要能可以mount就好了,就像普通磁盘可以挂载,可以取消,数据能自动同步,分布式

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.