Cassandra
Configuring Tarmac with Cassandra
Last updated
Configuring Tarmac with Cassandra
Last updated
This page contains Cassandra specific configuration to utilize Cassandra with Tarmac.
Tarmac supports multiple configuration sources such as Environment Variables, JSON files, or using HashiCorp Consul. All of these configuration options can also exist together to provide both static and dynamic configurations.
When using Environment Variables, all configurations are prefixed with APP_
. The list below will show both Environment and Consul/JSON format for configuration.
Environment Variable | Consul/JSON | Type | Description |
---|---|---|---|
|
|
| Cassandra node addresses |
|
|
| Cassandra node port |
|
|
| Cassandra Keyspace name |
|
|
| Desired Consistency (Default: |
|
|
| Replication Strategy for Cluster (Default: |
|
|
| Default number of replicas for data (Default: |
|
|
| Username to authenticate with |
|
|
| Password to authenticate with |
|
|
| Enable/Disable hostname verification for TLS |
When using Consul the consul_keys_prefix
should be the path to a key with a JSON string
as the value. For example, a key of tarmac/config
will have a value of {"from_consul":true}
.