Click here to Skip to main content
15,888,044 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add Multiple IP Addresses Pin
Michel Godfroid13-May-10 0:05
Michel Godfroid13-May-10 0:05 
GeneralRe: Add Multiple IP Addresses Pin
#realJSOP13-May-10 0:19
mve#realJSOP13-May-10 0:19 
AnswerRe: Add Multiple IP Addresses Pin
#realJSOP13-May-10 0:18
mve#realJSOP13-May-10 0:18 
GeneralRe: Add Multiple IP Addresses Pin
wasifmuneer13-May-10 0:56
wasifmuneer13-May-10 0:56 
AnswerRe: Add Multiple IP Addresses Pin
wasifmuneer13-May-10 1:41
wasifmuneer13-May-10 1:41 
GeneralRe: Add Multiple IP Addresses Pin
Dave Kreskowiak13-May-10 3:54
mveDave Kreskowiak13-May-10 3:54 
GeneralRe: Add Multiple IP Addresses Pin
wasifmuneer14-May-10 1:31
wasifmuneer14-May-10 1:31 
GeneralRe: Add Multiple IP Addresses Pin
Dave Kreskowiak14-May-10 2:06
mveDave Kreskowiak14-May-10 2:06 
So basically, you're trying to kludge together a "poor mans cluster". This is not going to implement a "high availability" system. You've got a couple of problems.

First, neither server is going to have an exact copy, if at all, of the data the other one has. There has to be some kind of syncing going on. There is going to be, in most cases, a substantial lag between one server storing data and the other one picking it up. Depending on the amount of data you have to sync, this can take from minutes to hours to complete 1 sync cycle.

Next, what's you're polling interval going to be for pings? What's you're timeout going to be? How many pings in a row must the server not respond to before it's considered failed? What if both servers are actually running and it's just the ping that didn't come back? Now you've got two servers with the same IP's running and you'll end up with even bigger problems.

Another problem is how are you going to recover the failed server once it's back up? When it comes back up, it should have it's original IP address to match it's DNS record. Now you've got 2 servers going on the same IP address and the one that hold both IP's has no way of automatically determining that the failed server is back up and running because ping's going to that address will get routed back to the "good" server without ever going down the network cable.

At a certain auto manufacturer I used to work for, we did something similar. It was impossible to get the lag time down between the two servers to under 4 hours because they had to sync up hundreds of GB of data constantly. Once server always had a copy of the data that was at least 4 hours old, and probably longer.

IMHO, you should be looking for an actual cluster or single IP solution depending on your requirements. Doing something like this is not scalable at all. If you added more servers, this solution cannot be expanded without rewriting the code to "steal" IP addresses.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




Questionpublic...() where T statement confusion?? Pin
Sevententh12-May-10 22:20
Sevententh12-May-10 22:20 
AnswerRe: public...() where T statement confusion?? Pin
Richard MacCutchan12-May-10 22:25
mveRichard MacCutchan12-May-10 22:25 
GeneralRe: public...() where T statement confusion?? Pin
Sevententh12-May-10 22:53
Sevententh12-May-10 22:53 
AnswerRe: public...() where T statement confusion?? Pin
Tony Richards12-May-10 22:41
Tony Richards12-May-10 22:41 
QuestionRe: public...() where T statement confusion?? Pin
Sevententh12-May-10 23:33
Sevententh12-May-10 23:33 
AnswerRe: public...() where T statement confusion?? Pin
Tony Richards12-May-10 23:37
Tony Richards12-May-10 23:37 
GeneralRe: public...() where T statement confusion?? Pin
Sevententh12-May-10 23:59
Sevententh12-May-10 23:59 
Questionsend file via bluetooth Pin
behzadcp12-May-10 20:05
professionalbehzadcp12-May-10 20:05 
AnswerRe: send file via bluetooth Pin
Abhinav S12-May-10 20:23
Abhinav S12-May-10 20:23 
QuestionADO.NET Sql cmd/adapters and multiple line SQL statements Pin
devvvy12-May-10 18:22
devvvy12-May-10 18:22 
AnswerRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
Abhinav S12-May-10 18:26
Abhinav S12-May-10 18:26 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
devvvy12-May-10 18:47
devvvy12-May-10 18:47 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
J4amieC12-May-10 21:46
J4amieC12-May-10 21:46 
GeneralRe: ADO.NET Sql cmd/adapters and multiple line SQL statements Pin
PIEBALDconsult13-May-10 4:07
mvePIEBALDconsult13-May-10 4:07 
QuestionDataRowState not working as expected Pin
gmhanna12-May-10 9:38
gmhanna12-May-10 9:38 
AnswerRe: DataRowState not working as expected Pin
Gopal.S12-May-10 18:21
Gopal.S12-May-10 18:21 
QuestionServer program error: Unable to read data from the transport connection Pin
aei_totten12-May-10 8:02
aei_totten12-May-10 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.