473,473 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to improve scalability of PHP mySQL system?

hsriat
1,654 Recognized Expert Top Contributor
I have a PHP, mySQL site. It works good when number of users is less than 50. To the 51th user, the mySQL server doesn't give connection. Apparently, the hosting company provides only 50 concurrent connections.

How can I improve the scalability of the site so that more then 50 users can use it even if allowable number of connections is limited to 50?

I know it could be done by making some intermediate agents. Any suggestions or documentation on that?
Mar 25 '08 #1
4 1469
Markus
6,050 Recognized Expert Expert
Interesting...

Unfortunately, i have no idea how to counter this, hopefully someone else will because it might come in handy in the future.

Regards, and good luck.
Mar 25 '08 #2
hsriat
1,654 Recognized Expert Top Contributor
Do some research dude!!
I didn't expect this answer from you, you are a PHP expert!

(don't mind, j/k)

Regards,
Harpreet

PS: You site is down?
Mar 25 '08 #3
Markus
6,050 Recognized Expert Expert
Unforunately, it is.
Just as i was finishing up some major remodeling, the site goes down.
What's more annoying is, i have no way of fixing the problem; i just have to wait for my friend (who is hosting it for me) to fix it.

I'm going to get hosting a site on dreamhost, some time soon.

Lol, it was a windfall on my part - my website.
I was talking to this lad on msn, who lives in Aus, and he mentions he has a website, so i say "i have a domain but no hosting" n then he randomly offers to host my site for me. It's great cos it's free, but rubbish because i have limits - there are no bandwidth limits, but i can't make subdomains, or emails, etc. And neither can i fix problems such as the "site temporarily down" one i'm experiencing now!

Pah!

Oh, did you find a solution to your problem?
Mar 25 '08 #4
hsriat
1,654 Recognized Expert Top Contributor
Ok, but you should have found some better host.

I couldn't find the solution. I have an idea though.
Its like, you don't connect directly to the mySQl server, you just include a PHP file, which acts as an intermediate agent to handle the queries. When we run an SQL query, it doesn't go straight to the mySQL server, but instead, it goes to that PHP file. That PHP file than runs the query and gives the response back to the requesting script. And you can have multiple intermediate agents (files). This improves scalability to 10 times.

But its quite a tough job to implement it.

I have an online test-center, on which students take there school tests. At times, there can be 500 students, or even more than that (population of India is 100 Crore). So its a problem for me.

Or I should go for a dedicated server. Which costs me 40,000 rupees per month (approx 600 GBP), which is difficult for me.

So do some research. I'm also doing the same.

Regards,
Harpreet
Mar 25 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Khaled D Elmeleegy | last post by:
--=_alternative 004FC1E080256D75_= Content-Type: text/plain; charset="us-ascii" I am studying the scalability of MYSQL on SMPs on Linux. I am wondering if any one has performed scalability...
0
by: tharma | last post by:
I was wondering if some one provides some information about scalability and performance of ASP vs JSP. Scalability of JSP vs. ASP (which one is better?) Performance of JSP vs. ASP (which has...
8
by: Duffey, Kevin | last post by:
We are looking for information regarding any capabilities of PostgreSQL in regards to scalability. Ideally we want to be able to scale in both directions. What sort of solutions are out there for...
35
by: deko | last post by:
Do I get more scalability if I split my database? The way I calculate things now, I'll be lucky to get 100,000 records in my Access 2003 mdb. Here some math: Max mdb/mde size = 2000 x 1024 =...
6
by: John Wells | last post by:
Guys, My boss has been keeping himself busy reading MySQL marketing pubs, and came at me with a few questions this morning regarding PostgreSQL features (we're currently moving to PostgreSQL). ...
3
by: stefaan.lhermitte | last post by:
Dear MySQL-ians, I perform a SELECT on my database, but it takes over a minute for every run. I have to run it over 10000 times (with different values in the WHERE), so it takes way too long. A...
0
by: Patrick F | last post by:
Hello, I have afew questions regarding performace and scalability. Recently i got contracted to build a new chat system in asp.net, the company that contracted me already have have a major Chat...
2
by: Gordowey | last post by:
Hi all, I would like to ear your opinion about the best approach for and ASP.net with high workload traffic (High number of visitors) using SQL DB Consider the following scenario: - Website...
11
by: rich | last post by:
I'm having a tough time figuring out which of these two options are best. This is a matter of processing my data in PHP, vs MySQL. Usually that's a no brainer, but I have a couple gotchyas here...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.