Skip to content

Commit 38ffc4c

Browse files
committed
Use leveldb for demo mode
1 parent 7a01de6 commit 38ffc4c

File tree

2 files changed

+20
-44
lines changed

2 files changed

+20
-44
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ services:
1010
volumes:
1111
- ./target/scala-2.12/hmda.jar:/opt/hmda.jar
1212
depends_on:
13-
- cassandra
1413
- zookeeper
14+
- keycloak_db
15+
- cassandra
1516
environment:
1617
JDBC_URL: jdbc:postgresql://192.168.99.100:54321/hmda?user=postgres&password=postgres
1718
ZOOKEEPER_HOST: zookeeper

persistence-model/src/main/resources/application-dev.conf

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -60,53 +60,28 @@ akka {
6060
}
6161
}
6262
persistence {
63-
journal.plugin = "cassandra-journal"
64-
snapshot-store.plugin = "cassandra-snapshot-store"
65-
query {
66-
journal.id = "cassandra-query-journal"
67-
}
63+
journal {
64+
plugin = "akka.persistence.journal.leveldb"
65+
leveldb {
66+
dir = "target/journal"
67+
native = false
68+
}
69+
}
70+
snapshot-store {
71+
plugin = "akka.persistence.snapshot-store.local"
72+
local {
73+
dir = "target/snapshots"
74+
}
75+
}
76+
query {
77+
journal {
78+
id = "akka.persistence.query.journal.leveldb"
79+
}
80+
}
6881
}
6982
}
7083

71-
cassandra-journal {
72-
contact-points = ["192.168.99.100"]
73-
contact-points = [${?CASSANDRA_CLUSTER_HOSTS}]
74-
keyspace = "hmda_journal"
75-
keyspace = ${?CASSANDRA_JOURNAL_KEYSPACE}
76-
table = "journal"
77-
keyspace-autocreate = true
78-
keyspace-autocreate-retries = 5
79-
connect-retries = 10
80-
connect-retry-delay = 5s
81-
reconnect-max-delay = 60s
82-
authentication.username = ""
83-
authentication.username = ${?CASSANDRA_CLUSTER_USERNAME}
84-
authentication.password = ""
85-
authentication.password = ${?CASSANDRA_CLUSTER_PASSWORD}
86-
}
8784

88-
cassandra-snapshot-store {
89-
contact-points = ["192.168.99.100"]
90-
contact-points = [${?CASSANDRA_CLUSTER_HOSTS}]
91-
keyspace = "hmda_snapshot"
92-
keyspace = ${?CASSANDRA_SNAPSHOT_KEYSPACE}
93-
table = "snapshot"
94-
keyspace-autocreate = true
95-
keyspace-autocreate-retries = 5
96-
connect-retries = 10
97-
connect-retry-delay = 5s
98-
reconnect-max-delay = 60s
99-
authentication.username = ""
100-
authentication.username = ${?CASSANDRA_CLUSTER_USERNAME}
101-
authentication.password = ""
102-
authentication.password = ${?CASSANDRA_CLUSTER_PASSWORD}
103-
}
104-
105-
cassandra-query-journal {
106-
refresh-interval = 5s
107-
refresh-interval = ${?QUERY_JOURNAL_REFRESH_INTERVAL}
108-
read-retries = 10
109-
}
11085

11186

11287
hmda {

0 commit comments

Comments
 (0)