Certain outbound requests seem to queue up #259

Open
opened 2022-11-09 00:05:54 +00:00 by nninja · 2 comments

Anecdotally, I've noticed certain requests would block other (unrelated) requests

Examples:

  1. Browsing timeline generates multiple requests to fetch remote users' avatars, which seems to block other unrelated requests, such as Elasticsearch.
  2. Fetching user's banner image has the same effect as (1)
  3. Request to Follow remote user sometimes take a long time - Possible to make this a background task?

Appreciate any pointers to help identify the root cause, and possible tweaks/improvements.

p.s. Instance is running outbound HTTP proxy (tinyproxy), Media proxy, MediaProxyWarmingPolicy and the associated nginx caching as described here: https://docs.akkoma.dev/stable/configuration/storing_remote_media/

Attached the current Job Queue settings for reference:

image

Anecdotally, I've noticed certain requests would block other (unrelated) requests Examples: 1. Browsing timeline generates multiple requests to fetch remote users' avatars, which seems to block other unrelated requests, such as Elasticsearch. 2. Fetching user's banner image has the same effect as (1) 3. Request to Follow remote user sometimes take a long time - Possible to make this a background task? Appreciate any pointers to help identify the root cause, and possible tweaks/improvements. p.s. Instance is running outbound HTTP proxy (`tinyproxy`), Media proxy, `MediaProxyWarmingPolicy` and the associated nginx caching as described here: https://docs.akkoma.dev/stable/configuration/storing_remote_media/ Attached the current Job Queue settings for reference: ![image](/attachments/15036b18-999c-45dd-9857-8ea06177e79e)
232 KiB

yeah, HTTP uses a pool setup - it should allow 50 outbound requests at any one time by default

are you consistently hitting this limit?

yeah, HTTP uses a pool setup - it should allow 50 outbound requests at any one time by default are you consistently hitting this limit?
Author

@floatingghost would hitting limit trigger some form of logs?

@floatingghost would hitting limit trigger some form of logs?
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#259
No description provided.