federation issue to instance - eviltoast

I cant seem to get timely post federation to my instance (moist.catsweat.com) from lemmy.world. I might see a new post every few hours instead of every minute or so.

posts from other lemmy instances (lemmy.ca, lemmy.ml, dbzer0, etc) have no problem.

i see a ton of lemmy.world traffic in my nginx logs… it seems very specific to ‘new posts’. voting/comments seem to come through no problem once the post shows up.

ive checked a few other instances similar to mine, and they are not having this issue. so it seems something specific to lemmy.world and my instance.

i do recall a similar issue several months back, and it involved a lemmy.world admin resetting some outbound queue.

any ideas?

  • Nothing4You@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    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.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      Hey, sorry for the late reply, but I’m trying to figure out who runs this graph, because if it needs something like a bit of funding to store data for longer periods I’d like to help. Do you know, or know where you heard about it?

      • Nothing4You@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        Hi, I run this.

        What benefit do you expect from longer retention periods and how much time did you have in mind?

        The way data is currently collected and stored keeps the same granularity for the entire time period, which currently uses around 60 GiB for a month of retention across all monitored instances.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          3 months ago

          Mainly, I’m interested in how Lemmy is growing and changing as a whole. If there was a way to store activity just weekly or even monthly that would help.

          • Nothing4You@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 months ago

            so all you’re looking for is the amount of activities generated per instance?

            that is only a small subset of the data currently collected, most of the storage use currently comes from collecting information in relation to other instances.

              • Nothing4You@programming.dev
                link
                fedilink
                English
                arrow-up
                2
                ·
                2 months ago

                I’ll probably have to look at another storage than prometheus, aiui it’s not really well suited for this task.

                maybe something with influxdb+telegraf, although i haven’t looked at that yet.

    • originalucifer@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      its running on AWS, US. you can see on 4/24 i finally solved for a long running bottleneck (disk writes), and it was smooth sailing until recently.

      im not sure if anyone else has subscribed to any new communities, but ive been subbed to most of the big ones for awhile.

      i don’t see any saturation in the server network activity, connections, etc. my queues are not overloaded, and as i mentioned other instances are very performative.

      maybe i just need to be patient and let it catch up. those graphs are awesome

      • Nothing4You@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        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?