Skip to main content

Kafka tiered storage with remote storage throttling issue

Hi all, We have potentially encountered an interesting issue with a Kafka tiered storage cluster - this is just my interpretation of the issue not anything official so may be wrong. If the remote storage is throttled/rate limited (intentionally or accidentally, or just due to an inability for the remote storage layer, including the Kafka cluster side, to keep up due to an increase in producer load) and there’s insufficient gap between the local and total/remote retention times, then it’s possible to get a situation where: 1 - writes to remote storage queue up and are delayed, exceeding total retention time. 2 - writes to remote storage still happen - but this is probably a waste of time and resources given that 3 - the remote segments are immediately deleted as the total retention time is exceeded 4 - but, the local segments are not deleted immediately that local.retention time is exceeded 5 - they are only deleted a long time later, after they are written to remote storage - this causes an increase in local disk It would appear that everything is working as advertised (in particular I recall that 5 is correct - local segments are not deleted for tiered topics until written to remote storage?) But some of the steps are unnecessarily once retentions times are exceeded and make the backlog worse including cluster resource loads - i.e. 2 and 5 Are there any configurations that could improve the situation? In theory retention should be >>> local.retention but for various use cases/customers/remote storage cost models this may not be possible. Any thoughts appreciated, including if there could/should be design improvements? -- Regards, Paul Brebner NetApp Instaclustr Technology Evangelist Read my blogs at https://www.instaclustr.com/paul-brebner/ Follow me on https://www.linkedin.com/in/paul-brebner-0a547b4/

Comments