samthedev.com
This is my developer account! I'll strive to share a piece of dev life daily for the community to interact with. ✌️
I'm thrilled I could educate myself enough to figure this out alone and that I can continue to serve this small local coffee business. ♥️
I'm thrilled I could educate myself enough to figure this out alone and that I can continue to serve this small local coffee business. ♥️
During investigation I had set up alarms for the Load stat to email me when it was above 1.
I'd been getting daily notifications that it exceeded that threshold.
I didn't get any this morning 🙌
During investigation I had set up alarms for the Load stat to email me when it was above 1.
I'd been getting daily notifications that it exceeded that threshold.
I didn't get any this morning 🙌
As long as I could get our RAM up to 3GB and add another vCPU, the problem should solve itself.
I went up 2 tiers to 2vCPUs | 4GB RAM | 60GB memory for roughly $45 more per month.
The client agreed.
As long as I could get our RAM up to 3GB and add another vCPU, the problem should solve itself.
I went up 2 tiers to 2vCPUs | 4GB RAM | 60GB memory for roughly $45 more per month.
The client agreed.
Stack Overflow suggested to me that MySQL should have at least as much RAM as the size of your total data.
This is because in-memory computation is faster, so ideally your whole data set can fit in RAM.
Well our RAM was 1GB lol
Stack Overflow suggested to me that MySQL should have at least as much RAM as the size of your total data.
This is because in-memory computation is faster, so ideally your whole data set can fit in RAM.
Well our RAM was 1GB lol
So I found our slowest queries that were also called fairly often.
They were not queries that are executed on the page the complaints came from, but they could used some tuning/indexing.
I checked no queries used SELECT *.
So I found our slowest queries that were also called fairly often.
They were not queries that are executed on the page the complaints came from, but they could used some tuning/indexing.
I checked no queries used SELECT *.
The Load was definitely a problem.
Could I alleviate that somehow without upgrading the DB?
I confirmed we were using pooled connections correctly in both the App and the API.
The Load was definitely a problem.
Could I alleviate that somehow without upgrading the DB?
I confirmed we were using pooled connections correctly in both the App and the API.
I know my clients do most of their activity in the early mornings, from 3am - 6am.
That's when the load was spiking, with concurrent connections topping out at 7, matching their number of kiosks.
I know my clients do most of their activity in the early mornings, from 3am - 6am.
That's when the load was spiking, with concurrent connections topping out at 7, matching their number of kiosks.
Ok, odd, what about the MySQL Database? It's always kept memory around 70% and it's CPU hovered around 4% with spikes to 80%.
Those spikes seemed...large.
Ok, odd, what about the MySQL Database? It's always kept memory around 70% and it's CPU hovered around 4% with spikes to 80%.
Those spikes seemed...large.
Recently they noted that sometimes they have to refresh the page several times and it still doesn't update.
I took this as queries were taking too long to return so the API must be overloaded.
🧵
Recently they noted that sometimes they have to refresh the page several times and it still doesn't update.
I took this as queries were taking too long to return so the API must be overloaded.
🧵
I did notice the documentation I followed to set up my newest NextJS project was vastly different than what I remembered setting up for my portfolio site. Oddly enough, this manifested itself as simply not displaying my new Images on local dev.
It’s going to be one of THOSE Saturdays 🫠 ☕
I did notice the documentation I followed to set up my newest NextJS project was vastly different than what I remembered setting up for my portfolio site. Oddly enough, this manifested itself as simply not displaying my new Images on local dev.
It’s going to be one of THOSE Saturdays 🫠 ☕
Your dollars are power, spend them with great thought.
If you're migrating off Vercel, Netlify is a good option that has a free-tier.
Your dollars are power, spend them with great thought.
If you're migrating off Vercel, Netlify is a good option that has a free-tier.
It will cut down job hunting effort and time by at least half!
It will cut down job hunting effort and time by at least half!
5 active days and over 3 hours of videos watched (excluding what I'll watch today).
I'm hoping to take my AWS Solutions Architect - Associate exam in October while also juggling a LONG (93 hours) in-depth AI/LLM course.
5 active days and over 3 hours of videos watched (excluding what I'll watch today).
I'm hoping to take my AWS Solutions Architect - Associate exam in October while also juggling a LONG (93 hours) in-depth AI/LLM course.
Ran into TS compiler issues and realized the packages must have breaking changes.
Luckily this library is well documented!
Ran into TS compiler issues and realized the packages must have breaking changes.
Luckily this library is well documented!
Should I probably find out? Yeah, probably!
Should I probably find out? Yeah, probably!