Giter Site home page Giter Site logo

Metric combining `apollo_router_processing_time` and `apollo_router_query_planning_time` for requests that require query planning about router HOT 3 CLOSED

samjcombs avatar samjcombs commented on June 19, 2024
Metric combining `apollo_router_processing_time` and `apollo_router_query_planning_time` for requests that require query planning

from router.

Comments (3)

xuorig avatar xuorig commented on June 19, 2024

@samjcombs what would that metric actually represent? My understanding is that apollo_router_processing_time does include time spent planning, but it only includes the time actually spent waiting for the plan to be ready for that specific request, which does seem to align with "exactly how much time requests are spent in Router". That seems like the important metric to track when it comes to overhead per request.

Edit: worth noting that even the planning_time is not exactly what we'd think it is at first glance: apollographql/federation-rs#455

from router.

samjcombs avatar samjcombs commented on June 19, 2024

Ahh, thanks for confirming that

time actually spent waiting for the plan to be ready

is included in processing_time

I got misled by looking at p99s instead of max for processing_time. Requests that wait for query plans are likely well below 1% of all requests, so I was "missing" it.

Thanks for the clarification here!

from router.

samjcombs avatar samjcombs commented on June 19, 2024

Closing this feature request as obsolete because time spent waiting for query planning is included in processing_time. (Verified just now comparing max processing_time to max query planning time and they line up perfectly)
This would also catch any super-long query plans that require multiple requests to plan. Thanks, @xuorig, for the help here.

from router.

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.