The disk space on the API Gateway appliance has always been a problem for us.
The more traffic we got on the Gateway the bigger the folder /var/lib/mysql became. That's why we disabled the audit log.
Now comes the next problem which fills our disk space:
service_usage.
On the clustered API Gateway (production) where we have node 1 and node 2, a mysql replication takes place, which fills the disk under /var/lib/mysql with following replication files:
501M ssgbin-log.001037
501M ssgbin-log.001038
501M ssgbin-log.001039
501M ssgbin-log.001040
501M ssgbin-log.001041
501M ssgbin-log.001042
501M ssgbin-log.001043
501M ssgbin-log.001044
501M ssgbin-log.001045
501M ssgbin-log.001046
501M ssgbin-log.001047
501M ssgbin-log.001048
501M ssgbin-log.001049
501M ssgbin-log.001050
501M ssgbin-log.001051
501M ssgbin-log.001052
501M ssgbin-log.001053
501M ssgbin-log.001054
501M ssgbin-log.001055
497M ssgbin-log.001056
501M ssgbin-log.001057
501M ssgbin-log.001058
These files have a limit of 500MB and will be deleted after 10 days.
The content of the files is basically only the insertion into the table service_usage like so:
insert into service_usage (authorizedreqnr, completedreqnr, requestnr, nodeid, serviceid) values (81, 30, 81, '80cdd287520d450193659fd965dcdb86', x'F2D10F25EBCFCC6D2F8C5DC8DB834DCB')
In order to prevent the disk from getting filled that much, I see three options:
1) Manually purge these binary files periodically (like described in this article:
https://dev.mysql.com/doc/refman/8.0/en/purge-binary-logs.html)
2) Lower the expiry date to 1 day in the file /etc/my.cnf
3) Disable the unneccessary filling of the table service_usage in mysql db.
Is it possible to disable it in the API Gateway?Which one of these options do you suggest? Are they supported from Broadcom?