Unknown macro: {style}

.ia-secondary-container

Unknown macro: { margin}
Unknown macro: {div}
Kaa releases
Unknown macro: {div}
Shortcuts

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

Kaa sources

...

come with the Docker image starting from version 0.9.0. This image helps you with fast deployment of the Kaa clusters.

The Kaa Docker image is placed under the /server/containers folder in the Kaa repository.

...

The default environments that

...

come in this package

...

are:

  • Fully functional Kaa cluster

    • Kaa node
    • Zookeeper node
    • PostgreSQL node
    • Cassandra node
    • MongoDB node
  • Single Kaa node,

...

  • which can be deployed to an existing cluster

...

The base image configuration is done using the following environment variables:

Variable name

Sample values

Description

CONTROL_ENABLED

true/false

Determines whether control server enabled on this node or not

BOOTSTRAP_ENABLED

true/false

Determines whether bootstrap server enabled on this node or not

OPERATIONS_ENABLED

true/false

Determines whether operations server enabled on this node or not

DATABASE

cassandra/mongodb

Determines whether Cassandra or MongoDB provider will be used

ZK_HOSTS

localhost:2181, anotherhost:2181

Comma-separated list of Zookeeper nodes hostname:port

CASSANDRA_HOSTS

localhost:9042, ...

Comma-separated list of Cassandra nodes hostname:port

MONGODB_HOSTS

localhost:27017, ...

Comma-separated list of MongoDB nodes hostname:port

JDBC_HOST

localhost

PostgreSQL database hostname

JDBC_PORT

5432

PostgreSQL database port

Steps to deploy

  1. Download the Kaa debian package from http://www.kaaproject.org/download-kaa/ and place it under the node/ folder.
  2. Execute

...

  1. the following command from

...

  1. the node/ folder:

    Code Block
    languagebash
    $ docker build --build-arg setupfile=<KAA_DEBIAN_PACKAGE_LOCATION> -t kaaproject/node:0.9.0 .

...

  1.  An example of

...

  1. <KAA_DEBIAN_PACKAGE_LOCATION>

...

  1. is

...

  1. ./kaa-node.deb 

  2. Return

...

  1. to

...

  1. the docker/

...

  1. folder

...

  1. and

...

  1. run:

    Code Block
    languagebash
    $ docker-compose -f docker-compose-cluster-1-node.yaml up -d

     

  2. If you want deploy a single node to an external cluster, edit the docker-compose-1-node.yaml file (set correct service hostnames) and run:

    Code Block
    languagebash
    $ docker-compose -f docker-compose-1-node.yaml up -d
  3. Execute the following command to get into the running container:

    Code Block
    languagebash
    $ docker exec -i -t docker_kaa_node_1 bash

 

...


Copyright © 2014-2016, CyberVision, Inc.