Page 1 of 2

multi servers

Posted: Tue Jul 08, 2014 8:38 am
by avtorock
hello i have 1 hosting with vestacp ns1/ns2.mydomain.com

i want to add another server what should i do ?

what ips should use second server? how can i connect them to each other ? can anyone explain? thanks

Re: multi servers

Posted: Tue Jul 08, 2014 2:20 pm
by imperio
Hi,
VestaCP does not support multi-server

Re: multi servers

Posted: Tue Jul 08, 2014 4:24 pm
by avtorock
noo? ?? ?

i need them can i configure manually? i need if i cannot configure manually then i have to delete vesta panel, but i dont want to do that. because thats so easy and hardworking panel

Re: multi servers

Posted: Tue Jul 08, 2014 8:57 pm
by erldcrtz
avtorock wrote:hello i have 1 hosting with vestacp ns1/ns2.mydomain.com

i want to add another server what should i do ?

what ips should use second server? how can i connect them to each other ? can anyone explain? thanks
if you only have 1 ip.. you may use the same ip for ns2 ... or just use cloudflare.com as your DNS manager

Re: multi servers

Posted: Wed Jul 09, 2014 8:53 am
by avtorock
no i have 2 ip

Re: multi servers

Posted: Fri Jul 11, 2014 1:58 pm
by cagriaksu
Do you have another set of IP's on your other server? If so, you can just install VestaCP to that server and configure its IP's as another set of NS.

Like say, you have 2 servers with 2 ip's on each, this can be your scenario:

First Server
1.1.1.1 -> ns1.yourdomain.com
1.1.1.2 -> ns2.yourdomain.com

Second Server
1.1.1.3 -> ns3.yourdomain.com
1.1.1.4 -> ns4.yourdomain.com

After that you can just simply share your hosted domains to your server with the appropriate ns's set for each domain.

Re: multi servers

Posted: Mon Feb 02, 2015 10:58 pm
by aksint
I have managed to create a 3 node cluster with vestacp using mariadb galera cluster, csync2 and lsyncd on a CentOS 6.6 install.

I have removed some stuff from vestacp as I don't use it like dns, firewall management and cron jobs
The firewall rules I directly change in /etc/sysconfig/iptables
(not tested if it's possible to cluster those too)

v-add-web has been adapted because chattr +i won't work with csync2
I also had to remove nginx support as it wont work correctly with lsyncd

you can download the scripts from here
wget http://aksint-servers.nl/install/vcpfirstnode.sh
wget http://aksint-servers.nl/install/vcpaddnode.sh
wget http://aksint-servers.nl/install/vcpcsync2.sh
adapt it as described below and start it
I have uploaded all required dependencies to my server

I'm using cloudflare as DNS provider as they provide basic DDOS attack protection and have support for Round Robin. Most important they have a basic plan for free.

install centos 6.6 minimal and after that vestacp like you would usually do
make sure your iptables is allowing all traffic from the nodes you have.

Adapt the vcp node scripts before running them.
You need to set the mariadb password (MYPWD) and external ip (EXTIP), and for addnode the ip addresses of the other nodes as well. Don't include the local ip address)

use vcpfirstnode on the first computer that you are installing vcpaddnode on additional nodes after the first one is running.

vcpcsync2.sh
you could adapt the script for 2 nodes, just remove everything for node3
activate the commented commands for the first node at the bottom of the script
start vcpcsync2.sh on all nodes until you get to the ssh-keygen part. then first finish the secondary nodes, and after that the first node.

Note: There are no slave servers. it is a multi master setup. everything (like users, groups, websites, ssl certificates) on all servers will be synced near-realtime.

Please use these scripts only on virtual machines and clean installs. I can't give any guarantee that it will work on servers that are already online with data.

I just started to test these scripts on real machines instead of virtual machines on my local computer.
I will post an update if I find an error.

This will give you an idea though how to create a cluster without shared storage with vestacp even if it doesn't support it :P

Re: multi servers

Posted: Tue Oct 06, 2015 9:57 am
by sachinsud
Hello,

Links are dead. Can you please share the updated links

Re: multi servers

Posted: Tue Oct 06, 2015 10:13 pm
by aksint
sachinsud wrote:Hello,

Links are dead. Can you please share the updated links
Hi,

Here are the new links

wget http://dl.aksint.nl/vcpfirstnode.sh
wget http://dl.aksint.nl/vcpaddnode.sh
wget http://dl.aksint.nl/vcpcsync2.sh

Also note that rsync has been replaced by xtrabackup-v2 for wsrep method.

With rsync one node would go offline for synchronisation when adding a new node.
With xtrabackup-v2 it will be done realtime without a node going offline.

Re: multi servers

Posted: Thu Nov 26, 2015 11:16 pm
by mach
whoehaha

if you wanna use multiserver on any server is this zpanelcp or vestcp whatever..

first you must know where to handle this .

if you run vestacp 2 and vestacp 3 on local computers this what you must do fist.

the server computer 2 is call by the name (server2) = online http://server2
the server computer 3 is call by the name (server3) = online http://server3

this 2 servers are not the landing server that is in control

the landing server must have the name on the computer server 1 = http://server1

how can you setup this to work its so fucking easy whoehaha on a single ip or whatever...

fist you munst handle apache server on vestacp 1 thats the landing server that controls the proxy for to search local on the server 2 and 3

the land server have in apache this code on the default.conf
http://iws.io/multiple-web-servers-over ... rse-proxy/
landing server is computer 1 in apache for dummies
NameVirtualHost *:80

<VirtualHost *:80>
ServerName server1

DocumentRoot /srv/www/default

<Location "/">
Order Deny, Allow
Deny from all
Allow from all
</Location>
</VirtualHost>

<VirtualHost *:80>
ServerName server2
ServerAlias server2

ProxyPreserveHost on
ProxyPass / http://server2/
ProxyPassReverse / http://server2/
</VirtualHost>

<VirtualHost *:80>
ServerName server3
ServerAlias server3

ProxyPreserveHost on
ProxyPass / http://server3/
ProxyPassReverse / http://server3/
</VirtualHost>
what alot of people in proxy dont understand is this..
proxy have nothing the do whit real domains this is coming later dummies...

all the landing servers do is searching for the local server in this script if its there you can push it online on internet.
what do i mean or how can you push domains from server 2 and 3 online on a single ip thats easy.

if the landing server and the to server 2 and 3 can find all server local it will works online.

let say you have on vestacp 1 the landing server a domain that is cal myserver.com this domain works only on the landing server.

but now it comes. (you must understand the script first (the script search first for the local servers and than for the real domains on that server , if some push it the landing server handle all the local server its that easy

what if some visitors type vesta3.com a real domain that is running on server 2 (http://server2
the proxy from the landing server will search in your network if this real domain is on any server (yes it is on server 2)
it will push this domain online two not one problem .

only you must know how , and you must understand how its working.

if you have 10 computers you can pust 10 servers or virtual servers online not 1problem.

read the link very good above and learn first on a simple standard server with only apache than learn for vestacp