AuditEventSyncWorker for ClickHouse
What does this MR do and why?
AuditEventSyncWorker for ClickHouse
This commit adds a worker which enables syncing of audit events from PostgreSQL to ClickHouse database
Update sidekiq queue yml
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Setup ClickHouse locally https://docs.gitlab.com/ee/development/database/clickhouse/clickhouse_within_gitlab.html#gdk-setup
- Open rails console and run below command
Feature.enable :sync_audit_events_to_clickhouse
ClickHouse::AuditEventsSyncWorker.new.perform()
- Ensure on ClickHouse that all the audit_events have been migrated. (This will not delete audit events in PostgreSQL)
Related to #404405 (closed)
Edited by Harsimar Sandhu