MBrace local cluster simulator


ThespianCluster

Namespace: MBrace.Thespian

MBrace.Thespian client object used to manage cluster and submit work items for computation.

Instance members

Instance memberDescription
AttachNewLocalWorkers(...)
Signature: (workerCount:int * logLevel:LogLevel option * quiet:bool option) -> unit

Spawns provided count of new local worker processes and subscibes them to the cluster.

AttachWorker(worker)
Signature: worker:ThespianWorker -> unit

Subscribe a given worker instance as slave to current cluster.

DetachWorker(worker)
Signature: worker:IWorkerRef -> unit

Detaches supplied worker from current cluster.

IsWorkerHosted
Signature: bool

Gets whether the given cluster is hosted by an MBrace worker object.

CompiledName: get_IsWorkerHosted

KillAllWorkers()
Signature: unit -> unit

Sends a kill signal to all worker processes currently subscribed to cluster.

KillWorker(worker)
Signature: worker:IWorkerRef -> unit

Sends a kill signal to supplied worker process.

MasterNode
Signature: ThespianWorker option

Gets the MBrace worker object that host the cluster state, if available.

CompiledName: get_MasterNode

Uri
Signature: string

Gets the the uri identifier of the process hosting the cluster.

CompiledName: get_Uri

UUID
Signature: IRuntimeId

Cluster instance unique identifier

CompiledName: get_UUID

Static members

Static memberDescription
Connect(uri, logLevel, faultPolicy)
Signature: (uri:string * logLevel:LogLevel option * faultPolicy:FaultPolicy option) -> ThespianCluster

Connects to the cluster instance that is identified by supplied MBrace uri.

Connect(worker, logLevel, faultPolicy)
Signature: (worker:ThespianWorker * logLevel:LogLevel option * faultPolicy:FaultPolicy option) -> ThespianCluster

Connects to the cluster instance that is active in supplied MBrace worker instance.

InitOnCurrentMachine(...)
Signature: (workerCount:int * hostClusterStateOnCurrentProcess:bool option * fileStore:ICloudFileStore option * faultPolicy:FaultPolicy option * resources:ResourceRegistry option * quiet:bool option * logger:ISystemLogger option * logLevel:LogLevel option) -> ThespianCluster

Initializes a new MBrace cluster running within the current machine. Cluster state will be hosted in the current client process and workers nodes are processes that will be spawned for this purpose.

InitOnWorker(...)
Signature: (target:ThespianWorker * fileStore:ICloudFileStore option * faultPolicy:FaultPolicy option * miscResources:ResourceRegistry option * logLevel:LogLevel option) -> ThespianCluster

Initializes a new cluster state that is hosted on an existing worker instance.

Fork me on GitHub