Nous avons créé 2 sous-systèmes dans Apache Ignite.
Dans l'article, je parlerai de leur architecture:
- Comment le sous-système de mesures et le sous-système de visualisation du système ont-ils fonctionné?
- Qu'est-ce qui a été fait et qu'allons-nous faire?

Bonjour à tous! Je m'appelle Nikolai Izhikov. Je travaille chez Sberbank Technologies pour développer des produits Open Source.
Remarque 1 : «terminé» signifie que cette fonctionnalité est disponible dans le maître Apache Ignite , vous pouvez créer et voir comment tout fonctionne. La fonctionnalité sera publiée dans la version 2.8 Apache Ignite, qui sera publiée début 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();
, " ?" .
.
System View — ?
— . system view, SQL. ( JMX).
SystemView
— (). : , , compute task', sql table . .SystemViewExporterSpi
— .ReadOnlySystemViewRegistry
— exporter'. read only access + listeners.GridSystemViewManager
—
:
- . , , - . .
- overhead. .
- . . .
: . java-. :
POJO. , . . . : reflection?
:
:
(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 .
, " ?" .
- : , .
. - « » (prometheus, zabbix)
- . , . — .
- . Oracle , , : , , , .
- — Ignite , . . threshold «compute 30 », , .
- dev@ignite.apache.org
- user@ignite.apache.org
Venez! Nous avons presque une communauté russophone, presque tous les contributeurs viennent de Russie, vous pouvez donc facilement rejoindre et apporter une contribution à l'Open Source.
Matériel avec un astérisque Présentation - https://www.highload.ru/moscow/2019/abstracts/6111
Vidéo: