BetterQuesting icon indicating copy to clipboard operation
BetterQuesting copied to clipboard

Server tps drops

Open ApolloMCC opened this issue 6 years ago • 12 comments

My tps are all over the place at random, seems like it's BQ mod, last time I had this issue when i reported it, it was builders wand changing the inventories too fast. Since then building wands are banned. Here's the most recent spark. https://pasteboard.co/IdLLlnX.png

ApolloMCC avatar May 08 '19 16:05 ApolloMCC

Could this be related that my server has 1.5k players? So 1.5k quest progression files lag the server? Seems like a database issue to me.

ApolloMCC avatar May 08 '19 16:05 ApolloMCC

1.5k players... oof. Didn't think people were running BQ servers of such scale yet.

yea this one is on me. I haven't rewitten the networking code to properly deal with server scaling to this degree.

It'll take some to fix this so I don't have an ETA but I'll work something out in the mean time to help.

Funwayguy avatar May 08 '19 23:05 Funwayguy

If I delete some quest files from inactive players do you think that would help? If so, where do i find those files and what do i need to delete?

ApolloMCC avatar May 09 '19 00:05 ApolloMCC

No that wouldn't fix it. The problem has more to do with me currently sending the entire progress database to every player everytime it needs updating (wasn't a problem until packs started approaching 1K quests on servers). It's a matter of sync efficiency rather than the actual data stored. Even with a few 100 players this issue is still quite noticeable with players on weak connections effectively getting DoSed off the server once it gets too large or has too many quests to sync.

The progress database is also a bulk collection of all player data so you'd need to manually delete a whole bunch of entries without breaking the formatting to trim the data of old players. It does give me an idea for doing it via command though I doubt it would make any improvement to this

Funwayguy avatar May 09 '19 00:05 Funwayguy

I dont want to be pushy, but this was reported again 2 months ago, my server is suffering from this too. Please a temporary fix for now would be great

Spontini avatar May 09 '19 19:05 Spontini

Hey, is there any news about this issue? BQs TPS drops are really problematic for communities. Would love to hear good news

Abukii avatar Jun 28 '19 20:06 Abukii

Yes and no. I have been working on networking code but it's such a massive task that it's still going to be a while before any of that is ready for release. Currently build 300 has some means of preventing the serverside TPS hitching but it's no less impactful on metwork bandwidth.

Funwayguy avatar Jun 28 '19 21:06 Funwayguy

If you want some "encouragement" so you can give it more hours, I am sure that there is a lot of server owners who could gather some for you

123Kappa avatar Jun 28 '19 21:06 123Kappa

I can make this happen, it's a very important update for us and it has been months

123Kappa avatar Jun 28 '19 21:06 123Kappa

It's not so much about info. Put simply I'm having having to rewrite large portions of code to to run at the scale of an MMO without breaking existing modpacks.

PS: I do have a Discord with Patreon channels now if you really want but that's up to you.

Funwayguy avatar Jun 28 '19 21:06 Funwayguy

Is there any ETA? Because most of the servers have started wiping maps, also if I deleted the quest file completely so it clears the player completions would that fix the issue temporary?

123Kappa avatar Jun 30 '19 17:06 123Kappa

No idea why they'd wipe maps, that probably wouldn't fix much of anything at all in the long run besides culling some progression data from user who no longer play (which you could do without the map erasure).

I'd suggest joining the Discord so I can give you a better rundown of where I'm at with the rewrite and what's left to do. Faster for me to answer questions about it over there too.

Link: https://discord.gg/AevsYGa

Funwayguy avatar Jul 01 '19 01:07 Funwayguy