Skip to content

Add namespace_storage_forks_cost_factor to application_settings Table

What does this MR do and why?

Add a namespace_storage_forks_cost_factor column to the application_settings table.

Add a check constraint to ensure the value must be between 0 and 1.

This column will hold the cost factor for forks for namespace storage limits.

A PoC for this column demonstrating how it will be used is here: !116328 (closed)

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/404628

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jason Goodman

Merge request reports