We are running Ambari server with Mysql to manage Hadoop HA cluster.
Issue is: /var/ file system utilization keep increasing and we have noticed there too many mysqld-bin.XXXX files in /var/lib/mysql/ directory with 1.1 G size and the number of files keep increasing day-by-day.
Since it is clustered the /var/lib/mysql/ size is same in both Active and Standby nodes and causing storage issue in both node.
What are these files contains ? Can we purge these files. ?
After months of operation on larger clusters, the Ambari Server may begin to accrue a large amount of historical data in the database. This can cause UI performance degradation.
To remedy this, the following Ambari Server CLI command has been implemented to automate the removal of historical records in the Ambari Server. The db-purge-history command takes two arguments, the name of the cluster, and the date of the earliest record to purge.