microservices-demo / load-test

A load-test script & container for Sock Shop
Apache License 2.0
50 stars 137 forks source link

Is it normal to see some 500 errors for logins in front-end log? #15

Open rberlind opened 7 years ago

rberlind commented 7 years ago

When running the load-test service with the default options (-d 60 -r 200 -c 2), I get good results in the user-sim log itself with just a few sporadic errors.

However, I see quite a few HTTP 500 errors for logins in the front-end service's log looking like:

[stdout] Received login request [stdout] 500 [stdout] Error with log in: true [stdout] GET /login 401 126.906 ms - -

Note that some logins do succeed. For instance:

[stdout] Received login request [stdout] {"user":{"firstName":"","lastName":"","username":"barronkelly","id":"58e79f1b0d8eec0009da0e1d","_links":{"addresses":{"href":"http://user.apcera.local:8080/customers/58e79f1b0d8eec0009da0e1d/addresses"},"cards":{"href":"http://user.apcera.local:8080/customers/58e79f1b0d8eec0009da0e1d/cards"},"customer":{"href":"http://user.apcera.local:8080/customers/58e79f1b0d8eec0009da0e1d"},"self":{"href":"http://user.apcera.local:8080/customers/58e79f1b0d8eec0009da0e1d"}}}} [stdout] 58e79f1b0d8eec0009da0e1d [stdout] Merging carts for customer id: 58e79f1b0d8eec0009da0e1d and session id: Ygumay5VY1doTJS18T-l_Mwc0gwsfcW1 [stdout] Carts merged. [stdout] Sent cookies. [stdout] GET /login 200 152.222 ms - 13

I'm wondering if the login errors I see in the front-end log are intentional and part of the test. If not, why are the errors not reflected in the user-sim log and statistics?

Thanks, Roger Berlind