Namespace Azos.Sky.Coordination
Classes
CoordinationException
Thrown to indicate coordination-related problems
HostSet
Represents a set of hosts that perform some common work. Primarily used for sharding work among hosts in the set. The data is fed from the Metabase, and supports static and dynamic sets. Static sets have a metabase-fixed number of hosts, whereas dynamic sets may include dynamic hosts (as allocated by IaaS provider). The dynamic sets are not supported until IaaS providers are implemented
HostSet.Host
HostSetBuilder
Provides the default HostSetBuilder that finds and makes instance of the matching HostSet based on metabase configuration. You could derive your own builder and register it under metabase root config Metabank.CONFIG_HOST_SET_BUILDER_SECTION
MDBShardWorkSet
Coordinates work on multiple shards in the MDB area
WorkSet<TItem>
Facilitates distributed processing coordination of the set of work which consists of TItems, by using lock manager to exchange the status with other workers working on the same set. Sets are identified by Name within the cluster Path. This class is abstract and must be inherited-from to specify the actual work partitioning - as required by the particular task (i.e. Process all users that...) by overriding AssignWorkSegment(). The system retains the lock session for the duration of this instance existence, please dispose both the instance and the enumerable returned by GetEnumerator(). This class IS NOT thread safe.