You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexand Polyakov (JIRA)" <ji...@apache.org> on 2018/09/25 15:40:00 UTC

[jira] [Issue Comment Deleted] (IGNITE-9549) control.sh add command to collect information on the distribution of partitions and reset lost partitions

     [ https://issues.apache.org/jira/browse/IGNITE-9549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexand Polyakov updated IGNITE-9549:
-------------------------------------
    Comment: was deleted

(was: for documentation:
Сбор информации о распределении партиций.
control.sh cache distribution nodeId|null [cacheName1,...,cacheNameN] [--user-attributes attributeName1[,...,attributeNameN]]
nodeId|null - должен быть указан идентификатор узла или null - запуск на всех узлах
[cacheName1,...,cacheNameN] имя одного или нескольки кешей, параметр не обязателен
[--user-attributes attributeName1[,...,attributeNameN]] - дополнительные атрибуты которые будут считаны с узла (org.apache.ignite.cluster.ClusterNode#attribute) и добавлены в результат
вывод cache distribution
[groupId,partition,nodeId,primary,state,updateCounter,partitionSize,nodeAddresses]
[next group: id=1544803905, name=default]
1544803905,0,12f01a16,B,OWNING,4,4,[127.0.0.1]
1544803905,0,3d85277a,P,OWNING,4,4,[127.0.0.1]
1544803905,1,12f01a16,P,OWNING,4,4,[127.0.0.1]
если настроен user-attributes то будут соответствующие дополнительные колонки
[groupId,partition,nodeId,primary,state,updateCounter,partitionSize,nodeAddresses,CELL,ZONE,DC]
[next group: id=1544803905, name=default]
1544803905,0,12f01a16,B,OWNING,4,4,[127.0.0.1],1,2,3
1544803905,0,3d85277a,P,OWNING,4,4,[127.0.0.1],1,2,1
1544803905,1,12f01a16,P,OWNING,4,4,[127.0.0.1],1,2,1
1544803905,1,3d85277a,B,OWNING,4,4,[127.0.0.1],1,2,3
partitionSize - количество элементов в партиции

Cброс LOST-партиций (org.apache.ignite.Ignite#resetLostPartitions)
control.sh cache reset_lost_partitions cacheName1[,...,cacheNameN]
cacheName1[,...,cacheNameN] - имена кешей, поле обязательно, минимум 1 кеш
вывод cache reset_lost_partitions
Reset LOST-partitions performed successfully. Cache group (name = 'default', id = 1544803905), caches ([default]).
Reset LOST-partitions performed successfully. Cache group (name = 'ignite-sys-cache', id = -2100569601), caches ([ignite-sys-cache]))

> control.sh add command to collect information on the distribution of partitions and reset lost partitions
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-9549
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9549
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Alexand Polyakov
>            Assignee: Alexand Polyakov
>            Priority: Major
>             Fix For: 2.7
>
>
> control.sh add command to collect information on the distribution of partitions
> {noformat}
> control.sh --cache distribution nodeId|null [cacheName1[,...,cacheNameN]] [--user-attributes userAttribute[,...,userAttributeN]]
> {noformat}
> return 
> [next group: id=??, name=??]
> groupId,partition,nodeId,primary,state,updateCounter,size,nodeAddresses[,userAttribute[,...,userAttributeN]]
> ...
> groupId,partition,nodeId,primary,state,updateCounter,size,nodeAddresses[,userAttribute[,...,userAttributeN]]
> reset lost partitions
> {noformat}
> control.sh --cache reset_lost_partitions cacheName1[,...,cacheNameN]
> {noformat}
> return 
> Reset LOST-partitions performed successfully. Cache group (name = '??', id = ??)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)