Hi there,

Thanks for that great product.

My question is:

How can I access my Ignite Cluster which is behind one Public IP address?

For example:

My Cluster provider gave me one Floating IP (123.456.789.111) what can bind
to any of my Ignite Worker machines.
Anyone has its own local IP address like 192.168.0.1, 192.168.0.2, etc.

I can access ( can work each of them if the floating (public) IP is bind to
one of them, example 123.456.789.111 -> 192.168.0.5 )

But as far as I start a second Ignite Server, this schema does not work any
more.

I made some changes in the configuration:




On the servers default-config.xml looks like:

//
---------------------------------------------------------------------------------

    <bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="peerClassLoadingEnabled" value="true"/>
        <property name="networkTimeout" value="150000"/>
        <property name="addressResolver">
             <bean class="org.apache.ignite.configuration.BasicAddressResolver">
                 <constructor-arg>
                     <map>

                         <entry key="127.0.0.1" value="123.456.789.111"/>
                     </map>
                 </constructor-arg>
             </bean>
        </property>
        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">

                <property name="localPort" value="47503"/>
                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                    <property name="multicastGroup" value="2XX.10.10.5"/>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>

//
---------------------------------------------------------------------------------



My client config looks like:

        IgniteConfiguration configuration = new IgniteConfiguration();
        configuration.setClientMode(true);
        configuration.setPeerClassLoadingEnabled(true);

        TcpDiscoverySpi tcpDiscoverySpi = new TcpDiscoverySpi();

        TcpDiscoveryMulticastIpFinder tcpDiscoveryMulticastIpFinder = new
TcpDiscoveryMulticastIpFinder();
       
tcpDiscoveryMulticastIpFinder.setAddresses(Arrays.asList("123.456.789.111"));
        tcpDiscoveryMulticastIpFinder.setMulticastGroup("228.10.10.5");
        //tcpDiscoveryMulticastIpFinder.setShared(true);

        tcpDiscoverySpi.setIpFinder(tcpDiscoveryMulticastIpFinder);

        configuration.setDiscoverySpi(tcpDiscoverySpi);
        configuration.setFailureDetectionTimeout(15000);
        configuration.setClientFailureDetectionTimeout(15000);

//
---------------------------------------------------------------------------------

Addition:

ignitevisor can see both server and a client also, but ignite works properly
only when
one server run on the cluster-

Can you help me to solve this?

Thank You in advance.




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to