Skip to content

Commit

Permalink
Fix Redshift base provisioning value
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Dec 18, 2023
1 parent 429b402 commit c1b823e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/brad/planner/scoring/performance/unified_redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,7 @@ def add_debug_values(self, dest: Dict[str, int | float | str]) -> None:
dest.update(self.debug_values)


_REDSHIFT_BASE_RESOURCE_VALUE = redshift_num_cpus(Provisioning("dc2.large", 2))
_REDSHIFT_BASE_PROV = Provisioning("dc2.large", 2)
_REDSHIFT_BASE_RESOURCE_VALUE = (
redshift_num_cpus(_REDSHIFT_BASE_PROV) * _REDSHIFT_BASE_PROV.num_nodes()
)

0 comments on commit c1b823e

Please sign in to comment.