Reputation: 813
We are building a POS app which is cloud based
We decided to 4GB VPS for MySQL And 2GB VPS for nodejs
Our client count will be atleast 5000 and atleast 1500 users will update the tables at same time
I checked how much memory does MySQL takes for 1500 concurrent connections
Now my doubt is , even 1500 connections at a time require more than 4GB RAM .
But I have seen lot and lot of DB servers serving lot of request just 4 GB RAM
Please explain me whether max user connections mean number of end users at front end OR something else?
(Not a duplicate question. I searched many Stack overflow questions but still confusing)
Upvotes: 0
Views: 2607
Reputation: 11
Small sample
Read:
https://www.percona.com/blog/2019/02/25/mysql-challenge-100k-connections/
Upvotes: 1
Reputation: 48387
atleast 1500 users will update the tables at same time
No, they won't. Depending on how badly your application is designed, you may have 5000 concurrent connections - updates will not all happen at the same time.
We decided to 4GB VPS
How did you decide?
Even if you were ask the question properly, it is not something which can be sensibly answered here.
Currently you are not in any position to evaluate any answers you get here - you don't understand the application you are writing nor capacity planning. Your question will be downvoted and closed. Read the linked discussion then go do some modelling and testing. Then go read up on MySQL tuning.
Upvotes: 1
Reputation: 34304
As MySQL documentation on max_connections setting says:
The maximum permitted number of simultaneous client connections.
So, this is the maximum number of concurrent mysql connections that you can have. Nothing to do with the number of front end users, this is purely a mysql level configuration.
Upvotes: 1