[JIRA] (JENKINS-58463) Job build failed by "Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API"

17 views
Skip to first unread message

hebihong@163.com (JIRA)

unread,
Jul 12, 2019, 5:54:03 AM7/12/19
to jenkinsc...@googlegroups.com
He Bihong created an issue
 
Jenkins / Bug JENKINS-58463
Job build failed by "Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API"
Issue Type: Bug Bug
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2019-07-12 09:53
Environment: Plugin version: 1.16.3, Centos; Jenkins start with java ops: -Dorg.csanchez.jenkins.plugins.kubernetes.clients.cacheExpiration=2592000
Priority: Major Major
Reporter: He Bihong

Job will failed randomly by message "Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API".

The metrics total requests reached 64 when the issue happen. 

It seems in Kubernetes-plugin codes, the k8s client maxRequests is set to 64 by hard code. No configuration can change it. This java parameter also can not change it: kubernetes.max.concurrent.requests.

This issue will happen even set MaxConcurrentRequestsPerHost to a big number.

Once change MaxConcurrentRequestsPerHost in jenkins, the issue will disappear some times, but will occur again after running for a period. It seems it due to that the k8s API client recreated when change the configuration.

Is it possible add a configuration for k8s client maxRequests? 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Jul 12, 2019, 6:05:02 AM7/12/19
to jenkinsc...@googlegroups.com
Carlos Sanchez commented on Bug JENKINS-58463
 
Re: Job build failed by "Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API"

where do you see the hardcoded 64 number ?

if you set the k8s cloud parameter max Requests Per Host to a value it will be used every time the client is recreated

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:06:03 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Duplicate
 

Possibly a symptom of JENKINS-58290. Please ensure that you are running the latest plugin release before filing a bug report.

Change By: Jesse Glick
Status: Open Resolved
Resolution: Duplicate

hebihong@163.com (JIRA)

unread,
Jul 16, 2019, 11:25:02 PM7/16/19
to jenkinsc...@googlegroups.com
He Bihong commented on Bug JENKINS-58463
 
Re: Job build failed by "Interrupted while waiting for websocket connection, you should increase the Max connections to Kubernetes API"

The maxConcurrentRequests number 64 I mentioned in this class:  io.fabric8.kubernetes.client.Config

It defined parameter maxConcurrentRequests and default value is 64, but not changed, even it provides setMaxConcurrentRequests method.

It also not set in this class when init the Config: org.csanchez.jenkins.plugins.kubernetes.KubernetesFactoryAdapter, but  set MaxConcurrentRequestsPerHost:

builder.withMaxConcurrentRequestsPerHost(maxRequestsPerHost);

Is it possible add a configure for maxConcurrentRequests and set it here:

builder.withMaxConcurrentRequests(maxRequestsPerHost);

 

 

 

hebihong@163.com (JIRA)

unread,
Jul 16, 2019, 11:27:02 PM7/16/19
to jenkinsc...@googlegroups.com
He Bihong edited a comment on Bug JENKINS-58463
The maxConcurrentRequests number 64 I mentioned in this class:  io.fabric8.kubernetes.client.Config

It defined parameter maxConcurrentRequests and default value is 64, but not changed, even it provides setMaxConcurrentRequests method.

It also not set in this class when init the Config: org.csanchez.jenkins.plugins.kubernetes.KubernetesFactoryAdapter, but  set MaxConcurrentRequestsPerHost:
{code:java}
builder.withMaxConcurrentRequestsPerHost(maxRequestsPerHost);{code}

Is it possible add a configure for maxConcurrentRequests and set it here:
{code:java}
builder.withMaxConcurrentRequests(
maxRequestsPerHost maxRequests );{code}
 

 

 

hebihong@163.com (JIRA)

unread,
Jul 16, 2019, 11:27:03 PM7/16/19
to jenkinsc...@googlegroups.com
He Bihong edited a comment on Bug JENKINS-58463
The maxConcurrentRequests number 64 I mentioned in this class:  io.fabric8.kubernetes.client.Config

It defined parameter maxConcurrentRequests and default value is 64, but not changed, even it provides setMaxConcurrentRequests method.

It also not set in this class when init the Config: org.csanchez.jenkins.plugins.kubernetes.KubernetesFactoryAdapter, but  set MaxConcurrentRequestsPerHost:
{code:java}
builder.withMaxConcurrentRequestsPerHost(maxRequestsPerHost);{code}
Is it possible add a configure for  maxConcurrentRequests maxRequests and set it here:
{code:java}
builder.withMaxConcurrentRequests(maxRequests);{code}
 

 

 

hebihong@163.com (JIRA)

unread,
Jul 16, 2019, 11:36:02 PM7/16/19
to jenkinsc...@googlegroups.com
He Bihong updated an issue
 
Change By: He Bihong
Environment:
Plugin version: 1.16.3, Centos; Jenkins start with java ops: -Dorg.csanchez.jenkins.plugins.kubernetes.clients.cacheExpiration=2592000

Kubernetes: AWS EKS

sergio.merino.a@gmail.com (JIRA)

unread,
Feb 26, 2020, 12:16:02 PM2/26/20
to jenkinsc...@googlegroups.com
Sergio Merino reopened an issue
 

I am reopening the ticket because I am having this issue and He Bihong is right.  You can change the max requests per host, but given that the default max requests is 64, there is no way of going over that

Change By: Sergio Merino
Resolution: Duplicate
Status: Resolved Reopened
Assignee: Carlos Sanchez
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages