With all the backlash1 surrounding Reddit’s unpopular decision to restrict their API while effectively killing most of the 3rd party apps in the process, many started wondering whether Reddit should remain their “front page of the Internet” and maybe even started to explore alternatives. Background People who have been on the internet for a while might be currently experiencing a bad case of déjá vu. For those who weren’t around back then, Reddit’s biggest user influx has happened at the same time when the core users of Digg (a popular link aggregator of the 10s) started protesting some changes their platform of choice had recently introduced.
@belidzs@fost.hu
creator
link
fedilink
English
11Y

load balancing is automatic between pods thanks to Services: https://kubernetes.io/docs/concepts/services-networking/

@iso@lemmy.com.tr
link
fedilink
English
31Y

I saw that Lemmy container has scheduled jobs. How did you handled that? IDK I’m not sure about is Lemmy really “stateless”.

https://lemmy.world/post/920294

@belidzs@fost.hu
creator
link
fedilink
English
71Y

Right, that’s a good point.

So far it’s working quite well, however for a micro-sized instance it’s no surprise. Worst case scenario I can do the same thing as the admins of lemmy.world did: create a dedicated scheduling pod using the same docker image as the normal ones, but exclude it from the Service’s target, so it won’t receive any incoming traffic.

The rest of the pods can then be dedicated to serve traffic with their scheduling functionality disabled.

@tyfi@wirebase.org
link
fedilink
English
11Y

Do they have a write up on their setup?

redcalcium
link
fedilink
English
5
edit-2
1Y

I also use kubernetes to run my Lemmy instance. Sadly, pictrs uses their own “database” file which can only be opened by a single pod because it refuse to run if the “database” lock is already acquired by another pod, making scaling up the number of pods impossible. I wish they use postgres instead of inventing their own database. I suspect this is one of the reasons why those large Lemmy instances have difficulty scaling up their server.

@Ducks@ducks.dev
link
fedilink
English
11Y

You mean pictrs can’t scale, or the other pods cannot as well? I separated lemmy-ui, the backend, and pictrs into different pods. Haven’t tried scaling anything yet though, but I did notice the database issue with pictrs when RollingRestart, had to switch to Recreate.

redcalcium
link
fedilink
English
31Y

Only pictrs that can’t scale. Lemmy ui and backend seems to be stateless.

@Ducks@ducks.dev
link
fedilink
English
11Y

Great to hear, that will make it super easy if I start allowing users on my instance.

@tyfi@wirebase.org
link
fedilink
English
11Y

This is a really interesting observation. Curious if the devs are aware that this breaks simple scalability efforts

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 136 users / day
  • 427 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog