Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
en:jobs:proxy_multi [2013/01/25 13:12] admin |
en:jobs:proxy_multi [2013/04/10 15:00] admin [Deployment] |
=======Configuration of multi-protocols and fault-tolerant Proxy Service ======= | =======Deploying of multi-protocols and fault-tolerant Proxy Service ======= |
==== Introduction. ==== | ==== Introduction. ==== |
| |
[[http://www.delegate.org/delegate/|Delegate]] will be IMAP,SMTP and native FTP proxy. Delegate can work as http proxy but have low performance. | [[http://www.delegate.org/delegate/|Delegate]] will be IMAP,SMTP and native FTP proxy. Delegate can work as http proxy but have low performance. |
| |
==== Deploiment ==== | ==== Deployment ==== |
| |
1. Installing of OS Centos 6.3 on each of servers and configure interfaces.\\ | 1. Installing of OS Centos 6.3 on each of servers and configure interfaces.\\ |
yum update | yum update |
reboot (if needed) | reboot (if needed) |
yum install htop systat blktrace scp ntp bind bind-utils pacemaker corosync make gcc gcc-c++ openssl-devel openssh-clients squid | yum install htop systat blktrace scp ntp bind bind-utils pacemaker corosync make gcc \ |
| gcc-c++ openssl-devel openssh-clients squid |
| |
4. Configuring local NTPD on each server | 4. Configuring local NTPD on each server |
service ntpd start | service ntpd start |
| |
5. Configuring local DNS - cache server | 5. Configuring local DNS - cache server on each proxy node |
| |
cat /etc/named.conf | cat /etc/named.conf |
. /etc/init.d/functions | . /etc/init.d/functions |
prog="delegated-ftp" | prog="delegated-ftp" |
startoptions="-r -P0.0.0.0:21 SERVER=ftp ADMIN=adm@your_domain.dom CACHE=no REMITTABLE=ftp,ftps PERMIT=*:*:192.168.* MAXIMA=delegated:100,standby:80 \ | startoptions="-r -P0.0.0.0:21 SERVER=ftp ADMIN=adm@your_domain.dom \ |
TIMEOUT=shutout:300,restart:1d,acc:100,con:100,dns:4,dnsinv:1 RESOLV=sys,file SRCIF=217.9.80.9:*:* LOGFILE=ftp[date+.%d] #1>&/dev/null | CACHE=no REMITTABLE=ftp,ftps PERMIT=*:*:192.168.* MAXIMA=delegated:100,standby:80 \ |
| TIMEOUT=shutout:300,restart:1d,acc:100,con:100,dns:4,dnsinv:1 \ |
| RESOLV=sys,file SRCIF=217.9.80.9:*:* LOGFILE=ftp[date+.%d]" |
stopoptions="-P0.0.0.0:21 -Fkill" | stopoptions="-P0.0.0.0:21 -Fkill" |
lockfile=/var/lock/subsys/$prog | lockfile=/var/lock/subsys/$prog |
| |
chmod 755 /usr/sbin/delegated-imapo | chmod 755 /usr/sbin/delegated-imapo |
| |
| Tuning Gelegate |
| |
| If you will face with heavy duty problems just tune MAXIMA parameters. |
| For example MAXIMA=listen:50,delegated:300 |
| |
| |
chmod 755 /usr/sbin/delegated-smtpo | chmod 755 /usr/sbin/delegated-smtpo |
| |
| Tuning Delegate |
| |
| If you will face with heavy duty problems just tune MAXIMA parameters. |
| For example MAXIMA=listen:50,delegated:300 |
| |
cat /etc/init.d/delegate-smtp | cat /etc/init.d/delegate-smtp |
chkconfig squid off | chkconfig squid off |
| |
8. Configure Corosync on each server | 8. Configuring Corosync on each server |
| |
cat /etc/corosync/corosync.conf | cat /etc/corosync/corosync.conf |
| |
| |
9. Configure pacemaker | 9. Configuring pacemaker |
| |
On one proxy node | On one proxy node |
| |
Special gratitude [[http://staff.aist.go.jp/y.sato/|Yutaka Sato]] for very nice proxy application (delegate). | Special gratitude [[http://staff.aist.go.jp/y.sato/|Yutaka Sato]] for very nice proxy application (delegate). |
| |
| ==== Centos/Redhat 6.4 ==== |
| |
| Today i have updated the system to centos 6.4. |
| Crm configuration command disappeared. \\ |
| If you want to use crm configuration command with centos/redhat 6.4 you need to install crmsh: yum install crmsh\\ |
| I'm using follow repo |
| |
| [network_ha-clustering] |
| name=High Availability/Clustering server technologies (RedHat_RHEL-6) |
| type=rpm-md |
| baseurl=http://download.opensuse.org/repositories/network:/ha-clustering/RedHat_RHEL-6/ |
| gpgcheck=1 |
| gpgkey=http://download.opensuse.org/repositories/network:/ha-clustering/RedHat_RHEL-6/repodata/repomd.xml.key |
| enabled=1 |
| |
| Or you can use pcs (yum install pcs) |
| |