Skip to content

Limit the context for paused elasticsearch jobs

Bob Van Landuyt requested to merge bvl-limit-elastic-control-context into master

What does this MR do?

When we pause elasticsearch indexing, we store the jobs in a ZSET. The advantage of that would be that the jobs are automatically deduplicated. Thanks Redis!

However, since the application context contains unique information (correlation_id, user, caller_id), we would lose this benefit.

With this, we only include the shared information (the meta.project key), which is shared across the deduplicatable jobs.

The project information should be enough context for logging purposes: The namespace can be inferred from that, and the caller_id should be populated again when the job is rescheduled.

For #232347 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Bob Van Landuyt

Merge request reports