메소드 | 설명 | |
---|---|---|
ClusterService ( IClusterOperator clusterOperator, ISendMail mailer, IApplicationDeployService applicationDeployService, IReliableStateManager stateManager, StatefulServiceContext serviceContext, PartyCluster.ClusterService.ClusterConfig config ) : System |
Creates a new instance of the service class.
|
|
GetClusterListAsync ( ) : Task |
Gets a list of all currently active clusters.
|
|
JoinClusterAsync ( int clusterId, string userEmail ) : Task |
Processes a request to join a cluster.
|
메소드 | 설명 | |
---|---|---|
CreateServiceReplicaListeners ( ) : IEnumerable |
||
OnOpenAsync ( ReplicaOpenMode openMode, |
||
RunAsync ( |
Main entry point for the service. This runs a continuous loop that manages the party clusters.
|
메소드 | 설명 | |
---|---|---|
BalanceClustersAsync ( int target, |
Adds clusters by the given amount without going over the max threshold and without resulting in below the min threshold.
|
|
CodePackageActivationContext_ConfigurationPackageModifiedEvent ( object sender, PackageModifiedEventArgs |
Handler for config package updates.
|
|
CreateClusterId ( ) : int |
Creates a new cluster ID.
|
|
CreateClusterInternalName ( ) : string |
Creates a name for a cluster resource.
|
|
GetActiveClusters ( Cluster>.IReliableDictionary |
Gets a list of active clusters. Clusters that are new, being created, or ready and not expired are considered active.
|
|
GetTargetClusterCapacityAsync ( |
Determines how many clusters there should be based on user activity and min/max thresholds. When the user count goes below the low percent threshold, decrease capacity by (high - low)% When the user count goes above the high percent threshold, increase capacity by (1 - high)% |
|
LoadConfigPackageAndSubscribe ( ) : void |
Loads configuration settings from a config package named "Config" and subscribes to update events.
|
|
ProcessClusterStatusAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes a cluster based on its current state.
|
|
ProcessClustersAsync ( |
Processes each cluster that is currently in the list of clusters managed by this service.
|
|
ProcessCreatingClusterAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes a cluster in the "Creating" stage.
|
|
ProcessDeletingClusterAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes a cluster that is in the "Deleting" stage.
|
|
ProcessNewClusterAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes a new cluster.
|
|
ProcessReadyClusterAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes clusters in the "Ready" stage.
|
|
ProcessRemoveClusterAsync ( PartyCluster.ClusterService.Cluster cluster ) : Task |
Processes a cluster in the "Remove" stage.
|
|
UpdateClusterConfigSettings ( ConfigurationSettings settings ) : void |
Updates the service's ClusterConfig instance with new settings from the given ConfigurationSettings.
|
public ClusterService ( IClusterOperator clusterOperator, ISendMail mailer, IApplicationDeployService applicationDeployService, IReliableStateManager stateManager, StatefulServiceContext serviceContext, PartyCluster.ClusterService.ClusterConfig config ) : System | ||
clusterOperator | IClusterOperator | |
mailer | ISendMail | |
applicationDeployService | IApplicationDeployService | |
stateManager | IReliableStateManager | |
serviceContext | StatefulServiceContext | |
config | PartyCluster.ClusterService.ClusterConfig | |
리턴 | System |
protected CreateServiceReplicaListeners ( ) : IEnumerable |
||
리턴 | IEnumerable |
public JoinClusterAsync ( int clusterId, string userEmail ) : Task | ||
clusterId | int | |
userEmail | string | |
리턴 | Task |
protected OnOpenAsync ( ReplicaOpenMode openMode, |
||
openMode | ReplicaOpenMode | |
cancellationToken | ||
리턴 | Task |
protected RunAsync ( |
||
cancellationToken | ||
리턴 | Task |