Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(*)!: support new authoritative heartbeat shape #37

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Jan 17, 2024

  • feat(*)!: add support for more authoritative heartbeat

Feature or Problem

This PR adds support for the heartbeat shape in wasmCloud v0.82, which includes a bit more information. You'll notice this is returning to a similar heartbeat to what we called "previous" or "legacy". This is because the older heartbeat still tracked individual instances, so scaling to ~10000 instances or so would exceed the NATS message payload for the heartbeat. The new heartbeat v2 final, as supported in this PR, tracks instance scale with a single u32.

Related Issues

Based off of #36 and should be reviewed independently
wasmCloud/wasmCloud#1160

Release Information

v0.5.0

Consumer Impact

Testing

Unit Test(s)

Modified "old" "legacy" tests to support new heartbeat shape

Acceptance or Integration

Manual Verification

@brooksmtownsend brooksmtownsend changed the title feat(*): support actor_scaled event feat(*)!: support new authoritative heartbeat shape Jan 17, 2024
Base automatically changed from feat/actor_scaled to main January 18, 2024 21:16
@brooksmtownsend brooksmtownsend marked this pull request as ready for review January 18, 2024 21:16

test "Propertly records LEGACY host heartbeat" do
hb = CloudEvents.host_heartbeat_old(@test_host, %{foo: "bar", baz: "biz"})
test "Propertly records NEW host heartbeat" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing it's propertly!

@brooksmtownsend brooksmtownsend merged commit 8ee1027 into main Jan 25, 2024
3 of 4 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/new-shape-of-heartbeat branch January 25, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants