You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by moon-duck <hy...@gmail.com> on 2018/04/24 09:13:31 UTC

Apache Ignite application deploy without rebalancing

Hi, I asked this question at stackoverflow.

In my case, Spring Rest API embed ignite, that API is act as cache. There
are only Put/Get API, and they put to /get from Ignite caches.

My total Configuration like below(Java Code)

IgniteConfiguration config = new IgniteConfiguration();
    //discovery : multicast, I set consistentId manually for easily
Identifying me, actually I set named node1, node2, node3

    config.setRebalanceThreadPoolSize(3);
    config.setConsistentId(uniqueNodeId);

//3caches, Partitioned, 
config.setCacheConfiguration(
  new CacheConfiguration<K, V>()
        .setName(name1)
        .setBackups(1)
        .setCacheMode(PARTITIONED)
        .setWriteSynchronizationMode(PRIMARY_SYNC)
        .setCopyOnRead(false),
  new CacheConfiguration<K, V>()
        .setName(name2)
        .setBackups(1)
        .setCacheMode(PARTITIONED)
        .setWriteSynchronizationMode(PRIMARY_SYNC)
        .setCopyOnRead(false),
  new CacheConfiguration<K, V>()
        .setName(name3)
        .setBackups(1)
        .setCacheMode(PARTITIONED)
        .setWriteSynchronizationMode(PRIMARY_SYNC)
        .setCopyOnRead(false))

//pageSize : 4096, enable persistent, initRegionSize/maxRegionSize : 2G
config.setDataStorageConfiguration(new DataStorageConfiguration()
        .setPageSize(4096)
        .setMetricsEnabled(false)
        .setDataRegionConfigurations(new DataRegionConfiguration()
          .setPersistenceEnabled(true)
          .setName("myName")
          .setInitialSize(2147483648)
          .setMaxSize(2147483648)
          .setPageEvictionMode(DataPageEvictionMode.DISABLED)
          .setMetricsEnabled(false)));

//event listening, for monitoring
    int [] listenedEvent = {
      EventType.EVT_CACHE_NODES_LEFT,
      EventType.EVT_CACHE_OBJECT_PUT,
      EventType.EVT_CACHE_REBALANCE_STARTED,
      EventType.EVT_NODE_JOINED
    };
    
    config.setIncludeEventTypes(listenedEvent);
    
    config.setLocalEventListeners(new HashMap<IgnitePredicate&lt;? extends
Event>, int[]>() {{
      put(event -> {
        LOGGER.info("Event - time : {}, name : {}, type : {}, msg: {},
nodeId : {}", 
            LocalDateTime.ofInstant(Instant.ofEpochMilli(event.timestamp()),
ZoneId.systemDefault()), 
            event.name(), event.type(), event.message(), event.node().id());
        return true;
      }, listenedEvent);
    }});

then, when I started tomcat, below is my ignite log/I checked here,
persistentEnabled true and 3 nodes are all joined.

