-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable spot instances #11
Enable spot instances #11
Conversation
@ranchodeluxe, @yuvipanda One thing that is a little unclear is whether we need to configure the job manager and autoscaler to always run P.S. One more thought |
Digging in a little further. I think we would:
|
Learning more, we might want to take advantage of Flink's High Availability (HA) Kubernetes Services: Essentially, we would deploy an all-spot cluster and use standby replicas in case an instance terminates. So
where |
terraform/aws/nodes.tf
Outdated
@@ -38,6 +38,8 @@ resource "aws_eks_node_group" "core_nodes" { | |||
|
|||
instance_types = [var.instance_type] | |||
|
|||
capacity_type = "SPOT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this should be in fact using the variable var.capacity_type
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Fixed.
terraform/aws/buckets.tf
Outdated
@@ -1,3 +1,8 @@ | |||
resource "aws_s3_bucket" "flink_store" { | |||
bucket = "${var.cluster_name}-flink-store" | |||
force_destroy = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally suggest leaving this out, and hand-editing it in when you want to acutally destroy it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this bucket for now as the cluster seemed unable to write to it. Eventually, we'll want to add a shared filesystem to the cluster where flink can cache metadata for restarting failed jobs. https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/ha/kubernetes_ha/
This PR will enable spot instances for testing. Before this is used in production, we'll want to make some additional changes to handle failures (this will serve "on demand" clusters too). |
Thanks @thodson-usgs |
This PR enables optionally using spot instances. Ref #10.
NOTE: This deploys without error, but I haven't started testing the checkpointing yet.
Ideas for checkpoint tuning
checkpointing.min-pause
References