This repository has been archived by the owner on Nov 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
simulatorConf.js.example
53 lines (53 loc) · 2.67 KB
/
simulatorConf.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 file is javascript so we can have comments, but the semantics are JSON.
module.exports = {
"CLIENT": {
// The URL for the server we will be hammering.
"SERVER_URL": "https://localhost:7777",
// The range of user IDs for this client to use. If you're using
// multiple machines to load test the server, you may want to set each
// one to a different subset of the range, so that you get different
// users.
"USER_RANGE": [0, 500],
// The range of sessions our users will attempt to join. There may be
// more sessions available on the server for users to join -- reducing
// the range ensures that sessions fill up.
"SESSION_RANGE": [0, 50],
// Session mode: "randomized" or "admin". If "randomized", only
// randomized sessions will be used. Must be duplicated in "SERVER" section!
"SESSION_MODE": "admin",
// Disable sending of blur/focus socket traffic?
"DISABLE_BLUR": true,
// Disable sending of chat traffic?
"DISABLE_CHAT": false,
// Disable session joining and leaving? (If you can't join, you can't leave).
"DISABLE_SESSION_JOINING": false,
// Disable session leaving? (You can checkout any time you like, but...)
"DISABLE_SESSION_LEAVING": true,
// The ID for the event on the server which contains the load simulator
// sessions, generated with ``bin/prepare-load-simulator-data.js``.
"EVENT_ID": 10,
// Tell node to ignore self-signed certificates, in case the server
// uses one by setting this to "0". To validate certificates, set it
// to "1".
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
// The session secret used by the server we're attacking. We need this
// in order to authenticate the sockets we're hammering it with. Keep
// this value private.
"UNHANGOUT_SESSION_SECRET": "sessionsecret"
},
"SERVER": {
// The ID of the event in which to generate sessions.
"EVENT_ID": 10,
// Session mode: "randomized" or "admin". If "randomized", only
// randomized sessions will be used. Must be duplicated in "CLIENT" section!
"SESSION_MODE": "admin",
// The range of admin-proposed session IDs to generate in that event.
"SESSION_RANGE": [0, 50],
// The range of users to generate.
"USER_RANGE": [0, 500],
// The REDIS DB to use when generating. This should be the same as the
// setting in conf'json's UNHANGOUT_REDIS_DB when load testing is in
// progress. The default production value is 0 and test DB is 1.
"REDIS_DB_ID": 1
}
}