Hello Everyone, I’m building a Flink stateless app...
# troubleshooting
a
Hello Everyone, I’m building a Flink stateless app which reads from S3 and after some computations pushes back to S3. There is no keyed processing in the application. So its a keyless, stateless application. With the above service i’m facing challenges with Checkpoint times. The checkpoint times are high due to 1% (sometimes even lower) of subTasks having high start delays. During the time of checkpoint those particular 1% subTask go 100% busy and don’t even process any data (the processing resumes after the checkpoint completes) I’ll be grateful if anyone can help me out here. Thanks
t
If your application is key- and stateless, why use Flink at all? Wouldn't a more lightweight solution like AWS Lambda & Co. suit your purposes better?
And if you want to use Flink, why does your stateless job need to write checkpoints at all?
a
Hi Tilman, thank you for your reply We read from S3 buckets, from where we have enabled SQS queues, and after all the processing we write to S3 buckets using Flink FileSink Connector. For both of these cases, we require checkpoints to have a read-once, write-once approach.
t
Ah okay, makes sense. We had problems before due to taking checkpoints too often. Would reducing the checkpointing frequency be an issue for your? With reduced frequency, the longer times for taking a checkpoint wouldn't matter that much.
a
Yes Tilman, Actually we have downstream applications which read from the S3 bucket output pushed in via our service. Since the FileSink connector is dependent on the Checkpoint completion for file commits, increase in checkpoint duration will cause an increase in our E2E latencies as well.
t
Maybe you could use incremental checkpoints to only write changes since the last one. Other than that, I don't have an idea how to solve this unfortunately.
a
I’m already using incremental checkpoints 🙂