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

queue / max_queue metrics returns invalid values for UNIX domain sockets #2588

Open
sylvain-morin opened this issue Dec 13, 2023 · 1 comment

Comments

@sylvain-morin
Copy link

When we configure UWSGI to use UNIX domain sockets (unlike TCP socket), the queue and max_queue metrics are always equals to 0.

"sockets":[
		{
			"name":"/home/uwsgi/socket",
			"proto":"uwsgi",
			"queue":0,
			"max_queue":0,
			"shared":0,
			"can_offload":0
		}
	]

@pinaraf implemented a fix for this issue: #2493

When runnning UWSGI from this branch, the metrics are correct, reflecting the load we are generating.

@pinaraf
Copy link

pinaraf commented Dec 14, 2023

Regarding #2493, please note this patch is dirty and not that efficient, I would not run it as is in production, but I did not go any further due to the lack of interest here (and we thus, sadly, switched to TCP instead of UNIX sockets).
If you want to run uwsgi with this kind of feature, I may find some spare time and improve the patch, but considering the current status of uwsgi (more or less "fixes only, no new developments") I doubt this would ever go upstream :/

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

2 participants