Skip to content
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

Fix regression in handling of default heap memory config #223

Merged
merged 5 commits into from
Nov 16, 2020

Conversation

mwylde
Copy link
Contributor

@mwylde mwylde commented Nov 13, 2020

This fixes a regression introduced in #207 which caused us to use the wrong default for heap memory configs in Flink <1.11.

It also simplifies the memory configuration situation a bit. Now, for Flink <1.11 you may only configure memory with the existing offHeapMemoryFraction (which translates into jobmanager.heap.size/taskmanager.heap.size) and for version >= 1.11 you may only use the new systemMemoryFraction (which translates to jobmanager.memory.process.size/taskmanager.memory.process.size). Using an incompatible configuration for the specified flinkVersion will produce an error.

} else {
(*config)["jobmanager.memory.process.size"] = getJobManagerMemory(app)
(*config)["taskmanager.memory.process.size"] = getTaskManagerMemory(app)
// if heap memory is used for >= 1.11, error out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not intended to be solved in this PR, but I'm wondering if we can support various flink version --> config compatibility in a different way than if .. else blocks. I guess one way could be to couple operator versions to flink versions, but that seems a bit restrictive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we would want to couple operator versions to flink versions, as most deployments will likely be heterogenous (currently at Lyft we have the operator managing applications with Flink 1.9, 1.10, and 1.11).

Copy link
Contributor

@glaksh100 glaksh100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@mwylde mwylde merged commit b5eb196 into master Nov 16, 2020
@mwylde mwylde deleted the micah_fix_memory branch November 16, 2020 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants