Deleting a server from a cluster

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Deleting a server from a cluster

Postby pahonen » Fri May 02, 2014 5:06 am

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!
pahonen
 
Posts: 11
Joined: Wed Nov 30, 2011 6:56 am

Re: Deleting a server from a cluster

Postby williamconley » Tue May 06, 2014 10:33 pm

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-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Deleting a server from a cluster

Postby destefanix » Sun Mar 04, 2018 7:49 am

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?
Vicidial 2.14-650a BUILD: 180111-1544 (ViciBox_v8.x86_64-8.0.1) & Asterisk 11.25.1-vici
Vultr VPS: 6 vCore | RAM 16384 MB | 200 GB SSD | 1Gbps
destefanix
 
Posts: 14
Joined: Mon Jun 19, 2017 11:52 pm

Re: Deleting a server from a cluster

Postby williamconley » Sun Mar 04, 2018 7:01 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 87 guests