Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2847

Avoid doing useless work by checking query deadline

    XMLWordPrintableJSON

Details

    • Patch

    Description

      Under high load, requests can spend a long time waiting in RPC queue, probably longer than query timeout. However, current coprocessor timeout mechanism doesn't take RPC queue time into account. As a result, handling these requests not only waste server resources while doing nothing useful, but can also cause cascading failure when server crashes and client retries.

      To recover from server overload ASAP, we should check query deadline at each stages of query processing, and avoid spending resources on query that will exceed their deadline.

      Attachments

        1. KYLIN-2847-v2.patch
          16 kB
          Shao Feng Shi
        2. KYLIN-2847.patch
          16 kB
          Dayue Gao

        Activity

          People

            gaodayue Dayue Gao
            gaodayue Dayue Gao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: