GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 10-Feb-2023 19:38:10 JST Aral Balkan Aral Balkan

    I hope I never have to rely on my Mastodon instance in an emergency because given the state of my Sidekiq queue, I’d likely have been dead for several hours before anyone even hears my cry for help :)

    (I say this with a smile but it’s actually really quite concerning that I can’t rely on it being real-time. Going to have to see what I can do about it. Can’t really afford to spend more than the ~€50/month I’m spending on my instance of one and my posts are routinely delayed by hours these days.)

    In conversation Friday, 10-Feb-2023 19:38:10 JST from mastodon.ar.al permalink

    Attachments


    1. https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/109/836/262/011/714/403/original/6d8014666904ca1e.png
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Friday, 10-Feb-2023 19:37:33 JST Jackson Palmer Jackson Palmer
      in reply to
      • Masto.host
      • Dom DeLorenzo

      @aral @dominick @mastohost I'd be curious to know how many outgoing HTTP requests per second are occurring and whether *that* is the bottleneck vs. Sidekiq itself.

      It's hard to get away from chattiness if you want to remain decentralized - but 3k requests per second should be a walk in the park even on fairly modest hardware.

      In conversation Friday, 10-Feb-2023 19:37:33 JST permalink
    • Embed this notice
      Masto.host (mastohost@mastodon.social)'s status on Friday, 10-Feb-2023 19:37:33 JST Masto.host Masto.host
      in reply to
      • Jackson Palmer
      • Dom DeLorenzo

      @ummjackson @aral @dominick There are more things going on than just sending 3k requests. For example, if a new user interacts with the post, the profile needs to be "federated", meaning avatar/header/bio/keys/pinned posts need to be copied. Also, media files (avatar/header/pinned media) need to be converted to make sure they have the correct dimensions/format. Also, remote servers can be slow to respond and threads need to wait for a response, that also does causes the process to be slower.

      In conversation Friday, 10-Feb-2023 19:37:33 JST permalink
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Friday, 10-Feb-2023 19:37:45 JST Jackson Palmer Jackson Palmer
      in reply to
      • Dom DeLorenzo

      @dominick Wow, that's unsustainable and a huge problem.

      In conversation Friday, 10-Feb-2023 19:37:45 JST permalink
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Friday, 10-Feb-2023 19:37:45 JST Jackson Palmer Jackson Palmer
      in reply to
      • Dom DeLorenzo

      @dominick Actually... reading into this a bit more. Sending 3k HTTP requests shouldn't be a lot of work, this sounds more like a Sidekiq issue specifically. Hmm.

      In conversation Friday, 10-Feb-2023 19:37:45 JST permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 10-Feb-2023 19:37:45 JST Aral Balkan Aral Balkan
      in reply to
      • Jackson Palmer
      • Masto.host
      • Dom DeLorenzo

      @ummjackson @dominick Yeah, it’s one that doesn’t seem to be easy to solve apparently.

      CC @mastohost

      In conversation Friday, 10-Feb-2023 19:37:45 JST permalink
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Friday, 10-Feb-2023 19:37:51 JST Jackson Palmer Jackson Palmer
      in reply to

      @aral It looks like you're running a single user instance, how could performance be that bad? Is it because of your # of followers?

      In conversation Friday, 10-Feb-2023 19:37:51 JST permalink
    • Embed this notice
      Dom DeLorenzo (dominick@indieweb.social)'s status on Friday, 10-Feb-2023 19:37:51 JST Dom DeLorenzo Dom DeLorenzo
      in reply to
      • Jackson Palmer

      @ummjackson Not to respond for Aral, but yeah, basically. Aral wrote about the phenomena himself back in November: https://ar.al/2022/11/09/is-the-fediverse-about-to-get-fryed-or-why-every-toot-is-also-a-potential-denial-of-service-attack/

      In conversation Friday, 10-Feb-2023 19:37:51 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: ar.al
        Is the fediverse about to get Fryed? (Or, “Why every toot is also a potential denial of service attack”)
        Every time I post something that gets lots of engagement, I essentially end up carrying out a denial of service attack on myself. What does this say about the design of Mastodon and ActivityPub and the future of the fediverse?
    • Embed this notice
      Masto.host (mastohost@mastodon.social)'s status on Friday, 10-Feb-2023 19:40:37 JST Masto.host Masto.host
      in reply to
      • Matt :idic: 🌌

      @aral @matt Yes, it's a single process because it's limited to 20 threads. On my testing only with 30 or more threads does creating multiple processes make a difference.

      In conversation Friday, 10-Feb-2023 19:40:37 JST permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Friday, 10-Feb-2023 19:40:56 JST Aral Balkan Aral Balkan
      in reply to
      • Masto.host
      • Matt :idic: 🌌

      @matt Not sure. I believe so. It looks like the tasks are handled in batches of ~20 at a time.

      CC @mastohost

      In conversation Friday, 10-Feb-2023 19:40:56 JST permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        time.cc
    • Embed this notice
      Matt :idic: 🌌 (matt@oceanplayground.social)'s status on Friday, 10-Feb-2023 19:40:57 JST Matt :idic: 🌌 Matt :idic: 🌌
      in reply to

      @aral are you running concurrent processes to consume the queues? default is 1 for all queues.

      https://www.kujoe.blog/2023/01/optimizing-sidekiq-for-mastodon-40x.html

      In conversation Friday, 10-Feb-2023 19:40:57 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: blogger.googleusercontent.com
        Optimizing Sidekiq for Mastodon 4.0.x
        KuJoe's little blog where he documents all of the things that pop into his head. Good luck!
    • Embed this notice
      Masto.host (mastohost@mastodon.social)'s status on Saturday, 11-Feb-2023 02:46:58 JST Masto.host Masto.host
      in reply to
      • Jackson Palmer
      • Dom DeLorenzo

      @ummjackson Yep, I see Sidekiq threads waiting for media encoding and remote server responses. So, yes I do think they are synchronous.

      @aral @dominick

      In conversation Saturday, 11-Feb-2023 02:46:58 JST permalink
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Saturday, 11-Feb-2023 02:46:59 JST Jackson Palmer Jackson Palmer
      in reply to
      • Masto.host
      • Dom DeLorenzo

      @aral @mastohost @dominick Those extra background tasks make sense, but are you saying the architecture is such that those operations block concurrent processing of outgoing HTTP requests? I imagine performance could also be improved by not sitting around waiting for a response on all 3k of those HTTP requests.

      In conversation Saturday, 11-Feb-2023 02:46:59 JST permalink
    • Embed this notice
      Aral Balkan (aral@mastodon.ar.al)'s status on Saturday, 11-Feb-2023 02:47:00 JST Aral Balkan Aral Balkan
      in reply to
      • Jackson Palmer
      • Masto.host
      • Dom DeLorenzo

      @mastohost @ummjackson @dominick Yeah, I don’t think it’s a coincidence that we see this every time there’s an influx of new people. It’s definitely not just about my server.

      In conversation Saturday, 11-Feb-2023 02:47:00 JST permalink
    • Embed this notice
      Jackson Palmer (ummjackson@mastodon.social)'s status on Saturday, 11-Feb-2023 05:59:48 JST Jackson Palmer Jackson Palmer
      in reply to
      • Masto.host
      • Dom DeLorenzo

      @mastohost @aral @dominick That feels like an optimization waiting to happen? I had assumed things were either happening concurrently/async or being offloaded to different queues...

      In conversation Saturday, 11-Feb-2023 05:59:48 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.