Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token generation request - Performance issue for Marklogic based authentication with concurrent users #178

Open
MayuriSivanesan opened this issue Nov 10, 2021 · 3 comments
Labels

Comments

@MayuriSivanesan
Copy link

MayuriSivanesan commented Nov 10, 2021

We have used marklogic based authentication for our koop-provider application and have begun load testing of about 100 concurrent users. With every request the time taken to fetch the token gradually increases. Some of them taking nearly more than 70secs to complete token generation request. This causes request timeout error after about 24 concurrent requests through the koop provider. We have also added the diagnostic data for better understanding.
The REST endpoint we tried to access: https://myhost/marklogic/token
And the time taken to complete each response is shown as graph in the attached image
MicrosoftTeams-image (3)
And this the error log we get on server multiple times for concurrent request
{"address":"","code":"ETIMEDOUT","errno":"ETIMEDOUT","level":"error","port":,"syscall":"connect"}
{"level":"debug","message":"resolving connection error connectionInfo:"}
{"level":"debug","message":{"error":true,"errorMsg":"connect ETIMEDOUT :"}}
{"level":"debug","message":"response from connectClient: "}
{"level":"debug","message":{"error":true,"errorMsg":"connect ETIMEDOUT :"}}
{"level":"debug","message":"MarkLogic error"}
Error: connect ETIMEDOUT :
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '',
port:
}
Error: connect ETIMEDOUT :
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '',
port:
}
{"level":"debug","message":"error occurred:"}

@MayuriSivanesan MayuriSivanesan changed the title Token generation request timeout for Marklogic based authentication Token generation request - Performance issue for Marklogic based authentication with concurrent users Nov 10, 2021
@MayuriSivanesan
Copy link
Author

Changed authentication to file-based authentication which reduces the request time.

@jkerr5
Copy link
Collaborator

jkerr5 commented Nov 15, 2021

We should keep this issue open as switching to file-based auth is not an option for everyone.

@jkerr5 jkerr5 reopened this Nov 15, 2021
@jkerr5 jkerr5 added the bug label Jan 16, 2023
@jkerr5 jkerr5 added this to the 1.3.0 milestone Jan 16, 2023
@mitchshepherd
Copy link
Collaborator

Hello @MayuriSivanesan. Are you still using Koop with MarkLogic? Can you provide more information for what type of authentication you require?

@rjrudin rjrudin removed this from the 1.3.0 milestone Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants