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

[Performance] 🟡 0% Improvement - Undertow thread size POST /api/login #299

Open
ghkdqhrbals opened this issue Dec 13, 2023 · 0 comments
Assignees
Labels
feature: performance performance improvement

Comments

@ghkdqhrbals
Copy link
Owner

ghkdqhrbals commented Dec 13, 2023

POST /api/login

  • Implements
    • updating undertow io.threads from 4 to 16, worker.threads 64 to 256
  • Resource consumption
    • user-server : 1.7 cpu
  • Improvements
    • avg TPS 15.6 -> 16.7 🙄 No big difference

I think Undertow has already created io threads and worker threads optimized for the number of CPUs in the server.

The number of optimized threads

  • io.thread = 2 * cpu core
  • worker.thread = 4 * io.thread

Before and after

image

  • TPS, MTT, MTTFB, ERROR

image

@ghkdqhrbals ghkdqhrbals added the feature: performance performance improvement label Dec 13, 2023
@ghkdqhrbals ghkdqhrbals self-assigned this Dec 13, 2023
@ghkdqhrbals ghkdqhrbals changed the title [Performance] 0% Improvements [Performance] 0% Improvement Dec 13, 2023
@ghkdqhrbals ghkdqhrbals changed the title [Performance] 0% Improvement [Performance] 0% Improvement - Undertow thread size Dec 13, 2023
@ghkdqhrbals ghkdqhrbals changed the title [Performance] 0% Improvement - Undertow thread size [Performance] 0% Improvement - Undertow thread size POST /api/login Dec 14, 2023
@ghkdqhrbals ghkdqhrbals changed the title [Performance] 0% Improvement - Undertow thread size POST /api/login [Performance] 🟡 0% Improvement - Undertow thread size POST /api/login Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: performance performance improvement
Projects
None yet
Development

No branches or pull requests

1 participant