yillkid / iota-swarm-node

IOTA Swarm node Reference Implementation
Other
12 stars 9 forks source link

Introduce load balancer #11

Open yillkid opened 6 years ago

yillkid commented 6 years ago

The possible steps to implement load balancing with swarm nodes can be enumerated as follows:

loading-balance

  1. Both public and private IP swarm node support because the swarm node may deploy on IoT devices that have private IP only.
  2. First available process in the queue list has the highest priority because of swarm node deploy on a wide variety of devices, we should set the higher level device on the top.
  3. No head-of-line blocking problem.

Reference:

jkrvivian commented 6 years ago

Could you explain more about point 2 ?

Thanks :smiley:

yillkid commented 6 years ago

Available process in the queue list means First available process in the list has highest priority refer the chapter of Passenger library documentation for detail. And according to the this, we should put higher level swarm node in the In front of the list of requests handler.

yillkid commented 6 years ago

Passenger seems lack of the reverse proxy, the limitation as below:

  1. Can't proxy request to different applications (just multi-processing for one application).
  2. No any extension interface to implement proxy API command to private IP applications.