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

MySQL and/or Redis crashing sometimes on Ubuntu 20.04 #183

Closed
jessuppi opened this issue Jan 28, 2023 · 4 comments
Closed

MySQL and/or Redis crashing sometimes on Ubuntu 20.04 #183

jessuppi opened this issue Jan 28, 2023 · 4 comments

Comments

@jessuppi
Copy link
Member

A few days ago, a member of our Discord mentioned his SlickStack server was sometimes crashing where it seemed like the MySQL database was simply not working properly until he rebooted the machine.

Shortly afterwards, a client contacted me who is running a 20.04 server also, claiming the site was down... there was also a laundry list of Redis object cache errors in the log.

I'm not sure what is causing MySQL problems on Ubuntu 20.04 for SlickStack servers. Most of us have moved on already to focusing on Ubuntu 22.04 which has been the most stable stack for us yet. But for documentation purposes I'm opening this Issue and hopefully we eventually are able to figure this out...

Ref: #182

@jessuppi jessuppi changed the title MySQL and/or Redis service crashing sometimes on Ubuntu 20.04 MySQL and/or Redis crashing sometimes on Ubuntu 20.04 Jan 28, 2023
@hj-collab
Copy link

Not sure if this is a redis issue and not enough info to debug but Redis is a complex beast. You can try something simpler like memcached. Redis is not suitable for your stack also. It's recommended to use when you can run multiple instances of redis to bypass it's single threaded nature. Memcached have fewer features but is suitable for most wp sites and can also take benefit of more cores due to multi threaded nature. Wordpress VIP also uses memcached but in multiple clusters. https://docs.wpvip.com/technical-references/caching/object-cache/

@jessuppi
Copy link
Member Author

Thanks @hj-collab

We have discussed Memcached a few times in fact, as I've always felt Redis is too complicated. Most people using SlickStack are running lowend boxes, with the occasional high-traffic site. Regardless of CPU threads, if talking about support for load balancing and clusters, do you think Memcached is better for us all around?

@hj-collab
Copy link

@jessuppi Yes, Memcached is better than Redis for low and high traffic sites. People go with redis as it has much larger featureset compared to Redis. But wordpress sites don't need such features until you are running a lot of custom code and some bypassing WP structure. My memcached config file is less than 10 lines in total. An average redis config file is much bigger due to so many features they provide.

@jessuppi
Copy link
Member Author

jessuppi commented Apr 8, 2023

I'm probably not going to invest time into figuring out why Redis is having occassional issues on Ubuntu 20.04 and will be closing this Issue for now, future comments are welcome.

We are going to proceed with shifting to Memcached, I see Roots Trellis is also using it.

It seems Memcached config/security options have improved in the last few years with more options than before, so that is also encouraging, it was "too" basic before.... I guess a few bad news stories helped push it forward.

@hj-collab if you're willing to comment on our default config, thanks!

https://github.com/littlebizzy/slickstack/blob/master/modules/memcached/memcached-conf.txt

@jessuppi jessuppi closed this as completed Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants