版本更新 #
这里是 INFINI Console 版本更新的相关说明。
From 0.2 to 0.3 #
Update template .infini
#
PUT _template/.infini
{
"order": 0,
"index_patterns": [
".infini_*"
],
"settings": {
"index": {
"max_result_window": "10000000",
"mapping": {
"total_fields": {
"limit": "20000"
}
},
"analysis": {
"analyzer": {
"suggest_text_search": {
"filter": [
"word_delimiter"
],
"tokenizer": "classic"
}
}
},
"number_of_shards": "1"
}
},
"mappings": {
"dynamic_templates": [
{
"strings": {
"mapping": {
"ignore_above": 256,
"type": "keyword"
},
"match_mapping_type": "string"
}
}
]
},
"aliases": {}
}
Close index .infini_cluster
#
POST .infini_cluster/_close
Update index settings of .infini_cluster
#
PUT .infini_cluster/_settings
{
"analysis": {
"analyzer": {
"suggest_text_search": {
"filter": [
"word_delimiter"
],
"tokenizer": "classic"
}
}
}
}
Update index mappings of .infini_cluster
#
PUT .infini_cluster/_mapping
{
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"ignore_above": 256,
"type": "keyword"
}
}
}
],
"properties": {
"basic_auth": {
"properties": {
"password": {
"type": "keyword"
},
"username": {
"type": "keyword"
}
}
},
"created": {
"type": "date"
},
"description": {
"type": "text"
},
"discovery": {
"properties": {
"refresh": {
"type": "object"
}
}
},
"enabled": {
"type": "boolean"
},
"endpoint": {
"type": "keyword"
},
"endpoints": {
"type": "keyword"
},
"host": {
"type": "keyword",
"copy_to": [
"search_text"
]
},
"hosts": {
"type": "keyword"
},
"labels": {
"properties": {
"health_status": {
"type": "keyword",
"ignore_above": 256
}
}
},
"location": {
"properties": {
"dc": {
"type": "keyword"
},
"provider": {
"type": "keyword"
},
"rack": {
"type": "keyword"
},
"region": {
"type": "keyword"
}
}
},
"monitored": {
"type": "boolean"
},
"name": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
},
"order": {
"type": "integer"
},
"owner": {
"properties": {
"department": {
"type": "keyword",
"copy_to": [
"search_text"
]
},
"id": {
"type": "keyword"
},
"name": {
"type": "keyword",
"copy_to": [
"search_text"
]
}
}
},
"project": {
"type": "keyword",
"copy_to": [
"search_text"
]
},
"schema": {
"type": "keyword"
},
"search_text": {
"type": "text",
"analyzer": "suggest_text_search",
"index_prefixes": {
"min_chars": 2,
"max_chars": 5
},
"index_phrases": true
},
"tags": {
"type": "keyword",
"copy_to": [
"search_text"
]
},
"traffic_control": {
"properties": {
"max_bytes_per_node": {
"type": "keyword"
},
"max_connection_per_node": {
"type": "keyword"
},
"max_qps_per_node": {
"type": "keyword"
},
"max_wait_time_in_ms": {
"type": "keyword"
}
}
},
"updated": {
"type": "date"
},
"version": {
"type": "keyword",
"copy_to": [
"search_text"
]
}
}
}
Open index .infini_cluster
#
POST .infini_cluster/_open
Update console.yml #
v0.3版本在v0.2版本上新增了 pipeline 配置:
- name: metadata_ingest
auto_start: true
keep_running: true
processor:
- metadata:
bulk_size_in_mb: 10
bulk_max_docs_count: 5000
fetch_max_messages: 1000
elasticsearch: "default"
queues:
type: metadata
category: elasticsearch
when:
cluster_available: [ "default" ]
- name: activity_ingest
auto_start: true
keep_running: true
processor:
- activity:
bulk_size_in_mb: 10
bulk_max_docs_count: 5000
fetch_max_messages: 1000
elasticsearch: "default"
queues:
category: elasticsearch
activity: true
consumer:
group: activity
when:
cluster_available: [ "default" ]
先停止 console 程序,再在console.yml
配置文件中的 pipeline 模块下添加上面面的配置,然后再启动 console 程序。
给索引 .infini_alert-history 配置生命周期 #
v0.3 新增了告警功能,告警功能存储执行记录的索引数据量很大,所以需要配置一下 ILM 如下:
PUT _template/.infini_alert-history-rollover
{
"order" : 100000,
"index_patterns" : [
".infini_alert-history*"
],
"settings" : {
"index" : {
"format" : "7",
"lifecycle" : {
"name" : "infini_metrics-30days-retention",
"rollover_alias" : ".infini_alert-history"
},
"codec" : "best_compression",
"number_of_shards" : "1",
"translog.durability":"async"
}
},
"mappings" : {
"dynamic_templates" : [
{
"strings" : {
"mapping" : {
"ignore_above" : 256,
"type" : "keyword"
},
"match_mapping_type" : "string"
}
}
]
},
"aliases" : { }
}
DELETE .infini_alert-history
DELETE .infini_alert-history-00001
PUT .infini_alert-history-00001
{
"settings": {
"index.lifecycle.rollover_alias":".infini_alert-history"
, "refresh_interval": "5s"
},
"aliases":{
".infini_alert-history":{
"is_write_index":true
}
},
"mappings": {
"properties" : {
"condition" : {
"properties" : {
"items" : {
"properties" : {
"expression" : {
"type" : "keyword",
"ignore_above" : 256
},
"minimum_period_match" : {
"type" : "long"
},
"operator" : {
"type" : "keyword",
"ignore_above" : 256
},
"severity" : {
"type" : "keyword",
"ignore_above" : 256
},
"values" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"operator" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"condition_result" : {
"type" : "object",
"enabled" : false
},
"context" : {
"type" : "keyword",
"copy_to" : [
"search_text"
]
},
"created" : {
"type" : "date"
},
"expression" : {
"type" : "keyword",
"copy_to" : [
"search_text"
]
},
"id" : {
"type" : "keyword"
},
"is_escalated" : {
"type" : "boolean"
},
"is_notified" : {
"type" : "boolean"
},
"message" : {
"type" : "keyword",
"ignore_above" : 256
},
"objects" : {
"type" : "keyword",
"copy_to" : [
"search_text"
]
},
"resource_id" : {
"type" : "keyword"
},
"resource_name" : {
"type" : "keyword"
},
"rule_id" : {
"type" : "keyword"
},
"rule_name" : {
"type" : "keyword"
},
"search_text" : {
"type" : "text",
"analyzer" : "suggest_text_search",
"index_prefixes" : {
"min_chars" : 2,
"max_chars" : 5
},
"index_phrases" : true
},
"severity" : {
"type" : "keyword"
},
"state" : {
"type" : "keyword",
"ignore_above" : 256
},
"title" : {
"type" : "keyword"
},
"updated" : {
"type" : "date"
}
}
}
}
升级常见问题 #
问题描述1 #
重复的索引index数据
解决方案 #
- 停止 console
- 删除索引
.infini_index
- 启动 console
问题描述2 #
重复的节点node数据
解决方案 #
- 停止 console
- 删除索引
.infini_node
- 启动 console
问题描述3 #
data节点有监控数据,非data节点(master、client等)没有监控数据,如下图非data节点所示:
解决方案 #
建议升级到最新版。
问题描述4 #
页面出现空白,JS报错。
解决方案 #
建议升级到最新版,并将具体报错信息反馈给我们。
反馈 #
如有其他任何问题和建议,请通过右侧的反馈功能或点击 这里提交给我们,我们将持续优化,感谢您的支持!