18:32, EEST
October 21, 2019
Hey,
I have a problem with the client SDK running in a spring boot service in a kubernetes cluster.
The application creates one UaClient instance per server it connects to. The problem is that as soon as uaclient.connect() gets called for any of the instances, all ports of the service are blocked for the duration of the connect call. This leads to Spring Actuator Mectrics being not reachable when connect is not instant or fails, which leads to failed health checks. I really have no idea why this happens since the calls are executed in their own threads. I also cannot pinpoint to any change i have made or since when this is happening. SDK I am using is 5.2.2. I think we have had the problem since SDK 4.X,
Maybe anybody an idea?
Thanks
Best regards
FA
12:02, EEST
April 3, 2012
Hi,
UaClient.connect by default does Read/Browse all Types from the server, which might take network and cpu resources. I’m not that familiar with kubernetes, but maybe that is enough to temporarily cause other activities to pause or slow down enough to cause a timeout for the Metrics (maybe there is a way to configure a larger “timeout” for it somehow?).
IF you do not have any custom Structures on the server(s) that you would need to read or write, you can also try to see if setting UaClient.setInitTypeDictionaryOnConnect(boolean) and UaClient.setInitTypeDictionaryAutoUsage(boolean) to false before calling connect changes anything. Note that as a result once you use any UaNodes there will be ~100 smaller calls to the server (compared to like ~5-10 larger ones that would have happened on connect; skipping over some details).
Most Users Ever Online: 1919
Currently Online:
50 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1