Gabriel Mocan
05/18/2023, 1:02 PMNicolas Hourcard
05/18/2023, 1:03 PMGabriel Mocan
05/18/2023, 1:04 PMVlad
05/18/2023, 1:12 PMGabriel Mocan
05/18/2023, 1:15 PMVlad
05/18/2023, 1:54 PMGabriel Mocan
05/18/2023, 1:54 PMVlad
05/18/2023, 4:59 PMImre
05/18/2023, 10:50 PMcairo.reader.pool.max.segments
by any chance?cannot close segment lock fd
errors, you said they are flooding the log.
aren’t they just printed when the client connects, once for each walId?2023-05-18T23:28:29.098914Z I i.q.c.p.WalWriterPool could not get, busy [table=`mytable~130`, thread=28, retries=2]
2023-05-18T23:28:30.215658Z I i.q.c.l.t.LineTcpMeasurementScheduler could not get table writer [tableName=mytable, ex=`table busy [reason=unknown]`]
Gabriel Mocan
05/19/2023, 12:21 PMcairo.reader.pool.max.segments
at any point;
• the `cannot close segment lock fd`happens more frequently when IO overload is taking place;
• Regarding 900-1000 walwriters, that’s most likely revealing that ILP golang client maybe is not working properly (poor control over batch flush);
• I have no more than exporter number * 8 senders. In that particular case I have 6 exporters meaning that I create at max 48 concurrent senders (I can redesign that);
• I do not open a new connection for every single ILP message, I buffer them in a go channel and process them every minute;
• Logs were clean on 7.1.1.Imre
05/19/2023, 12:54 PMGabriel Mocan
05/19/2023, 12:55 PMERROR: COPY is disabled ['cairo.sql.copy.root' is not set?] (SQLSTATE 00000)
Imre
05/19/2023, 12:56 PMcairo.sql.copy.root
in the config and restart.Gabriel Mocan
05/19/2023, 12:59 PMImre
05/19/2023, 12:59 PMGabriel Mocan
05/19/2023, 1:04 PM2023-05-19T13:03:41.192231Z E i.q.c.p.PGConnectionContext error [pos=79, msg=`'with' expected`]
2023-05-19T13:03:41.192436Z E i.q.c.p.PGConnectionContext unknown message [type=99]
2023-05-19T13:03:41.541469Z E i.q.c.p.PGConnectionContext [-1] wrong circuit breaker secret [idx=61]
2023-05-19T13:03:42.069462Z E i.q.c.p.PGConnectionContext error [pos=93, msg=`'with' expected`]
2023-05-19T13:03:42.069619Z E i.q.c.p.PGConnectionContext unknown message [type=99]
Imre
05/19/2023, 1:05 PMerror [pos=79, msg=`'with' expected`]
looks like bad syntaxGabriel Mocan
05/19/2023, 1:06 PMImre
05/19/2023, 1:08 PMWITH
part of the COPY
command.
an example from the doc:
COPY weather FROM 'weather.csv' WITH HEADER true FORMAT 'yyyy-MM-ddTHH:mm:ss.SSSUUUZ' ON ERROR SKIP_ROW;
Gabriel Mocan
05/19/2023, 1:09 PMImre
05/19/2023, 1:09 PMGabriel Mocan
05/19/2023, 1:10 PMImre
05/19/2023, 1:10 PMcommandTag, err := conn.Exec("delete from widgets where id=$1", 42)
if err != nil {
return err
}
Gabriel Mocan
05/19/2023, 1:16 PMImre
05/19/2023, 1:28 PMGabriel Mocan
05/19/2023, 1:30 PMVlad
05/19/2023, 8:08 PMGabriel Mocan
05/19/2023, 8:19 PM