Skip to content

Commit a4d7cb9

Browse files
authoredApr 4, 2023
feat(PFP-102): Make Elasticsearch use 1 master node by default (acryldata#283)
Our dependencies chart is setup to use 3 ES nodes in 3 AZ-equivalents, but is broadly intended for use as a test harness which often runs in single-node events. So let's fix this and have it be single-node by default
1 parent f2269e3 commit a4d7cb9

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed
 

‎README.md

-4
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ You should get a result similar to below.
7676
```
7777
NAME READY STATUS RESTARTS AGE
7878
elasticsearch-master-0 1/1 Running 0 62m
79-
elasticsearch-master-1 1/1 Running 0 62m
80-
elasticsearch-master-2 1/1 Running 0 62m
8179
prerequisites-cp-schema-registry-cf79bfccf-kvjtv 2/2 Running 1 63m
8280
prerequisites-kafka-0 1/1 Running 2 62m
8381
prerequisites-mysql-0 1/1 Running 1 62m
@@ -108,8 +106,6 @@ datahub-elasticsearch-setup-job-8dz6b 0/1 Completed 0
108106
datahub-kafka-setup-job-6blcj 0/1 Completed 0 4m40s
109107
datahub-mysql-setup-job-b57kc 0/1 Completed 0 4m7s
110108
elasticsearch-master-0 1/1 Running 0 97m
111-
elasticsearch-master-1 1/1 Running 0 97m
112-
elasticsearch-master-2 1/1 Running 0 97m
113109
prerequisites-cp-schema-registry-cf79bfccf-kvjtv 2/2 Running 1 99m
114110
prerequisites-kafka-0 1/1 Running 2 97m
115111
prerequisites-mysql-0 1/1 Running 1 97m

‎charts/prerequisites/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Helm chart for packages that Datahub depends on
44
type: application
55
# This is the chart version. This version number should be incremented each time you make changes
66
# to the chart and its templates, including the app version.
7-
version: 0.0.14
7+
version: 0.0.15
88
dependencies:
99
- name: elasticsearch
1010
version: 7.17.3

‎charts/prerequisites/values.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
# Copy this file and update to the configuration of choice
33
elasticsearch:
44
enabled: true # set this to false, if you want to provide your own ES instance.
5-
replicas: 3
5+
6+
# If you're running in production, set this to 3 and comment out antiAffinity below
7+
# Or alternatively if you're running production, bring your own ElasticSearch
8+
replicas: 1
69
minimumMasterNodes: 1
710
# Set replicas to 1 and uncomment this to allow the instance to be scheduled on
811
# a master node when deploying on a single node Minikube / Kind / etc cluster.
9-
# antiAffinity: "soft"
12+
antiAffinity: "soft"
1013

11-
# # If your running a single replica cluster add the following helm value
12-
# clusterHealthCheckParams: "wait_for_status=yellow&timeout=1s"
14+
# # If you are running a multi-replica cluster, comment this out
15+
clusterHealthCheckParams: "wait_for_status=yellow&timeout=1s"
1316

1417
# # Shrink default JVM heap.
1518
esJavaOpts: "-Xmx384m -Xms384m"

0 commit comments

Comments
 (0)
Please sign in to comment.