We currently have the current server set up for one site:
- Server 1 : Admin system & amp; Server 2: Public Site
- Server 3: Public Site
Manage Server 2 and 3 using the Windows Network Load Balancing System goes. They are running copies of both public site code
Sites depend heavily on sessions because they work with user logins, my question is:
How to maintain the middle state?
Web.config currently looks for public sites like this:
Definitely this is the case of converting "localhost" into IP where I want to store the session? I'm thinking of using a database server to store sessions, so it looks like this:
& lt; SessionState mode = "StateServer" cookieless = "false" timeout = "40" stateConnectionString = "tcpip = databaseserverIP: 42424" /> Will it be wise?
I have found many conflicting documents on this subject and anyone would appreciate it to understand that before / this must be done.
In addition to this (when I'm here!), The admin system allows you to upload images for articles. I was thinking of establishing a virtual directory on Server 2 and 3, which was pointing to a network share mapping in the upload directory on the admin site, is there any reason it would have the franchise?
Sorry for my ignorance, this is a unique area for me!
Thank you, Shaun
Depending on the state service you want Does.
Generally in the load-balanced scenario, you used to go to SQL Server session or ASP.Net State service.
Everyone has its support / con's (SQL Server session requires a serialization / deserolization, but if the state is over, the state retains, ASP.Net does not maintain state , If the server fails, but due to this it is very fast
Regardless of this, consider hosting services on separate machines, independent - hence resources with other processes Do not fight for it.
Discuss two requirements - research on your part - as you have availability or speed your primary concern.
Keep in mind that if you have a web server ), You must update the settings of the machine to be similar to each server.
ASP.NET session is a good article on the state (and I have mentioned the problem of the machine ).
Comments
Post a Comment