Giter Club home page Giter Club logo

Comments (2)

xupeilin avatar xupeilin commented on June 8, 2024

local失败已经搞定,dfs正在搞定的路上

from tera.

00k avatar 00k commented on June 8, 2024

方案如下,实现见 #775
open file:

  1. 如果FLAG_force_read_from_cache为true,copy to local
  2. 如果local file size == dfs file size,open local file; 否则,open dfs file,并向线程池注册copy to local任务,优先级是1
    read file:
  3. 如果local file没有打开,且没有其他线程正在打开,且距上次尝试打开过了30秒,检查local file size,如果不等于dfs file size,提高copy to local任务优先级,提高数等于期间read次数;否则,打开local file
  4. 如果local file打开,read local file,否则read dfs file
    copy to local:
  5. 执行copy
  6. 如果失败,重新向线程池注册copy to local任务,60秒后执行,优先级为原来的一半

from tera.

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.