Skip to content

Commit

Permalink
fix(operator): Clean up scaling cooldowns
Browse files Browse the repository at this point in the history
# Issue

The table `scalingcooldowns` will gain an entry once an app is scaled.
This entry is never removed, thus a resource leak is created.

The table can get so big, that a simple select starts to take time (as
there is no index on the table).

# Fix

The table is now periodically cleaned by the `operator`.
  • Loading branch information
silvestre authored and bonzofenix committed May 21, 2024
1 parent 32f92f5 commit 1bd28f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ if has bbl && [[ -d "$bbl_state_dir" ]]
then
eval "$(bbl print-env --state-dir "$bbl_state_dir")"
fi

export DBURL="postgres://postgres:postgres@localhost/autoscaler"

0 comments on commit 1bd28f6

Please sign in to comment.