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

Horizontally Scaling to More than Number of Agent Nodes #584

Open
lhr0909 opened this issue Oct 9, 2016 · 1 comment
Open

Horizontally Scaling to More than Number of Agent Nodes #584

lhr0909 opened this issue Oct 9, 2016 · 1 comment

Comments

@lhr0909
Copy link

lhr0909 commented Oct 9, 2016

I am wondering if we can scale the ES cluster to have more nodes than the # of agent nodes. I am currently using the latest mesos-es-scheduler container mode with latest image and with the following config on a 3-master HA 3-agent Mesos v1.0.1 cluster:

{
  "id": "/elasticsearch-scheduler",
  "cmd": null,
  "cpus": 0.2,
  "mem": 512,
  "disk": 0,
  "instances": 1,
  "container": {
    "type": "DOCKER",
    "volumes": [],
    "docker": {
      "image": "mesos/elasticsearch-scheduler",
      "network": "HOST",
      "portMappings": null,
      "privileged": false,
      "parameters": [],
      "forcePullImage": false
    }
  },
  "env": {
    "JAVA_OPTS": "-Xms128m -Xmx256m"
  },
  "portDefinitions": [
    {
      "port": 10000,
      "protocol": "tcp",
      "labels": {}
    }
  ],
  "args": [
    "--zookeeperMesosUrl",
    "zk://10.0.0.2:2181,10.0.0.243:2181,10.0.0.149:2181/mesos",
    "--frameworkName",
    "elasticsearch-scheduler",
    "--elasticsearchClusterName",
    "es-mesos",
    "--elasticsearchCpu",
    "1",
    "--elasticsearchDisk",
    "10240.0",
    "--elasticsearchNodes",
    "5",
    "--elasticsearchRam",
    "1024.0"
  ]
}

With this config I could only spawn 3 ES nodes for the cluster, and I am wondering if we could schedule more than that on 3 agents. Resource-wise there is definitely enough (CPU, disk and RAM) for 2 more, so I am just wondering why we couldn't make it to work.

also I am wondering if --elasticsearchDisk and --elasticsearchRam options are for the overall cluster or per-node. Thanks!

@krishnabigdata
Copy link

Hi,

As per the elasticsearch configuration and persistence volume requirement for elasticsearch you should run only 1 ES node per Mesos slave agent and the mesos slave offer as well configured to allocate resource per host basis only. It is the recommended approach. If you need more detail, please let me know.

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

2 participants