Shard abuse_events table
Action Required: Classify the abuse_events table
To properly configure the abuse_events table, please choose the one classification below that best fits its data and purpose. This choice will determine the table's database schema and sharding key.
After selecting the best option, remove the sharding_key_issue_url and apply the corresponding configuration.
1. Choose a Classification
Select the most suitable option for the abuse_events table from the following:
A. Org-level with sharding key
This is for data that belongs to an entire organization.
-
Action:
- Set
gitlab_schema: gitlab_main_cell. - Add the
sharding_keyordesired_sharding_key. - If the key doesn't yet meet
not-nullor foreign key requirements, you can add a temporary exception. Please link to a follow-up issue in a comment next to the exception. -
See an example at
db/docs/epics.yml.
- Set
2. Complete the Task
- Add this issue to the epic: &11670
- Review the documentation below for more details.
Documentation
Tasks
-
Add organization_idcolumn toabuse_eventstable !202021 (merged) -
Backfill data into organization_idcolumn !211827 (diffs) -
Make column NOT NULL!211827 (merged) -
Update abuse_events.ymlsharding_key:configuration. !211827 (merged)
Edited by mo khan