File tree Expand file tree Collapse file tree 6 files changed +7
-2
lines changed
persistence-model/src/main/resources
scala/hmda/query/repository Expand file tree Collapse file tree 6 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ constructr.coordination.nodes = [${?ZOOKEEPER_HOST}":"${?ZOOKEEPER_PORT}]
30
30
31
31
clustering {
32
32
name = "hmda"
33
+ name = ${?HMDA_CLUSTER_NAME}
33
34
ip = "127.0.0.1"
34
35
port = 0
35
36
port = ${?APP_PORT}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ constructr.coordination.nodes = [${?ZOOKEEPER_HOST}":"${?ZOOKEEPER_PORT}]
36
36
37
37
clustering {
38
38
name = "hmda"
39
+ name = ${?HMDA_CLUSTER_NAME}
39
40
ip = "127.0.0.1"
40
41
port = 0
41
42
port = ${?APP_PORT}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ object HmdaPlatform {
32
32
33
33
def main (args : Array [String ]): Unit = {
34
34
35
- val system = ActorSystem (" hmda " , configuration)
35
+ val system = ActorSystem (configuration.getString( " clustering.name " ) , configuration)
36
36
val supervisor = createSupervisor(system)
37
37
val querySupervisor = createQuerySupervisor(system)
38
38
implicit val ec = system.dispatcher
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ cassandra-journal {
70
70
contact-points = ["127.0.0.1"]
71
71
contact-points = [${?CASSANDRA_CLUSTER_HOSTS}]
72
72
keyspace = "hmda_journal"
73
+ keyspace = ${?CASSANDRA_JOURNAL_KEYSPACE}
73
74
table = "journal"
74
75
keyspace-autocreate = true
75
76
keyspace-autocreate-retries = 5
@@ -82,6 +83,7 @@ cassandra-snapshot-store {
82
83
contact-points = ["127.0.0.1"]
83
84
contact-points = [${?CASSANDRA_CLUSTER_HOSTS}]
84
85
keyspace = "hmda_snapshot"
86
+ keyspace = ${?CASSANDRA_SNAPSHOT_KEYSPACE}
85
87
table = "snapshot"
86
88
keyspace-autocreate = true
87
89
keyspace-autocreate-retries = 5
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ cassandra {
37
37
port = 9042
38
38
port = ${CASSANDRA_CLUSTER_PORT}
39
39
keyspace = "hmda_query"
40
+ keyspace = ${?CASSANDRA_QUERY_KEYSPACE}
40
41
retries = 60
41
42
retry-interval = 1000
42
43
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ trait CassandraRepository[A] {
22
22
23
23
val log = LoggerFactory .getLogger(" CassandraRepository" )
24
24
25
- val keyspace = " hmda_query "
25
+ val keyspace = cassandraKeyspace
26
26
27
27
@ tailrec
28
28
private def retry [T ](n : Int )(fn : => T ): Try [T ] = {
You can’t perform that action at this time.
0 commit comments