Monitoreo Apache Ignite. Bien hecho

Hicimos 2 subsistemas dentro de Apache Ignite.


En el artículo contaré sobre su arquitectura:


  • ¿Cómo vieron el subsistema de métricas y el subsistema del sistema?
  • ¿Qué se ha hecho y qué vamos a hacer?


¡Hola a todos! Me llamo Nikolai Izhikov. Trabajo en Sberbank Technologies para desarrollar productos de código abierto.


Nota 1 : "hecho" significa que esta funcionalidad está disponible en Apache Ignite maestro , puede compilar y ver cómo funciona todo. La funcionalidad se lanzará en la versión 2.8 Apache Ignite, que se lanzará a principios 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
    ¡Ven! Tenemos casi una comunidad de habla rusa, casi todos los contribuyentes son de Rusia, por lo que puede unirse fácilmente y hacer una contribución a Open Source.

Material con un asterisco

dev- " ?", API


Presentación: https://www.highload.ru/moscow/2019/abstracts/6111
Video:


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


All Articles