[MXS-3854] Automatic data purging option for KafkaCDC avro files(avsc data files) Created: 2021-11-04 Updated: 2022-03-30 Resolved: 2022-03-30 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | avrorouter, cdc |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Naresh Chandra | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Add a new feature for KafkaCDC router to purge the data from avro files automatically like data retention policy. For example if we want to keep data only for on week then automatically data should purge the data and keep only 7 days data. Better add a button/option in the Maxscale GUI could be better. |
| Comments |
| Comment by markus makela [ 2021-12-08 ] |
|
I'm assuming this is for the avrorouter as the kafkacdc module doesn't use avro files. |
| Comment by Naresh Chandra [ 2021-12-08 ] |
|
Hi Markus, KafkaCDC router internally storing the data as a avro files under the /var/lib/maxscale/Kafka-CDC folder. We need a auto purge option for the avro data files in the KafkaCDC router section itself not an avrorouter section.. Why because we are not using Avrorouter, we are using KafkaCDC router. So please implement the Purge option for KafkaCDC router section only, Please find the avro files which is storing under the KafkaCDC router directory. Please find the KafkaCDC router config details. [server4] [MariaDB-Monitor] [Kafka-CDC] |
| Comment by markus makela [ 2021-12-08 ] |
|
Oh, those are the schema files that are needed by the kafkacdc. They contain only metadata about the tables and don't contain the data itself which means they'll never grow in size. |
| Comment by Naresh Chandra [ 2021-12-08 ] |
|
oh okay, then the source data directly stream from Mariadb to Kafkabroker without storing locally in the maxscale right? |
| Comment by markus makela [ 2021-12-08 ] |
|
Yeah, the data is never stored on disk. |
| Comment by Naresh Chandra [ 2021-12-08 ] |
|
okay, thanks for the update. If we need then we can change this ticket to avrorouter, so that we can do purge for avro files. |
| Comment by markus makela [ 2022-03-30 ] |
|
I'll close this as a duplicate of |