[18:17:19] (wrn) Failed to resolve IGNITE_HOME automatically for class
codebase [class=class o.a.i.i.util.IgniteUtils, e=URI is not hierarchical]
2018-04-23 18:17:19.086 ERROR 9519 --- [           main]                                         
: Failed to resolve default logging config file:
config/java.util.logging.properties
Console logging handler is not configured.
[18:17:19]    __________  ________________
[18:17:19]   /  _/ ___/ |/ /  _/_  __/ __/
[18:17:19]  _/ // (7 7    // /  / / / _/
[18:17:19] /___/\___/_/|_/___/ /_/ /___/
[18:17:19]
[18:17:19] ver. 2.4.0#20180305-sha1:aa342270
[18:17:19] 2018 Copyright(C) Apache Software Foundation
[18:17:19]
[18:17:19] Ignite documentation: http://ignite.apache.org
[18:17:19]
[18:17:19] Quiet mode.
[18:17:19]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[18:17:19]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[18:17:19]
[18:17:19] OS: Linux 3.10.0-327.36.3.el7.x86_64 amd64
[18:17:19] VM information: Java(TM) SE Runtime Environment 1.8.0_171-b11
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.171-b11
[18:17:19] Configured plugins:
[18:17:19]   ^-- None
[18:17:19]
2018-04-23 18:17:19.923  WARN 9519 --- [           main]
o.a.i.s.c.tcp.TcpCommunicationSpi        : Message queue limit is set to 0
which may lead to potential OOMEs when running cache operations in
FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and
receiver sides.
[18:17:19] Message queue limit is set to 0 which may lead to potential OOMEs
when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to
message queues growth on sender and receiver sides.
2018-04-23 18:17:19.964  WARN 9519 --- [           main]
o.a.i.s.c.noop.NoopCheckpointSpi         : Checkpoints are disabled (to
enable configure any GridCheckpointSpi implementation)
2018-04-23 18:17:20.031  WARN 9519 --- [           main]
o.a.i.i.m.c.GridCollisionManager         : Collision resolution is disabled
(all jobs will be activated upon arrival).
[18:17:20] Security status [authentication=off, tls/ssl=off]
2018-04-23 18:17:21.046  WARN 9519 --- [           main]
.s.d.t.i.m.TcpDiscoveryMulticastIpFinder : TcpDiscoveryMulticastIpFinder has
no pre-configured addresses (it is recommended in production to specify at
least one address in TcpDiscoveryMulticastIpFinder.getAddresses()
configuration property)
2018-04-23 18:17:22.803  WARN 9519 --- [           main]
org.apache.ignite.internal.IgniteKernal  : Nodes started on local machine
require more than 20% of physical RAM what can lead to significant slowdown
due to swapping (please decrease JVM heap size, data region size or
checkpoint buffer size) [required=3506MB, available=1830MB]
[18:17:22] Nodes started on local machine require more than 20% of physical
RAM what can lead to significant slowdown due to swapping (please decrease
JVM heap size, data region size or checkpoint buffer size) [required=3506MB,
available=1830MB]
[18:17:22] Nodes started on local machine require more than 20% of physical
RAM what can lead to significant slowdown due to swapping (please decrease
JVM heap size, data region size or checkpoint buffer size) [required=3506MB,
available=1830MB]
2018-04-23 18:17:25.045  INFO 9519 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-23T18:17:25.034, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 0bc9e1e1-2765-42a1-8fb7-9a3696dda4e4
2018-04-23 18:17:25.059  INFO 9519 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-23T18:17:25.056, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 0bc9e1e1-2765-42a1-8fb7-9a3696dda4e4
2018-04-23 18:17:25.059  INFO 9519 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-23T18:17:25.056, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 0bc9e1e1-2765-42a1-8fb7-9a3696dda4e4
[18:17:25] Performance suggestions for grid  (fix if possible)
[18:17:25] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[18:17:25]   ^-- Disable grid events (remove 'includeEventTypes' from
configuration)
[18:17:25]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM
options)
[18:17:25]   ^-- Set max direct memory size if getting 'OOME: Direct buffer
memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[18:17:25]   ^-- Speed up flushing of dirty pages by OS (alter
vm.dirty_expire_centisecs parameter by setting to 500)
[18:17:25]   ^-- Reduce pages swapping ratio (set vm.swappiness=10)
[18:17:25]   ^-- Decrease number of backups (set 'backups' to 0)
[18:17:25] Refer to this page for more performance suggestions:
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[18:17:25]
[18:17:25] To start Console Management & Monitoring run
ignitevisorcmd.{sh|bat}
[18:17:25]
[18:17:25] Ignite node started OK (id=0bc9e1e1)
[18:17:25] Topology snapshot [ver=2, servers=2, clients=0, CPUs=2,
offheap=4.7GB, heap=2.0GB]
[18:17:25] Data Regions Configured:
[18:17:25]   ^-- default [initSize=256.0 MiB, maxSize=366.1 MiB,
persistenceEnabled=false]
[18:17:25]   ^-- cc [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=false]
[18:18:07] Topology snapshot [ver=3, servers=3, clients=0, CPUs=3,
offheap=7.1GB, heap=3.0GB]
[18:18:07] Data Regions Configured:
[18:18:07]   ^-- default [initSize=256.0 MiB, maxSize=366.1 MiB,
persistenceEnabled=false]
[18:18:07]   ^-- cc [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=false]


