-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
common/src/main/resources/persistence-keyspace-sigv4.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
include "serialization.conf" | ||
|
||
akka { | ||
|
||
persistence { | ||
journal.plugin = "akka.persistence.cassandra.journal" | ||
snapshot-store.plugin = "akka.persistence.cassandra.snapshot" | ||
|
||
query { | ||
journal.id = "akka.persistence.cassandra.query" | ||
} | ||
|
||
cassandra { | ||
events-by-tag { | ||
max-message-batch-size = 30 | ||
max-message-batch-size = ${?TAG_BATCH_SIZE} | ||
flush-interval = 150ms | ||
flush-interval = ${?TAG_FLUSH_INTERVAL} | ||
} | ||
journal { | ||
keyspace = "hmda2_journal" | ||
keyspace = ${?CASSANDRA_JOURNAL_KEYSPACE} | ||
table = "journal" | ||
events-by-tag.max-message-batch-size = 30 | ||
events-by-tag.max-message-batch-size = ${?TAG_BATCH_SIZE} | ||
events-by-tag.flush-interval = 150ms | ||
events-by-tag.flush-interval = ${?TAG_FLUSH_INTERVAL} | ||
} | ||
query { | ||
# reference: https://github.com/akka/akka-persistence-cassandra/blob/v0.101/core/src/main/resources/reference.conf | ||
# Sequence numbers for a persistenceId is assumed to be monotonically increasing | ||
# without gaps. That is used for detecting missing events. | ||
# In early versions of the journal that might not be true and therefore | ||
# this can be relaxed by setting this property to off. | ||
gap-free-sequence-numbers = off | ||
} | ||
snapshot { | ||
keyspace = "hmda2_snapshot" | ||
keyspace = ${?CASSANDRA_SNAPSHOT_KEYSPACE} | ||
table = "snapshot" | ||
} | ||
} | ||
} | ||
|
||
|
||
} | ||
|
||
datastax-java-driver { | ||
profiles { | ||
akka-persistence-cassandra-profile { | ||
basic { | ||
request.consistency = LOCAL_QUORUM | ||
} | ||
} | ||
} | ||
basic { | ||
contact-points = ["localhost:9042"] | ||
contact-points = [${?CASSANDRA_CLUSTER_HOSTS}] | ||
load-balancing-policy.local-datacenter = "" | ||
load-balancing-policy.local-datacenter = ${?CASSANDRA_CLUSTER_DC} | ||
load-balancing-policy.slow-replica-avoidance = false | ||
request.consistency = LOCAL_QUORUM | ||
} | ||
|
||
|
||
|
||
advanced { | ||
|
||
advanced.protocol { | ||
version = V4 | ||
} | ||
auth-provider { | ||
class = software.aws.mcs.auth.SigV4AuthProvider | ||
aws-region = "us-east-1" | ||
} | ||
request-tracker { | ||
classes = [RequestLogger] | ||
logs { | ||
slow { | ||
threshold = 1 second | ||
enabled = true | ||
} | ||
} | ||
} | ||
ssl-engine-factory { | ||
class = DefaultSslEngineFactory | ||
truststore-path = ${?CASSANDRA_TRUSTSTORE_FILE} | ||
truststore-password = ${?CASSANDRA_TRUSTSTORE_PASSWORD} | ||
hostname-validation = false | ||
} | ||
|
||
} | ||
} | ||
|
||
kafka { | ||
hosts = "localhost:9092" | ||
hosts = ${?KAFKA_CLUSTER_HOSTS} | ||
idle-timeout = 5 | ||
idle-timeout = ${?KAFKA_IDLE_TIMEOUT} | ||
security.protocol="" | ||
security.protocol=${?KAFKA_SECURITY} | ||
ssl.truststore.location = "" | ||
ssl.truststore.location = ${?TRUSTSTORE_PATH} | ||
ssl.truststore.password = "" | ||
ssl.truststore.password = ${?TRUSTSTORE_PASSWORD} | ||
ssl.endpoint = "" | ||
ssl.endpoint = ${?KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
hmda/src/main/resources/application-dev-keyspace-sigv4.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include "application.conf" | ||
include "persistence-keyspace-sigv4.conf" | ||
|
||
APP_PORT = 2551 | ||
APP_PORT = ${?APP_PORT} | ||
|
||
akka { | ||
|
||
cluster { | ||
seed-nodes = ["akka://hmda2@127.0.0.1:"${APP_PORT}] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters