Thanks Evgenii
Started remote server, using the default configuration given as part of the
ignite disctribution using
$ bin\ignite.bat examples\config\example-ignite.xml
And client node started in java as pointed below using
Ignition.setClientMode(true);
TcpDiscoverySpi spi = new TcpDiscoverySpi();
TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
ipFinder.setAddresses(Arrays.asList("1.2.3.4", "1.2.3.5:47500..47509"));
spi.setIpFinder(ipFinder);
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setDiscoverySpi(spi);
// Start Ignite node.
Ignition.start(cfg);
My question is
1.Do we have to start Ignite again on client node as Ignition.start(cfg)? What
does this imply?
2.Will the client node uses the JVM heap memory
Thanks & Regards,
Sriveena
From: Evgenii Zhuravlev [mailto:[email protected]]
Sent: Monday, August 27, 2018 4:52 PM
To: [email protected]
Subject: Re: Example for server client configuration in ignite
Hi,
The default configuration will work with the remote server, because it uses
multicast. It will work if you want to check some examples, etc.
For production usage, I'd recommend using static Ip Finder instead of
multicast, here is the simplest configuration that will work with remote server:
https://apacheignite.readme.io/docs/tcpip-discovery#section-static-ip-finder<https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapacheignite.readme.io%2Fdocs%2Ftcpip-discovery%23section-static-ip-finder&data=02%7C01%7CSriveena.Mattaparthi%40ekaplus.com%7Cdf036d2b84054674a91608d60c0f4ee2%7C2a5b4e9716be4be4b2d40f3fcb3d373c%7C1%7C0%7C636709657237020433&sdata=0H8nUrwx%2BmNG4bRr9v150MRZTLdwdxS4G2j4cJ5waYU%3D&reserved=0>
There you will need just to replace address in IpFinder with the address of
your remote server. You don't need to place client address there.
Yo start client instead of the server node, you have to add clientMode=true
property in this configuration.
Evgenii
пн, 27 авг. 2018 г. в 13:47, Sriveena Mattaparthi
<[email protected]<mailto:[email protected]>>:
Hi,
What is the recommended configuration for remote Server and one client node
setup?
Can someone point to the relevant examples?
Thanks & Regards,
Sriveena