Code Monkey home page Code Monkey logo

leancloud-budget's People

Contributors

jysperm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

leancloud-budget's Issues

简化、优化变量

现在计算用的变量包括:

  1. 总用户数
  2. 活跃用户占比
  3. 用户日均活跃时间
  4. 活跃状态的 QPM
  5. 平均请求处理时间
  6. 用户活跃时间段

准备改为:

  1. 每日活跃用户(dailyActiveUser
  2. 用户平均每日打开次数(sessionsPerUserPerDay
  3. 用户单次打开请求数量(requestsPerSession
  4. 用户活跃时间段(dailyActiveHours

计算方法:

// LeanCloud 的承诺响应时间
const responseTime = 15 

// 每日请求量
const requestsPerDay = dailyActiveUser * sessionsPerDay * requestsPerSession
// QPS
const qps = requestsPerDay / ( dailyActiveHours * 3600 )
// 工作线程
const worker = qps / ( 1000 / responseTime )

更改指标的原因是,相对原来的指标,日活、用户打开次数、用户每次打开请求数这些指标,对用户来讲比较好预估。

另外根据今天讨论,我们似乎是可以通过一个测试 demo 给用户一个响应时间的预期值的?据陈伟的说法看来这个值是 15~25 毫秒?如果是的话那么这个值可以当作一个常量。

@jysperm 你觉得靠谱么

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.