-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add Member Roles
doc
#5742
Add Member Roles
doc
#5742
Changes from 1 commit
a81c258
4563c2c
5de627d
210ae39
d7de54a
8529d77
876a5b4
76ff75a
a2374d4
400bec0
66a4b6f
82a4380
6fee097
dbd5dd5
aad9f44
854d723
a300b06
3bc1939
ae9a01f
fca18c5
d16ea43
c8ab363
43d8791
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,8 @@ else if (selfMember.HasRole("front")) | |
|
||
### Akka.Cluster.Sharding | ||
|
||
Specifies that entities runs on cluster nodes with a specific role. If the role is not specified (or empty) all nodes in the cluster are used. | ||
|
||
```hocon | ||
akka { | ||
cluster { | ||
|
@@ -51,8 +53,20 @@ akka { | |
} | ||
``` | ||
|
||
```csharp | ||
var sharding = ClusterSharding.Get(system); | ||
var shardRegion = await sharding.StartAsync( | ||
typeName: "customer", | ||
entityPropsFactory: e => Props.Create(() => new Customer(e)), | ||
settings: ClusterShardingSettings.Create(system).WithRole("worker"), | ||
messageExtractor: new MessageExtractor(10)); | ||
|
||
``` | ||
|
||
### `DistributedPubSub` | ||
|
||
Start the mediator on members tagged with this role. All members are used if undefined or empty. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mediator will send messages to all nodes tagged with this role, otherwise all members will receive Mediator gossip. |
||
|
||
```hocon | ||
akka { | ||
cluster { | ||
|
@@ -66,6 +80,8 @@ akka { | |
|
||
### `DData` | ||
|
||
Replicas are running on members tagged with this role. All members are used if undefined or empty | ||
|
||
```hocon | ||
akka { | ||
cluster { | ||
|
@@ -77,9 +93,10 @@ akka { | |
} | ||
``` | ||
|
||
|
||
### `ClusterSingleton` | ||
|
||
Singleton among the nodes tagged with specified role. If the role is not specified it's a singleton among all nodes in the cluster. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specifies which nodes might host a specific singleton - if the role is not specified than any node can, in theory, host a singleton. |
||
|
||
```hocon | ||
akka { | ||
cluster { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to make all headers consistent - either code formatted or regular text, not a blend of both