zookeeper

command
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

README

InfraKit Flavor Plugin - Zookeeper

A reference implementation of a Flavor Plugin that creates an Apache ZooKeeper ensemble.

This is a plugin for handling Zookeeper ensemble.

Running

Begin by building plugin binaries.

Start the vagrant instance plugin:

$ build/infrakit-instance-vagrant
INFO[0000] Listening at: ~/.infrakit/plugins/instance-vagrant

Start the Group plugin:

$ build/infrakit-group-default
INFO[0000] Listening at: ~/.infrakit/plugins/group

Start Zookeeper flavor plugin:

$ build/infrakit-flavor-zookeeper
INFO[0000] Listening at: ~/.infrakit/plugins/flavor-zookeeper

Be sure to verify that the plugin is discoverable.

Here's a JSON for the group we'd like to see vagrant-zk.json:

{
  "ID": "zk",
  "Properties": {
    "Allocation": {
      "LogicalIDs": ["192.168.1.200", "192.168.1.201", "192.168.1.202"]
    },
    "Instance" : {
      "Plugin": "instance-vagrant",
      "Properties": {
        "Box": "bento/ubuntu-16.04"
      }
    },
    "Flavor" : {
      "Plugin": "flavor-zookeeper",
      "Properties": {
        "Type": "member"
      }
    }
  }
}

Now commit the group configuration:

$ build/infrakit group commit vagrant-zk.json
watching zk

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL