You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
You can also modify the values in `/etc/default/elasticsearch` (`JAVA_HOME`, most notably), `/etc/elasticsearch/elasticsearch.yml`, and `/etc/elasticsearch/jvm.options` (to set the heap size, most notably). To learn more, see [Elasticsearch configuration](../../elasticsearch/configuration/) and [Important Settings](../docker#important-settings) on the Docker page.
111
111
112
-
### Setup Performance Analyzer
113
112
114
-
By default, Performance Analyzer's endpoints will not be accessible from outside the host machine.
113
+
### (Optional) Set up Performance Analyzer
115
114
116
-
To edit this behavior you'll need to modify the plugin configuration. First navigate to your `ES_HOME` which is `/usr/share/elasticsearch` for a standard installation.
115
+
By default, Performance Analyzer's endpoints are not accessible from outside the host machine.
116
+
117
+
To edit this behavior, modify the plugin configuration. First navigate to `ES_HOME`, which is `/usr/share/elasticsearch` for a standard installation.
117
118
118
119
```bash
119
120
cd$ES_HOME# navigate to the Elasticsearch home directory
120
121
cd plugins/opendistro_performance_analyzer/pa_config/
121
122
vi performance-analyzer.properties
122
123
```
123
124
124
-
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`. An example is provided below.
125
-
```bash
125
+
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`:
Copy file name to clipboardExpand all lines: docs/install/docker.md
+39-34Lines changed: 39 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,49 +187,23 @@ services:
187
187
You can use this same method to [pass your own certificates](../docker-security/) for use with the [Security](../../security/configuration/) plugin.
188
188
189
189
190
-
## Bash access to containers
191
-
192
-
To create an interactive Bash session in a container, run `docker ps` to find the container ID. Then run:
193
-
194
-
```bash
195
-
docker exec -it <container-id> /bin/bash
196
-
```
197
-
190
+
### (Optional) Set up Performance Analyzer
198
191
199
-
## Important settings
192
+
By default, Performance Analyzer's endpoints are not accessible from outside the Docker container.
200
193
201
-
For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt) `vm.max_map_count` is set to at least 262144. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run:
194
+
To edit this behavior, open a shell session in the container and modify the configuration:
202
195
203
196
```bash
204
-
cat /proc/sys/vm/max_map_count
205
-
```
206
-
207
-
To increase this value, you have to modify the Docker image. On the RPM install, you can add this setting to the host machine's `/etc/sysctl.conf` file by adding the following line:
208
-
209
-
```
210
-
vm.max_map_count=262144
211
-
```
212
-
213
-
Then run `sudo sysctl -p` to reload.
214
-
215
-
The `docker-compose.yml` file above also contains several key settings: `bootstrap.memory_lock=true`, `ES_JAVA_OPTS=-Xms512m -Xmx512m`, `nofile 65536` and `port 9600`. Respectively, these settings disable memory swapping (along with `memlock`), set the size of the Java heap (we recommend half of system RAM), set a limit of 65536 open files for the Elasticsearch user, and allow you to access Performance Analyzer on port 9600.
216
-
217
-
### Setup Performance Analyzer
218
-
219
-
By default, Performance Analyzer's endpoints will not be accessible from outside the Docker container.
220
-
221
-
To edit this behavior you'll need to open up a shell session in the container and modify the configuration.
222
-
223
-
```bash
224
-
docker ps # Lookup the container id
197
+
docker ps # Look up the container id
225
198
docker exec -it <container-id> /bin/bash
226
199
# Inside container
227
200
cd plugins/opendistro_performance_analyzer/pa_config/
228
201
vi performance-analyzer.properties
229
202
```
230
203
231
-
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`. An example is provided below.
232
-
```bash
204
+
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`:
To create an interactive Bash session in a container, run `docker ps` to find the container ID. Then run:
256
+
257
+
```bash
258
+
docker exec -it <container-id> /bin/bash
259
+
```
260
+
261
+
262
+
## Important settings
263
+
264
+
For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt)`vm.max_map_count` is set to at least 262144. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run:
265
+
266
+
```bash
267
+
cat /proc/sys/vm/max_map_count
268
+
```
269
+
270
+
To increase this value, you have to modify the Docker image. On the RPM install, you can add this setting to the host machine's `/etc/sysctl.conf` file by adding the following line:
271
+
272
+
```
273
+
vm.max_map_count=262144
274
+
```
275
+
276
+
Then run `sudo sysctl -p` to reload.
277
+
278
+
The `docker-compose.yml` file above also contains several key settings: `bootstrap.memory_lock=true`, `ES_JAVA_OPTS=-Xms512m -Xmx512m`, `nofile 65536` and `port 9600`. Respectively, these settings disable memory swapping (along with `memlock`), set the size of the Java heap (we recommend half of system RAM), set a limit of 65536 open files for the Elasticsearch user, and allow you to access Performance Analyzer on port 9600.
279
+
280
+
276
281
## Customize the Docker image
277
282
278
283
To run the image with a custom plugin, first create a [`Dockerfile`](https://docs.docker.com/engine/reference/builder/):
Performance Analyzer relies on certain config files to run. If you want to delete these files, run one of the
353
-
scripts we've provided based on your Linux distribution
364
+
### (Optional) Clean up Performance Analyzer files
354
365
355
-
1. Make the removal scripts executable
366
+
Performance Analyzer requires certain configuration files to run. If you want to delete these files, run one of the scripts we provide based on your Linux distribution *before* performing the normal plugin removal process.
356
367
357
-
```bash
358
-
sudo chmod +x plugins/opendistro_performance_analyer/install/deb/postrm sudo sh plugins/opendistro_performance_analyer/install/rpm/postrm
359
-
```
368
+
1. Make the removal scripts executable
360
369
361
-
1. Run the appropriate removal script for your distribution
You can also modify the values in `/etc/sysconfig/elasticsearch` (`JAVA_HOME`, most notably), `/etc/elasticsearch/elasticsearch.yml`, and `/etc/elasticsearch/jvm.options` (to set the heap size, most notably). To learn more, see [Elasticsearch configuration](../../elasticsearch/configuration/) and [Important Settings](../docker#important-settings) on the Docker page.
101
101
102
-
### Setup Performance Analyzer
103
102
104
-
By default, Performance Analyzer's endpoints will not be accessible from outside the host machine.
103
+
### (Optional) Set up Performance Analyzer
105
104
106
-
To edit this behavior you'll need to modify the plugin configuration. First navigate to your `ES_HOME` which is `/usr/share/elasticsearch` for a standard installation.
105
+
By default, Performance Analyzer's endpoints are not accessible from outside the host machine.
106
+
107
+
To edit this behavior, modify the plugin configuration. First navigate to `ES_HOME`, which is `/usr/share/elasticsearch` for a standard installation.
107
108
108
109
```bash
109
110
cd$ES_HOME# navigate to the Elasticsearch home directory
110
111
cd plugins/opendistro_performance_analyzer/pa_config/
111
112
vi performance-analyzer.properties
112
113
```
113
114
114
-
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`. An example is provided below.
115
-
```bash
115
+
Uncomment the line `#webservice-bind-host` and set it to `0.0.0.0`:
0 commit comments