README: update worker number recommendations

This commit is contained in:
Joakim Frostegård 2023-02-19 18:04:23 +01:00
parent 63d2e7ae8f
commit cc503f837b

View file

@ -73,36 +73,35 @@ More details are available in the respective configuration files.
#### Workers #### Workers
To increase performance, number of worker threads can be increased. The sum of To increase performance, number of worker threads can be increased. Recommended proportions based on number of available CPU cores:
`socket_workers` and `swarm_workers` should equal the total number of CPU cores
that you want to use. Recommended proportions:
<table> <table>
<tr> <tr>
<td></td> <td></td>
<th colspan="1">aquatic_udp</th> <th colspan="1">udp</th>
<th colspan="3">aquatic_ws</th> <th colspan="1">http</th>
<th colspan="2">ws</th>
</tr> </tr>
<tr> <tr>
<th scope="row">CPU cores</th> <th scope="row">CPU cores (N)</th>
<td>N</td> <td>N</td>
<td>2-11</td> <td>N</td>
<td>12-19</td> <td>1-7</td>
<td>>=20</td> <td>>=8</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Swarm workers</th> <th scope="row">Swarm workers</th>
<td>1</td> <td>1</td>
<td>1</td> <td>1</td>
<td>1</td>
<td>2</td> <td>2</td>
<td>3</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Socket workers</th> <th scope="row">Socket workers</th>
<td>N-1</td> <td>N</td>
<td>1-10</td> <td>N</td>
<td>10-17</td> <td>N</td>
<td>>=17</td> <td>N-2</td>
</tr> </tr>
</table> </table>