-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Proposal] Support defining Silo metadata #8189
Comments
I have a use-case for this in that we may want to place a specific grain only on Silos that have certain metadata as mentioned by @cecilphillip in our case it could be based on the hardware that the silo is on for example. |
I would have a look if it can be implemented without changing the membership implementation. Perhaps with some grains. Would make it easier to implement it as small improvement. |
We actually do store this silo metadata in a grain. The grain itself is keyed by the silo address and we created a placement strategy that places the grain on the silo that matches. The further placement strategy that requires the silo metadata reads the information from the silo metadata grain and caches it to avoid chatty lookups on placement. It works fine at the moment for our use-case but something more in-box would be great. |
PR #9271 is up that would address this Issue. Any feedback would be welcomed. |
Overview
I'd like to propose the ability for developers to attach additional metadata attributes to their silo definitions.
Use cases
Enabling this feature would open up the ability to better categorize, inspect, and filter out silo instances. Similar capabilities exist in other frameworks such as AkkaDotNet . This would be particularly useful when creating custom placement strategies.
Possible workaround
Today, the
SiloOptions
only has a single property,SiloName
. Also it is possible to create a non standard naming structure to embed metadata into silo, this is a bit of a hack.Possible API changes
Metadata
property toSiloOptions
Metadata
onSiloAddress
Conditions
The text was updated successfully, but these errors were encountered: