V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jimmyzhang33
V2EX  ›  程序员

6.824 笔记的第一章阅读遇到的问题

  •  
  •   jimmyzhang33 · Mar 14, 2017 · 2474 views
    This topic created in 3335 days ago, the information mentioned may be changed or developed.
    原文:
    Topic: performance
    Distribution can hurt: network b/w and latency bottlenecks
    Lots of tricks, e.g. caching, concurrency, pre-fetch
    Distribution can help: parallelism, pick server near client
    Idea: scalable design
    Nx servers -> Nx total performance
    Need a way to divide the load by N
    Divide data over many servers ("sharding" or "partitioning")
    By hash of file name?
    By user?
    Move files around dynamically to even out load?
    "Stripe" each file's blocks over the servers?
    Performance scaling is rarely perfect
    Some operations are global and hit all servers (e.g. search)
    Nx servers -> 1x performance
    Load imbalance
    Everyone wants to get at a single popular file
    -> one server 100%, added servers mostly idle
    -> Nx servers -> 1x performance

    问题的地方:
    Some operations are global and hit all servers (e.g. search)
    Nx servers -> 1x performance
    问题:为什么 search 功能, N 台机器反而性能没有提升?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2655 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:10 · PVG 21:10 · LAX 06:10 · JFK 09:10
    ♥ Do have faith in what you're doing.