Skip to content

Draft: Add consistent hashing library

John Mason requested to merge jm-consistent-hashing-library into master

What does this MR do and why?

Closes #392335

Adds a consistent hashing library for GitLab. The IndexNamingService introduced in this MR that uses the hashing library can be used in the future for a naming convention that assigns specific Advanced Search indices to a namespace or project. Ideally IndexNamingService could be used for both Elasticsearch indices and Zoekt indices.

This is currently experimental and is part of this epic: #391516

This implementation is inspired by this proof of concept: !111811 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 John Mason

Merge request reports