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

Search endpoint is slow #40

Open
augustuswm opened this issue Oct 27, 2023 · 3 comments
Open

Search endpoint is slow #40

augustuswm opened this issue Oct 27, 2023 · 3 comments

Comments

@augustuswm
Copy link
Contributor

augustuswm commented Oct 27, 2023

Needs investigation.

Calling the search endpoint takes multiple seconds, whereas it should be around 300ms.

There are likely multiple issues affecting this, but to start with using time + curl across a few envs:

Local machine (Minnesota)

real	0m0.239s
user	0m0.082s
sys	0m0.000s

AWS VM (us-west-2)

real	0m0.231s
user	0m0.052s
sys	0m0.001s

Rack 3 VM - largely variable results

real	0m1.412s
user	0m0.067s
sys	0m0.008s
real	0m0.882s
user	0m0.056s
sys	0m0.019s
real	0m0.430s
user	0m0.066s
sys	0m0.008s
real	0m1.600s
user	0m0.070s
sys	0m0.005s
@augustuswm
Copy link
Contributor Author

A large portion of the slowdown is related to the existing client re-establishing a new client and connection for each request. The large outliers though that I have still not tracked down.

@augustuswm
Copy link
Contributor Author

We have seen similar behavior with requests for static route resources which suggests that the outliers are not rfd-api or vm specific. It is possible that we have some kind of bottleneck with our network appliances that sit in front of rack 3.

@augustuswm
Copy link
Contributor Author

Independent of the above results, search responses return excess data and should be trimmed down to make sure we are only querying from our backed the exact necessary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant