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

[BUG] Elastic 7.10 with LTR Plugin: Excessive Increase in P95 Latency When Running Multiple A/B Test Variants #12648

Closed
wli-chwy opened this issue Mar 13, 2024 · 1 comment
Labels
bug Something isn't working Plugins untriaged

Comments

@wli-chwy
Copy link

Describe the bug

When running A/B tests using Elastic 7.10 with the LTR plugin, I encounter a significant increase in P95 latency as the number of variants in the test increases. With 5 different but slightly varied queries and corresponding models that share the same feature set, executing 2 variants in interleaved calls at 100 RPS (Requests Per Second) maintains a P95 latency of around 400ms. However, when executing all 5 variants together under the same conditions, the P95 latency escalates to 2 seconds.

Related component

Plugins

To Reproduce

Set up Elastic 7.10 with the LTR plugin.
Configure 5 variants with slightly different queries and models, ensuring all models use the same feature set.
Run a test with any 2 of these variants in interleaved calls at 100 RPS. Observe the P95 latency.
Run a test with all 5 variants together at 100 RPS in interleaved calls. Observe the P95 latency.

Expected behavior

The expectation is that increasing the number of variants from 2 to 5 should not drastically increase the P95 latency, especially from 400ms to 2 seconds. A slight increase in latency might be anticipated due to the higher computational demand, but the scale of the increase observed is unexpected and indicates a potential performance issue.

Additional Details

Elastic 7.10 with LTR plugin 1.5.5-es7.10.2 https://github.com/o19s/elasticsearch-learning-to-rank

@wli-chwy wli-chwy added bug Something isn't working untriaged labels Mar 13, 2024
@dblock
Copy link
Member

dblock commented Mar 15, 2024

@wli-chwy Elasticsearch is https://github.com/elastic/elasticsearch, please open issues related to that product there.

OpenSearch has a fork of LTR, see https://github.com/opensearch-project/opensearch-learning-to-rank-base. This may also be of interest.

@dblock dblock closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plugins untriaged
Projects
None yet
Development

No branches or pull requests

2 participants