memgraph / helm-charts

Helm charts for deploying Memgraph, an open-source in-memory graph database.
https://memgraph.github.io/helm-charts/
Apache License 2.0
14 stars 11 forks source link

HA affinity #55

Closed antejavor closed 3 months ago

antejavor commented 3 months ago

Add affinity to HA chart.

Before:

NAME                       READY   STATUS      RESTARTS   AGE   IP               NODE                                          NOMINATED NODE   READINESS GATES
memgraph-coordinator-1-0   1/1     Running     0          42s   192.168.85.135   ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>
memgraph-coordinator-2-0   1/1     Running     0          42s   192.168.94.105   ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>
memgraph-coordinator-3-0   1/1     Running     0          42s   192.168.87.250   ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>
memgraph-data-0-0          1/1     Running     0          42s   192.168.73.27    ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>
memgraph-data-1-0          1/1     Running     0          42s   192.168.79.90    ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>
memgraph-setup-b696j       0/1     Completed   0          42s   192.168.69.225   ip-192-168-70-79.eu-west-1.compute.internal   <none>           <none>

After:

NAME                       READY   STATUS     RESTARTS   AGE   IP               NODE                                           NOMINATED NODE   READINESS GATES
memgraph-coordinator-1-0   0/1     Init:0/1   0          17s   192.168.59.142   ip-192-168-41-31.eu-west-1.compute.internal    <none>           <none>
memgraph-coordinator-2-0   1/1     Running    0          17s   192.168.91.214   ip-192-168-88-220.eu-west-1.compute.internal   <none>           <none>
memgraph-coordinator-3-0   1/1     Running    0          17s   192.168.25.245   ip-192-168-25-138.eu-west-1.compute.internal   <none>           <none>
memgraph-data-0-0          1/1     Running    0          17s   192.168.93.177   ip-192-168-86-228.eu-west-1.compute.internal   <none>           <none>
memgraph-data-1-0          1/1     Running    0          17s   192.168.57.146   ip-192-168-60-0.eu-west-1.compute.internal     <none>           <none>
memgraph-setup-hn2dh       1/1     Running    0          17s   192.168.10.188   ip-192-168-25-138.eu-west-1.compute.internal   <none>           <none>