[
https://issues.apache.org/jira/browse/IGNITE-8803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635138#comment-16635138
]
Alexey Goncharuk commented on IGNITE-8803:
------------------------------------------
[~dsetrakyan] here is the output after your changes, please confirm this is
what you expected:
Quiet mode:
{code}
[11:14:41] Performance suggestions for grid (fix if possible)
[11:14:41] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[11:14:41] ^-- Disable grid events (remove 'includeEventTypes' from
configuration)
[11:14:41] ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM options)
[11:14:41] ^-- Specify JVM heap max size (add '-Xmx<size>[g|G|m|M|k|K]' to
JVM options)
[11:14:41] ^-- Set max direct memory size if getting 'OOME: Direct buffer
memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[11:14:41] ^-- Disable processing of calls to System.gc() (add
'-XX:+DisableExplicitGC' to JVM options)
[11:14:41] Refer to this page for more performance suggestions:
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[11:14:41]
[11:14:41] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[11:14:41] Data Regions Configured:
[11:14:41] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
persistence=false]
[11:14:41] Ignite node started OK (id=3d56971d)
[11:14:41] Topology snapshot [ver=1, locNode=3d56971d, servers=1, clients=0,
state=ACTIVE, CPUs=4, offheap=3.2GB, heap=3.6GB]
[11:15:03] Topology snapshot [ver=2, locNode=3d56971d, servers=2, clients=0,
state=ACTIVE, CPUs=4, offheap=6.4GB, heap=7.1GB]
[11:15:05] Topology snapshot [ver=3, locNode=3d56971d, servers=1, clients=0,
state=ACTIVE, CPUs=4, offheap=3.2GB, heap=3.6GB]
[11:15:14] Topology snapshot [ver=4, locNode=3d56971d, servers=2, clients=0,
state=ACTIVE, CPUs=4, offheap=6.4GB, heap=7.1GB]
[11:15:16] Topology snapshot [ver=5, locNode=3d56971d, servers=1, clients=0,
state=ACTIVE, CPUs=4, offheap=3.2GB, heap=3.6GB]
{code}
Verbose mode:
{code}
[2018-10-02 11:19:01,364][INFO ][main][IgniteKernal] Performance suggestions
for grid (fix if possible)
[2018-10-02 11:19:01,364][INFO ][main][IgniteKernal] To disable, set
-DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] ^-- Disable grid events
(remove 'includeEventTypes' from configuration)
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] ^-- Enable G1 Garbage
Collector (add '-XX:+UseG1GC' to JVM options)
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] ^-- Specify JVM heap max
size (add '-Xmx<size>[g|G|m|M|k|K]' to JVM options)
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] ^-- Set max direct
memory size if getting 'OOME: Direct buffer memory' (add
'-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] ^-- Disable processing
of calls to System.gc() (add '-XX:+DisableExplicitGC' to JVM options)
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] Refer to this page for
more performance suggestions:
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal]
[2018-10-02 11:19:01,365][INFO ][main][IgniteKernal] To start Console
Management & Monitoring run ignitevisorcmd.{sh|bat}
[2018-10-02 11:19:01,366][INFO ][main][IgniteKernal] Data Regions Configured:
[2018-10-02 11:19:01,367][INFO ][main][IgniteKernal] ^-- default
[initSize=256.0 MiB, maxSize=3.2 GiB, persistence=false]
[2018-10-02 11:19:01,369][INFO ][main][IgniteKernal]
>>> +------------------------------------------+
>>> Ignite ver. 2.7.0-SNAPSHOT#19700101-sha1:DEV
>>> +------------------------------------------+
>>> OS name: Mac OS X 10.13.3 x86_64
>>> CPU(s): 4
>>> Heap: 3.6GB
>>> VM name: [email protected]
>>> Local node [ID=765EBA9E-A9C5-40F7-BB08-355A91BBAFDA, order=1,
>>> clientMode=false]
>>> Local node addresses: [agoncharukmac-2.gridgain.local/0:0:0:0:0:0:0:1,
>>> /127.0.0.1, /172.25.4.131]
>>> Local ports: TCP:10800 TCP:11211 TCP:47100 UDP:47400 TCP:47500
{code}
> Need to fix Ignite QUIET log output
> -----------------------------------
>
> Key: IGNITE-8803
> URL: https://issues.apache.org/jira/browse/IGNITE-8803
> Project: Ignite
> Issue Type: Improvement
> Components: general
> Reporter: Dmitriy Setrakyan
> Assignee: Alexey Goncharuk
> Priority: Blocker
> Fix For: 2.7
>
>
> {color:#004000}We need to fix QUIET log mode. Here is an example of a single
> node output after another node joined and left 3 times:{color}
>
> {quote}[22:50:23] Ignite node started OK (id=931fcf60)
> [22:50:23] Topology snapshot [ver=4, servers=2, clients=0, CPUs=8,
> offheap=6.4GB, heap=2.0GB]
> [22:50:23] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:50:23] Data Regions Configured:
> [22:50:23] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:50:28] Topology snapshot [ver=5, servers=1, clients=0, CPUs=8,
> offheap=3.2GB, heap=1.0GB]
> [22:50:28] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:50:28] Data Regions Configured:
> [22:50:28] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:50:36] Topology snapshot [ver=6, servers=2, clients=0, CPUs=8,
> offheap=6.4GB, heap=2.0GB]
> [22:50:36] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:50:36] Data Regions Configured:
> [22:50:36] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:50:43] Topology snapshot [ver=7, servers=1, clients=0, CPUs=8,
> offheap=3.2GB, heap=1.0GB]
> [22:50:43] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:50:43] Data Regions Configured:
> [22:50:43] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:50:51] Topology snapshot [ver=8, servers=2, clients=0, CPUs=8,
> offheap=6.4GB, heap=2.0GB]
> [22:50:51] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:50:51] Data Regions Configured:
> [22:50:51] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:51:54] Topology snapshot [ver=9, servers=1, clients=0, CPUs=8,
> offheap=3.2GB, heap=1.0GB]
> [22:51:54] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:51:54] Data Regions Configured:
> [22:51:54] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> [22:52:02] Topology snapshot [ver=10, servers=2, clients=0, CPUs=8,
> offheap=6.4GB, heap=2.0GB]
> [22:52:02] ^-- Node [id=931FCF60-03DC-44C8-BBBD-CEEF34CA6F2A,
> clusterState=ACTIVE]
> [22:52:02] Data Regions Configured:
> [22:52:02] ^-- default [initSize=256.0 MiB, maxSize=3.2 GiB,
> persistenceEnabled=false]
> {quote}
>
> We are printing out the same information over and over again. For example,
> regions configuration does not change, why do we print it out every time? The
> same goes for the node ID, it stays constant. Moreover, we should never be
> printing out full node IDs in quite mode.
>
> I suggest we fix it as follows:
> # Print out data regions once on startup, right before we print out that
> _"Ignite node started OK (id=931fcf60)"_
> # Remove _"^--Node [...]"_ printout underneath topology snapshot altogether
> # Rename "clusterState=ACTIVE" to "state=ACTIVE" and add it to the topology
> snapshot line.
> # Rename "persistenceEnabled" to "persistence"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)