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_wilson@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.spb@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_wilson@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.