[exim-dev] [Bug 1056] New: Patch: Better spamd server random…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mark Zealey
Datum:  
To: exim-dev
Neue Treads: [exim-dev] [Bug 1056] Patch: Better spamd server randomization, [exim-dev] [Bug 1056] Patch: Better spamd server randomization
Betreff: [exim-dev] [Bug 1056] New: Patch: Better spamd server randomization
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1056
           Summary: Patch: Better spamd server randomization
           Product: Exim
           Version: 4.73
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Content Scanning
        AssignedTo: tom@???
        ReportedBy: mark.zealey@???
                CC: exim-dev@???



Created an attachment (id=439)
--> (http://bugs.exim.org/attachment.cgi?id=439)
Better loadbalancing algorithm for spamd over tcp

There are two issues with the current exim spamd content scanning
implementation which mean it doesn't scale very well in the scenario where you
have a cluster of exim servers with identical configuration and a cluster of
spamassassin servers.

1) the initial server choice is based on a 1 second counter which means that
all exim servers will hit the same spamassassin server at the same time
2) If one spamassassin server is not reachable, the algorithm will simply cycle
onto the next one meaning that the load then simply doubles on the server.

The attached patch addresses both these issues using fine-grained initial
random server selection; if that server is unreachable it will then randomly
select another server to try until all servers have been exhausted (ie simple
loadbalancing algorithm)

We've been running this for roughly the past 2 years.

Mark


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email