lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.62k stars 138 forks source link

Fix lookup nodes host call #210

Closed kosticmarin closed 1 year ago

kosticmarin commented 1 year ago

Since we transitioned to a HTTP based control server we were missing filtering nodes based on node attributes defined by --tag when running lunatic node.

This is done via lunatic::distributed::lookup_nodes host function.

There is one little overhead, I've noticed that we keep node attributes as json Value (probably sqlite related), so each request needs to de-serialize attributes when filtering nodes. Not sure if we want to change this?

Also I've bumped the lunatic-control-submillisecond deps.

withtypes commented 1 year ago

Let's change it so that value of attrs is string, not json value. Not sure when or why it became json value.