Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item creation blocks DB? #71

Open
ktr41n opened this issue May 23, 2023 · 3 comments
Open

Item creation blocks DB? #71

ktr41n opened this issue May 23, 2023 · 3 comments

Comments

@ktr41n
Copy link

ktr41n commented May 23, 2023

I just got this running the other day and noticed that when the AH bot is creating auctions I am blocked from logging into the game.

If I am already in the game, I have an issue with my warlock where after summoning my voidwalker, his control panel never appears. He likewise never reacts to enemies.

It seems that creating auctions is overwhelming my world db? I tried adding more threads but that doesn't seem to do anything. Does anyone else have this issue? Is there a recommended config for mySQL?

@kaijikan
Copy link

kaijikan commented Jul 6, 2023

I am running trickerer npc bot merged baseline, and have added the AH mod. I also find that I get intermittent issues with slow logins.

I am interested to know how you diagnosed your slow response issue? I have suspected it is a issue with the AH mod, but have not been able to work out what tracing would give me a root cause.

One thing I have done which seems to have improved it, is to use a shared auction house, set the minimum items to 8000, but change the AH bulk operation parameter from 200 to 6. This means it will only add 6 auctions a minute and drop feed the auction house, rather then cause mass bottleneck.

My findings are only anecdotal, but I think that has helped a lot (though not eliminated the slow login issue)

@ktr41n
Copy link
Author

ktr41n commented Jul 6, 2023

I still have some issues, but the biggest improvement for me was moving it from my RAID of HDDs to a single SSD. I guess my RAID couldn't keep up.

@dedmen
Copy link

dedmen commented Nov 3, 2023

Database transactions are asynchronous and put into a Queue.
But seems like azerothcore doesn't have a priority system.
So your queue ends up with 2000 auction insert's, followed by one request for character login.
And the server won't process the character login before the auctions are all done.

Workaround for that could be, check how long the queue already is. And if its long, then skip adding auctions.
The proper solution would be a priority system with database transactions but that would need to be done on AzerothCore side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants