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

db flex tape #8627

Merged
merged 4 commits into from
May 14, 2022
Merged

db flex tape #8627

merged 4 commits into from
May 14, 2022

Conversation

Spookerton
Copy link
Member

@Spookerton Spookerton commented May 8, 2022

A. removes unused forum sql configuration

B. adds some up-front config guards to save a little work on spamming db connect attempts even when sql is disabled

C. Adds SSmisc_slow, a 5 minute wait SS.

The only behavior of SSmisc_slow at the moment is DoReconnects, which handles connection maintenance for dbcon and dbcon_old by:

  • checking if they're connected and sending a tiny safe query to keep them open.
  • or if not, making sure they're closed, then reopening them with new handles.
  • and if it fails this too many times, giving up softly.

With logging at every step.

This should remove the need for someone to push the fix database connection button by simply not allowing valid connections to time out when the lobby's been sitting empty for a half day stretch.

Draft because I want to make sure of DoReconnects locally first.

https://i.imgur.com/gBBquIG.png

these do happen further on as well but it's pointless to go through the
extra steps if we have no intention of using a database anyway, and
these procs are called in a bunch of places blindly.
@Spookerton Spookerton added Bugfix The PR fixes one or more bugs. Quality of Life [PR] This improves user experience somehow. labels May 8, 2022
@Spookerton
Copy link
Member Author

Spookerton commented May 8, 2022

For what it's worth, this is a bandaid if it works. Properly redoing mysql/maria handling, squashing the two db's together, and having a subsystem specific to connection maintenance and query handling is more appropriate - but that would mean coordinating live data changes as well as writing it and I don't have time right now. I guess I'm doing it anyway after this. #8628

@Spookerton Spookerton marked this pull request as ready for review May 8, 2022 12:38
@Spookerton Spookerton mentioned this pull request May 8, 2022
@Spookerton Spookerton changed the title db things db flex tape May 8, 2022
@Atermonera Atermonera merged commit 2f29ad7 into PolarisSS13:master May 14, 2022
@Spookerton Spookerton deleted the spkrtn/sys/db-things branch May 22, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix The PR fixes one or more bugs. Quality of Life [PR] This improves user experience somehow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants