CloudCannon Documentation

Available on the Open Source plans.

In order to faciliate to use our products the following informations are useful:

  1. When you are using a single server for effecting all operations the default configuration suffices.

  2. When you are in a position to use separate servers to run VirtEngine or encounter failures while running, the following configurations are to be changed.

The following are the main components which are to be changed:

  • Console (UI - Nilavu)
  • API - gateway
  • Omni scheduler - VirtEngine

Changing components

The main options to change are in the following files:

  1. Change details for the UI /var/lib/detio/nilavu.conf /etc/nginx/conf.d/nilavu.conf
  2. Change details for the API /var/lib/detio/virtenginegateway/gateway.conf
  3. Change details for the Omni scheduler /var/lib/detio/vertice/vertice.conf

Go to

$ cd /var/lib/detio

Configure /etc/nginx/conf.d/nilavu.conf


## nilavu UI that connect to

upstream nilavu {
  server localhost:8080;

Configure /var/lib/detio/nilavu.conf

/var/lib/detio/site_settings.yaml file is self explanatory, tweak as you wish.


## api host that the UI will connect to

http_api = http://localhost:9000/v2

## log streamer that the UI will connect to.

log_server = ws://localhost:7777/logs

### vnc server that the UI will connect to.

vnc_server = ws://localhost:8000

Configure /var/lib/detio/virtenginegateway/gateway.conf

# We use  cassandra as the db layer
# ~~~~~

# Cassandra
# ~~~~~~~~~ = "localhost"
cassandra.keyspace = "VirtEngine"
# DON'T Change these
cassandra.username = "vertadmin"
cassandra.password = "vertadmin"
cassandra.use_ssl = false

# We use NSQ as the messaging layer
# ~~~~~

# Don't change the nsq.topic names.

# send messages to NSQ. = false

# don't send events to NSQ if the email id is = [""]

Import Vertice Keyspace in Cassandra

Update the keyspace in Cassandra

To do this, download the following cql files:

wget -O base.cql
wget -O upgrade.cql
wget -O enterprise.cql

## Update base.cql file in cassandra. Change localhost to your private_ip

 cqlsh localhost -f base.cql

Enable password-auth in cassandra

Open the file /etc/cassandra/cassandra.yaml in your favourite EDITOR.

Lets use nano

$ nano  /etc/cassandra/cassandra.yaml

  • Change authenticator “AllowAllAuthenticator” to “PasswordAuthenticator”.

  • Change authorizer “AllowAllAuthorizer” to “CassandraAuthorizer”

  # - AllowAllAuthenticator performs no checks - set it to disable authentication.
  # - PasswordAuthenticator relies on username/password pairs to authenticate
  #   users. It keeps usernames and hashed passwords in system_auth.credentials table.
  #   Please increase system_auth keyspace replication factor if you use this authenticator.
  #   If using PasswordAuthenticator, CassandraRoleManager must also be used (see below)
  authenticator: PasswordAuthenticator

  # - AllowAllAuthorizer allows any action to any user - set it to disable authorization.
  # - CassandraAuthorizer stores permissions in system_auth.permissions table. Please
  #   increase system_auth keyspace replication factor if you use this authorizer.
  authorizer: CassandraAuthorizer

Restart the cassandra (in all operating systems)

$ service cassandra restart

## Upgrade the cql file using cassandra username and password. change localhost to your private_ip

cqlsh localhost vertadmin vertadmin -f upgrade.cql

cqlsh localhost vertadmin vertadmin -f enterprise.cql

Configure /var/lib/detio/vertice/vertice.conf

### Welcome to the VirtEngine configuration file.
### [meta]
### Controls how VirtEngine connects to scylla, nsq

    api = "https://localhost:9000/v2"
    nsqd = ["localhost:4150"]
    scylla = ["localhost"]
    scylla_keyspace = "VirtEngine"
    scylla_username = "vertadmin"
    scylla_password = "vertadmin"