CodeIgniter Forums
How important is sitting behind a load balancer? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: How important is sitting behind a load balancer? (/showthread.php?tid=78544)



How important is sitting behind a load balancer? - richb201 - 02-05-2021

My project was designed to run on one server. It keeps some images it stores directly in a directory and keeps the addresses of those images in a mysql database. 

How important is it for me to be running multiple instances behind a load balancer? 

I don't expect to ever get to over 50 users. The system is not very CPU bound, except when it is running a report, which can take 6-8 seconds to run. 

How important for the success of the project is it to be able to run on multiple instances?


RE: How important is sitting behind a load balancer? - paliz - 02-05-2021

(02-05-2021, 08:26 AM)richb201 Wrote: My project was designed to run on one server. It keeps some images it stores directly in a directory and keeps the addresses of those images in a mysql database. 

How important is it for me to be running multiple instances behind a load balancer? 

I don't expect to ever get to over 50 users. The system is not very CPU bound, except when it is running a report, which can take 6-8 seconds to run. 

How important for the success of the project is it to be able to run on multiple instances?
response pre sec ci4 is very good you dont have worry about how many use could reach you server


RE: How important is sitting behind a load balancer? - richb201 - 02-05-2021

I ran it with the Profiler. It take 3.4 secs to run the report. I have split off a part that preps the database files prior to running the reports and that takes about 1.1 sec. I am running CI 3.

I am just not sure about how CI runs. Will other users be blocked while a 3.4 second report is running?

I already spent a bunch of time modifying my system to use RDS but i am running out of gas to use S3 for the images.