linagora / openpaas-gatling

Load test scenarios for the OpenPaaS software suite
Other
1 stars 7 forks source link

Fixing InboxScenari for PKCE with CAS case #54

Closed Arsnael closed 3 years ago

Arsnael commented 3 years ago

Well I kinda manage to login / logout with keycloak + cas, and the rest seems ok.

Things left:

Of course I will need to do a bit of cleanup obviously when I finish to fix everything...

Arsnael commented 3 years ago

BTW forgot to post yesterday but that was the gatling simulation at the end of the day, for 10 users (1 minute injection + 3 minutes scenario duration), from my local:

screenshot--2021 07 02-14_33_32

chibenwa commented 3 years ago

We still have some asset calls to fix, mostly, right?

(I can see 48 404...)

chibenwa commented 3 years ago

@Arsnael Can you post the ZIP of the simulation so that frontend devs can have a look at it?

Arsnael commented 3 years ago

Something I find really odd in that simulation (gatling inbox): we are in a loop where the user always logs in, then do a bunch of stuff (20 times), then logout... pause between 7 and 15s and repeat the loop... hmmm honestly is that really the reality? I don't think users will keep login/logout like crazy I'm not surprised that lemonldap had a hard time to keep up before with such a simulation honestly...

should we:

Arsnael commented 3 years ago

(I can see 48 404...)

@chibenwa those 404 errors are related to my third bullet point:

when simulating a user searching for other users and checking their avatar, some users seem to have an avatar with a not found image: https://openpaas.upn.integration-open-paas.org/images/not_a_user.png. Didn't take the time to dig on that yet
Arsnael commented 3 years ago

The one from today after I:

inboxwithrefreshtokensimulation.zip

tanandy commented 3 years ago

Something I find really odd in that simulation (gatling inbox): we are in a loop where the user always logs in, then do a bunch of stuff (20 times), then logout... pause between 7 and 15s and repeat the loop... hmmm honestly is that really the reality? I don't think users will keep login/logout like crazy I'm not surprised that lemonldap had a hard time to keep up before with such a simulation honestly...

should we:

  • keep the user login in and out on regular basis but maybe more longer period between?
  • just login the user before the loop, logout after it?

interesting comment, i would like to hear more from @remk and @rouazana

Arsnael commented 3 years ago

Also other remark, some assets are usually cached in the browser... but we still load them endlessly in those simulations?

Arsnael commented 3 years ago

kinda fixed the simulation. However, as I commented through the code, some stuff are wrong/missing, and I will try to change that:

Arsnael commented 3 years ago

Extra question though: not sure to completely get why we don't load static assets from nginx in the simulation? it's not openpaas job anymore ok but it's still being loaded by the user though? As we do load the assets of the cas and keycloak... I'm not sure honestly

Arsnael commented 3 years ago

10 users on my local, 1 min injection, 3 minutes scenario run:

screenshot--2021 07 07-17_32_00

zip: inboxPlatformValidationLocal.zip

Tomorrow I will fire this on charge01 at higher numbers

Arsnael commented 3 years ago

I think I'm ok with the status now. Notice that:

Any feedback and discussion is welcomed regarding those points (or anything else), as I'm not 100% sure of the normal usage of inbox by users

Arsnael commented 3 years ago

4000 users inbox after scaling up a bit and adding cpu to backend-esn and sabre:

screenshot--2021 07 13-14_24_24

zip: 4000usersInbox.zip

I think we can merge this. Can somebody help me? I don't have the rights to do it myself

rouazana commented 3 years ago

I don't have the rights to do it myself

You should have them now :)

Arsnael commented 3 years ago

You should have them now :)

Thanks ;)