Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

We have two internal we server(Server1 and Server2) for our intranet application.

Could any one brief how to keep anyone of a machine live automaticaly when a machine have crashed?
Posted
Comments
José Amílcar Casimiro 12-Mar-13 6:09am    
http://en.wikipedia.org/wiki/Computer_cluster
Manfred Rudolf Bihy 12-Mar-13 6:57am    
Please rephrase your question. As it currently stands there is no sense in it.
"How to keep anyone of a machine live automatically", what is that supposed to mean.
Even with some wild guesses as to your intentions I can make neither heads nor tails of it.
You can try to explain your scenario in short descriptive sentences.

Thank you!

1 solution

You can't "keep the machine live" as such all you can do is try to make the system more resilient by not having a single point of failure. You can have both servers running in parallel (called load balancing) which is used to improve performance and failover onto one if one goes down. You might want to take a look at http://technet.microsoft.com/en-us/library/cc779570(v=ws.10).aspx[^]. You also need to consider database replication assuming you have one, as this itself would constitue a single point of failure too.

From an ASP.NET standpoint you need to consider how you are storing ASP.NET session. One option on the load balancer side is to have sticky sessions, where a user continues to communicate with one server. Given your failover scenario, I wouldn't recommend it as the session would go down with the machine. The other option is to store the asp.net session in a common persistence store (typically a database), this comes with a performance cost and you now need to consider the database as a potential point of failure if you didn't before. The final thing is more of a gotcha, if you set up a failover environment you'll need each machine to have the same machine key[^].

Setting these environments up isn't a facile task, not something you could give detailed instructions for in an answer like this. That said it is possible for a single developer to do this with a bit of patience and effort. Even so this doesn't ensure the service is always up, it just mitigates risk
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900