Begivenhed
17. mar., 21 - 21. mar., 10
Deltag i meetup-serien for at bygge skalerbare AI-løsninger baseret på brugscases fra den virkelige verden sammen med andre udviklere og eksperter.
Tilmeld dig nuDenne browser understøttes ikke længere.
Opgrader til Microsoft Edge for at drage fordel af de nyeste funktioner, sikkerhedsopdateringer og teknisk support.
Multi-Cluster support was removed in v2. The documentation below refers to Orleans v1. Orleans v.1.3.0 added support for federating several Orleans clusters into a loosely connected multi-cluster that acts as a single service. Multi-clusters facilitate geo-distribution as a service, that is, making it easier to run an Orleans application in multiple data centers around the world. Also, a multi-cluster can be run within a single datacenter to get better failure and performance isolation.
All mechanisms are designed with particular attention to:
Below we document how to configure and operate a multi-cluster.
Communication. Clusters communicate via the same silo-to-silo connections that are used within a cluster. To exchange status and configuration information, Clusters use a gossip mechanism and gossip channel implementations.
Silo Configuration. Silos need to be configured so they know which cluster they belong to (each cluster is identified by a unique string). Also, each silo needs to be configured with connection strings that allow them to connect to one or more gossip channels on startup.
Multi-Cluster Configuration Injection. At runtime, the service operator can specify and/or change the multi-cluster configuration, which contains a list of cluster ids, to specify which clusters are part of the current multi-cluster. This is done by calling the management grain in any one of the clusters.
Below we document how to use multi-cluster functionality at the application level.
Global-Single-Instance Grains. Developers can indicate when and how clusters should coordinate their grain directories concerning a particular grain class. The GlobalSingleInstanceAttribute means we want the same behavior as when running Orleans in a single global cluster: that is, route all calls to a single activation of the grain. Conversely, the OneInstancePerClusterAttribute indicates that each cluster can have its independent activation. This is appropriate if communication between clusters is undesired.
Log-view grains (not in v.1.3.0). A special type of grain that uses a new API, similar to event sourcing, for synchronizing or persisting grain state. It can be used to automatically and efficiently synchronize the state of a grain between clusters and with storage. Because its synchronization algorithms are safe to use with reentrant grains, and are optimized to use batching and replication, it can perform better than standard grains when a grain is frequently accessed in multiple clusters, and/or when it is written to storage frequently. Support for log-view grains is not part of the main branch yet. We have a prerelease including samples and a bit of documentation in the geo-orleans
branch. It is currently being evaluated in production by an early adopter.
.NET feedback
.NET er et åben kildekode projekt. Vælg et link for at give feedback:
Begivenhed
17. mar., 21 - 21. mar., 10
Deltag i meetup-serien for at bygge skalerbare AI-løsninger baseret på brugscases fra den virkelige verden sammen med andre udviklere og eksperter.
Tilmeld dig nuTræning
Modul
Introduction to Orleans - Training
Learn what the Orleans framework is, the benefits it can provide, and how to integrate it with your applications.
Dokumentation
Host with Service Fabric - .NET
Learn how to host an Orleans app with Service Fabric.
Multi-cluster configuration - .NET
Learn about multi-cluster configuration in .NET Orleans.
Orleans silo lifecycles - .NET
Learn about .NET Orleans silo lifecycles.