noi-techpark / bdp-core

Open Data Hub / Timeseries Core
https://opendatahub.com
Other
9 stars 4 forks source link

Mobility writer has high CPU usage + several bugs which might lead to data loss #244

Closed Piiit closed 2 years ago

Piiit commented 2 years ago

The high cpu is mainly due to ORM and object creation, de/serialization issues...

The intermediate solution before we migrate to the new infrastructure is to install it twice (or even more often, if necessary) and have a load balancer in front.

The problem is, that the logging is minimal and no alerting / monitoring is in place. I need to create something small and fast for this job, otherwise I would have to fly blindly...

The whole thing is not little work, seeing already the end of this tool near... I will therefore first try to improve the writer itself for a short time, as follows:

... and if that is not enough (CPU still above 90%), go with the following minimal tasks:

... if all those efforts above are not enough or if kibana reveals issues:

Moved to new issues

Piiit commented 2 years ago

@rcavaliere Finally with the new logging capabilities (now on production), I found one culprit:

image

The echarging plugs are a huge push to the writer, that is, every 5 minutes we push something that takes 30-60 minutes to get written to the DB.

Piiit commented 2 years ago

@dulvui @rcavaliere Finally done... now lets check DCs