When client swarm is asked to create many producers it may fall in hard to diagnose ways due to system limits such as max_map_count. See wrapper.sh for a script which tries to raise some limits to make this less likely.
However, we can check inside the swarm process if the number of producers is likely to hit system limits and bail out if so, e.g., by checking max_map_count against producers * 3 (under the observation that we create 2.x maps per producer).
When client swarm is asked to create many producers it may fall in hard to diagnose ways due to system limits such as
max_map_count. Seewrapper.shfor a script which tries to raise some limits to make this less likely.However, we can check inside the swarm process if the number of producers is likely to hit system limits and bail out if so, e.g., by checking
max_map_countagainst producers * 3 (under the observation that we create 2.x maps per producer).