Git Product home page Git Product logo

hash_see's Introduction

hash_see

hash 的可视化

背景

  1. 在文件下载服务器中由于使用了一致性hash来保证缓存的高命中.
  2. 线上应用中,流量分布一直不够均匀,由如d01/d02/d03/d04/d05 五台机器,d01 达到来35%之高,带宽压力明显.
  3. 原定方案:    1. 新的hash 函数,实现均衡    2. 调整replicate, 找到一个分布均衡的值. groupcahe 默认选取了50. 我们在线上选择了100

在对hash.crc32 值域可视化的过程中,发现了replicate 对分布由决定性的影响

   todo 给出 hash.crc32 在10-300之间取值的可视化分布图。

目标

1.使用饼图,查看一致性hash的分布百分比,在一致性缓存中快速优化和分析。 2.针对一致性hash,副本数自己选取,做的尽可能的平均。

hash_see's People

Contributors

hyhlinux avatar

Watchers

James Cloos avatar  avatar

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.