2 Commits

Author SHA1 Message Date
Ilya Etingof
821d5fef73 Parallelize periodic power sync calls follow up
Fixes quite a few assorted nits. Follows up Change-Id
I80297c877d9a87d3bd8fc30d0ed65cd443f200b3

Change-Id: I92faffb4fac349a77e3597f3668c75bbc2c2397d
2019-01-23 16:06:30 +01:00
Ilya Etingof
7448603ab8 Parallelize periodic power sync calls
Node power sync is performed from a periodic task. In that task
all nodes are iterated over and power sync call is performed.
While the power sync call itself if non-blocking relative to
other concurrent I/O tasks, iteration over the nodes seems
sequential meaning that nodes power sync is performed one node
at a time.

If the above observation holds, large-scale settings may never
be able to power sync all their nodes properly, throttling at
walking all active the nodes in 60 second period.

This patch distributes power sync calls over a bunch of green
threads each working on a portion of the nodes to be taken care
of.

Change-Id: I80297c877d9a87d3bd8fc30d0ed65cd443f200b3
2019-01-22 18:29:45 +01:00