elsa-core icon indicating copy to clipboard operation
elsa-core copied to clipboard

Slow worflow definitions and instances

Open Juandavi1 opened this issue 3 years ago • 6 comments

Hi,

when we enter the definition of a flow, the endpoint of v1/activities is consulted but it takes a long time to respond. Adding the times of the assets makes everything too slow.

image

we are working with version 2.3

do you know how we can improve performance?

thank you

Juandavi1 avatar Dec 15 '21 15:12 Juandavi1

Hi @Juandavi1

It's hard to say what makes it so slow, but given that it is also slow to download static assets would lead me to believe something's not right with the network connection. Also make sure that your F12 Developer tools isn't emulating slow connectivity:

image

If you can tell a bit more about your infrastructure, then that might help.

sfmskywalker avatar Dec 20 '21 12:12 sfmskywalker

hello,

it seems that the assets are loading fast but the activites endpoint is still taking a long time.

currently we have the project running in a container inside kubernetes but in terms of resources it has no cpu or memory limitation.

we are currently running version 2.4.1

image

image

I did a small load test to that endpoint and these were the results

image

Juandavi1 avatar Dec 31 '21 15:12 Juandavi1

Hello, the problem was that the option providers were called multiple times and made a request that took a couple of seconds. We added a cache and now times are much better.

Question, is this number of invocations to a provider normal?

thank youu

Juandavi1 avatar Dec 31 '21 16:12 Juandavi1

Good question. Will need to be investigated 👍🏻

sfmskywalker avatar Jan 07 '22 12:01 sfmskywalker

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 01 '22 22:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 02:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 30 '22 12:10 stale[bot]