add elasticsearch 5.3 cluster
This commit is contained in:
parent
f377ca033e
commit
91127c4407
3
templates/es-cluster/0/README.md
Normal file
3
templates/es-cluster/0/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Elasticsearch Cluster
|
||||||
|
|
||||||
|
A 3-Node Elasticsearch Cluster with Kibana
|
92
templates/es-cluster/0/docker-compose.yml
Normal file
92
templates/es-cluster/0/docker-compose.yml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
es-master-01:
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
|
||||||
|
environment:
|
||||||
|
- "cluster.name=${cluster_name}"
|
||||||
|
- "bootstrap.memory_lock=true"
|
||||||
|
- "xpack.security.enabled=false"
|
||||||
|
- "ES_JAVA_OPTS=-Xms${heap_size} -Xmx${heap_size}"
|
||||||
|
- "discovery.zen.minimum_master_nodes=2"
|
||||||
|
- "node.master=true"
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
mem_limit: ${mem_limit}
|
||||||
|
mem_swappiness: 0
|
||||||
|
cap_add:
|
||||||
|
- IPC_LOCK
|
||||||
|
volumes:
|
||||||
|
- es-master-01-data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
|
es-master-02:
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
|
||||||
|
environment:
|
||||||
|
- "cluster.name=${cluster_name}"
|
||||||
|
- "bootstrap.memory_lock=true"
|
||||||
|
- "xpack.security.enabled=false"
|
||||||
|
- "ES_JAVA_OPTS=-Xms${heap_size} -Xmx${heap_size}"
|
||||||
|
- "discovery.zen.minimum_master_nodes=2"
|
||||||
|
- "node.master=true"
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
mem_limit: ${mem_limit}
|
||||||
|
mem_swappiness: 0
|
||||||
|
cap_add:
|
||||||
|
- IPC_LOCK
|
||||||
|
volumes:
|
||||||
|
- es-master-02-data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
|
es-node:
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
|
||||||
|
environment:
|
||||||
|
- "cluster.name=${cluster_name}"
|
||||||
|
- "bootstrap.memory_lock=true"
|
||||||
|
- "xpack.security.enabled=false"
|
||||||
|
- "discovery.zen.ping.unicast.hosts=es-master-01,es-master-02"
|
||||||
|
- "ES_JAVA_OPTS=-Xms${heap_size} -Xmx${heap_size}"
|
||||||
|
- "node.master=false"
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
mem_limit: ${mem_limit}
|
||||||
|
mem_swappiness: 0
|
||||||
|
cap_add:
|
||||||
|
- IPC_LOCK
|
||||||
|
volumes:
|
||||||
|
- /usr/share/elasticsearch/data
|
||||||
|
|
||||||
|
kibana:
|
||||||
|
image: docker.elastic.co/kibana/kibana:5.3.0
|
||||||
|
container_name: kibana
|
||||||
|
environment:
|
||||||
|
- "bootstrap.memory_lock=true"
|
||||||
|
- "xpack.security.enabled=false"
|
||||||
|
- "ELASTICSEARCH_URL=http://es-master-01:9200"
|
||||||
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||||||
|
mem_limit: 1073741824
|
||||||
|
mem_swappiness: 0
|
||||||
|
ports:
|
||||||
|
- "${kibana_port}:5601"
|
||||||
|
depends_on:
|
||||||
|
- es-master-01
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
es-master-01-data:
|
||||||
|
driver: local
|
||||||
|
es-master-02-data:
|
||||||
|
driver: local
|
36
templates/es-cluster/0/rancher-compose.yml
Normal file
36
templates/es-cluster/0/rancher-compose.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
.catalog:
|
||||||
|
name: Elasticsearch Cluster
|
||||||
|
version: 5.3.0
|
||||||
|
description: 3-Node Elasticsearch Cluster with Kibana
|
||||||
|
|
||||||
|
questions:
|
||||||
|
- variable: "cluster_name"
|
||||||
|
type: "string"
|
||||||
|
required: true
|
||||||
|
label: "Cluster Name"
|
||||||
|
description: "Name of the Elasticsearch Cluster"
|
||||||
|
default: "es-cluster"
|
||||||
|
|
||||||
|
- variable: "heap_size"
|
||||||
|
type: "string"
|
||||||
|
required: true
|
||||||
|
label: "Heap Size"
|
||||||
|
description: "Heap size to be allocated for Java"
|
||||||
|
default: "512m"
|
||||||
|
|
||||||
|
- variable: "mem_limit"
|
||||||
|
type: "int"
|
||||||
|
required: true
|
||||||
|
label: "Memory Limit in Byte"
|
||||||
|
description: "Memory limit in Byte per elasticsearch container. AT LEAST double the heap size!"
|
||||||
|
default: 1073741824
|
||||||
|
|
||||||
|
- variable: "kibana_port"
|
||||||
|
type: "int"
|
||||||
|
required: true
|
||||||
|
label: "Public Kibana Port"
|
||||||
|
description: "Public port where kibana will be accessible"
|
||||||
|
default: 5601
|
||||||
|
|
||||||
|
|
||||||
|
|
67
templates/es-cluster/catalogIcon-elasticsearch.svg
Normal file
67
templates/es-cluster/catalogIcon-elasticsearch.svg
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{clip-path:url(#SVGID_2_);fill:#F0BF1A;}
|
||||||
|
.st1{clip-path:url(#SVGID_4_);fill:#3EBEB0;}
|
||||||
|
.st2{clip-path:url(#SVGID_6_);fill:#07A5DE;}
|
||||||
|
.st3{clip-path:url(#SVGID_8_);fill:#231F20;}
|
||||||
|
.st4{fill:#D7A229;}
|
||||||
|
.st5{fill:#019B8F;}
|
||||||
|
.st6{fill:none;}
|
||||||
|
</style>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<defs>
|
||||||
|
<circle id="SVGID_1_" cx="40" cy="40" r="32"/>
|
||||||
|
</defs>
|
||||||
|
<clipPath id="SVGID_2_">
|
||||||
|
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||||
|
</clipPath>
|
||||||
|
<path class="st0" d="M53.7,26H10c-1.1,0-2-0.9-2-2V10c0-1.1,0.9-2,2-2h57c1.1,0,2,0.9,2,2v0.7C68.9,19.1,62.1,26,53.7,26z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<defs>
|
||||||
|
<circle id="SVGID_3_" cx="40" cy="40" r="32"/>
|
||||||
|
</defs>
|
||||||
|
<clipPath id="SVGID_4_">
|
||||||
|
<use xlink:href="#SVGID_3_" style="overflow:visible;"/>
|
||||||
|
</clipPath>
|
||||||
|
<path class="st1" d="M69.1,72H8.2l0,0V54l0,0h45.7c8.4,0,15.2,6.8,15.2,15.2V72L69.1,72z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<defs>
|
||||||
|
<circle id="SVGID_5_" cx="40" cy="40" r="32"/>
|
||||||
|
</defs>
|
||||||
|
<clipPath id="SVGID_6_">
|
||||||
|
<use xlink:href="#SVGID_5_" style="overflow:visible;"/>
|
||||||
|
</clipPath>
|
||||||
|
<path class="st2" d="M50.1,49H4.8V31h45.3c5,0,9,4,9,9l0,0C59.1,45,55,49,50.1,49z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<defs>
|
||||||
|
<circle id="SVGID_7_" cx="40" cy="40" r="32"/>
|
||||||
|
</defs>
|
||||||
|
<clipPath id="SVGID_8_">
|
||||||
|
<use xlink:href="#SVGID_7_" style="overflow:visible;"/>
|
||||||
|
</clipPath>
|
||||||
|
<path class="st3" d="M36,31H6.4v18H36c0.7-2.7,1.1-5.7,1.1-9S36.7,33.7,36,31z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<path class="st4" d="M23.9,12.3c-5.4,3.2-9.9,8-12.7,13.7h23.6C32.4,20.5,28.6,15.9,23.9,12.3z"/>
|
||||||
|
<path class="st5" d="M24.9,68.2c4.6-3.7,8.3-8.6,10.6-14.2H11.2C14.2,60,19,65,24.9,68.2z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<rect class="st6" width="80" height="80"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
5
templates/es-cluster/config.yml
Normal file
5
templates/es-cluster/config.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: Elasticsearch Cluster 5.3.0
|
||||||
|
description: |
|
||||||
|
Elasticsearch, you know for search!
|
||||||
|
version: 5.3.0
|
||||||
|
category: ELK
|
Loading…
x
Reference in New Issue
Block a user