Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Feb 10, 2024
1 parent 88faede commit 02a034e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ def calc_task_manager_resources(task_manager_process_memory):
# so constrain by scaling the managed_memory_ratio
network_memory = int(0.1 * total_flink_memory)
if network_memory > 1024:
leftover_network_memory = network_memory - (1024 + 1) # 1 is extra room b/c it's finicky
leftover_network_memory = network_memory - 1024
new_managed_memory = managed_memory + leftover_network_memory
# adjust the managed_memory_ratio
managed_memory_ratio = new_managed_memory / total_flink_memory
# adjust managed_memory again with new ratio
managed_memory = int(managed_memory_ratio * total_flink_memory)
# scale down network memory to its max
network_memory = 1024
# scale down network memory to its max plus 1 b/c it's fucking finicky
network_memory = 1024 + 1

# as noted above: Framework Heap Memory (128.000mb default)
framework_heap_memory = 128
Expand Down

0 comments on commit 02a034e

Please sign in to comment.