Skip to content

Commit 5016353

Browse files
committed
Log amount of connections
1 parent 5145b0f commit 5016353

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/main/kotlin/eu/openanalytics/shinyproxyoperator

src/main/kotlin/eu/openanalytics/shinyproxyoperator/Operator.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ class Operator(client: NamespacedKubernetesClient? = null,
168168
podRetriever = PodRetriever(this.client)
169169
}
170170

171+
Timer().schedule(5000, 5000) {
172+
val num = (getOperatorInstance().client as DefaultKubernetesClient).httpClient.connectionPool().connectionCount()
173+
val max = (getOperatorInstance().client as DefaultKubernetesClient).configuration.maxConcurrentRequests
174+
logger.warn { "Current number of connections: $num of $max"}
175+
}
171176
}
172177

173178
/**

0 commit comments

Comments
 (0)