sk2/autonetkit — Issue #105: Parallel Startup for Olives
Author: sk2
Created: 2012-01-03 14:17:53+00:00
State: open

Currently sequential, try parallel.
Key problem is determining when one machine is started, so that the next in the pipeline is ready.
Another problem is we can only telnet into one machine to load the config. We could start multiple SSH/shell connections, and then multithread these, but it may become a bit complicated.
Could look at Python producer/consumer queues like in TopZooTools for the web requests, but this might become complex to debug and maintain.

Ideal approach would be producer/consumer, however would need to create multiple shell connections. Current module only assumes one shell for the entire deployment (as is currently sequential).
Would need to adopt the telnet script to take in a reference to a shell, rather than accessing self.shell

This shouldn't be too difficult.
Remainder of producer/consumer would work as per normal, with the entire per router wrapped inside a single block. Need to add the machine name to each debug message (as would be interleaved).