Update elasticsearch app to support 7.x (#207)
Version 7 of elasticsearch has some deprecations: https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html. This PR update the json app to implement the installation requirements. See changes from https://www.elastic.co/guide/en/elasticsearch/reference/6.8/docker.html to https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
This commit is contained in:
parent
7cae525a0c
commit
88626f2ddd
|
|
@ -15,26 +15,27 @@
|
||||||
"environment": {
|
"environment": {
|
||||||
"ES_JAVA_OPTS": "-Xms512m -Xmx512m",
|
"ES_JAVA_OPTS": "-Xms512m -Xmx512m",
|
||||||
"cluster.name": "$$cap_elasticsearch_cluster_name",
|
"cluster.name": "$$cap_elasticsearch_cluster_name",
|
||||||
|
"cluster.initial_master_nodes": "$$cap_elasticsearch_cluster_initial_master_nodes",
|
||||||
"http.port": "$$cap_container_port",
|
"http.port": "$$cap_container_port",
|
||||||
|
"node.name": "$$cap_appname",
|
||||||
"node.master": "$$cap_elasticsearch_node_master",
|
"node.master": "$$cap_elasticsearch_node_master",
|
||||||
"node.data": "$$cap_elasticsearch_node_data",
|
"node.data": "$$cap_elasticsearch_node_data",
|
||||||
"discovery.zen.minimum_master_nodes": "$$cap_elasticsearch_minimum_master_nodes",
|
"discovery.seed_hosts": "$$cap_elasticsearch_discovery_seed_hosts"
|
||||||
"discovery.zen.ping.unicast.hosts": "$$cap_elasticsearch_unicast_hosts"
|
|
||||||
},
|
},
|
||||||
"containerHttpPort": "$$cap_container_port"
|
"containerHttpPort": "$$cap_container_port"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"instructions": {
|
"instructions": {
|
||||||
"start": "Elasticsearch is a distributed, RESTful search and analytics engine. This image can be used for single nodes and cluster setups. Be sure to extend the virtual memory on all your hosts! (increase \"echo 'vm.max_map_count=262144' >> /etc/sysctl.conf\" and restart \"sysctl -p\")",
|
"start": "Elasticsearch is a distributed, RESTful search and analytics engine. This image can be used for single nodes and cluster setups. IMPORTANT: Be sure to extend the virtual memory on all your hosts! (increase \"echo 'vm.max_map_count=262144' >> /etc/sysctl.conf\" and restart \"sysctl -p\")",
|
||||||
"end": "Deployment of Elasticsearch is finished. You might see 502 errors for the next 2 minutes. Goto <YOUR-APP-URL>/_cat/health to check the health of your cluster."
|
"end": "Deployment of Elasticsearch is finished. You might see 502 errors for the next 2 minutes. Goto <YOUR-APP-URL>/_cat/health to check the health of your cluster. IMPORTANT: Be sure to extend the virtual memory on all your hosts! (increase \"echo 'vm.max_map_count=262144' >> /etc/sysctl.conf\" and restart \"sysctl -p\")"
|
||||||
},
|
},
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"id": "$$cap_elasticsearch_version",
|
"id": "$$cap_elasticsearch_version",
|
||||||
"label": "Elasticsearch Version Tag ",
|
"label": "Elasticsearch Version Tag ",
|
||||||
"description": "Checkout the releases overview: https://www.elastic.co/de/downloads/elasticsearch",
|
"description": "Checkout the releases overview: https://www.elastic.co/de/downloads/elasticsearch",
|
||||||
"defaultValue": "6.7.1",
|
"defaultValue": "7.8.0",
|
||||||
"validRegex": "/^([^\\s^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -45,10 +46,10 @@
|
||||||
"validRegex": "/^([^\\s^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "$$cap_elasticsearch_unicast_hosts",
|
"id": "$$cap_elasticsearch_cluster_initial_master_nodes",
|
||||||
"label": "Unicasts hosts",
|
"label": "Cluster Initial Master Nodes",
|
||||||
"description": "References to other node to attach to. (for example: srv-captain--XXX)",
|
"description": "Nodes to be used as master nodes. If this is the master node, put the 'App Name' selected above",
|
||||||
"defaultValue": "false",
|
"defaultValue": "",
|
||||||
"validRegex": "/^([^\\s^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -61,16 +62,16 @@
|
||||||
{
|
{
|
||||||
"id": "$$cap_elasticsearch_node_master",
|
"id": "$$cap_elasticsearch_node_master",
|
||||||
"label": "Node Master",
|
"label": "Node Master",
|
||||||
"description": "Define node as master-eligible (usual first node YES, others NO).",
|
"description": "Define node as master-eligible (usual first node TRUE, others FALSE).",
|
||||||
"defaultValue": "true",
|
"defaultValue": "true",
|
||||||
"validRegex": "/^([^\\s^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "$$cap_elasticsearch_minimum_master_nodes",
|
"id": "$$cap_elasticsearch_discovery_seed_hosts",
|
||||||
"label": "Minimum Master Nodes",
|
"label": "Discovery seed hosts",
|
||||||
"description": "Define minimum amount of master (N) ( best practice: ceil(N/2 + 1) ).",
|
"defaultValue": "srv-captain--XXX",
|
||||||
"defaultValue": "1",
|
"description": "Domains to start the discovery of other nodes",
|
||||||
"validRegex": "/^([0-9])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "$$cap_container_port",
|
"id": "$$cap_container_port",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue