Browse Source

Updates quick-install with instructions for systemd config. (#3488)

Fixes too many open files.
master
Дамян Минков 7 years ago
parent
commit
9a1e9fff98
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      doc/quick-install.md

+ 18
- 0
doc/quick-install.md View File

65
 See [the documenation of ice4j](https://github.com/jitsi/ice4j/blob/master/doc/configuration.md)
65
 See [the documenation of ice4j](https://github.com/jitsi/ice4j/blob/master/doc/configuration.md)
66
 for details.
66
 for details.
67
 
67
 
68
+Default deployments on systems using systemd will have low default values for maximum processes and open files. If the used bridge will expect higher number of participants the default values need to be adjusted (the default values are good for less than 100 participants).
69
+To update the values edit `/etc/systemd/system.conf` and make sure you have the following values:
70
+```
71
+DefaultLimitNOFILE=65000
72
+DefaultLimitNPROC=65000
73
+DefaultTasksMax=65000
74
+```
75
+To load the values and check them look [here](#systemd-details) for details.
76
+
68
 By default, anyone who has access to your jitsi instance will be able to start a conferencee: if your server is open to the world, anyone can have a chat with anyone else. If you want to limit the ability to start a conference to registered users, set up a "secure domain". Follow the instructions at https://github.com/jitsi/jicofo#secure-domain.
77
 By default, anyone who has access to your jitsi instance will be able to start a conferencee: if your server is open to the world, anyone can have a chat with anyone else. If you want to limit the ability to start a conference to registered users, set up a "secure domain". Follow the instructions at https://github.com/jitsi/jicofo#secure-domain.
69
 
78
 
70
 ### Open a conference
79
 ### Open a conference
111
 When this happens, just run the uninstall command a second time and it should be ok.
120
 When this happens, just run the uninstall command a second time and it should be ok.
112
 
121
 
113
 The reason for failure is that sometimes, the uninstall script is faster than the process that stops the daemons. The second run of the uninstall command fixes this, as by then the jigasi or jvb daemons are already stopped.
122
 The reason for failure is that sometimes, the uninstall script is faster than the process that stops the daemons. The second run of the uninstall command fixes this, as by then the jigasi or jvb daemons are already stopped.
123
+
124
+#### Systemd details
125
+To reload the systemd changes on a running system execute `systemctl daemon-reload` and `service jitsi-videobridge restart`.
126
+To check the tasks part execute `service jitsi-videobridge status` and you should see `Tasks: XX (limit: 65000)`.
127
+To check the files and process part execute ```cat /proc/`cat /var/run/jitsi-videobridge.pid`/limits``` and you should see:
128
+```
129
+Max processes             65000                65000                processes
130
+Max open files            65000                65000                files
131
+```

Loading…
Cancel
Save