MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: chrisf on 2013-07-07, 23:11:00

Title: master/slave kloxo-mr questions
Post by: chrisf on 2013-07-07, 23:11:00
I would appreciate some clarification on a few things concerning kloxo-mr in master slave cluster.  Please when answering my questions add the # so I know which part you are answering :)

#1:
do I have to update all custom. tpl files on slave or will the master custom templates be used? (for domain, php-fpm, etc)

#2:
If I am only using mysql on master, and on server roles for slave I have deleted mysql - can I uninstall mysql on slave?

I have more questions but start here :)

Thank you
Title: Re: master/slave kloxo-mr questions
Post by: MRatWork on 2013-07-08, 17:17:46
Slave may not work for php-fpm_event on apache/nginx/lighttpd but if you choose other then php-fpm_event/_worker, it's work without problem.
Title: Re: master/slave kloxo-mr questions
Post by: chrisf on 2013-07-08, 18:38:31
mustafa - please answer my questions from original post :)

I have the two configured in master/slave and have been working on it.

I use php-fpm event - why not work?  the master is working fine, going to add sites to slave to test.  why not work on slave?

please answer questions 1 and 2 from first post and:

#3:
If I use the master as mmail - will all qmail traffic go through master?  If a php script on the slave sends mail it will be piped and sent from the master?

I can not find any good tutorials/information concerning kloxo master/slave.

Please advise. :)
Title: Re: master/slave kloxo-mr questions
Post by: MRatWork on 2013-07-09, 02:42:19
Why php-fpm not work in slave?. Because php-fpm need list of users for their config and I still didn't found how to send 'user-list' to slave from master.
Title: Re: master/slave kloxo-mr questions
Post by: Spacedust on 2013-07-09, 04:41:07
Quote from: "MRatWork"
Why php-fpm not work in slave?. Because php-fpm need list of users for their config and I still didn't found how to send 'user-list' to slave from master.

You can generate SSH key and transfer files via scp. It's easy as hell...
Title: Re: master/slave kloxo-mr questions
Post by: MRatWork on 2013-07-09, 18:26:23
Quote from: "Spacedust"
Quote from: "MRatWork"
Why php-fpm not work in slave?. Because php-fpm need list of users for their config and I still didn't found how to send 'user-list' to slave from master.

You can generate SSH key and transfer files via scp. It's easy as hell...
It's not related how to send 'user-list' physicallly but via php-remote.
Title: Re: master/slave kloxo-mr questions
Post by: Spacedust on 2013-07-10, 03:06:39
Quote from: "MRatWork"
Quote from: "Spacedust"
Quote from: "MRatWork"
Why php-fpm not work in slave?. Because php-fpm need list of users for their config and I still didn't found how to send 'user-list' to slave from master.

You can generate SSH key and transfer files via scp. It's easy as hell...
It's not related how to send 'user-list' physicallly but via php-remote.

Just use this: http://php.net/manual/en/function.ssh2-sftp.php (http://php.net/manual/en/function.ssh2-sftp.php)

or this: http://www.php.net/manual/en/function.ssh2-scp-send.php (http://www.php.net/manual/en/function.ssh2-scp-send.php)
Title: Re: master/slave kloxo-mr questions
Post by: fossxplorer on 2016-04-28, 10:13:46
@Mustafa, i use PHP-FPM and now i need to setup a slave too.
Does this work now?
Also, how does the Kloxo-MR slave work?   Do i need to use different IPs for slave DNS (say ns3 and ns4.example.com). Master has ns1 and ns2.example.com.
 
Will slave take over when master fails?
Title: Re: master/slave kloxo-mr questions
Post by: MRatWork on 2016-04-29, 03:22:10
I don't like current 'master-slave' approach.

I have an idea where 'master-slave' as manage for multiple master. So, if master down, every slave can act as master.
Title: Re: master/slave kloxo-mr questions
Post by: bigdigillc on 2017-12-23, 19:11:22
Did you ever figure out a way to have multiple masters?