Nigel Kukard <[email protected]> wrote:

>> I'm just wondering if there's a race condition where multiple servers are 
>> updating the quota, and one update overrides another ?
> 
> I believe the updates are done  += and -= style with the delta, not updating 
> the actual value with  value = x
> ref: 
> https://gitlab.devlabs.linuxassist.net/policyd/policyd/blob/master/cbp/modules/Quotas.pm#L269

Rules that one out then.

>> I have a smaller 'cluster' of 3 machines which are all Xen PV guests, 
>> sharing a backend. I run one instance of PolicyD on the backend and 
>> originally had my Postfix instances accessing the single MySQL instance on 
>> the backend as well. it all worked perfectly under the loads I was able to 
>> impose as tests - then it all fell apart when I tried making it live.
>> 
>> Once under real tests, I found that MySQL lookups were failing and so there 
>> were random mail rejections - so I had to revert back to the old server. 
>> I've put slave MySQL instances on each host, but as yet haven't found the 
>> out-of-hours time (or TBH, inclination to do OOH work) to try making it live 
>> again.
> 
> Very odd indeed, I'm aware of some very large installations using 
> combinations of mailservers with policyd on them and dedicated mysql servers. 
> Do you perhaps have any logs with errors in them?

It was a while ago now, and other than Postfix logging whatever was appropriate 
(typically "user unknown" IIRC) there were no errors.


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to