Hi Raymond, Sorry for the initial confusion. The consistent ID is the combination of the local IP and port. You DO NOT need to do anything special to configure it.
If you had different folders created under the work folder, you probably had more than one node running at the same time. Can you please make sure that it was not the case? D. On Mon, Sep 4, 2017 at 2:55 PM, Raymond Wilson <raymond_wil...@trimble.com> wrote: > Hi Dmitry, > > > > I looked at IgniteConfiguration in the C# client, but it does not have > consistentID in its namespace. > > > > I pulled the C# client source code and searched in there and was not able > to find it. Perhaps this is not exposed in the C# client at all? > > > > If that is that case, how would I configure this? > > > > Thanks, > > Raymond. > > > > *From:* Dmitry Pavlov [mailto:dpavlov....@gmail.com] > *Sent:* Tuesday, September 5, 2017 9:24 AM > > *To:* user@ignite.apache.org > *Subject:* Re: Specifying location of persistent storage location > > > > Hi Ramond, > > > > Node.Consistent ID by default is the sorted set of local IP addresses and > ports. This field value survives during node restart. > > > > At the same time consistent ID may be set using > IgniteConfiguration.setConsistentId() if you need to specify it manually. > > I'm not sure how to write in C# syntax, but I am pretty sure it may be > configured. > > > > Sincerely, > > Dmitriy Pavlov > > > > вт, 5 сент. 2017 г. в 0:12, Raymond Wilson <raymond_wil...@trimble.com>: > > … also, the documentation for ClusterNode here ( > https://www.gridgain.com/sdk/pe/latest/javadoc/org/apache/i > gnite/cluster/ClusterNode.html) only describes a getter for the > consistent ID, I need to be able to set it. > > > > *From:* Raymond Wilson [mailto:raymond_wil...@trimble.com] > *Sent:* Tuesday, September 5, 2017 9:06 AM > *To:* 'user@ignite.apache.org' <user@ignite.apache.org> > *Subject:* RE: Specifying location of persistent storage location > > > > Apologies if this is a silly question, but I’m struggling to see how to > get at the consistentID member of ClusterNode on the C# client. > > > > If I look at IClusterNode I only see “Id”, which is the ID that changes > each restart. Is consistentID a Java client only feature? > > > > Thanks, > > Raymond. > > > > *From:* Raymond Wilson [mailto:raymond_wil...@trimble.com > <raymond_wil...@trimble.com>] > *Sent:* Tuesday, September 5, 2017 6:04 AM > *To:* user@ignite.apache.org > *Subject:* Re: Specifying location of persistent storage location > > > > Thank you Dmitry! > > Sent from my iPhone > > > On 5/09/2017, at 1:12 AM, Dmitry Pavlov <dpavlov....@gmail.com> wrote: > > Hi Raymond, > > > > Ignite Persistent Store includes consistentID parameter of cluster node > into folders name. It is required because there is possible that 2 nodes > would be started at same physical machine. > > > > Consistency of using same folder each time is provided by this property, > > ClusterNode.consistentID - consistent globally unique node ID. Unlike > ClusterNode.id this parameter constains consistent node ID which survives > node restarts. > > > > Sincerely, > > Dmitriy Pavlov > > > > > > сб, 2 сент. 2017 г. в 23:40, Raymond Wilson <raymond_wil...@trimble.com>: > > Hi, > > > > I’m running a POC looking at the Ignite Persistent Store feature. > > > > I have added a section to the configuration for the Ignite grid as follows: > > > > cfg.PersistentStoreConfiguration = new > PersistentStoreConfiguration() > > { > > PersistentStorePath = PersistentCacheStoreLocation, > > WalArchivePath = Path.Combine(PersistentCacheStoreLocation, > "WalArchive"), > > WalStorePath = Path.Combine(PersistentCacheStoreLocation, > "WalStore"), > > }; > > > > When I run the Ignite grid (a single node running locally) it then creates > a folder inside the PersistentCacheStoreLocation with a complicated name, > like this (which looks like a collection of IP addresses and a GUID for > good measure, and perhaps with a port number added to the end): > > > > 0_0_0_0_0_0_0_1_10_0_75_1_10_3_72_117_127_0_0_1_192_168_121_ > 1_192_168_178_27_192_168_3_1_2406_e007_9e5_1_9cc8_92bc_50c9 > _6794_2406_e007_9e5_1_c5d8_af4b_55b2_582a_47500 > > > > , > > > > Within that folder are then placed folders containing the content for each > cache in the system > > > > Oddly, if I stop and then restart the grid I sometime get another folder > with a slightly different complicated name, like this: > > > > 0_0_0_0_0_0_0_1_10_0_75_1_10_3_72_117_127_0_0_1_192_168_121_ > 1_192_168_178_27_192_168_3_1_2406_e007_9e5_1_a58c_2f32_8005 > _b03d_2406_e007_9e5_1_c5d8_af4b_55b2_582a_47500 > > > > How do I ensure my grid uses the same persistent location each time? There > doesn’t seem anything obvious in the PersistentStoreConfiguration that > relates to this, other than the root location of the folder to store > persisted data. > > > > Thanks, > Raymond. > > > >