King

joined 1 year ago
[–] [email protected] 2 points 1 year ago (2 children)

Thanks for checking.
We don't need full database replication. We are just replicating activities that other servers are subscribed to. So the Comments table, only some of the rows will be "replicated". Not sure if/how CouchBase handles this.

[–] [email protected] 2 points 1 year ago (6 children)

Can you provide a link? Only thing I see on Couchbase is for NoSQL databases.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for doing all this.

Do we have any real numbers from a real server? How many votes are trying to be federated to how many servers?

Just ballparking some approximate numbers:

  • [email protected]
  • 15k subscribers
  • 4000 subscribed servers
  • 10 votes per subscriber per day

15000 * 4000 * 10 = 600,000,000 federated actions. That is around 7,000 per second 24/7 for one community.

IMO, this real time federation just doesn't scale. We need to start planning the specs for federation batching.

[–] [email protected] 3 points 1 year ago (1 children)

My instance is missing both comments to this post. https://vlemmy.net/post/376384 versus https://lemmy.ml/post/1605318

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Here is an example of the stats being different. Top is lemmy.ml, bottom is vlemmy.net

[–] [email protected] 2 points 1 year ago (1 children)

For anyone else looking, here is the issue: https://github.com/LemmyNet/lemmy/issues/3259

[–] [email protected] 2 points 1 year ago (2 children)

Batching the inserts up only kicks the can down the road a few weeks. We need a 500x improvement in insertion time.

[–] [email protected] 2 points 1 year ago (3 children)

Completely off topic. You've linked to another post. I follow it, and end up on a different server, where I don't have an account. I wonder if there is a possible solution.

[–] [email protected] 3 points 1 year ago

Buying $10000 of Apple stock in 1997 wouldn't really move the market. TSLA, GOOG, AMZN, MSFT, NVDA, and so on. Lots of stocks where I could buy a small about and get 500x-1000x returns some 10 years later.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

What advantages will traefik bring? Asking, because I know nothing about it.

As I understand it, the bulk of traffic is federation traffic.

[–] [email protected] 6 points 1 year ago (1 children)

I remember reading an issue where the scheduled task to update hot and active was breaking shortly after reboot. So those lists were getting frozen in time, until the next reboot.

[–] [email protected] 2 points 1 year ago

That's a good question. Every federated action (post, comment, votes) is transmitted to every subscribed server in real time. Computers are really fast, and should be able to handle thousands of federated actions every second. I don't think we have a good idea on what number of servers are too many.

view more: next ›