Hello, The property (GridName) is a name of Ignite instance within one JVM. In your case (one instance Ignite in one JVM) the property can by not innitialized (by default is null).
Node collect to cluster by TCPDiscovery configuration, in the process GridName does not participate. On Thu, Aug 11, 2016 at 8:54 AM, mrinalkamboj <mrinal.technol...@gmail.com> wrote: > I am using .Net configuration with v1.6 to start multiple data grid servers > as partitions on same machine / hardware. Following are the important > details: > > Aim is to run the Cache like *OrderCache* as a partitioned across multiple > ignite grids and thus run the concurrency tests on a partitioned > configuration > > *Important configuration details*: > > <igniteConfiguration > xmlns="http://ignite.apache.org/schema/dotnet/ > IgniteConfigurationSection" > gridName="<b>myGrid1*"> > <discoverySpi type="TcpDiscoverySpi"> > <ipFinder type="TcpDiscoveryStaticIpFinder"> > <endpoints> > <string>127.0.0.1:47500</string> > </endpoints> > </ipFinder> > </discoverySpi> > > <cacheConfiguration> > <cacheConfiguration name="<b>OrderCache*" > cacheMode="*Partitioned*" startSize="104857600"> > <queryEntities> > <queryEntity keyType="System.Int32" > valueType="OrderEntity,ApacheIgnite"> > </queryEntity> > </queryEntities> > </cacheConfiguration> > </cacheConfiguration> > > Following is the C# code I am using from void Main () to start the server: > > static void Main(string[] args) > { > > // Fetch existing Ignite object or start using the application > configuration > var ignite = Ignition.TryGetIgnite("myGrid1") ?? > Ignition.StartFromApplicationConfiguration(); > > Console.WriteLine("Press Any Key :"); > Console.Read(); > } > > Now using Visual studio as I go about starting the servers by using *Start > without debugging*, following are the results: > > - Above configuration where the gridName="*myGrid1*" > Starts four servers, with following details: > > 1st Data grid Server > > [10:52:00] Ignite node started OK (id=72a489ca, grid=myGrid1) > [10:52:00] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, > heap=3.5GB] > [10:52:10] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, > heap=7.1GB] > [10:52:20] Topology snapshot [ver=3, servers=3, clients=0, CPUs=4, > heap=11.0GB] > > 2nd Data grid server > > [10:52:11] Ignite node started OK (id=47774f75, grid=myGrid1) > [10:52:11] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, > heap=7.1GB] > [10:52:20] Topology snapshot [ver=3, servers=3, clients=0, CPUs=4, > heap=11.0GB] > > 3rd Data grid server > > [10:52:21] Ignite node started OK (id=849382eb, grid=myGrid1) > [10:52:21] Topology snapshot [ver=3, servers=3, clients=0, CPUs=4, > heap=11.0GB] > > In case before each server start I change the gridname *grid=myGrid1*, > results are same as above just that it shows the name as appropriate. > > Now I am not sure, which one is correct, in fact if I change the > cacheMode="*Replicated*" , still the result is same, please provide, which > one is the correct, as I am confused about the internal design > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Starting-Datagrid-servers-as- > partitions-on-same-machine-tp6945.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Vladislav Pyatkov