forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase-options.js
More file actions
37 lines (36 loc) · 985 Bytes
/
database-options.js
File metadata and controls
37 lines (36 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const databaseOptions = ({ rootPass }) => [
{ type: 'user', username: 'root', password: rootPass },
{
type: 'documentcollection',
name: 'organizations',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
{
type: 'documentcollection',
name: 'domains',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
{
type: 'documentcollection',
name: 'dmarcSummaries',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
{
type: 'edgecollection',
name: 'claims',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
{
type: 'edgecollection',
name: 'ownership',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
{
type: 'edgecollection',
name: 'domainsToDmarcSummaries',
options: { replicationFactor: 3, writeConcern: 1, numberOfShards: 6 },
},
]
module.exports = {
databaseOptions,
}