-
Notifications
You must be signed in to change notification settings - Fork 38
199 lines (167 loc) · 5.6 KB
/
elasticsearch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
name: Elasticsearch Github Action
on: [push, pull_request]
jobs:
run-action:
name: Start Elasticsearch
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["6.8-SNAPSHOT", "7.x-SNAPSHOT", "8.16.0-SNAPSHOT", "9.0.0-SNAPSHOT"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
security-enabled: false
stack-version: ${{ matrix.elasticsearch }}
- name: Elasticsearch is reachable
run: |
curl --verbose --show-error http://localhost:9200
run-multiple-nodes:
name: Start multiple Elasticsearch nodes
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["6.8-SNAPSHOT", "7.x-SNAPSHOT", "8.16.0-SNAPSHOT", "9.0.0-SNAPSHOT"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
security-enabled: false
stack-version: ${{ matrix.elasticsearch }}
nodes: 3
- name: Elasticsearch Node es1 is reachable
run: |
curl --verbose --show-error http://localhost:9200
- name: Elasticsearch Node es2 is reachable
run: |
curl --verbose --show-error http://localhost:9201
- name: Elasticsearch Node es3 is reachable
run: |
curl --verbose --show-error http://localhost:9202
- name: All nodes joined the cluster
run: |
curl http://localhost:9200/_nodes/http?filter_path=nodes.*.name
run-action-custom-port:
name: Start Elasticsearch with custom port
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["6.8-SNAPSHOT", "7.x-SNAPSHOT", "8.16.0-SNAPSHOT", "9.0.0-SNAPSHOT"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
security-enabled: false
stack-version: ${{ matrix.elasticsearch }}
port: 9250
- name: Elasticsearch is reachable
run: |
curl --verbose --show-error http://localhost:9250
run-multiple-nodes-custom-port:
name: Start multiple Elasticsearch nodes with custom ports
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["6.8-SNAPSHOT", "7.x-SNAPSHOT", "8.16.0-SNAPSHOT", "9.0.0-SNAPSHOT"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
security-enabled: false
stack-version: ${{ matrix.elasticsearch }}
nodes: 3
port: 9250
- name: Elasticsearch Node es1 is reachable
run: |
curl --verbose --show-error http://localhost:9250
- name: Elasticsearch Node es2 is reachable
run: |
curl --verbose --show-error http://localhost:9251
- name: Elasticsearch Node es3 is reachable
run: |
curl --verbose --show-error http://localhost:9252
- name: All nodes joined the cluster
run: |
curl http://localhost:9250/_nodes/http?filter_path=nodes.*.name
run-with-plugins:
name: Start Elasticsearch with Plugins
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["7.17.22", "8.15.0"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
security-enabled: false
stack-version: ${{ matrix.elasticsearch }}
plugins: |
analysis-icu
analysis-kuromoji
- name: Elasticsearch is reachable
run: |
curl --verbose --show-error http://localhost:9200
run-action-with-security:
name: Start Elasticsearch with security
runs-on: ubuntu-latest
strategy:
matrix:
elasticsearch: ["8.16.0-SNAPSHOT"]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start Elasticsearch
uses: ./elasticsearch
with:
stack-version: ${{ matrix.elasticsearch }}
elasticsearch_password: 'changedpassword'
- name: Elasticsearch is reachable
# Use --fail to ensure failure on a 401 (not authorized).
run: |
curl --verbose --show-error --fail -k -u elastic:changedpassword https://localhost:9200