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

Properly report Vertx worker pool size #35483

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Properly report Vertx worker pool size #35483

merged 1 commit into from
Aug 24, 2023

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Aug 23, 2023

This is done by setting the relevant property
in VertxOptions to the size of the Quarkus
ExecutorService that is actually by Vertx
(in prod mode).
The reason we update VertxOptions is that
PoolMetrics uses it to calculate the blocking
pool size.

Closes: #34998

@quarkus-bot

This comment has been minimized.

@geoand geoand force-pushed the #34998 branch 2 times, most recently from 0ffe08f to 3eb83d8 Compare August 23, 2023 09:27
@geoand
Copy link
Contributor Author

geoand commented Aug 23, 2023

cc @ahus1

@quarkus-bot

This comment has been minimized.

@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 23, 2023
@geoand
Copy link
Contributor Author

geoand commented Aug 23, 2023

Something seems to be wrong with the devmode tests. I'll have a look tomorrow.

@quarkus-bot

This comment has been minimized.

This is done by setting the relevant property
in VertxOptions to the size of the Quarkus
ExecutorService that is actually by Vertx
(in prod mode).
The reason we update VertOptions is that
PoolMetrics uses it to calculate the blocking
pool size.

Closes: quarkusio#34998
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 24, 2023

Failing Jobs - Building 8b06077

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 Windows Build ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 20
✔️ Maven Tests - JDK 11
Maven Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs

@geoand geoand merged commit 416a731 into quarkusio:main Aug 24, 2023
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Aug 24, 2023
@geoand geoand deleted the #34998 branch August 24, 2023 13:32
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 24, 2023
@quarkus-bot quarkus-bot bot added this to the 3.4 - main milestone Aug 24, 2023
@ahus1
Copy link
Contributor

ahus1 commented Aug 24, 2023

Thank you @geoand - I only managed to test this today. I built your branch, and created a small demo application.

With the default of max threads 200, when calling the /metrics URL, I now see the metric worker_pool_idle returned with 199 (as expected, as one thread is active calculating the metrics) and a worker_pool_ratio of 0.005.

Although the threads will be started on-demand in the executor and are not really idle, those metrics make sense from the Vert.x facade.

LGTM - thank you for this change!

@geoand
Copy link
Contributor Author

geoand commented Aug 24, 2023

🙏

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

Successfully merging this pull request may close these issues.

ExecutorService should expose metrics
3 participants