Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54770

A new client object is created each time the plugin needs to connection to K8s

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Max connections to Kubernetes API is set to 32 by default in the shared cloud configuration but this doesn't prevent the K8s plugin to open hundreds of connections to the K8s API, each connection using 2 threads leading to an exhaustion of the available memory.

      The consequences of the bug are instabilities and crash of masters when all available memory in the master container is exhausted.

      Each time the plugin needs to connect to K8s, it creates a new client object. Each client is limited to 32 connections but there's no limit on the number of clients created. The client object should be a singleton.

        Attachments

          Issue Links

            Activity

            Hide
            recampbell Ryan Campbell added a comment -

            This was fixed in 1.13.6

            Show
            recampbell Ryan Campbell added a comment - This was fixed in 1.13.6

              People

              • Assignee:
                fbelzunc Félix Belzunce Arcos
                Reporter:
                fbelzunc Félix Belzunce Arcos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: