• 0 Posts
  • 13 Comments
Joined 3 months ago
cake
Cake day: March 24th, 2024

help-circle









  • lemmy currently only sends one activity per receiving instance at a time, so there is a round trip for every single post, comment, vote, etc., before the next activity will be sent. you wouldn’t see any increased number of connections, as there’s only a single one.

    do you have access logs for /inbox with the lemmy.world’s user agent? you might be able to derive some information from that if requests increased over time or something, maybe also response status codes?


  • I can’t tell you why you’re lagging but you’re clearly lagging quite a bit behind.

    which country is your instance located in?
    did you (or someone else on your instance) recently subscribe to a bunch of high traffic communities on lemmy.world, which would make lemmy.world send more activities to you?

    lemmy by default only sends activities in a community to another instance if there’s at least one subscriber to the community on that instance. if you’re located far from finland, where lemmy.world is located, you might have been able to keep up just enough before this, although this isn’t the first time as the graphs above show.



  • records can’t be duplicated in the database, the activity id is a unique key:

    lemmy=# \d sent_activity
                                                   Table "public.sent_activity"
               Column            |           Type           | Collation | Nullable |                  Default
    -----------------------------+--------------------------+-----------+----------+-------------------------------------------
     id                          | bigint                   |           | not null | nextval('sent_activity_id_seq'::regclass)
     ap_id                       | text                     |           | not null |
     data                        | json                     |           | not null |
     sensitive                   | boolean                  |           | not null |
     published                   | timestamp with time zone |           | not null | now()
     send_inboxes                | text[]                   |           | not null |
     send_community_followers_of | integer                  |           |          |
     send_all_instances          | boolean                  |           | not null |
     actor_type                  | actor_type_enum          |           | not null |
     actor_apub_id               | text                     |           |          |
    Indexes:
        "sent_activity_pkey" PRIMARY KEY, btree (id)
        "sent_activity_ap_id_key" UNIQUE CONSTRAINT, btree (ap_id)