Pioreactor / pioreactor

Hardware and software for accessible, extensible, and scalable bioreactors. Built on Raspberry Pi.
https://pioreactor.com
MIT License
101 stars 9 forks source link

what if workers had a web server? #516

Closed CamDavidsonPilon closed 2 months ago

CamDavidsonPilon commented 4 months ago

Changes required to workers

CamDavidsonPilon commented 2 months ago

This makes me want to merge the images: the python requirements are nearly the same, same folder for www, lots of similar services. However, no MQTT, no db app, no mqtt-to-db, chrony, okay yea no merge yet.

CamDavidsonPilon commented 2 months ago

It is a good idea to restrict hitting the worker api unless your leader. We can do this with lighttpd confs (and env variables).

CamDavidsonPilon commented 2 months ago

Basically the goal of this first is to remove any instances of ssh-ing from the leader to workers, replaced with web request to their servers.