Re: Performance issue

Phil Stracchino <[email protected]>
Newsgroups gmane.comp.bacula.user
Organization Fenian House Publishing
Message-ID <[email protected]>
On 1/24/25 14:43, Josh Fisher via Bacula-users wrote:
> On 1/24/25 13:22, Bill Arlofski via Bacula-users wrote:
>> On 1/24/25 10:17 AM, Phil Stracchino wrote:
>>
>>> this huge atomic write *also* makes it incompatible with Galera 3
>>> clusters.)
> 
> Are you sure about that? The only thing attribute spooling is doing is
> delaying execution of the SQL statements generated by the job. Why would
> Galera care when the SQL was executed?

Josh,
The problem is that except on small jobs, the current implementation of 
attribute spooling in Bacula's MySQL driver results in a batch write 
that exceeds Galera's hard limit of 128K rows in a single transaction.

One *fix* for this would be to modify the current attribute spooling 
code so that when despooling, it loops through its cache no more than, 
say, 125K records at a time.  That would avoid the problem.

I saw signs in the code when I last looked at it that *appeared* to be 
an attempt to set such a maximum row batch limit, but that limit doesn't 
appear to actually work.



-- 
   Phil Stracchino
   Fenian House Publishing
   [email protected]
   [email protected]
   Landline: +1.603.293.8485
   Mobile:   +1.603.998.6958
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.