switch to another server

These are old archives. They are kept for historic purposes only.
Post Reply
firsti
Posts: 8
Joined: Sun Jul 03, 2005 7:06 pm
Location: Switzerland

switch to another server

Post by firsti »

hello all,

can someone tell me how I make this:
I have 2 of server, which are linked with one another. irc.example.com and a irc2.example.com. when irc.example.com is going down, how can I make that all users, which are on irc.example.com automatically switch on the server irc2.example.com?

sry, for my english, I hope you can understand wath I mean.

greez firsti
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

I'm assuming you are talking about a scheduled reboot (or maintenance), so you know in-advance the server will go down at xx:yy.

The usual aproach
Just update your DNS record: point irc.example.com to the ip of irc2.example.com.
(and if using dns round robin, just remove the server from the list)
Then, when the ircd goes down (it's best to KILL the ircd right before reboot/whatever), the users will automatically connect to the new ip.

Note that DNS changes will take some time to take effecet, how long depends on your TTL (Time To Live), which can be anything (a few hours is common).

**
Alternative
I have made module called JumpServer, by which you can move "all" your users to another server by a simple command. Note however that support for this "go to server xyz" is limited, basically only mIRC supports it.

**
Naturally you can combine both :).

--

If you were talking about an unscheduled shutdown, dns round robin with multiple servers can be useful.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

I like my way:

Tell them the server is going down in 5 minutes, and if they complain, tell them they had fair warning. :P
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Post by Darvocet »

Stealth that is a pretty good way, I am going to use that in the future... and Syzop, I'll have to dl a copy of that module to play around with!
- Darvocet
Sr. Network Admin: EpicIRC.Net
firsti
Posts: 8
Joined: Sun Jul 03, 2005 7:06 pm
Location: Switzerland

Post by firsti »

thx Syzop for the infos.

have you from the JumpServer-Module a .dll format?


greez
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
firsti
Posts: 8
Joined: Sun Jul 03, 2005 7:06 pm
Location: Switzerland

Post by firsti »

oh, thanks Dukat
Post Reply