Apache Ignite.NET
|
Grid configuration. More...
Public Member Functions | |
IgniteConfiguration () | |
Initializes a new instance of the IgniteConfiguration class. More... | |
IgniteConfiguration (IgniteConfiguration configuration) | |
Initializes a new instance of the IgniteConfiguration class. More... | |
void | ToXml (XmlWriter writer, string rootElementName) |
Serializes this instance to the specified XML writer. More... | |
string | ToXml () |
Serializes this instance to an XML string. More... | |
Static Public Member Functions | |
static IgniteConfiguration | FromXml (XmlReader reader) |
Deserializes IgniteConfiguration from the XML reader. More... | |
static IgniteConfiguration | FromXml (string xml) |
Deserializes IgniteConfiguration from the XML string. More... | |
Public Attributes | |
const int | DefaultJvmInitMem = -1 |
Default initial JVM memory in megabytes. More... | |
const int | DefaultJvmMaxMem = -1 |
Default maximum JVM memory in megabytes. More... | |
const int | DefaultMetricsHistorySize = 10000 |
Default metrics history size. More... | |
const int | DefaultManagementThreadPoolSize = 4 |
Default management thread pool size. More... | |
const int | DefaultNetworkSendRetryCount = 3 |
Default network retry count. More... | |
const bool | DefaultIsLateAffinityAssignment = true |
Default late affinity assignment mode. More... | |
const bool | DefaultIsActiveOnStart = true |
Default value for IsActiveOnStart property. More... | |
Static Public Attributes | |
static readonly TimeSpan | DefaultMetricsExpireTime = TimeSpan.MaxValue |
Default metrics expire time. More... | |
static readonly TimeSpan | DefaultMetricsLogFrequency = TimeSpan.FromMilliseconds(60000) |
Default metrics log frequency. More... | |
static readonly TimeSpan | DefaultMetricsUpdateFrequency = TimeSpan.FromMilliseconds(2000) |
Default metrics update frequency. More... | |
static readonly TimeSpan | DefaultNetworkTimeout = TimeSpan.FromMilliseconds(5000) |
Default network timeout. More... | |
static readonly TimeSpan | DefaultNetworkSendRetryDelay = TimeSpan.FromMilliseconds(1000) |
Default network retry delay. More... | |
static readonly TimeSpan | DefaultFailureDetectionTimeout = TimeSpan.FromSeconds(10) |
Default failure detection timeout. More... | |
static readonly TimeSpan | DefaultClientFailureDetectionTimeout = TimeSpan.FromSeconds(30) |
Default failure detection timeout. More... | |
static readonly int | DefaultThreadPoolSize = Math.Max(8, Environment.ProcessorCount) |
Default thread pool size. More... | |
static readonly TimeSpan | DefaultLongQueryWarningTimeout = TimeSpan.FromMilliseconds(3000) |
Default timeout after which long query warning will be printed. More... | |
Properties | |
string | IgniteInstanceName [get, set] |
Gets or sets optional local instance name. More... | |
bool | AutoGenerateIgniteInstanceName [get, set] |
Gets or sets a value indicating whether unique IgniteInstanceName should be generated. More... | |
string | GridName [get, set] |
Gets or sets optional local instance name. More... | |
BinaryConfiguration | BinaryConfiguration [get, set] |
Gets or sets the binary configuration. More... | |
ICollection< CacheConfiguration > | CacheConfiguration [get, set] |
Gets or sets the cache configuration. More... | |
string | SpringConfigUrl [get, set] |
URL to Spring configuration file. More... | |
string | JvmDllPath [get, set] |
Path jvm.dll file. If not set, it's location will be determined using JAVA_HOME environment variable. If path is neither set nor determined automatically, an exception will be thrown. More... | |
string | IgniteHome [get, set] |
Path to Ignite home. If not set environment variable IGNITE_HOME will be used. More... | |
string | JvmClasspath [get, set] |
Classpath used by JVM on Ignite start. More... | |
ICollection< string > | JvmOptions [get, set] |
Collection of options passed to JVM on Ignite start. More... | |
ICollection< string > | Assemblies [get, set] |
List of additional .Net assemblies to load on Ignite start. Each item can be either fully qualified assembly name, path to assembly to DLL or path to a directory when assemblies reside. More... | |
bool | SuppressWarnings [get, set] |
Whether to suppress warnings. More... | |
ICollection< ILifecycleHandler > | LifecycleHandlers [get, set] |
Lifecycle handlers. More... | |
int | JvmInitialMemoryMb [get, set] |
Initial amount of memory in megabytes given to JVM. Maps to -Xms Java option. More... | |
int | JvmMaxMemoryMb [get, set] |
Maximum amount of memory in megabytes given to JVM. Maps to -Xmx Java option. More... | |
IDiscoverySpi | DiscoverySpi [get, set] |
Gets or sets the discovery service provider. Null for default discovery. More... | |
ICommunicationSpi | CommunicationSpi [get, set] |
Gets or sets the communication service provider. Null for default communication. More... | |
bool | ClientMode [get, set] |
Gets or sets a value indicating whether node should start in client mode. Client node cannot hold data in the caches. More... | |
ICollection< int > | IncludedEventTypes [get, set] |
Gets or sets a set of event types (EventType) to be recorded by Ignite. More... | |
TimeSpan | MetricsExpireTime [get, set] |
Gets or sets the time after which a certain metric value is considered expired. More... | |
int | MetricsHistorySize [get, set] |
Gets or sets the number of metrics kept in history to compute totals and averages. More... | |
TimeSpan | MetricsLogFrequency [get, set] |
Gets or sets the frequency of metrics log print out. TimeSpan.Zero to disable metrics print out. More... | |
TimeSpan | MetricsUpdateFrequency [get, set] |
Gets or sets the job metrics update frequency. TimeSpan.Zero to update metrics on job start/finish. Negative value to never update metrics. More... | |
int | NetworkSendRetryCount [get, set] |
Gets or sets the network send retry count. More... | |
TimeSpan | NetworkSendRetryDelay [get, set] |
Gets or sets the network send retry delay. More... | |
TimeSpan | NetworkTimeout [get, set] |
Gets or sets the network timeout. More... | |
string | WorkDirectory [get, set] |
Gets or sets the work directory. If not provided, a folder under IgniteHome will be used. More... | |
string | Localhost [get, set] |
Gets or sets system-wide local address or host for all Ignite components to bind to. If provided it will override all default local bind settings within Ignite. More... | |
bool | IsDaemon [get, set] |
Gets or sets a value indicating whether this node should be a daemon node. More... | |
IDictionary< string, object > | UserAttributes [get, set] |
Gets or sets the user attributes for this node. More... | |
AtomicConfiguration | AtomicConfiguration [get, set] |
Gets or sets the atomic data structures configuration. More... | |
TransactionConfiguration | TransactionConfiguration [get, set] |
Gets or sets the transaction configuration. More... | |
bool | IsLateAffinityAssignment [get, set] |
Gets or sets a value indicating whether late affinity assignment mode should be used. More... | |
ILogger | Logger [get, set] |
Gets or sets the logger. More... | |
TimeSpan | FailureDetectionTimeout [get, set] |
Gets or sets the failure detection timeout used by TcpDiscoverySpi and TcpCommunicationSpi. More... | |
TimeSpan | ClientFailureDetectionTimeout [get, set] |
Gets or sets the failure detection timeout used by TcpDiscoverySpi and TcpCommunicationSpi for client nodes. More... | |
ICollection< IPluginConfiguration > | PluginConfigurations [get, set] |
Gets or sets the configurations for plugins to be started. More... | |
IEventStorageSpi | EventStorageSpi [get, set] |
Gets or sets the event storage interface. More... | |
MemoryConfiguration | MemoryConfiguration [get, set] |
Gets or sets the page memory configuration. MemoryConfiguration for more details. More... | |
PeerAssemblyLoadingMode | PeerAssemblyLoadingMode [get, set] |
Gets or sets a value indicating how user assemblies should be loaded on remote nodes. More... | |
int | PublicThreadPoolSize [get, set] |
Gets or sets the size of the public thread pool, which processes compute jobs and user messages. More... | |
int | StripedThreadPoolSize [get, set] |
Gets or sets the size of the striped thread pool, which processes cache requests. More... | |
int | ServiceThreadPoolSize [get, set] |
Gets or sets the size of the service thread pool, which processes Ignite services. More... | |
int | SystemThreadPoolSize [get, set] |
Gets or sets the size of the system thread pool, which processes internal system messages. More... | |
int | AsyncCallbackThreadPoolSize [get, set] |
Gets or sets the size of the asynchronous callback thread pool. More... | |
int | ManagementThreadPoolSize [get, set] |
Gets or sets the size of the management thread pool, which processes internal Ignite jobs. More... | |
int | DataStreamerThreadPoolSize [get, set] |
Gets or sets the size of the data streamer thread pool. More... | |
int | UtilityCacheThreadPoolSize [get, set] |
Gets or sets the size of the utility cache thread pool. More... | |
int | QueryThreadPoolSize [get, set] |
Gets or sets the size of the query thread pool. More... | |
SqlConnectorConfiguration | SqlConnectorConfiguration [get, set] |
Gets or sets the SQL connector configuration (for JDBC and ODBC). More... | |
TimeSpan | LongQueryWarningTimeout [get, set] |
Gets or sets the timeout after which long query warning will be printed. More... | |
PersistentStoreConfiguration | PersistentStoreConfiguration [get, set] |
Gets or sets the persistent store configuration. More... | |
bool | IsActiveOnStart [get, set] |
Gets or sets a value indicating whether grid should be active on start. See also IIgnite.IsActive and IIgnite.SetActive. More... | |
Apache.Ignite.Core.IgniteConfiguration.IgniteConfiguration | ( | ) |
Apache.Ignite.Core.IgniteConfiguration.IgniteConfiguration | ( | IgniteConfiguration | configuration | ) |
configuration | The configuration to copy. |
|
static |
reader | The reader. |
|
static |
xml | Xml string. |
void Apache.Ignite.Core.IgniteConfiguration.ToXml | ( | XmlWriter | writer, |
string | rootElementName | ||
) |
writer | The writer. |
rootElementName | Name of the root element. |
string Apache.Ignite.Core.IgniteConfiguration.ToXml | ( | ) |
|
static |
|
static |
const bool Apache.Ignite.Core.IgniteConfiguration.DefaultIsActiveOnStart = true |
const bool Apache.Ignite.Core.IgniteConfiguration.DefaultIsLateAffinityAssignment = true |
const int Apache.Ignite.Core.IgniteConfiguration.DefaultJvmInitMem = -1 |
const int Apache.Ignite.Core.IgniteConfiguration.DefaultJvmMaxMem = -1 |
|
static |
const int Apache.Ignite.Core.IgniteConfiguration.DefaultManagementThreadPoolSize = 4 |
|
static |
const int Apache.Ignite.Core.IgniteConfiguration.DefaultMetricsHistorySize = 10000 |
|
static |
|
static |
const int Apache.Ignite.Core.IgniteConfiguration.DefaultNetworkSendRetryCount = 3 |
|
static |
|
static |
|
static |
|
getset |
|
getset |
|
getset |
|
getset |
Set this to true in scenarios where new node should be started regardless of other nodes present within current process. In particular, this setting is useful is ASP.NET and IIS environments, where AppDomains are loaded and unloaded within a single process during application restarts. Ignite stops all nodes on AppDomain unload, however, IIS does not wait for previous AppDomain to unload before starting up a new one, which may cause "Ignite instance with this name has already been started" errors. This setting solves the issue.
|
getset |
The binary configuration.
|
getset |
The cache configuration.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
Only predefined implementations are supported: NoopEventStorageSpi, MemoryEventStorageSpi.
|
getset |
|
getset |
This name only works locally and has no effect on topology.
This property is used to when there are multiple Ignite nodes in one process to distinguish them.
|
getset |
|
getset |
This name only works locally and has no effect on topology.
This property is used to when there are multiple Ignite nodes in one process to distinguish them.
|
getset |
|
getset |
|
getset |
Daemon nodes are the usual grid nodes that participate in topology but not visible on the main APIs, i.e. they are not part of any cluster groups.
Daemon nodes are used primarily for management and monitoring functionality that is built on Ignite and needs to participate in the topology, but also needs to be excluded from the "normal" topology, so that it won't participate in the task execution or in-memory data grid storage.
|
getset |
On each topology change, for each started cache, partition-to-node mapping is calculated using AffinityFunction for cache. When late affinity assignment mode is disabled then new affinity mapping is applied immediately.
With late affinity assignment mode, if primary node was changed for some partition, but data for this partition is not rebalanced yet on this node, then current primary is not changed and new primary is temporary assigned as backup. This nodes becomes primary only when rebalancing for all assigned primary partitions is finished. This mode can show better performance for cache operations, since when cache primary node executes some operation and data is not rebalanced yet, then it sends additional message to force rebalancing from other nodes.
Note, that ICacheAffinity interface provides assignment information taking late assignment into account, so while rebalancing for new primary nodes is not finished it can return assignment which differs from assignment calculated by AffinityFunction.
This property should have the same value for all nodes in cluster.
If not provided, default value is DefaultIsLateAffinityAssignment.
|
getset |
|
getset |
|
getset |
-1
maps to JVM defaults. Defaults to DefaultJvmInitMem.
|
getset |
-1
maps to JVM defaults. Defaults to DefaultJvmMaxMem.
|
getset |
|
getset |
|
getset |
If null
then Ignite tries to use local wildcard address.That means that all services will be available on all network interfaces of the host machine.
It is strongly recommended to set this parameter for all production environments.
|
getset |
If no logger is set, logging is delegated to Java, which uses the logger defined in Spring XML (if present) or logs to console otherwise.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
For example, when executing ICompute.Call<TRes>(IComputeFunc<TRes>), the assembly with corresponding IComputeFunc<TRes> should be loaded on remote nodes. With this option enabled, Ignite will attempt to send the assembly to remote nodes and load it there automatically.
Default is Apache.Ignite.Core.Deployment.PeerAssemblyLoadingMode.Disabled.
Peer loading is enabled for ICompute functionality.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
Spring configuration is loaded first, then IgniteConfiguration properties are applied. Null property values do not override Spring values. Value-typed properties are tracked internally: if setter was not called, Spring value won't be overwritten.
This merging happens on the top level only; e. g. if there are cache configurations defined in Spring and in .NET, .NET caches will overwrite Spring caches.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
These attributes can be retrieved later via IClusterNode.GetAttributes. Environment variables are added to node attributes automatically. NOTE: attribute names starting with "org.apache.ignite" are reserved for internal use.
|
getset |
|
getset |