Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
en:jobs:proxy_multi [2013/01/25 13:15] 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.\\ |
. /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.* \ | startoptions="-r -P0.0.0.0:21 SERVER=ftp ADMIN=adm@your_domain.dom \ |
MAXIMA=delegated:100,standby:80 TIMEOUT=shutout:300,restart:1d,acc:100,con:100,dns:4,dnsinv:1 \ | 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]" | 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" |
| |
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) |
| |