GithubHelp home page GithubHelp logo

Comments (1)

wangyoucao577 avatar wangyoucao577 commented on August 23, 2024

For verify whether traffic update is successful for each iteration,

  • Idea 1: test it by something like heartbeat(request)
    We may not easy to test it by heartbeat since the traffic data will be customizing into OSRM files. We don't have switch to enable/disable traffic after osrm-routed load data into memory. The only way to do it is send a lot of requests against both old and new container to see whether some of them are different. Obviously it's too inefficiency if we do it for each iteration.

  • Idea 2: refer to #22, there're some logs by osrm-customize will show totally how many new traffics we have(6727490values) and how many new traffics the osrm-customize used(Used 0 speeds):

[info] Loaded /Users/xunliu/Desktop/data/us_nv/traffic.csv with 6727490values
...
[info] Used 0 speeds from /Users/xunliu/Desktop/data/us_nv/traffic.csv
  • Proposal Solutions for Idea 2
    1. I think we can add a threshold to tell osrm-customize to stop if the used / total <= threshold. E.g. used / total <= 80%, then the osrm-customize will exit and return fail. The threshold can be added to osrm-customize as a command line flag, so that we can adjust easily to suitable for different data/traffic set. (MY PREFER)
    2. Another way is to realtime analyze log of osrm-customize, stop it once find the used / total too small. The advantage is we don't need to modify codes of osrm-customize.

from osrm-backend.

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.