oki5200f,攀钢钢钒,单宁是什么意思
安装 elasticsearch ,操作elasticsearch的工具kibana,
(1)在kibana中输入get _cluster/health查看es的健康状况(2)在kibana中输入 get /_cat/health?v 查看es具体信息
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1565201059 18:04:19 elasticsearch green 1 1 2 2 0 0 0 0 - 100.0%
status :green:每个索引的primary shard 和replica shard 都是active状态
yellow:每个索引的primary shard 都是active状态的,但是部分replica shard不是active状态的
red:不是所有索引primary shard都是active状态的,部分索引有数据丢失了
kibana中:get /_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana_task_manager ynymniygsiauo76dw86xka 1 0 2 0 45.5kb 45.5kb
green open .kibana_1 6i0vh6e8qlcvpgzil4_stq 1 0 4 0 15.3kb 15.3kb
添加文档:
put /index/_doc/id{ }
例如:
put /ecommerce/product/3
{
"name":"zhonghua toothpaste",
"desc":"herb,prevent cavity",
"price":40,
"producer":"zhonghua producer",
"tags":["fresh"]
}
更新:
post /index/product/id/_update
{
"doc":{
}
}
例如:
post /ecommerce/product/1/_update
{
"doc":{
"name":"highly efficient white toothpaste"
}
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
新补丁让Windows 10出现死机、卡顿等 微软坐不住称正解决
Ubuntu 20.04 LTS进驻Windows子系统:只能用3年
ThinkPad正式加入:预装Linux发行版而非Win10的PC越来越多了
最新版Android 11推送!谷歌Pixel 5被曝光:支持反向充电
高度致敬Windows!开源优麒麟20.04 LTS发布:支持5年
电脑小知识:Windows 10是用什么语言写的?到底有多少行代码?
Win10 5月更新准正式版:微软引入大量新功能 系统响应速度快
Windows 10新预览版19613推送:修复任务栏图标显示异常BUG
Windows AD 报错解决:UAC File Virtualization服务启动失败 此驱动程序被阻止加载
网友评论