Docker Variables
The Reaper Docker container has been designed to be highly configurable. Many of the environment variables map directly or indirectly to a settings in the cassandra-reaper.yaml configuration file.
Direct Mapping to Reaper Specific Configuration Settings
The Docker environment variables listed in this section map directly to Reaper specific settings in the cassandra-reaper.yaml configuration file. The following table below lists the Docker environment variables, their associated Reaper specific setting in the cassandra-reaper.yaml configuration file, and the default value assigned by the Docker container (if any). Definitions for each Docker environment variable can be found via the link to the associated setting.
Using Address translator mapping
The Docker environment variables listed in this section are those related to the feature address translator mapping.
Example :
REAPER_CASS_ADDRESS_TRANSLATOR_TYPE=multiIpPerNode
REAPER_CASS_ADDRESS_TRANSLATOR_MAPPING=host1:ip1,host2:ip2
config bloc at the container startup file ‘/etc/cassandra-reaper/cassandra-reaper.yml’ :
addressTranslator:
type: multiIpPerNode
ipTranslations:
- from: "host1"
to: "ip1"
- from: "host2"
to: "ip2"
and the same thing for the jmx mapping
JMX_ADDRESS_TRANSLATOR_TYPE=multiIpPerNode
JMX_ADDRESS_TRANSLATOR_MAPPING=host1:ip1,host2:ip2
result
jmxAddressTranslator:
type: multiIpPerNode
ipTranslations:
- from: "host1"
to: "ip1"
- from: "host2"
to: "ip2"
Some variable names have changed between the release of Docker-support and Reaper for Apache Cassandra 1.0. The following Reaper specific variable name changes have occurred in an effort to match closely with the YAML parameter names:
Associated Reaper Specific Configuration Settings
The following Docker environment variables have no direct mapping to a setting in the cassandra-reaper.yaml configuration file. However, they do affect the content contained in the file that is Reaper specific.
REAPER_METRICS_ENABLED
Type: Boolean
Default: false
Allows the sending of Reaper metrics to a metrics reporting system such as Graphite. If enabled, the other associated environment variables REAPER_METRICS_FREQUENCY
and REAPER_METRICS_REPORTERS
must be set to appropriate values in order for metrics reporting to function correctly.
Metrics reporter definition syntax
REAPER_METRICS_REPORTERS
Type: List
Default: []
Defines the metrics reporters, using a JSON syntax instead of a YAML one. To activate graphite metrics reporting, run the container with the following sample arguments :
docker run \
-p 8080:8080 \
-p 8081:8081 \
-e "REAPER_METRICS_ENABLED=true" \
-e "REAPER_METRICS_FREQUENCY=10 second" \
-e "REAPER_METRICS_REPORTERS=[{type: graphite, host: my.graphite.host.com, port: 2003, prefix: my.prefix}]" \
thelastpickle/cassandra-reaper:master
Direct Mapping to Cassandra Backend Specific Configuration Settings
The Docker environment variables listed in this section map directly to Cassandra backend specific settings in the cassandra-reaper.yaml configuration file. The following table below lists the Docker environment variables, their associated Cassandra backend specific setting in the cassandra-reaper.yaml configuration file, and the default value assigned by the Docker container (if any). Definitions for each Docker environment variable can be found via the link to the associated setting.
In order for the Cassandra backend to be used, REAPER_STORAGE_TYPE
must be set to cassandra
.
Note:
Some variable names and defaults have changed between the release of Docker-support and Reaper for Apache Cassandra 1.0. The following Cassandra Backend specific variable name changes have occurred in an effort to match closely with our YAML parameter names:
The following default values have changed:
Associated Cassandra Backend Specific Configuration Settings
The following Docker environment variables have no direct mapping to a setting in the cassandra-reaper.yaml configuration file. However, the do affect the content contained in the file that is Cassandra backend specific.
REAPER_CASS_AUTH_ENABLED
Type: Boolean
Default: false
Allows Reaper to send authentication credentials when establishing a connection with Cassandra via the native protocol. When enabled, authentication credentials must be specified by setting values for REAPER_CASS_AUTH_USERNAME
and REAPER_CASS_AUTH_PASSWORD
.
REAPER_CASS_NATIVE_PROTOCOL_SSL_ENCRYPTION_ENABLED
Type: Boolean
Default: false
Allows Reaper to establish an encrypted connection when establishing a connection with Cassandra via the native protocol.
Direct Mapping to H2 or Postgres Backend Configuration Settings
Removed in v3.0.0
The Docker environment variables listed in this section map directly to H2/Postgres backend specific settings in the cassandra-reaper.yaml configuration file. The following table below lists the Docker environment variables, their associated H2/Postgres backend specific setting in the cassandra-reaper.yaml configuration file, and the default value assigned by the Docker container (if any). Definitions for each Docker environment variable can be found via the link to the associated setting.
In order to use the following settings, REAPER_STORAGE_TYPE
must be set to h2
or postgres
.
Note:
Some variable names have changed between the release of Docker-support and Reaper for Apache Cassandra 1.0. The following Reaper specific variable name changes have occurred in an effort to match closely with the YAML parameter names: