Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)B

BitOneZero @ .world

@ BitOneZero @lemmy.world

Posts
24
Comments
88
Joined
3 yr. ago

Supporter of the art work of James Joyce, "World Wide Wake" as in year 1924 Irish Dublin story "Finnegans Wake"!!! Year 1923 "Finn's Hotel"

Joy to you!

  • Sell-out for upvotes

  • Edit still see some performance issues. Needs more troubleshooting

    Federation overheard is putting a lot of load on servers. Creating one task for every single post, comment, and vote in RAM-only queue.... pending changes: https://github.com/LemmyNet/lemmy/pull/3466

  • we created extra lemmy containers to spread the load. (And extra lemmy-ui containers).

    Is Rust HTTP server running into thread limits? database connection pooling? All kinds of internal questions bout that solution.

  • My lemmy server is also running the same versions are you are now. I was getting timeouts with lemmy.world federation so I recompiled lemmy_server with timeout changes:

     
        
    diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs
    index e5d07db2c..e2c592d82 100644
    --- a/crates/utils/src/lib.rs
    +++ b/crates/utils/src/lib.rs
    @@ -18,7 +18,7 @@ use std::time::Duration;
    
     pub type ConnectionId = usize;
    
    -pub const REQWEST_TIMEOUT: Duration = Duration::from_secs(10);
    +pub const REQWEST_TIMEOUT: Duration = Duration::from_secs(13);
    
     #[macro_export]
     macro_rules! location_info {
    diff --git a/src/lib.rs b/src/lib.rs
    index cc77ca48f..45c621a7c 100644
    --- a/src/lib.rs
    +++ b/src/lib.rs
    @@ -37,7 +37,7 @@ use tracing_subscriber::{filter::Targets, layer::SubscriberExt, Layer, Registry}
     use url::Url;
    
     /// Max timeout for http requests
    -pub(crate) const REQWEST_TIMEOUT: Duration = Duration::from_secs(10);
    +pub(crate) const REQWEST_TIMEOUT: Duration = Duration::from_secs(16);
    
     /// Placing the main function in lib.rs allows other crates to import it and embed Lemmy
     pub async fn start_lemmy_server() -> Result<(), LemmyError> {
    
    
      
  • I think a static page page explaining to users that the server is being upgraded would be best.

    Beehaw.org did this, their nginx seems configured to return a nice error message.

  • From what I've seen, there is a 10-second hard-coded timeout for HTTP, seems too low for the kind of load going on. Especially if the server is opening tons of connects to the same peer server.

  • My main Lemmy.ml account comment isn't properly federating over to lemmy.world, so I'm duplicating my reply on my alt-account:

    Cool. SvelteKit is ideal for this.

    Can you move the server name to an .env variable so I don't have to run a sed? sharing my sed:

    find src/ -type f | xargs sed -i 's/lemmy\.world/enterprise.lemmy.ml/g'

    FYI, there is a double https:// on page https://github.com/ando818/lemmy-ui-svelte/blob/main/src/lib/lemmyclient.js

    On desktop browser, I'm getting a '500 internal error' on the /r/post/xxx route, but not sure why. The console isn't showing anything. The page.server.js seems to get the JSON fine from the API, but the .svelte file in that route is failing.