Score:0

Why is Server working Slow and bandwidth chokes

it flag

We have a cloud server. We have load balancer of 3 server and one public IP. We have master slave for DB Connection.

The application serves some data to users, the users post some data and some files to server. Currently the scenario is when the number of users uploading files increases the whole system slows down and many users are not able to perform the basic operation in the web app. the CPU usage is below 25%.No error logs on the application end. The resource are free. The only thing we got is bandwidth getting choked when there are many users uploading files. Is there any solution where we can exactly detect error logs or why it is slow?

Score:0
cn flag

It is most likely that the cloud provider throttles your network I/O. You should check the monitoring tools of said provider and create an alert when you reach certain limits. Or maybe there was already an alert, but no one checked it (yet)?

Akki avatar
it flag
We recently monitored using the iptraf tool where we found that the throughput is going beyond 150mbps but the provider said that we are being assigned 100 mbps is this the issue of server slowdown and application lagging
Erik Norman avatar
cn flag
I guess so. If the provider says you are hitting > 150 mps but your resource only has allocated 100 mps, then that should result in throttling.
Akki avatar
it flag
Hi Erik we updated the Server throughput to 1gb but still faced the same issue of server working slow ... One more thing is when the users increases, the website opens quickly but when the user clicks the login page and a http post request is sent to server with a photo it takes around 10 seconds to reach the nginx server from client
Erik Norman avatar
cn flag
Phew. Difficult without knowing your exact setup. Do you have a test instance where you could do some load-testing and extensive logging? The logging - with timestamp - would help checking where the bottleneck is...
Akki avatar
it flag
Hi Erik, I think i found the glitch , we were accessing some of the images using scandir php function from around thousands of folders which was working too slow and was choking the parallel file process!! Thanks for offering the help!!
Erik Norman avatar
cn flag
Glad you fixed the problem, and curious how you detected it... Did you add some logging?
Akki avatar
it flag
Our portal have two client end one is for users and one for the admins ,the admins used to see the images of the users from the admin portal . We thought that the error was at the user end as the images were getting uploaded from that end ,we almost went through each line but got nothing ,then we checked the whole system from admin to users all the places where files were involved in the scenarios whether read or update, then we found that while the admin is fetching the images from the users thats the only scenario where the scan dir is used and that chocked the whole queue...
Erik Norman avatar
cn flag
Nice, so we can mark this issue as solved? :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.