- 博客(5)
- 收藏
- 关注
原创 ES常用api介绍
如何查看集群的当前状态curl -sXGET ‘http://localhost:9200/_cluster/health?pretty’ 或者 sh index.sh healthcluster_name:集群名称status: 集群状态,green代表所有打开的索引的全部分片全部是正常状态,yellow表示部分分片的副本不活跃,red表示部分索引的主副分片全不活跃。number_...
2020-01-31 11:43:45 2536
原创 ES定位问题api
确定节点状况bash-4.2$ curl -sXGET "http://localhost:9200/_cat/nodes?v" | sort -k9$ip1 64 99 6 2.88 2.78 2.62 mdi - es.hostname1.0$ip1 59 99...
2020-01-31 11:20:43 770
原创 ES shard allocate 细节
ES shard allocate 细节ES shard allocate 细节ES shard allocate 细节allocate过程当集群的节点数达到gateway.recover_after_nodes配置时,master开始按照配置的优先级,创建时间(最新的索引优先),索引名(大的优先)的顺序,将索引的分片先主后副的分配到各个节点上。分片一个主分片时,先统计各个节点上该分片保留...
2020-01-31 11:11:30 1055
原创 TSA加速手册(持续更新)
数据库的增删改查建立连接通用版engine = create_engine('postgresql://username: password@host: port/dbname')DBSession = sessionmaker(engine)session = DBSession()加速版db = DbClass(PG_DB_URI)session = db.make_sess...
2019-01-01 19:12:08 294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人