Closed reeslo closed 6 days ago
@reeslo This is expected behavior and can't be solved differently.
The logtmpsegment*
tables are TEMPORARY
tables, that are created during archiving, to speed up various queries, while archiving a certain segment.
As temporary tables are bound to the connection it would not be possible to create the table on the writer, but use it one the reader, without persisting the table.
Thanks for you reply I will discuss this with my web hosting provider
@reeslo I'll mark this as won't fix for now. If you have any further questions or suggestions around this topic, feel free to comment here nevertheless.
What happened?
When using the
database_reader
configuration in Matomo to separate read and write operations (e.g., in a high-availability setup with a master and multiple read replicas),INSERT
operations are still observed on thereader
database. This behavior contradicts the expected functionality of directing only read operations to thereader
.What should happen?
The
database_reader
configuration should ensure that only read operations are executed on the specifiedreader
database(s). Write operations such asINSERT
,UPDATE
, andDELETE
should be strictly directed to themaster
database.How can this be reproduced?
master
database and adatabase_reader
.INSERT
or write operations occurring on thereader
database.Matomo version
5.1.2
PHP version
8.1
Server operating system
Centos7
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
Validations