argo-cd/cmd
Akram Ben Aissi 75cd97d6d4
feat: Consistent hashing with bounded loads algorithm for sharding (#16564)
* Adds consistent hashing with bound loads sharding algorithm

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Make the assignement consistent accross all clusters
- The assignment or running of the algorithm has to be consistent across all the clusters. Changed the function to return a map where the consistent hash will be used to build the map

- Modifications to the createConsistentHashsingWithBoundLoads function. This will create the map for cluster to shard. Note that the list must be consistent across all shards so that is why the cluster list must be sorted before going through the consistent hash algorithm

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Extracting constant and simplifying boolean expression

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Update docs: consistent-hashing sharding algorithm

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

---------

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>
2024-06-05 18:28:19 +00:00
..
argocd/commands feat: Consistent hashing with bounded loads algorithm for sharding (#16564) 2024-06-05 18:28:19 +00:00
argocd-application-controller/commands feat: Consistent hashing with bounded loads algorithm for sharding (#16564) 2024-06-05 18:28:19 +00:00
argocd-applicationset-controller/commands chore: Bump Kubernetes 1.29.2 (#17491) 2024-05-08 11:16:18 -04:00
argocd-cmp-server/commands feat(opentelemetry): support for secured OTLP endpoint and headers (#15573) 2023-11-27 10:45:00 +05:30
argocd-dex/commands chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#13292) 2023-05-04 18:06:56 -04:00
argocd-git-ask-pass/commands refactor: improve context handling in cmd/ (#9860) 2022-07-05 09:32:22 -04:00
argocd-k8s-auth/commands feat: adding option to specify an aws profile to use by the argocd-server when adding a EKS cluster (#16767) 2024-01-12 18:39:41 -05:00
argocd-notification/commands feat: Argocd notification self service (#16488) 2023-11-30 21:40:33 +00:00
argocd-repo-server/commands fix: repo-server should allow not to skip hidden directories (#17957) 2024-05-28 14:25:23 -04:00
argocd-server/commands fix: The argocd server api-content-type flag does not allow empty content-type header (#17331) 2024-02-28 09:45:44 -08:00
util chore: Bump Kubernetes 1.29.2 (#17491) 2024-05-08 11:16:18 -04:00
main.go refactor: replace aws CLI with argocd-k8s-auth (#8032) 2022-04-14 17:25:08 -07:00