-
Notifications
You must be signed in to change notification settings - Fork 14
/
server.settings.js.example
53 lines (43 loc) · 1.47 KB
/
server.settings.js.example
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* This is a sample configuration file.
* Copy this file to server.settings.js and edit that file to fit your
* Cassandra connection and other settings.
*
* You can also override these settings with command line options, run
* $ node server.js --help
* to view them.
*/
module.exports = {
// Database connection settings.
"backend": {
// Database type.
"type": "cassandra",
// Database options.
"options": {
// Array of string in host:port format. Port is optional (default 9042).
"hosts": ["localhost"],
// Name of keyspace to use.
"keyspace": "testreducedb",
// User for authentication.
"username": "testreduce",
// Password for authentication.
"password": "",
// Number of connections to open for each host (default 1).
"poolSize": 1,
// CQL consistencies defined as properties.
"consistencies": {
"read": "one",
"write": "one"
}
}
},
// Number of times to try fetching a page.
"fetches": 6,
// Number of times an article will be sent for testing before it's
// considered an error.
"tries": 6,
// Time in seconds to wait for a test result. If a test takes longer than
// this, it will be considered a crash error. Be careful not to set this to
// less than what any page takes to parse.
"cutofftime": 600
};