After then, I execute cluster activate in node1 like below
$> control.sh --activate
Control utility [ver. 2.4.0#20180305-sha1:aa342270]
2018 Copyright(C) Apache Software Foundation
User: root
--------------------------------------------------------------------------------
Cluster activated

below is status
$> control.sh --baseline
Control utility [ver. 2.4.0#20180305-sha1:aa342270]
2018 Copyright(C) Apache Software Foundation
User: root
--------------------------------------------------------------------------------
Cluster state: active
Current topology version: 3

Baseline nodes:
    ConsistentID=node1, STATE=ONLINE
    ConsistentID=node2, STATE=ONLINE
    ConsistentID=node3, STATE=ONLINE
--------------------------------------------------------------------------------
Number of baseline nodes: 3

Other nodes not found.

Then I shut down node2 for restart(in node2)
$>service tomcat stop

As soon as stopping tomcat node2, below log is written at node1, 3

[17:37:20] Topology snapshot [ver=4, servers=2, clients=0, CPUs=2,
offheap=4.7GB, heap=2.0GB]
[17:37:20] Data Regions Configured:
[17:37:20]   ^-- default [initSize=256.0 MiB, maxSize=366.1 MiB,
persistenceEnabled=false]
[17:37:20]   ^-- cc [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=true]
2018-04-24 17:37:21.355  INFO 26507 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-24T17:37:21.349, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 36abbd68-20ee-4e22-aa9a-43af1dfdf231
2018-04-24 17:37:21.356  INFO 26507 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-24T17:37:21.349, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 36abbd68-20ee-4e22-aa9a-43af1dfdf231
2018-04-24 17:37:21.356  INFO 26507 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-24T17:37:21.349, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 36abbd68-20ee-4e22-aa9a-43af1dfdf231

I don't know what is wrong.

please consider, I am newbie ignite. I hope to your help



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

Re: Apache Ignite application deploy without rebalancing

Posted by Pavel Kovalenko <jo...@gmail.com>.
Hello,

Most probably there is no actual rebalancing started and we fire
REBALANCE_STARTED event ahead of time. Could you please turn on INFO log
level for Ignite classes and check that after node shutdown a message
"Skipping rebalancing" appears in logs?

2018-04-25 7:55 GMT+03:00 moon-duck <hy...@gmail.com>:

> Unfortunately not work T^T
>
> I did 2way like below
> 1. I set region name in cache configuration -> not work
> 2. I set DefaultDataRegionConfiguration except regionName -> not work
>
> below log is when I set DefaultDataRegionConfiguration except any other
> region
>
> **) when loading*
>
> 2018-04-25 13:32:44.887  WARN 5837 --- [           main]
> o.a.i.s.c.tcp.TcpCommunicationSpi        : Message queue limit is set to 0
> which may lead to potential OOMEs when running cache operations in
> FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and
> receiver sides.
> [13:32:44] Message queue limit is set to 0 which may lead to potential
> OOMEs
> when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to
> message queues growth on sender and receiver sides.
> 2018-04-25 13:32:45.076  WARN 5837 --- [           main]
> o.a.i.s.c.noop.NoopCheckpointSpi         : Checkpoints are disabled (to
> enable configure any GridCheckpointSpi implementation)
> "/data/log/catalina/localhost/catalina.out" 193L, 26597C
> [13:37:39] Data Regions Configured:
> [13:37:39]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
> persistenceEnabled=true]
> 2018-04-25 13:37:39.744  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
> "{[/ready/deploy/group],methods=[POST]}" onto public java.lang.Object
> cc.platform.expresso.storage.controller.ManageController.
> clusterBaselineTopologying()
> 2018-04-25 13:37:39.745  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
> "{[/cluster/activation],methods=[POST]}" onto public void
> cc.platform.expresso.storage.controller.ManageController.activeCluster()
> 2018-04-25 13:37:39.746  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
> "{[/version],methods=[GET]}" onto public java.lang.Object
> cc.platform.expresso.storage.controller.ManageController.version()
> 2018-04-25 13:37:39.768  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
> "{[/error],produces=[text/html]}" onto public
> org.springframework.web.servlet.ModelAndView
> org.springframework.boot.autoconfigure.web.servlet.
> error.BasicErrorController.errorHtml(javax.servlet.http.
> HttpServletRequest,javax.servlet.http.HttpServletResponse)
> 2018-04-25 13:37:39.782  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public
> org.springframework.http.ResponseEntity<java.util.Map&lt;java.lang.String,
> java.lang.Object>>
> org.springframework.boot.autoconfigure.web.servlet.
> error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
> 2018-04-25 13:37:40.035  INFO 6006 --- [           main]
> s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice:
> org.springframework.boot.web.servlet.context.
> AnnotationConfigServletWebServerApplicationContext@5ecddf8f:
> startup date [Wed Apr 25 13:37:28 KST 2018]; root of context hierarchy
> 2018-04-25 13:37:40.681  INFO 6006 --- [           main]
> o.s.j.d.e.EmbeddedDatabaseFactory        : Starting embedded database:
> url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false',
> username='sa'
> 2018-04-25 13:37:42.827  INFO 6006 --- [           main]
> o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX
> exposure on startup
> 2018-04-25 13:37:42.856  INFO 6006 --- [           main]
> o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'startNode' has
> been autodetected for JMX exposure
> 2018-04-25 13:37:42.864  INFO 6006 --- [           main]
> o.s.j.e.a.AnnotationMBeanExporter        : Located MBean 'startNode':
> registering with JMX server as MBean
> [org.apache.ignite.internal:name=startNode,type=IgniteKernal]
> 2018-04-25 13:37:43.261  INFO 6006 --- [           main]
> o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080
> (http) with context path ''
> 2018-04-25 13:37:43.277  INFO 6006 --- [           main]
> c.p.expresso.storage.StorageApplication  : Started StorageApplication in
> 16.334 seconds (JVM running for 18.209)
> [13:37:52] Topology snapshot [ver=2, servers=2, clients=0, CPUs=2,
> offheap=4.0GB, heap=2.0GB]
> [13:37:52] Data Regions Configured:
> [13:37:52]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
> persistenceEnabled=true]
> 2018-04-25 13:37:52.044  INFO 6006 --- [vent-worker-#35]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:37:52.039, name : NODE_JOINED, type : 10, msg: Node joined:
> TcpDiscoveryNode [id=6a61cd48-e111-456f-9376-e3198323fa83,
> addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.16.135.35],
> sockAddrs=[/0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500,
> /172.16.135.35:47500], discPort=47500, order=2, intOrder=2,
> lastExchangeTime=1524631071855, loc=false, ver=2.4.0#20180305-sha1:
> aa342270,
> isClient=false], nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> [13:37:58] Topology snapshot [ver=3, servers=3, clients=0, CPUs=3,
> offheap=6.0GB, heap=3.0GB]
> [13:37:58] Data Regions Configured:
> [13:37:58]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
> persistenceEnabled=true]
> 2018-04-25 13:37:58.584  INFO 6006 --- [vent-worker-#35]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:37:58.564, name : NODE_JOINED, type : 10, msg: Node joined:
> TcpDiscoveryNode [id=155ac524-6ea4-4527-8fbd-9d112acca7d7,
> addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.16.135.36],
> sockAddrs=[/172.16.135.36:47500, /0:0:0:0:0:0:0:1%lo:47500,
> /127.0.0.1:47500], discPort=47500, order=3, intOrder=3,
> lastExchangeTime=1524631078371, loc=false, ver=2.4.0#20180305-sha1:
> aa342270,
> isClient=false], nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> 2018-04-25 13:37:59.317  WARN 6006 --- [ange-worker-#36]
> i.i.p.c.p.GridCacheDatabaseSharedManager : Logging at INFO level without
> checking if INFO level is enabled: Found last checkpoint marker
> [cpId=372daae8-c304-47d7-a0f5-012d252fb8af, pos=FileWALPointer [idx=0,
> fileOff=3158238, len=1947]]
> 2018-04-25 13:38:03.154  WARN 6006 --- [o-msg-worker-#2]
> o.a.i.i.p.c.GridClusterStateProcessor    : Logging at INFO level without
> checking if INFO level is enabled: Received state change finish message:
> true
> 2018-04-25 13:38:03.343  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> 2018-04-25 13:38:03.344  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> 2018-04-25 13:38:03.344  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
>
> **) activate and print baseline*
>
> Control utility [ver. 2.4.0#20180305-sha1:aa342270]
> 2018 Copyright(C) Apache Software Foundation
> User: root
> ------------------------------------------------------------
> --------------------
> Cluster activated
> [root@localhost bin]# ./control.sh --baseline
> Control utility [ver. 2.4.0#20180305-sha1:aa342270]
> 2018 Copyright(C) Apache Software Foundation
> User: root
> ------------------------------------------------------------
> --------------------
> Cluster state: active
> Current topology version: 3
>
> Baseline nodes:
>     ConsistentID=node1, STATE=ONLINE
>     ConsistentID=node2, STATE=ONLINE
>     ConsistentID=node3, STATE=ONLINE
> ------------------------------------------------------------
> --------------------
> Number of baseline nodes: 3
>
> Other nodes not found.
>
> *) *after node2 shutdown*
>
> [13:39:11] Topology snapshot [ver=4, servers=2, clients=0, CPUs=2,
> offheap=4.0GB, heap=2.0GB]
> [13:39:11] Data Regions Configured:
> [13:39:11]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
> persistenceEnabled=true]
> 2018-04-25 13:39:12.009  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> 2018-04-25 13:39:12.009  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
> 2018-04-25 13:39:12.010  INFO 6006 --- [ange-worker-#36]
> c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
> 2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
> Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
>
> need any information?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Apache Ignite application deploy without rebalancing

Posted by moon-duck <hy...@gmail.com>.
Unfortunately not work T^T

I did 2way like below
1. I set region name in cache configuration -> not work
2. I set DefaultDataRegionConfiguration except regionName -> not work

below log is when I set DefaultDataRegionConfiguration except any other
region

**) when loading*

2018-04-25 13:32:44.887  WARN 5837 --- [           main]
o.a.i.s.c.tcp.TcpCommunicationSpi        : Message queue limit is set to 0
which may lead to potential OOMEs when running cache operations in
FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and
receiver sides.
[13:32:44] Message queue limit is set to 0 which may lead to potential OOMEs
when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to
message queues growth on sender and receiver sides.
2018-04-25 13:32:45.076  WARN 5837 --- [           main]
o.a.i.s.c.noop.NoopCheckpointSpi         : Checkpoints are disabled (to
enable configure any GridCheckpointSpi implementation)
"/data/log/catalina/localhost/catalina.out" 193L, 26597C
[13:37:39] Data Regions Configured:
[13:37:39]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=true]
2018-04-25 13:37:39.744  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
"{[/ready/deploy/group],methods=[POST]}" onto public java.lang.Object
cc.platform.expresso.storage.controller.ManageController.clusterBaselineTopologying()
2018-04-25 13:37:39.745  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
"{[/cluster/activation],methods=[POST]}" onto public void
cc.platform.expresso.storage.controller.ManageController.activeCluster()
2018-04-25 13:37:39.746  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
"{[/version],methods=[GET]}" onto public java.lang.Object
cc.platform.expresso.storage.controller.ManageController.version()
2018-04-25 13:37:39.768  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped
"{[/error],produces=[text/html]}" onto public
org.springframework.web.servlet.ModelAndView
org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-04-25 13:37:39.782  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public
org.springframework.http.ResponseEntity<java.util.Map&lt;java.lang.String,
java.lang.Object>>
org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-04-25 13:37:40.035  INFO 6006 --- [           main]
s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice:
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5ecddf8f:
startup date [Wed Apr 25 13:37:28 KST 2018]; root of context hierarchy
2018-04-25 13:37:40.681  INFO 6006 --- [           main]
o.s.j.d.e.EmbeddedDatabaseFactory        : Starting embedded database:
url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false',
username='sa'
2018-04-25 13:37:42.827  INFO 6006 --- [           main]
o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX
exposure on startup
2018-04-25 13:37:42.856  INFO 6006 --- [           main]
o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'startNode' has
been autodetected for JMX exposure
2018-04-25 13:37:42.864  INFO 6006 --- [           main]
o.s.j.e.a.AnnotationMBeanExporter        : Located MBean 'startNode':
registering with JMX server as MBean
[org.apache.ignite.internal:name=startNode,type=IgniteKernal]
2018-04-25 13:37:43.261  INFO 6006 --- [           main]
o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080
(http) with context path ''
2018-04-25 13:37:43.277  INFO 6006 --- [           main]
c.p.expresso.storage.StorageApplication  : Started StorageApplication in
16.334 seconds (JVM running for 18.209)
[13:37:52] Topology snapshot [ver=2, servers=2, clients=0, CPUs=2,
offheap=4.0GB, heap=2.0GB]
[13:37:52] Data Regions Configured:
[13:37:52]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=true]
2018-04-25 13:37:52.044  INFO 6006 --- [vent-worker-#35]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:37:52.039, name : NODE_JOINED, type : 10, msg: Node joined:
TcpDiscoveryNode [id=6a61cd48-e111-456f-9376-e3198323fa83,
addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.16.135.35],
sockAddrs=[/0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500,
/172.16.135.35:47500], discPort=47500, order=2, intOrder=2,
lastExchangeTime=1524631071855, loc=false, ver=2.4.0#20180305-sha1:aa342270,
isClient=false], nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
[13:37:58] Topology snapshot [ver=3, servers=3, clients=0, CPUs=3,
offheap=6.0GB, heap=3.0GB]
[13:37:58] Data Regions Configured:
[13:37:58]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=true]
2018-04-25 13:37:58.584  INFO 6006 --- [vent-worker-#35]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:37:58.564, name : NODE_JOINED, type : 10, msg: Node joined:
TcpDiscoveryNode [id=155ac524-6ea4-4527-8fbd-9d112acca7d7,
addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.16.135.36],
sockAddrs=[/172.16.135.36:47500, /0:0:0:0:0:0:0:1%lo:47500,
/127.0.0.1:47500], discPort=47500, order=3, intOrder=3,
lastExchangeTime=1524631078371, loc=false, ver=2.4.0#20180305-sha1:aa342270,
isClient=false], nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
2018-04-25 13:37:59.317  WARN 6006 --- [ange-worker-#36]
i.i.p.c.p.GridCacheDatabaseSharedManager : Logging at INFO level without
checking if INFO level is enabled: Found last checkpoint marker
[cpId=372daae8-c304-47d7-a0f5-012d252fb8af, pos=FileWALPointer [idx=0,
fileOff=3158238, len=1947]]
2018-04-25 13:38:03.154  WARN 6006 --- [o-msg-worker-#2]
o.a.i.i.p.c.GridClusterStateProcessor    : Logging at INFO level without
checking if INFO level is enabled: Received state change finish message:
true
2018-04-25 13:38:03.343  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
2018-04-25 13:38:03.344  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
2018-04-25 13:38:03.344  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:38:03.335, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b

**) activate and print baseline*

Control utility [ver. 2.4.0#20180305-sha1:aa342270]
2018 Copyright(C) Apache Software Foundation
User: root
--------------------------------------------------------------------------------
Cluster activated
[root@localhost bin]# ./control.sh --baseline
Control utility [ver. 2.4.0#20180305-sha1:aa342270]
2018 Copyright(C) Apache Software Foundation
User: root
--------------------------------------------------------------------------------
Cluster state: active
Current topology version: 3

Baseline nodes:
    ConsistentID=node1, STATE=ONLINE
    ConsistentID=node2, STATE=ONLINE
    ConsistentID=node3, STATE=ONLINE
--------------------------------------------------------------------------------
Number of baseline nodes: 3

Other nodes not found.

*) *after node2 shutdown*

[13:39:11] Topology snapshot [ver=4, servers=2, clients=0, CPUs=2,
offheap=4.0GB, heap=2.0GB]
[13:39:11] Data Regions Configured:
[13:39:11]   ^-- default [initSize=2.0 GiB, maxSize=2.0 GiB,
persistenceEnabled=true]
2018-04-25 13:39:12.009  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
2018-04-25 13:39:12.009  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b
2018-04-25 13:39:12.010  INFO 6006 --- [ange-worker-#36]
c.p.e.s.c.c.EventListenerConfigurator    : Event - time :
2018-04-25T13:39:12.002, name : CACHE_REBALANCE_STARTED, type : 80, msg:
Cache rebalancing event., nodeId : 48ee771f-2b52-425c-b0bf-70985508e34b

need any information? 



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

Re: Apache Ignite application deploy without rebalancing

Posted by "slava.koptilin" <sl...@gmail.com>.
Hello,

It seems that you have to assign your cacheы to "myName" data region as
follows:

config.setCacheConfiguration( 
  new CacheConfiguration<K, V>() 
        .setName(name1) 
        .*setDataRegionName("myName")*
        .setBackups(1) 
        .setCacheMode(PARTITIONED) 
        .setWriteSynchronizationMode(PRIMARY_SYNC) 
        .setCopyOnRead(false));

Thanks!



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