PhysarumSM / service-manager

LCA and Proxy
Apache License 2.0
0 stars 0 forks source link

Add way to instantiate microservices directly through Allocator without going through Proxy #67

Open mwyzhao opened 4 years ago

mwyzhao commented 4 years ago

I call it service injection, just to have a cool name for it. Basically it'll be a side channel to manually create microservices instances attached to an Allocator. This will enable easier setup for more complex test cases without having to jump through a bunch of hoops.

Current thoughts is that it will be implemented as an HTTP server spun up alongside the allocator P2P node that will respond to commands such as create or possibly in the future kill.

hivanco commented 3 years ago

It'd be good even for something like our demo covid tracker. I had to manually start the web server since you need something to request it for the allocator to allocate it, but no service sends requests the web server.

mwyzhao commented 3 years ago

For that case can't you just curl the proxy with the name of the covid-19 tracker to boot up an instance?

hivanco commented 3 years ago

I hadn't made the web server able to respond to p2p requests and was running its proxy in client mode, but yeah probably should have made it so that was possible.

hivanco commented 3 years ago

Actually one caveat was I wanted to specifically run it on a machine where I had created a public facing IP.