• 0 Posts
  • 20 Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle


  • This guy’s the worst at putting together a pursuasive argument. Almost all the problems he wrote wil have solutions we engineer in the future. Dismissing electric cars, the very real and imminent problem they have of CO2 emissions, based on cherry picking current problems they have in different countries is disingenuous and short sighted. eg. California’s CO2 emissions problems at night cannot be generalized to other places.

    And the punchline of this article is an apples-to-oranges comparison - you can’t harp on transport trucks and then argue the solution is walking and biking.

    Lithium batteries (or their successor) will get cheaper, lighter, and more energy dense because there’s a massive market opportunity for that now. This article completely ignores our ability to advance technology to solve problems, lol.













  • GameGod@lemmy.catoSelfhosted@lemmy.world•Have I been DoS'd?
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I don’t see anyone else actually telling you how to figure out if you’re being DoSed, so I’ll start:

    Check your logs. Look at what process is eating your CPU in htop and then look at the logs for that process. If it’s a web application, that means the error and access logs for it. If you see a flood of requests to a single URL, or some other suspicious pattern in the log, then you can try blocking the IPs associated with them temporarily and see if it alleviates the load. Repeat until the load goes down.

    If your application uses a database, check your database logs too. IIRC postgres logs queries that take longer than 5 seconds by default, which can make it easy to spot a slow query especially during a time of high load.

    I don’t think DNS amplification attacks over UDP are likely to be a problem as I think most cloud providers filter traffic with forged src addresses (correct me if I’m wrong). You can also try blocking all inbound UDP traffic if you suspect a UDP flood but this will likely break DNS lookups for you temporarily. (your machine should not have any open UDP ports in any case though if you’re just running Lemmy).

    If you want to go next level, you can use “perf” to generate a system-wide profile and flamegraph which will show you where you’re burning CPU cycles. This can be extremely useful for troubleshooting performance or optimizing applications. (you’ll find that even ipfilters takes CPU power, which is why most DDoS protection happens on dedicated hardware upstream)



  • Steve/GN strikes me as the annoying guy who just waits you for you to make a mistake and then shouts GOTCHA and makes a video exposing why you’re an idiot to the world. There’s just this weird antagonistic tone/vibe I always get from Steve’s video. (IMHO LTT and GN are both great at what they do, and that’s why they’re both successful.)

    Edit: this is also a “there’s no such thing as bad publicity” situation. GN makes a 44 minute long video about this (lol) and I’m sure LTT will make at least one reply video. If they go back and forth, it’s just more content and clicks for both of them. Win win.