Page 1 of 1

Deleting a server from a cluster

PostPosted: Fri May 02, 2014 5:06 am
by pahonen
Hi,

We need to delete a server from our cluster (Currently two dialers, a web server and a mysql server, one of the dialers is the one to be removed).

From the documentation I find a lot of information about how to add a server to the Vicidial cluster, but not a single line how to remove one :)

Sure, there is a "DELETE THIS SERVER" link in the Vicidial Admin/Servers setup, but is this all that has to be done?

All the cronjobs and keepalives that should be running in only one server are already in different servers than this one. Also all the phone calls run currently via the other dialer, and the agents' phones are registered to the one dialer to be left running.

I understand that one of the servers is a "main server" where the settings are copied to other servers. How can I determine which one is the main server?

(My colleague had already tried to just shut this server down, which caused the current calls to hang up, and the Real Time Main Report screen went all blank.. So this apparently was not the right approach.)

All the servers are installed from the Vicibox.
VERSION: 2.6-393a
BUILD: 130124-1721

Thanks for your time!

Re: Deleting a server from a cluster

PostPosted: Tue May 06, 2014 10:33 pm
by williamconley
None of the servers is a "main server". They do not copy anything from one to the next unless one is the "archive" server. However: One is the Database server (which is the "settings" repository for the entire system), which may or may not have other roles (You can't delete that one!!). Yes, you can just delete any other server from "admin->servers" after ensuring that the keepalives have been accounted for.

Note that there are often some crontab -e items that need only run on a single server ... if any of those were assigned to that server it would be good to activate it on one you are keeping.

If you are not sure what some of the crontab -e entries do (there are notes for them), you can usually execute any /usr/share/astguiclient script with "--help" to find out what it does (or just nano it and READ what it does ...).

Thanks for posting your Vicidial version with Build (helpful). It's also very helpful if you post the actual iso name of the installation CD (or the version of the installer). Often there are idiosyncrasies associated with them that can ring a bell when you ask a question. If you can, fill this in and put it at the bottom of each post (or in your signature if you only have one server):

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

Happy Hunting! 8-)

Re: Deleting a server from a cluster

PostPosted: Sun Mar 04, 2018 7:49 am
by destefanix
I'd like to reply this post in order to ask you a question:

if i already installed one of the servers ONLY as dialer, is it possible to make THAT server also a web server? Could you provide the best solution?

Re: Deleting a server from a cluster

PostPosted: Sun Mar 04, 2018 7:01 pm
by williamconley
Any server can become a Vicidial web server, there are very few requirements. Installing Vicidial is only required to get the necessary web pages on the server and the /etc/astguiclient.conf file from which those files get their configuration settings. If you already have a dialer on that server, then the astguiclient.conf file is already present. All you need is the web folders and apache2 to be running.

Vicidial agent and admin web servers do not require any special support scripts to be running on the server.

So use ckconfig (or yast) to activate apache2 and reinstall vicidial and be sure to choose the web server option if the web files were not previously copied to that server.
Code: Select all
cd /usr/src/astguiclient/trunk
perl install.pl

Do make sure the web files are for the same version of Vicidial, of course (in case you've performed several installs over time: they must always match). You can also just rsync the /srv/www/htdocs folder from the existing web server.