Skip to content

Configuring Sirius

Jon Moore edited this page Jul 31, 2014 · 9 revisions

====

Sirius requires a SiriusConfiguration instance and a cluster configuration file for configuration. For details on how these configurations are used in a Sirius application, see Getting started with Sirius. Configuration is discussed below.

####Common SiriusConfiguration Options For a full list of configuration options, see the SiriusConfiguration source code. The most common [SiriusConfiguration] (http://comcast.github.io/sirius/api/latest/com/comcast/xfinity/sirius/api/SiriusConfiguration.html) options are listed below.

  • sirius.akka.host (SiriusConfiguration.HOST()) - specifies the akka host name that the application listens to for messages. The host name must match the host name specified in the cluster config.
  • sirius.akka.port (SiriusConfiguration.PORT()) - specifies the akka port that that the application listens to for messages.
  • sirius.uberstore.dir (SiriusConfiguration.LOG_LOCATION()) - specifies the directory to store the transaction logs
  • sirius.membership.config-path (SiriusConfiguration.CLUSTER_CONFIG()) - specifies the path to the cluster config file

####Cluster Configuration The cluster configuration file lists all actors in a cluster. Here is an example configuration file:

akka.tcp://sirius-system@foo.com:2552/user/sirius
akka.tcp://sirius-system@bar.com:2552/user/sirius
akka.tcp://sirius-system@baz.com:2552/user/sirius

As discussed above, if a node is participating in the cluster, the host property sirius.akka.host in SiriusConfiguration must be the same as what is listed in the cluster configuration file. One can't use the ip in one place while using the host in another.