wasmCloud / wasmcloud-otp

wasmCloud host runtime that leverages Elixir/OTP and Rust to provide simple, secure, distributed application development using the actor model
Apache License 2.0
228 stars 48 forks source link

Fix/washboard events #600

Closed connorsmith256 closed 1 year ago

connorsmith256 commented 1 year ago

Feature or Problem

This PR fixes two issues:

Related Issues

Fixes https://github.com/wasmCloud/wasmcloud-otp/issues/571 Fixes https://github.com/wasmCloud/wasmcloud-otp/issues/598

Release Information

Next (preferably v0.62)

Consumer Impact

The washboard is usable for lattices with multiple hosts in them once again :)

Testing

Manual Verification

Tested manually with two hosts, e.g.:

In one terminal:

WASMCLOUD_CLUSTER_SEED=FOO WASMCLOUD_CLUSTER_ISSUERS=BAR PORT=4000 WASMCLOUD_DASHBOARD_PORT=4000 RELEASE_NODE=first-host make run

In another:

WASMCLOUD_CLUSTER_SEED=FOO WASMCLOUD_CLUSTER_ISSUERS=BAR PORT=4001 WASMCLOUD_DASHBOARD_PORT=4001 RELEASE_NODE=second-host make run

I verified that when the second host starts, the first host's washboard immediately recognizes the second host. The second host's washboard will recognize the first host when it receives a heartbeat from the host. I also verified that stopping one host is correctly processed by the other host's washboard state

autodidaddict commented 1 year ago

I'm assuming the literal value BAR doesn't work for the issuers value? :)