Welcome Guest, Not a member yet? Register   Sign In
Serverload balancing in codeigniter
#1

[eluser]npCoda[/eluser]
Can anyone suggest me, how to balance load of webtraffic in CodeIgniter. Since it's crashing many times. As the site is event photoos list.

Thank you for the support.
#2

[eluser]rthut[/eluser]
Try serving your static content (css, images, etc.)from another server (Amazon S3).
Try to install https://www.varnish-cache.org/ in your server (if you are root).

I'm using a PaaS that deal with this issue for me, named phpfog. Very cheap and simple to start. Worth!

(sorry about the bad english)
#3

[eluser]Abel A.[/eluser]
First, get rid of apache. Nginx is the future/present.

Here's my config and works like a charm:
CentOS 6 (go with 64bit if you have more than 1GB of RAM)
Nginx
PHP-FPM w/APC

Improving CI sessions (do one of the following):
* Change PHP's session handler (memcache is recommended)
* If using MySql for sessions, convert session table to MEMORY by changing the data field to varchar.

Varnish is a pain to install, but good choice. I've seen better results with nginx + APC though.

We can't really recommend a better solution for you until you give us more details. What's crashing? php? mysql? hows your current setup? what errors are you experiencing? what hardware are you currently on? are you on a VPS? what are the specs on your VPS? etc.

We need more info.




Theme © iAndrew 2016 - Forum software by © MyBB