vicidial-install slave setup cluster

All installation and configuration problems and questions

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

vicidial-install slave setup cluster

Postby dhijrwn » Wed Jun 29, 2022 3:04 pm

Hi guys, I just added a slave server to our cluster setup using the vicibox-install for reporting purposes.

Is it ok that they don't match hardware specs?
Example the master database server has 8 cores and 32gb but the slave server will only have 4 cores and 8 or 16gb.

What I notice is it will replicate all the data from the master database all the user and the leads, even if I uploaded a new leads it will copy it too. Is this normal? I thought the slave server is only for reporting.

and also when I executed the ADMIN_archive_log_tables.pl script on the slave server, both master and slave database was affected.

when I see the crontab of the slave there was no entry on it. Should i put something here?
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: vicidial-install slave setup cluster

Postby carpenox » Wed Jun 29, 2022 4:10 pm

naw they dont need to match specs, and yes, the slave will replicate the master and info will be synced. As far as crontab, u dont need anything because the ones on master db server will replicate down to slave. You can also check out my article about scratch installing a slave server, perhaps it will give you additional insight:

https://dialer.one/how-to-setup-a-slave ... -vicidial/

hope this helps

Chris aka carpenox
Last edited by carpenox on Wed May 03, 2023 5:38 pm, edited 1 time in total.
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: vicidial-install slave setup cluster

Postby dhijrwn » Wed Jun 29, 2022 4:31 pm

carpenox wrote:naw they dont need to match specs, and yes, the slave will replicate the master and info will be synced. As far as crontab, u dont need anything because the ones on master db server will replicate down to slave. You can also check out my article about scratch installing a slave server, perhaps it will give you additional insight:

https://cyburdial.net/how-to-setup-a-sl ... -vicidial/

hope this helps

Chris aka carpenox



I see, that is very nice. Thank you!

I just checked your article it has so many commands I might brick the database configuration, but when I used the vicibox-install script does it do the same?
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: vicidial-install slave setup cluster

Postby carpenox » Thu Jun 30, 2022 8:42 am

yes it does, i was just giving you the info so it could possibly shed some light for you overall
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: vicidial-install slave setup cluster

Postby williamconley » Fri Jul 01, 2022 3:54 pm

dhijrwn wrote:Is it ok that they don't match hardware specs?
Example the master database server has 8 cores and 32gb but the slave server will only have 4 cores and 8 or 16gb.

Yes: Do note, however, that the slave server may not be able to keep up once the DB server is nearing its limit. But that's not something that will affect production, just how close to "now" the slave server can keep itself. If the load gets too high, it may fall behind. We have a script that keeps track of how far behind the archive server is (and turns it red in our ServerWatch if it gets Too Far behind).

This is why some (most?) rooms will leave the Real Time Screen on the live server, since that's really the only report that requires UpToTheSecond information during production.

dhijrwn wrote:What I notice is it will replicate all the data from the master database all the user and the leads, even if I uploaded a new leads it will copy it too. Is this normal? I thought the slave server is only for reporting.

ANY Vicidial script will run ALL update/insert/delete commands on the primary database server: Without regard for the server you run it on. Note that this is how a Vicidial Cluster works: the DB is the central point of data storage. The archive server is ONLY for reports to run. Nothing else. Even the "this user ran this report" entry in the admin logs is stored on the Primary DB server (and then replicates to the replication server in Due Course). That's how replication in mysql works in most cases: the replication server is often "read only" to avoid any misunderstandings.


dhijrwn wrote:and also when I executed the ADMIN_archive_log_tables.pl script on the slave server, both master and slave database was affected.

Yes: Replication servers pull all modification SQL commands and run them so the two databases stay "in sync" at all times. Consider referring to the replication server as the "Reporting Replication" server. It's just to run reports, but has the SAME data as the master server at all times (unless it gets behind a bit ... due to less power in its hardware, which is common).


dhijrwn wrote:when I see the crontab of the slave there was no entry on it. Should i put something here?

Any scripts that run on the archive/slave/replication/reporting (whatever you want to call it) will execute all their sql commands on the Master DB. The ONLY changes that are made to the slave server are by the replication process (pulling db changes from the master). The replication is for Reading data to report. No updates are made on it.

8-)

I hope that helped!
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: vicidial-install slave setup cluster

Postby dhijrwn » Sat Jul 02, 2022 9:00 am

That will surely helped me to understand a lot. Thank you for your answers.
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 75 guests