Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify size of volume for --externalVolumeDriver #604

Open
shamimgeek opened this issue Apr 19, 2017 · 0 comments
Open

How to specify size of volume for --externalVolumeDriver #604

shamimgeek opened this issue Apr 19, 2017 · 0 comments

Comments

@shamimgeek
Copy link

shamimgeek commented Apr 19, 2017

Hi,

How can i specify the size of the volume when node is attached to. i am using flocker. i tried with "--externalVolumeOptions", "{{ node.volume }}",, but seems not working may be i am doing wrong ? please guide me

{
  "id": "{{ app.id }}",
  "container": {
    "docker": {
      "image": "{{ image.source }}/{{ image.name }}:{{ image.version }}",
      "network": "HOST"
    }
  },
  "labels": {
    "ELASTICSEARCH": "{{ image.version }}"
  },
  "args": ["--zookeeperMesosUrl", "{{ app.zookeepermeso_url }}",
           "--frameworkName", "{{ app.framework_name }}",
           "--webUiPort", "{{ app.web_ui_port }}",
           "--executorName", "{{ node.id }}",
           "--externalVolumeDriver", "{{ node.driver }}",
           "--externalVolumeOptions", "{{ node.volume }}",
           "--elasticsearchNodes", "{{ app.nodes }}",
           "--elasticsearchCpu", "{{ node.cpu }}",
           "--elasticsearchPorts", "{{ node.ports }}",
           "--elasticsearchRam", "{{ node.mem }}",
           "--elasticsearchDisk", "{{ node.disk }}",
           "--elasticsearchDockerImage","{{ image.source }}/{{ node.image }}"],
  "cpus": 0.2,
  "mem": 512,
  "env": { "JAVA_OPTS": "-Xms128m -Xmx256m" },
  "instances": 1,
  "healthChecks": [
    {
      "path": "/",
      "protocol": "HTTP",
      "port": {{ app.web_ui_port }}
    }
  ]
}

node:
  id: "es-cluster"
  image: "ava-paas/elasticsearch:2.4.4"
  ports: "31200,31201"
  cpu: "0.5"
  mem: 2000
  disk: 76800
  driver: flocker
  volume: "--size=8G"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant