---
vm_types:
  - name: kibana
    network: (( grab vm_types.small.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: (( grab vm_types.small.cloud_properties.instance_type ))
      ephemeral_disk: (( grab vm_types.small.cloud_properties.ephemeral_disk ))
      elbs:
        - (( grab terraform_outputs.logsearch_elb_name ))

  - name: ingestor
    network: (( grab vm_types.medium.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: (( grab vm_types.medium.cloud_properties.instance_type ))
      elbs:
        - (( grab terraform_outputs.logsearch_ingestor_elb_name ))

  - name: elasticsearch_master
    network: (( grab vm_types.medium.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: (( grab vm_types.medium.cloud_properties.instance_type ))
      elbs:
        - (( grab terraform_outputs.logsearch_elastic_master_elb_name ))

disk_types:
  - name: elasticsearch_master
    disk_size: 102400
    cloud_properties: {type: gp2}
  - name: queue
    disk_size: 102400
    cloud_properties: {type: gp2}

---
vm_types:
  - name: kibana
    network: (( grab vm_types.small.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: (( grab vm_types.small.cloud_properties.instance_type ))
      ephemeral_disk: (( grab vm_types.small.cloud_properties.ephemeral_disk ))
      elbs:
        - (( grab terraform_outputs.logsearch_elb_name ))

  - name: ingestor
    network: (( grab vm_types.medium.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: (( grab vm_types.medium.cloud_properties.instance_type ))
      elbs:
        - (( grab terraform_outputs.logsearch_ingestor_elb_name ))

  - name: elasticsearch_master
    network: (( grab vm_types.medium.network ))
    env: (( grab meta.default_env ))
    cloud_properties:
      instance_type: m4.large
      ephemeral_disk:
        size: 10240
        type: gp2
      elbs:
        - (( grab terraform_outputs.logsearch_elastic_master_elb_name ))

disk_types:
  - name: elasticsearch_master
    disk_size: 204800
    cloud_properties: {type: gp2}
  - name: queue
    disk_size: 102400
    cloud_properties: {type: gp2}

Add more disk&memory to ES vm types
Add more disk&memory to ES vm types

As we are almost out of disk space on prod for ES machines we need to
increase it. The safe size here is double than previous one.

Also as the volume of logs increases and we do more searches and
indexing we need more memory and more CPUs to cope with the load.
