geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Markito Oliveira (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-49) Integration with Apache Mesos
Date Fri, 14 Aug 2015 02:17:45 GMT

    [ https://issues.apache.org/jira/browse/GEODE-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696337#comment-14696337
] 

William Markito Oliveira commented on GEODE-49:
-----------------------------------------------

Here is the result of the work that [~swapnil.bawaskar] and I did on this last Wednesday around
getting Geode on Mesos.

There is still work to be done such as get the locator port dynamically on the Server and
dynamic scale, which seems to have some issue.  We still need to look into a scheduler.

In summary, you can post these 2 XML files using cURL and provision a Geode cluster using
Docker images on a running *Marathon* system.

{code}
curl -X POST http://10.141.141.10:8080/v2/apps -d @geode-server.json -H "Content-type: application/json"

{code}

*Locator*

{code:title=geode-locator.json|language=yaml}
{
  "id": "geode-locator",
  "cpus": 0.2,
  "mem": 256,
  "instances": 1,
  "constraints": [["hostname", "UNIQUE", ""]],
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "apachegeode/geode:unstable",
      "network": "BRIDGE",
      "portMappings": [
        { "containerPort": 10334, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }
      ]
    }
  },
  "cmd": "gfsh start locator --name=locator1; sleep 1000000"
}
{code}

*Server*
{code:title=geode-server.json|language=yaml}
{
  "id": "geode-server",
  "cpus": 1.0,
  "mem": 512,
  "instances": 2,
  "constraints": [["hostname", "UNIQUE", ""]],
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "apachegeode/geode:unstable",
      "network": "BRIDGE",
      "portMappings": [
        { "containerPort": 40404, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }
      ]
    }
  },
  "cmd": "gfsh start server --name=$HOSTNAME --locators=10.141.141.10[LOCATOR_PORT_NUM]; sleep
10000000"
}
{code}

> Integration with Apache Mesos
> -----------------------------
>
>                 Key: GEODE-49
>                 URL: https://issues.apache.org/jira/browse/GEODE-49
>             Project: Geode
>          Issue Type: Task
>          Components: extensions
>            Reporter: William Markito Oliveira
>            Assignee: William Markito Oliveira
>
> Provide a Mesos Scheduler in order to allow integration between Geode and a Mesos cluster.

> The main goal is to leverage Mesos as way to perform rolling restarts, health check,
node replacement, etc, all automated by Mesos.   
> The main components needed for such solution, initially would be:
> * A Mesos scheduler
> * A custom executor
> A more concrete spec will be available after initial research.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message