WARNING:waitress.queue:Task queue depth is 1
-
Hello,
I just tried LibreTranslate and noticed that with only 1 user and slow requests, I still get messages like this:
Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 1 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 2 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 3 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 4 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 5 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 6According to Google results this is linked to performance bottlenecks. Can this be ignored? It surprises me that there is a bottleneck when the server basically does nothing except serving 1 user with one or two translation requests synchronously.
Best Regards,
-
Hello,
I just tried LibreTranslate and noticed that with only 1 user and slow requests, I still get messages like this:
Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 1 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 2 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 3 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 4 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 5 Jun 01 22:50:04 WARNING:waitress.queue:Task queue depth is 6According to Google results this is linked to performance bottlenecks. Can this be ignored? It surprises me that there is a bottleneck when the server basically does nothing except serving 1 user with one or two translation requests synchronously.
Best Regards,
This took some digging. I think it comes from https://github.com/Pylons/waitress/issues/235 maybe.
But I found a LT_THREADS argument. If you put this in
/app/data/env.shand restart the app, the warning seems to disappear.export LT_THREADS=12I bumped the thread count to 8 for next package release.
-
N nebulon marked this topic as a question on
-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login