Skip to content

Commit 1aa7314

Browse files
authored
Merge pull request cfpb#1163 from nickgrippin/cluster-docs
Cluster docs updated
2 parents 7aabaca + 23207d6 commit 1aa7314

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Documents/cluster.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,28 @@
33
## Cluster Management
44

55
The project uses the [Akka Cluster HTTP Management](http://developer.lightbend.com/docs/akka-management/current/cluster-http-management.html) module to report on cluster member status as well as to perform cluster
6-
management tasks. Please refer to the documentation of this module for cluster management tasks (i.e. downing a node from the cluster)
6+
management tasks. Please refer to the documentation of this module for cluster management tasks (i.e. downing a node from the cluster)
7+
8+
## Roles
9+
10+
There are four different cluster roles, each managed within the cluster project.
11+
12+
### API
13+
14+
The API cluster role is responsible for the four different APIs: Admin, Public, Filing, and the TCP Panel Loader
15+
16+
### Persistence
17+
18+
The persistence cluster role contains actors responsible for tracking and persisting information about submissions, institutions, and LAR validation
19+
20+
### Query
21+
22+
This cluster role contains actors responsible for projecting data to a read-only database (currently Cassandra)
23+
24+
### Publication
25+
26+
The publication role is responsible for generating publication artifacts based on HMDA data (i.e. A&D reports, Modified LAR, etc.)
27+
28+
## Running cluster roles
29+
30+
The configuration setting `"akka.cluster.roles"` in `cluster/src/main/resources/application.conf` defines which cluster roles will start when the HMDA Platform starts. By default, all four roles are set to start at the same time, but this can be changed to any single role or combination of roles. Setting the `HMDA_CLUSTER_ROLES` environment variable will allow you to decide which roles to spin up.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Module responsible for validating incoming data by executing validation rules as
3232

3333
Module responsible for persisting information into the system. It becomes the system of record for HMDA data
3434

35+
### Cluster
36+
37+
Module responsible for managing the various cluster roles, as well as starting the Hmda Platform
38+
3539
### API
3640

3741
This module contains both public APIs for HMDA data for general use by third party clients and web applications, as well as endpoints for receiving data and providing information about the filing process for Financial Institutions

0 commit comments

Comments
 (0)