So I'am a little bit confused.
-
I have a template which uses an instance configuration with wanted "storage_multiplier" 16.
-
I can reference this template in my cluster deployment json file.
-
During Cluster Deployment neither template nor instance configuration are used.
-
The resulting cluster has the default "storage_multiplier" 32.
-
So far only the advice to put the following lines into advanced configuration into "Data" Windows worked:
"overrides": {
"quota": {
"fs_multiplier": 16
}
}
But this is working with UI, not API.
I can't put these puzzle pieces together.
This is my instance configuration "myInstanceConfig", used by "myTemplate_1".
INSTANCE CONFIGURATION
{
"name": "myInstanceConfig",
"description": "Ratio 1 GB Ram = 16 GB Storage",
"storage_multiplier": 16.0,
"discrete_sizes": {
"sizes": [1024, 2048, 4096, 8192, 16384, 32768, 65536],
"default_size": 1024,
"resource": "memory"
},
"id": "46c871a88f4145b89e6f1d2602999354",
"node_types": ["data", "master", "ingest"],
"instance_type": "elasticsearch"
}
TEMPLATE
{
"name": "myTemplate_1",
...
"description": "1 Zone, 2GB RAM, xpack aktiviert",
"id": "c7159de3c438493b9925474390a8a6a0",
"cluster_template": {
"plan": {
"cluster_topology": [{
"size": {
"value": 1024,
"resource": "memory"
},
"node_type": {
"master": true,
"data": false,
"ingest": false
},
"instance_configuration_id": "master",
"elasticsearch": {
"user_settings_yaml": "# Note that the syntax for ..."
},
"zone_count": 1
}, {
"size": {
"value": 2048,
"resource": "memory"
},
"node_type": {
"master": true,
"data": true,
"ingest": true
},
"instance_configuration_id": "46c871a88f4145b89e6f1d2602999354",
"elasticsearch": {
"user_settings_yaml": "# Note that the syntax for ..."
"node_attributes": {
}
},
"zone_count": 1
}],
...
"settings": {
"dedicated_masters_threshold": 3
},
...
"system_owned": false
}
CLUSTER DEPLOYMENT
curl -k -X POST -u admin ... clusters/elasticsearch -H 'content-type: application/json' -d '{
"cluster_name" : "MyCluster",
"plan" : {
"elasticsearch" : {
"version" : "6.6.0"
},
"cluster_topology" : [
{
"memory_per_node" : 2048,
"node_count_per_zone" : 1,
"node_type" : {
"data" : true,
"ingest" : true,
"master" : true
},
"zone_count" : 1
}
],
"deployment_template": {
"id": "c7159de3c438493b9925474390a8a6a0"
}
}
}'