Is anyone here using AWS Managed Flink? I'm trying...
# troubleshooting
j
Is anyone here using AWS Managed Flink? I'm trying to figure out how people are managing updates and the like.
πŸ‘‹ 1
j
Hey @Jeremy DeGroot can you talk through your challenges? MSF manages code updates for you. Simply point your app to the new application jar, and it will automatically take a snapshot of the current application (assuming you have snapshots enabled) and restart from the savepoint with your new app. No additional orchestration required for general case
Also great name 😎
j
Good to know about the automatic updates. That was one concern I had. I assume the approach is something like, you name the application JAR "application-$BUILD_NUMBER.jar", update the config and then you're good? Ideally we'd like to manage all this through terraform. I've got two use-cases: One is streaming analytics out of an MSK cluster. That seems pretty straightforward, and we've already got a POC working there. The second use-case is some batch-processing jobs that run in S3 on an hourly or nightly basis. that seems like a more difficult fit.
Right back at you 😎
@Jeremy Ber It sounds like you maybe have some experience with this? How do you managed deployments? Through the console? CLI? Terraform?
j
hey @Jeremy DeGroot I am a specialist supporting MSF (at AWS), so I don't have any first hand experience, but I've supported customers, some of which have written their own terraform scripts. Unfortunately I don't have any to share 😞 I'd approach it like this: 1. Develop your application locally and test it, make sure it works 2. Go through the Development life cycle, test in preprod, etc. 3. In your deployment pipeline, build the application jar with a unique name (maybe build number could work) and upload to Amazon S3 4. Trigger an UpdateApplication api, through terraform or CLI, up to you, referencing the new jar a. What happens here is that the application stops processing data and takes a savepoint b. Then the cluster is actually recycled, restoring the state from your previous savepoint onto the new jar you supplied c. Most of this is done for you, whereas on a self-managed cluster you'd need to do it yourself πŸ™‚
πŸ™ 1