|
3 | 3 | [id="Increasing_host_limit_for_pull_based_REX_transport_{context}"]
|
4 | 4 | = Increasing host limit for pull-based REX transport
|
5 | 5 |
|
6 |
| -You can tune the `mosquitto` MQTT server and increase the number of hosts connected to it. |
| 6 | +You can tune the `mosquitto` MQTT server and increase the maximum number of hosts connected to it (by default it's 1014). |
7 | 7 |
|
8 | 8 | .Procedure
|
9 |
| -. Enable pull-based remote execution on your {ProjectServer} or {SmartProxyServer}: |
| 9 | +This example configures the `mosquitto` service on a {ProjectServer} or {SmartProxyServer} to handle 5000 content hosts. |
| 10 | + |
| 11 | +. Add the following to `/etc/foreman-installer/custom-hiera.yaml` to increase the default value: |
10 | 12 | +
|
11 | 13 | [options="nowrap", subs="+quotes,verbatim,attributes"]
|
12 | 14 | ----
|
13 |
| -# {foreman-installer} --foreman-proxy-plugin-remote-execution-script-mode pull-mqtt |
| 15 | +cat >>/etc/foreman-installer/custom-hiera.yaml <<EOF |
| 16 | +
|
| 17 | +systemd::dropin_files: |
| 18 | + limits.conf: |
| 19 | + unit: mosquitto.service |
| 20 | + content: "[Service]\nLimitNOFILE=5000\n" |
| 21 | +EOF |
14 | 22 | ----
|
15 |
| -+ |
16 |
| -Note that your {ProjectServer} or {SmartProxyServer} can only use one transport mode, either SSH or MQTT. |
17 |
| -. Create a config file to increase the default number of hosts accepted by the MQTT service: |
| 23 | +. Enable pull-based remote execution: |
18 | 24 | +
|
19 | 25 | [options="nowrap", subs="+quotes,verbatim,attributes"]
|
20 | 26 | ----
|
21 |
| -cat >/etc/systemd/system/mosquitto.service.d/limits.conf <<__EOF__ |
22 |
| -[Service] |
23 |
| -LimitNOFILE=5000 |
24 |
| -__EOF__ |
| 27 | +# {foreman-installer} --foreman-proxy-plugin-remote-execution-script-mode pull-mqtt |
25 | 28 | ----
|
26 | 29 | +
|
27 |
| -This example sets the limit to allow the `mosquitto` service to handle 5000 hosts. |
28 |
| -. Apply your changes: |
29 |
| -+ |
30 |
| -[options="nowrap", subs="+quotes,verbatim,attributes"] |
31 |
| ----- |
32 |
| -# systemctl daemon-reload |
33 |
| -# systemctl restart mosquitto.service |
34 |
| ----- |
| 30 | +Note that your {ProjectServer} or {SmartProxyServer} can only use one transport mode, either SSH or MQTT. |
0 commit comments