grafana-flowcharting icon indicating copy to clipboard operation
grafana-flowcharting copied to clipboard

Long delay with a large number of objects and rules for them

Open vitorli opened this issue 4 years ago • 11 comments

Good day!

At the moment, I began to observe a long delay in the flowcharting response with a large number of objects and rules for them, can I somehow get around this? Maybe you should add resources for better performance? Because I need large circuits and their processing.

If there is a solution or advice, I would be grateful!

vitorli avatar Apr 13 '21 12:04 vitorli

hi @vitorli

can you tell if your delay is due to metric queries download to complete? i've also got some pretty dense diagrams and they won't show up unless all metrics are downloaded.

CrashLaker avatar Apr 21 '21 02:04 CrashLaker

Hi @CrashLaker I don't have a lot of metrics that are used, basically, a large number of objects and rules related to them (1500 objects and about 350 rules). Even simple editing takes a long time to load everything. Moreover, the hangs start after 100 rules stably.

vitorli avatar Apr 27 '21 07:04 vitorli

image

vitorli avatar Apr 27 '21 09:04 vitorli

Yeah, it is not metric related, nor the complexity of the XML drawing.

It is specifically related to the number of rules. I have not seen any improvements with disabling things likes regexes, having no links. Just associating metrics, thresholds and colours. Around 80 rules, it will gradually and noticeably slow down as you add more and more rules. Could it be related to rendering the rules sections for display in Grafana? Could it be related to how the rules are trying to dynamically modify the XML? I dunno. @algenty would need to do some performance tracing to see what is actually slowing it down, when you start adding more rules.

xkilian avatar Apr 27 '21 12:04 xkilian

In my project there are 350 rules, in general, everything takes a very long time to load, and if you need to make adjustments to the rules, it’s just unbearably long, sometimes the page just freezes and resets the changes when reloading and you need to start over image

vitorli avatar Apr 27 '21 13:04 vitorli

You have to disable automatic reloads..

xkilian avatar Apr 27 '21 13:04 xkilian

Reloads are disabled, I meant that the page does not respond and freezes

vitorli avatar Apr 27 '21 14:04 vitorli

I can cofirm this problem on large number rules. Dashboard loads 20-30sec. image

meshkov avatar Apr 28 '21 11:04 meshkov

Thx @xkilian and @xkilian for you support during this pause. Next version will be better for response time. Since few month, i have upgraded with rxjs event but there are too many bugs at this time to publish it.

algenty avatar May 02 '21 16:05 algenty

Mine is the latest version, and I still have the problem of loading slowly due to too many rules. Is there a workaround?

Thuaiqian avatar Jan 12 '23 07:01 Thuaiqian

While this isn't the same issue, I have noticed that when editing the flow charting plugin, the memory allocation keeps growing and growing and I've had pages crash because of this.

pauljones0 avatar Apr 10 '23 22:04 pauljones0