Versions Compared

Key

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

Automating the deployment process is commonly used a common practice in a production or and development environments. There are many tools exist to perform this task. Puppet is our recommended tool to perform deployment automation. You can find the necessary puppet modules which that are relevant to WSO2 CEP 4.0.0 here. You The following sections explain how you can refer/use these puppet modules when developing your own puppet modules for WSO2 CEP. Please find further details on this below.

WSO2 CEP Puppet Modules

These puppet modules can be used to install WSO2 CEP in all its deployment modes (i.e. standalone mode, high availability mode and distributed mode). Also, it contains the necessary modules necessary to install an apache storm Apache Storm cluster which that is required for the distributed deployment of CEP.  It It also has enabled deployment of 3 main deployment patterns of wso2 CEP easily using Hiera to store deployment parameters.

Setup

CEP Module

To install CEP in its normal mode(i.e. standalone mode) with default parameters,:

Code Block
languageperl
include ‘cep’ 

To install CEP in a specific role with default parameters, :

Code Block
languageperl
include ‘cep:hanode’
include ‘cep:distributednode’
Storm Module

To install each server of a storm cluster with default parameters use, :

Code Block
languageperl
include ‘storm::nimbus’
include ‘storm::supervisor’
include ‘storm::zookeeper’
include ‘storm::stormui’ 

...

  • cep : Installs and manages the CEP in standalone mode.

  • cep:hanode : Install Installs and configure configures the CEP as a worker in high availability(HA) mode.

  • cep:distributednode : Install Installs and configure configures the CEP as a worker or a manager in distributed mode.
Parameters

 

Parameter

Description

version

Version The version of the WSO2 CEP server.  These scripts can only be only used for version 4.0.0 onwards. (e.g. 4.0.0)

owner

Owner The owner of the CEP installation folder (e.g. root).

group

Group The group of the CEP installation folder (e.g. root).

maintenance_mode

Mode The mode of the installation, following are the allowed values,. Possible values are as follows.

  • refresh:
stop
  • Stops the server if running and
restart
  • restarts it.
  • new:
delete
  • Deletes the existing installation, and
redeploy
  • redeploys and
start
  • starts the server.
  • zero:
download
  • Downloads a fresh copy of the wso2 CEP pack and perform a fresh deployment.

offset

Portoff set The port offset of the carbon server.

clustering

Flag to indicate if This indicates whether clustering is enabled or not. ( e.g. true), If the value is true, clustering is enabled.

depsync

Flag to indicate if deployment synchronization This indicates whether deployment synchronisation is enabled or not (. e.g. false), If the value is false, deployment synchronisation is disabled.

local_member_port

The  local member port to be use to be used in hazelcast the Hazelcast cluster.

members

Members The members of the  hazelcast cluster, should specify the  Hazelcast cluster. The hostname of each member with the local member port of each host should be specified.

membership_scheme

The Hazelcast cluster membership schema.

ha_eventsynch_port

Port The port used for syncing events among two nodes  in CEP nodes in HA mode of CEP.

ha_mgt_port

Port The port on which the HA management service is run when the CEP is deployed in HA mode of CEP.

manager_port

Port The port on which the HA management service is run when the CEP is deployed in distributed mode of CEP.

managers

CEP instances acting as managers in distributed mode of CEP. Hostname and the manager service port of each manager should be specified.

worker

Flag to indicate if the This indicates whether the CEP instance is acting as a worker in HA or distributed mode of CEP.

manager

Flag to indicate if the This indicates whether the CEP instance is acting as a manager in distributed mode of CEP.

presenter

Flag to indicate if the This indicates whether the CEP instance is acting as a presenter in HA or distributed mode of CEP.

presenter_port

Port The port which presenter instances use to receive events.

registry_db_connection_url

Connection The connection URL of the registry database (e.g., jdbc:mysql://192.168.57.170:3306/regdb?autoReconnect=true).

registry_db_user

Username The username to be used to connect to the registry database.

registry_db_password

Password to login to The password to log into the registry database.

registry_db_driver_name

Driver The driver class name to be used to connect to the registry database (e.g., com.mysql.jdbc.Driver).

userstore_db_connection_url

Connection The connection URL of userstore database.

userstore_db_user

Username The username to be used to connect to the user store database.

userstore_db_password

Password to login to The password to log into the user store database.

userstore_db_driver_name

Driver The driver class name to be used to connect to the user store database

 

.