Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Clustering
#1

[eluser]Unknown[/eluser]
hi,

i want to put my website in a cluster, i have 2 servers for the application and one for the mysql
in the config file i have set to store the sessions in the database
the problem is if i log in on one server on the other i'm not logged
can you help me with this ?
#2

[eluser]Wuushu[/eluser]
The two application servers have identical urls? If so, it should just work. Cookie will be readable from both application-servers transparently, and get the right session-db-row from the 1 database-server.
#3

[eluser]Unknown[/eluser]
yeah, the url's are the same
#4

[eluser]WanWizard[/eluser]
A cluster is normally active-passive, so there would be only one server responding.

Do you mean you have 2 active webservers running the same application? How do you make them accessable? DNS round-robin? Load balancers? Apache load balancing? Other solution? Any natting involved somewhere?




Theme © iAndrew 2016 - Forum software by © MyBB