Create C* Cluster configuration

Change-Id: I9fdf46e59bcc16135c9c0e4ff9cf1254ff5f509b
This commit is contained in:
tonytan4ever
2014-10-09 13:08:29 -04:00
parent c5e72d4b5c
commit 637e590c86
9 changed files with 326 additions and 14 deletions

View File

@@ -5,6 +5,8 @@
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
;verbose = False
# Datacenter in which the API is hosted.
;datacenter = ORD
# Show debugging output in logs (sets DEBUG log level output)
;debug = False
@@ -43,8 +45,22 @@ uri = mongodb://localhost
database = poppy
[drivers:storage:cassandra]
cluster = "localhost"
# Comma-separated list of hosts (Example: cass01,cass02,cass03)
cluster = localhost
;port = 9042
ssl_enabled = False
ssl_ca_certs = </absolute/path/to/cassandra.crt>
auth_enabled = False
username = cassandra_username
password = cassandra_password
# Either RoundRobinPolicy or DCAwareRoundRobinPolicy. DCAwareRoundRobinPolicy
# requires the datacenter option in [DEFAULT] to be configured.
load_balance_strategy = RoundRobinPolicy
keyspace = poppy
# Replication strategy to use for the keyspace. This value is plugged into
# `map` as show in the syntax here: http://www.datastax.com/documentation/cql/3
# .1/cql/cql_reference/create_keyspace_r.html
replication_strategy = class:SimpleStrategy, replication_factor:1
[drivers:storage:mockdb]
database = poppy

View File

@@ -5,6 +5,8 @@
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
;verbose = False
# Datacenter in which the API is hosted.
;datacenter = ORD
# Show debugging output in logs (sets DEBUG log level output)
;debug = False
@@ -45,8 +47,22 @@ uri = mongodb://localhost
database = poppy
[drivers:storage:cassandra]
cluster = "localhost"
# Comma-separated list of hosts (Example: cass01,cass02,cass03)
cluster = localhost
;port = 9042
ssl_enabled = False
ssl_ca_certs = </absolute/path/to/cassandra.crt>
auth_enabled = False
username = cassandra_username
password = cassandra_password
# Either RoundRobinPolicy or DCAwareRoundRobinPolicy. DCAwareRoundRobinPolicy
# requires the datacenter option in [DEFAULT] to be configured.
load_balance_strategy = RoundRobinPolicy
keyspace = poppy
# Replication strategy to use for the keyspace. This value is plugged into
# `map` as show in the syntax here: http://www.datastax.com/documentation/cql/3
# .1/cql/cql_reference/create_keyspace_r.html
replication_strategy = class:SimpleStrategy, replication_factor:1
[drivers:storage:mockdb]
database = poppy