NetworkManager/examples
Thomas Haller 938f9b075f
examples: rework nm-up-many.py for ratelimiting parallel activations
The previous implementation did some ratelimiting, namely how many parallel
ActivateConnection D-Bus calls are in fly. This way we are able to kick off
many parallel calls, but the activations themselves were not ratelimited.

Rework the code. Now there are two rate limits (that can be set via environment
variables):

  NUM_PARALLEL_STARTING
  NUM_PARALLEL_IN_PROGRESS

This allows more control about how much is happening in parallel. If we are
going to activate 1000 profiles, then it matters that we do things in parallel,
but not everything at the same time.
2021-06-22 09:47:44 +02:00
..
C example: rework "vpn-import-libnm" example 2021-04-01 21:16:01 +02:00
dispatcher dispatcher: avoid "dirname" and "basename" calls in "10-ifcfg-rh-routes.sh" script 2019-10-04 12:38:16 +02:00
js all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
lua/lgi all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-conf.d examples: drop rtl drivers from the mac address change blacklist 2019-04-08 10:10:25 +02:00
python examples: rework nm-up-many.py for ratelimiting parallel activations 2021-06-22 09:47:44 +02:00
ruby all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
shell all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00