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
switch to another server
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.
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.