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 I can add new node to elliptics group? (autodiscovery) #718

Open
revengel opened this issue Jan 12, 2017 · 3 comments
Open

How I can add new node to elliptics group? (autodiscovery) #718

revengel opened this issue Jan 12, 2017 · 3 comments

Comments

@revengel
Copy link

revengel commented Jan 12, 2017

I have 3 elliptics containers:

  elliptics11:
    image: "elliptics:latest"
    environment:
      ELLIPTICS_GROUP: 1
      ELLIPTICS_REMOTE_CONNECT: "elliptics12:1025:2;elliptics13:1025:2;"
      ELLIPTICS_ADDRESSES: "elliptics11:1025:2-1"

  elliptics12:
    image: "elliptics:latest"
    environment:
      ELLIPTICS_GROUP: 1
      ELLIPTICS_REMOTE_CONNECT: "elliptics11:1025:2;elliptics13:1025:2"
      ELLIPTICS_ADDRESSES: "elliptics12:1025:2-1"

  elliptics13:
    image: "elliptics:latest"
    environment:
      ELLIPTICS_GROUP: 1
      ELLIPTICS_REMOTE_CONNECT: "elliptics11:1025:2;elliptics12:1025:2"
      ELLIPTICS_ADDRESSES: "elliptics13:1025:2-1"

Elliptics config:

{
  "logger": {
    "level": "info",
    "frontends": [
      {
        "formatter": {
          "type": "string",
          "pattern": "%(timestamp)s %(request_id)s/%(lwp)s/%(pid)s %(severity)s: %(message)s %(...L)s"
        },
        "sink": {
          "type": "files",
          "path": "/dev/stdout",
          "autoflush": true,
          "rotation": {
            "move": 0
          }
        }
      }
    ]
  },
  "options": {
    "join": true,
    "flags": 20,
    "remote" : ["elliptics12:1025:2", "elliptics13:1025:2"],
    "address": ["elliptics11:1025:2-0"],
    "wait_timeout": 60,
    "check_timeout": 60,
    "io_thread_num": 16,
    "nonblocking_io_thread_num": 16,
    "net_thread_num": 4,
    "daemon": false,
    "auth_cookie": "some_cookie",
    "bg_ionice_class": 3,
    "bg_ionice_prio": 0,
    "server_net_prio": 1,
    "client_net_prio": 6,
    "cache": {
      "size": 68719476736
    },
    "indexes_shard_count": 2,
    "monitor": {
      "port":20000
    }
  },
  "backends": [
    {
      "backend_id": 1,
      "type": "blob",
      "group": 1,
      "history": "/opt/elliptics/1/history/",
      "data": "/opt/elliptics/1/blob/data",
      "sync": "1",
      "blob_flags": "158",
      "blob_size": "10G",
      "records_in_blob": "1000000",
      "periodic_timeout": 15,
      "defrag_percentage": 10,
      "defrag_timeout": 3600
    }
  ]
}

How I can use 'autodiscovery' for quick and easy adding node to the elliptics group?

@bioothod
Copy link
Member

Please do not use autodiscovery, it has weird issues when there are multiple interfaces because of ipv4 multicast selections, so it was disabled in the current versions

@revengel
Copy link
Author

Thanks.

After adding elliptics node to the group I must add its address to remotes section of the every node in the group?

@bioothod
Copy link
Member

If all other nodes can reach the node whose config you have updated, you may skip updating configs for other nodes.

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