|
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. |
| 7 | +By default, {SmartProxies} support a maximum of 1014 connected hosts. |
7 | 8 |
|
8 |
| -.Procedure |
9 |
| -. Enable pull-based remote execution on your {ProjectServer} or {SmartProxyServer}: |
10 |
| -+ |
11 |
| -[options="nowrap", subs="+quotes,verbatim,attributes"] |
12 |
| ----- |
13 |
| -# {foreman-installer} --foreman-proxy-plugin-remote-execution-script-mode pull-mqtt |
14 |
| ----- |
| 9 | +This example configures the `mosquitto` service on a {ProjectServer} or {SmartProxyServer} to handle up to 5000 hosts. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | +* You have enabled pull-based remove execution on your {SmartProxy}. |
15 | 13 | +
|
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: |
| 14 | +For more information, see {InstallingSmartProxyDocURL}configuring-pull-based-transport-for-remote-execution_{smart-proxy-context}[Configuring pull-based transport for remote execution] in _{InstallingSmartProxyDocTitle}_. |
| 15 | + |
| 16 | +.Procedure |
| 17 | +. On your {SmartProxy}, set the upper limit of connected hosts for pull-based remote execution in `/etc/foreman-installer/custom-hiera.yaml`: |
18 | 18 | +
|
19 | 19 | [options="nowrap", subs="+quotes,verbatim,attributes"]
|
20 | 20 | ----
|
21 |
| -cat >/etc/systemd/system/mosquitto.service.d/limits.conf <<__EOF__ |
22 |
| -[Service] |
23 |
| -LimitNOFILE=5000 |
24 |
| -__EOF__ |
| 21 | +systemd::dropin_files: |
| 22 | + limits.conf: |
| 23 | + unit: mosquitto.service |
| 24 | + content: "[Service]\nLimitNOFILE=5000\n" |
25 | 25 | ----
|
26 |
| -+ |
27 |
| -This example sets the limit to allow the `mosquitto` service to handle 5000 hosts. |
28 |
| -. Apply your changes: |
| 26 | +. Re-run the installer for the changes to take effect: |
29 | 27 | +
|
30 | 28 | [options="nowrap", subs="+quotes,verbatim,attributes"]
|
31 | 29 | ----
|
32 |
| -# systemctl daemon-reload |
33 |
| -# systemctl restart mosquitto.service |
34 |
| ----- |
| 30 | +# {foreman-installer} |
| 31 | +---- |
0 commit comments