Monitorando o Apache Ignite. Feito Ă  direita

Criamos 2 subsistemas no Apache Ignite.


No artigo vou falar sobre sua arquitetura:


  • Como o subsistema de mĂ©tricas e o sistema visualizaram o subsistema.
  • O que foi feito e o que vamos fazer?


Olá a todos! Meu nome é Nikolai Izhikov. Trabalho na Sberbank Technologies para desenvolver produtos Open Source.


Nota 1 : "concluído" significa que essa funcionalidade está disponível no Apache Ignite mestre , você pode criar e ver como funciona. A funcionalidade cairá na versão 2.8 Apache Ignite, que será lançada no início de 2020.



 2: , , Apache Ignite.



 3: 2.8, , - .


Apache Ignite in-memory . API: , , ( ), .




, - . : " , ? , , ." :


  • ? — , , .
  • ? — , , : , , , . , .
  • ? — .
  • ? — " " — ?

.


:


  • .
  • — , .
  • . : , .
  • : , , , , .

, . , , . :


  • API : transaction manager, cache manager, etc.
  • - .
  • API: JMX, SQL, Java. API.


:


  • : , ? . , , , - . , .
  • «» : , API.
  • : jmx, sql, http(Prometheus) , , .
  • : , .

Open Source community . , Ignite Enhancement Proposal (IEP), , , API, .
:



Ignite : , . , . , . , Ignite . , Ignite — . — . (prometheus, zabbix) .



Ignite . Ignite : jvm, , , . Ignite . , .


: — .


: , data region', .. , , .


: io.dataregion.myregion.TotalAllocatedPages — Data Region "myregion".



:


  • Metric, Gauge — .
  • MetricRegistry — (, ) .
  • MetricExporterSpi — .
  • ReadOnlyMetricRegistry — , exporter’-. read only access + listeners.
  • GridMetricManager — .

:


  • Metric — . .
    : LongAddterMetric, DoubleMetricImpl, ObjectMetricImpl.
  • Gauge — . , Supplier. . , , .
    : LongGauge, DoubleGauge, ObjectGauge.
  • HistogramMetric — + . , .
    : , 250 , 500 , 1 .
  • HitRateMetric — X .
    : , .

MetricExporterSpi — , . , . JMX, SQL, Log, OpenCensus.



GridMetricManager mmgr = ...;
MetricRegistry mreg = mmgr.registry("io.dataregion." + name);
LongAdderMetric replacedPages = mreg.longAdderMetric("PagesReplaced",
            "Number of pages replaced from last restart.");
//....
replacedPages.increment();


JMX

SQL

, " ?" .
.


System View — ?


— . system view, SQL. ( JMX).



  • SystemView — (). : , , compute task', sql table . .
  • SystemViewExporterSpi — .
  • ReadOnlySystemViewRegistry — exporter'. read only access + listeners.
  • GridSystemViewManager —


:


  • . , , - . .
  • overhead. .
  • . . .

: . java-. :


POJO. , . . . : reflection?

:


  • compile time.
  • .
  • .
  • .

:
(SystemViewRowAttributeWalker.java), . . system view . .


        ctx.systemView().registerView(CACHES_VIEW, CACHES_VIEW_DESC,
            new CacheViewWalker(),
            registeredCaches.values(),
            CacheView::new);

        ctx.systemView().registerView(CACHE_GRPS_VIEW, CACHE_GRPS_VIEW_DESC,
            new CacheGroupViewWalker(),
            registeredCacheGrps.values(),
            CacheGroupView::new);

Reflection — , . dev-list JMH benchmark. reflection . walker . Walker 4 .



SQL

JMX

, " ?" .



  • : , . .
  • « » (prometheus, zabbix)
  • . , . — .
  • . Oracle , , : , , , .
  • — Ignite , . . threshold «compute 30 », , .


  • dev@ignite.apache.org
  • user@ignite.apache.org
    Venha! Temos quase uma comunidade de lĂ­ngua russa, quase todos os colaboradores sĂŁo da RĂşssia, para que vocĂŞ possa ingressar com facilidade e contribuir com o cĂłdigo aberto.

Material com um asterisco

dev- " ?", API


Apresentação - https://www.highload.ru/moscow/2019/abstracts/6111
VĂ­deo:


Source: https://habr.com/ru/post/undefined/


All Articles