Giter VIP home page Giter VIP logo

Comments (5)

heshc avatar heshc commented on September 25, 2024

阈值可以配置具体大小值,不一定非得配置百分比

from fastdfs.

lystormenvoy avatar lystormenvoy commented on September 25, 2024

阈值可以配置具体大小值,不一定非得配置百分比

这个问题应该和配置类型无关。

我配置阈值是1G的话,这时候剩余1.5G,但传一个2G的文件,不也是有问题?

from fastdfs.

heshc avatar heshc commented on September 25, 2024

1、配置项上传方式有多种模式,轮询、指定storage、剩余空间最大
2、使用上传模式为剩余空间最大时,是哪个空间大往哪传

which path (means disk or mount point) of the storage server to upload file

0: round robin

2: load balance, select the max free space path to upload file

store_path = 2
根据这个配置项,你问题1不存在了。
至于问题2 不同path容量不同,设置阈值是1G,肯定是一直往最大剩余空间传。假如剩余1.5G,你传2g的文件,肯定提示空间不足,这时候该考虑扩容了

from fastdfs.

lystormenvoy avatar lystormenvoy commented on September 25, 2024

1、配置项上传方式有多种模式,轮询、指定storage、剩余空间最大 2、使用上传模式为剩余空间最大时,是哪个空间大往哪传

which path (means disk or mount point) of the storage server to upload file

0: round robin

2: load balance, select the max free space path to upload file

store_path = 2 根据这个配置项,你问题1不存在了。 至于问题2 不同path容量不同,设置阈值是1G,肯定是一直往最大剩余空间传。假如剩余1.5G,你传2g的文件,肯定提示空间不足,这时候该考虑扩容了

但我们需要用轮询

from fastdfs.

heshc avatar heshc commented on September 25, 2024

用轮询模式,就一开始设计布局合理,比如path大小保持一致。
即使使用剩余空间最大模式,后续使用过程中跟轮询模式也差不多。这个会保障每个path逐渐均匀增加

from fastdfs.

Related Issues (20)

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.