Clustering EFA Servers

Questions and answers about how to do stuff
Post Reply
User avatar
Socal_Steve
Posts: 30
Joined: 20 Mar 2014 20:10
Location: Laguna Beach, California, USA
Contact:

Clustering EFA Servers

Post by Socal_Steve »

I'm looking to "Cluster" 3 EFA servers and round robin the dns so that i can spread the load of spam filtering and create some redundancy. One way i could choose a master server and cron copy all the relevant files eg: transport settings, outbound settings, users, ect. The other way i could make the servers use the same database and config files hosted in a central location like on the master server.

Anyone ever done this? Have any advice for me? Ideas? Smarthost better?

Thanks
Widmo
Posts: 17
Joined: 23 Jun 2014 12:45

Re: Clustering EFA Servers

Post by Widmo »

I think it's hard to do.

But it should look like:

Haproxy --- ( round robin to 3 or more EFA ) --- EFA Servers with the same database, and one NFS server on backend, with shared spool, and other files used by EFA, postfix...

Easiest way is to buy more powerfull server ;)
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Clustering EFA Servers

Post by shawniverson »

I know that there has been a RPC issue in MailWatch preventing this. I think the bug is now fixed and will be included in 3.0.0.5.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Clustering EFA Servers

Post by darky83 »

I am working on a side project setup that clusters my setup using:
- centralized MYSQL server (Mysql clustered)
- loadbalancer (zen loadbalancer in cluster).
- centralized management (mailwatch + puppet)
- 2 or more mailscanner servers

This setup requires at least 7 (virtual) machine's to be configured and high available shared storage, but should be scallable to handle milions of mails.

But this won't be included in E.F.A. as its a completely different setup (maybe under a different name..)

For now if you want clustering I would suggest creating your own setup and don't use E.F.A.
E.F.A. is meant to be a easy to use single appliance for 'normal' traffic, if you have to handle millions of mails each day then you should use a enterprise ready system or build your own.
Version eFa 4.x now available!
drewmorris
Posts: 35
Joined: 13 Aug 2014 18:16

Re: Clustering EFA Servers

Post by drewmorris »

I am interested in that centralized mysql db "clustered" setup and I have some ideas that may simplify the approach. I am actually contracting out a similar project as we speak so it may be a good idea to get a discussion going offline.

If you are interested... email me directly at drewmorris @ gmail.com
ressel
Posts: 27
Joined: 28 Nov 2014 11:59

Re: Clustering EFA Servers

Post by ressel »

Hello,
Any news on this side project with cluster?
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Clustering EFA Servers

Post by darky83 »

Not yet,

Still a work in progress, got a setup running but creating it into a easy to install configured 'platform' is a bit harder :)
Version eFa 4.x now available!
datatek
Posts: 3
Joined: 19 Jan 2015 15:59

Re: Clustering EFA Servers

Post by datatek »

Hi darky83,

would you please outline how you got your cluster running?
datatek
Posts: 3
Joined: 19 Jan 2015 15:59

Re: Clustering EFA Servers

Post by datatek »

BUMP?
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

Re: Clustering EFA Servers

Post by ZimboKraut »

As I am also very interested in a clustering solution,
here is another BUMP ;-)
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Clustering EFA Servers

Post by darky83 »

Still work in progress (and low prio :)

making the system clusterable/failover and keeping all EFA items (the config etc) seems to be an bad idea.
Will have to start from scratch, currenly testing and working out an setup based on Centos 7
Version eFa 4.x now available!
Mcoulianos
Posts: 4
Joined: 22 Apr 2015 21:17

Re: Clustering EFA Servers

Post by Mcoulianos »

Any reason why you don't just use MX records and set the priority the same for both servers? This is a simple way to load balance through DNS. Either that or set one server to a lower priority for a failover setup. I currently use this method without issue.

It does add some work keeping the blacklist/whitelist entries the same between both servers but I haven't really found that to be too troublesome. I rarely touch EFA anymore now that i've added a few more RBL's to the list. Oddly there is only one RBL by default and it just isn't enough IMO.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Clustering EFA Servers

Post by darky83 »

Which one's are you also using ?
Version eFa 4.x now available!
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

Re: Clustering EFA Servers

Post by ZimboKraut »

How are you syncing the lists between the servers?
I have four EFA servers running at the moment in various locations around the world.
The can communicate via VPN.
As they all have multiple Domains with various mx prios, it would be very helpful to sync them.
Due to the differnt locations, a centralized DB is not ideal and could cause potential delay/failure issues.
has anyone got any experience with this?
drewmorris
Posts: 35
Joined: 13 Aug 2014 18:16

Re: Clustering EFA Servers

Post by drewmorris »

I setup a clustering-like solution using a policy service and some basic scripting. Basically every node is standalone and the policy service works using a central control source (which can also be clustered or distributed). In my case I have 2 policy checks... 1 at rcpt and 1 at end-of-message. The end-of-message response includes the filter telling the message what machine to route to for its final destination.

The configs are all pulled from a central location so I only need to change one thing and all servers change.

I did have to build my own shared service for quarantine and things but otherwise it works well for me.
z3us
Posts: 8
Joined: 22 Jul 2016 17:10

Re: Clustering EFA Servers

Post by z3us »

I'm setting up two nodes connected via IPSEC vpn with SQL master-master replication so each change in SQL gets immediately replicated to the other node.
I've enabled RPC in the Mailwatch configuration, so it's possible to release mail from node 1 on quarantine of node 2.
I've setup e two mx-records (1 of each node) for incoming mail traffic.

I'm still looking into this setup, but I can't see any upcoming problems yet.
wilbourne
Posts: 52
Joined: 22 Sep 2016 09:04

Re: Clustering EFA Servers

Post by wilbourne »

I think with pacemaker you can do this and supported postfix mysql apache
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Clustering EFA Servers

Post by shawniverson »

EFA Clustering/Distributed setup is being developed for v4 :)
User avatar
Socal_Steve
Posts: 30
Joined: 20 Mar 2014 20:10
Location: Laguna Beach, California, USA
Contact:

Re: Clustering EFA Servers

Post by Socal_Steve »

:clap: Awesome looking forward to it.
Post Reply