Hi  Pavel,

We  have deployed  two  instances  of .NET  WebApi in  two  servers  and  
hosted the same as  windows service.  We started  both the  instances  running 
in  two  different machine.  However  we see  that  on  startup  they  are not  
joining  the cluster and  ignite logs are not moving after initial  logging. 
Have attached  the ignite log and spring.xml which we were using . Could  you 
please check  what is  missing.

>From  code we have put these properties.

  "Ignite": {
    "LocalHost": "127.0.0.1",
    "SpringConfigUrl": "C:/SpringConfig/IgniteConfig.xml",
    "JVMOptions": {
      "DIgnite_Quiet": "-DIGNITE_QUIET=true",
      "DIgnite_Performance_Suggestions_disabled": 
"-DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true",
      "Xms": "-Xms6g",
      "Xmx": "-Xmx6g"
    },
    "AutoGenerateIgniteInstanceName": true,
    "PeerAssemblyLoadingMode": "CurrentAppDomain"

  },

This  webapi  works  fine  if  we  put  127.0.0.1  in spring.xml  and  with  
single  instance.

Regards
Satyajit

Barclays Execution Services Limited registered in England. Registered No. 
1767980. Registered office: 1 Churchill Place, London, E14 5HP

Barclays Execution Services Limited provides support and administrative 
services across Barclays group. Barclays Execution Services Limited is an 
appointed representative of Barclays Bank UK plc, Barclays Bank plc and 
Clydesdale Financial Services Limited. Barclays Bank UK plc and Barclays Bank 
plc are authorised by the Prudential Regulation Authority and regulated by the 
Financial Conduct Authority and the Prudential Regulation Authority. Clydesdale 
Financial Services Limited is authorised and regulated by the Financial Conduct 
Authority.

This email and any attachments are confidential and intended solely for the 
addressee and may also be privileged or exempt from disclosure under applicable 
law. If you are not the addressee, or have received this email in error, please 
notify the sender and immediately delete it and any attachments from your 
system. Do not copy, use, disclose or otherwise act on any part of this email 
or its attachments.

Internet communications are not guaranteed to be secure or virus-free. The 
Barclays group does not accept responsibility for any loss arising from 
unauthorised access to, or interference with, any internet communications by 
any third party, or from the transmission of any viruses. Replies to this email 
may be monitored by the Barclays group for operational or business reasons.

Any opinion or other information in this email or its attachments that does not 
relate to the business of the Barclays group is personal to the sender and is 
not given or endorsed by the Barclays group.

Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays.

Attachment: ignite.log
Description: ignite.log

<?xml version="1.0" encoding="UTF-8"?>

<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!--
    Ignite configuration with all defaults and enabled p2p deployment and 
enabled events.
-->
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:util="http://www.springframework.org/schema/util";
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd";>
    <bean abstract="true" id="ignite.cfg" 
class="org.apache.ignite.configuration.IgniteConfiguration">
        <!-- Set to true to enable distributed class loading for examples, 
default is false. -->
        <property name="peerClassLoadingEnabled" value="true"/>

        <!-- Enable task execution events for examples. -->
        <property name="includeEventTypes">
            <list>
                <!--Task execution events-->
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/>

                <!--Cache events-->
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/>
            </list>
        </property>

        <!-- Explicitly configure TCP discovery SPI to provide list of initial 
nodes. -->
        <property name="discoverySpi">
            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <!--
                        Ignite provides several options for automatic discovery 
that can be used
                        instead os static IP based discovery. For information 
on all options refer
                        to our documentation: 
http://apacheignite.readme.io/docs/cluster-config
                    -->
                    <!-- Uncomment static IP finder to enable static-based 
discovery of initial nodes. -->
                    <bean 
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                      <property name="addresses">
                            <list>
                                <!-- In distributed environment, replace with 
actual host IP address. -->
                                <value>xx.xxx.xx.xxx:47500..47509</value>
                                <value>xx.xxx.xxx.xxx:47500..47509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
        <property name="dataStorageConfiguration">
            <bean 
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <!--
                Default memory region that grows endlessly. Any cache will be 
bound to this memory region
                unless another region is set in the cache's configuration.
                -->
                <property name="defaultDataRegionConfiguration">
                    <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="name" value="Default_Region"/>
                        <!-- 100 MB memory region with disabled eviction. -->
                        <property name="initialSize" value="#{100 * 1024 * 
1024}"/>
                    </bean>
                </property>
                <property name="dataRegionConfigurations">
                    <list>
                        <!--
                        40MB memory region with eviction enabled.
                        -->
                        <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
                            <property name="name" value="Person"/>
                            <!-- Memory region of 20 MB initial size. -->
                            <property name="initialSize" value="#{20 * 1024 * 
1024}"/>
                            <!-- Maximum size is 40 MB. -->
                            <property name="maxSize" value="#{5000 * 1024 * 
1024}"/>
                            <property name="persistenceEnabled" value="true"/>
                            
                        </bean>
                         <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
                            <property name="name" value="Department"/>
                            <!-- Memory region of 20 MB initial size. -->
                            <property name="initialSize" value="#{20 * 1024 * 
1024}"/>
                            <!-- Maximum size is 40 MB. -->
                            <property name="maxSize" value="#{5000 * 1024 * 
1024}"/>
                            
                        </bean>
                        <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
                          <property name="name" value="TradeSubType"/>
                          <!-- Memory region of 20 MB initial size. -->
                          <property name="initialSize" value="#{20 * 1024 * 
1024}"/>
                          <!-- Maximum size is 40 MB. -->
                          <property name="maxSize" value="#{5000 * 1024 * 
1024}"/>
                          <property name="persistenceEnabled" value="true"/>
                      </bean>
                    </list>
                </property>
            </bean>
        </property>
        
    </bean>
    <bean parent="ignite.cfg"/>
</beans>

Reply via email to