Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33880

Introducing Retry Mechanism for Listing TaskManager Pods to Prevent API Server Connection Failures

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.17.2
    • None
    • None

    Description

      When operating in Kubernetes mode, if the JobManager undergoes a restart, it attempts to establish a connection with the API server to retrieve the complete list of TaskManager Pods, facilitating the recovery of previous TaskManagers.

      In the context of a large Kubernetes cluster with potentially thousands of concurrently running jobs, a scenario may arise where all JobManagers undergo a restart and subsequently connect to the API server (e.g., during disaster recovery). This influx of requests may overwhelm the API server, reaching its maximum capacity and leading to the refusal of some JobManager requests. Consequently, certain JobManagers may experience failures and initiate reconnection attempts to the API server.

      To enhance this process, we can propose the implementation of a retry mechanism. In the event of a failed connection attempt to the API server, Flink will introduce a waiting period before making subsequent connection attempts, mitigating the risk of overwhelming the server and improving the overall resilience of the system.

      Attachments

        1. image-2023-12-21-10-12-37-667.png
          872 kB
          Yuan Huang
        2. image-2023-12-19-18-44-13-623.png
          135 kB
          Yuan Huang
        3. image-2023-12-19-18-41-41-308.png
          135 kB
          Yuan Huang

        Activity

          People

            Yu.an Yuan Huang
            Yu.an Yuan Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: