Failover with 4 servers

This forum is for everyone having trouble with linking two UnrealIRCd servers

Moderator: Supporters

Post Reply
orodriguez
Posts: 1
Joined: Wed Jul 26, 2017 2:52 pm

Failover with 4 servers

Post by orodriguez » Wed Jul 26, 2017 3:13 pm

Hello,
Currently I am experiencing some issues in regards to failover topology. The starting topology is currently setup to have all servers directly connect to server.1; once server.1 disconnects the idea is to have server.3 and server.4 directly connect to server.2. Finally, if server.2 goes offline, i would like server.3 and server.4 to connect to each other. Using the deny link block I have tried a few different combinations and have not succeeded yet. Are there any examples that can be shared?
I am using the unsecure option for linking servers, my link blocks look as follows:

Code: Select all

link server.1 
{
	incoming {
		mask *;
	};
	outgoing {
		bind-ip *; /* or explicitly an IP */
		hostname  server.2;
		port 7777;
		options { insecure; autoconnect; };
	};
	password "password"; 
	hub *;
	class servers;
};
using the deny link block I have attempted to block connection between nodes; the base case where all nodes directly connect to server.1 is not an issue using the following deny link block on server.2, server.3, and server.4

Code: Select all

/*server.3 deny link looks as follows */
deny link {
        mask server.2;
        rule !connected(server.1);
        type auto;
};

deny link {
        mask server.4;
        rule !connected(server.1)&&directcon(server.2);
        type auto;
};
any help would be greatly appreciated, thank you in advance

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest