Error logs are not rotated

Description

After the upgrade from PXC 5.7 to 8.0 I've noticed {{/var/log/mysql/error.log }}keeps growing without rotation.

Back in 5.7 the logs were stored in {{/var/log/mysqld.log }}and were rotated daily.

Environment

Ubuntu 20.04.6 LTS
percona-xtradb-cluster/unknown,now 1:8.0.33-25-1.focal amd64

Activity

Show:

Kamil Holubicki November 6, 2023 at 11:14 AM
Edited

Hi , 

Back in the day, PS and PXC configured error log rotation by default. 

Starting from PS 5.7 this was removed, leaving the configuration to the user. However, PXC 5.7 still had rotation configured by default.

PS and PXC 8.0 both don't have rotation configured by default, leaving this to the administrator.

 

Please note that PS/PXC does not rotate logs by itself. There is no such functionality within the server. logrotate or other mechanism has to be configured according to particular needs.

Won't Do

Details

Assignee

Reporter

Needs QA

Yes

Affects versions

Priority

Smart Checklist

Created September 18, 2023 at 2:51 PM
Updated March 6, 2024 at 8:36 PM
Resolved November 6, 2023 at 11:14 AM