Edytuj

Udostępnij za pośrednictwem


IManagementGrain.UpdateConfiguration Method

Definition

Update the configuration information dynamically. Only a subset of configuration information can be updated - will throw an error (and make no config changes) if you specify attributes or elements that cannot be changed. The configuration format is XML, in the same format as the OrleansConfiguration.xml file. The allowed elements and attributes are:

<OrleansConfiguration>
    <Globals>
        <Messaging ResponseTimeout="?"/>
        <Caching CacheSize="?"/>
        <Activation CollectionInterval="?" CollectionAmount="?" CollectionTotalMemoryLimit="?" CollectionActivationLimit="?"/>
        <Liveness ProbeTimeout="?" TableRefreshTimeout="?" NumMissedProbesLimit="?"/>
    </Globals>
    <Defaults>
        <LoadShedding Enabled="?" LoadLimit="?"/>
        <Tracing DefaultTraceLevel="?" PropagateActivityId="?">
            <TraceLevelOverride LogPrefix="?" TraceLevel="?"/>
        </Tracing>
    </Defaults>
</OrleansConfiguration>
public System.Threading.Tasks.Task UpdateConfiguration (Orleans.Runtime.SiloAddress[] hostIds, System.Collections.Generic.Dictionary<string,string> configuration, System.Collections.Generic.Dictionary<string,string> tracing);
abstract member UpdateConfiguration : Orleans.Runtime.SiloAddress[] * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, string> -> System.Threading.Tasks.Task
Public Function UpdateConfiguration (hostIds As SiloAddress(), configuration As Dictionary(Of String, String), tracing As Dictionary(Of String, String)) As Task

Parameters

hostIds
SiloAddress[]

Silos to update, or null for all silos

configuration
Dictionary<String,String>

XML elements and attributes to update

tracing
Dictionary<String,String>

Tracing level settings

Returns

Applies to