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(model): max_concurrent instead of replicas #221

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Nov 20, 2023

Feature or Problem

This PR updates the manifest definition to refer to replicas of actors and providers as instances, rather than simply replicas. After the change to the host to effectively autoscale to a maximum concurrent load, we aren't really spreading replicas around like we used to.

I acknowledge this is a little awkward when it comes to having an underscore in a yaml property, and the fact that this doesn't really make as much sense for capability providers. For that reason this is a change that's mostly internal, and you can still use replicas as the property for now. In the future, I would love to rethink this trait property and how it pertains to our scaling model. With capability providers being WASI-based, it may make sense to use this concurrency property for providers too.

Related Issues

Changes in the host implemented in wasmCloud/wasmCloud#1107. After that merges and the new control interface cuts, we'll need to update our test code in wadm to change the u16 values to u32s.

Release Information

v0.9.0 or v0.10.0

Consumer Impact

This, from a model standpoint, is a backwards compatible change and we'll support replicas as an option for the forseeable future. This just lets us use consistent wording across projects.

Testing

Unit Test(s)

Modified all YAMLs other than one (to ensure backwards compatibility) to denote replicas as instances.

Acceptance or Integration

Manual Verification

@brooksmtownsend brooksmtownsend force-pushed the feat/max-concurrent-replicas branch 2 times, most recently from ecdb1db to 167b090 Compare December 12, 2023 21:56
@brooksmtownsend brooksmtownsend marked this pull request as ready for review December 12, 2023 21:57
@brooksmtownsend brooksmtownsend enabled auto-merge (rebase) December 12, 2023 22:00
connorsmith256
connorsmith256 previously approved these changes Dec 13, 2023
instead of replicas

Signed-off-by: Brooks Townsend <[email protected]>

update model and code
Signed-off-by: Brooks Townsend <[email protected]>

update yamls and readmes
@brooksmtownsend brooksmtownsend merged commit 74c4982 into main Dec 13, 2023
5 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/max-concurrent-replicas branch December 13, 2023 20:20
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