Giter Site home page Giter Site logo

nitpicker's People

Contributors

capablemonkey avatar sammons avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

sammons

nitpicker's Issues

Collect data to render previous 7 days and 30 days graphs

From a set of, say, 50,000 response time measures, collected every 10 seconds over a period of 30 days, we need to be able to reduce that data set to a smaller one, say 100 items, which can be cheaply sent to the Meteor browser client and rendered to a graph.

Ideally, we would be able to collect this data directly from MongoDB without having to pull it into Meteor and comb it.

How best to reduce this dataset from 50k to 100?

Possible routes:

  1. Retrieve 100 evenly spaced results from the set; i.e. every n-th element from the set.
  2. Split the 50k set into 1/100th slices, and average each slice.
  3. Find the average response time for each day, and plot those ~31 points.

Another consideration is whether we can afford to do this calculation for each client viewing the site. We will probably need to cache this.

Maybe, just calculate the average response time for each day, and store that as a document in a separate collection: AverageResponseTimePerDay. Then, every time we need to graph this, send over the average for the past 30 days.

We can set up a cron job to calculate the average response time for a day at the end of each day.

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.