参考资料: 关于python的API

ES的存储方式对比RDB

1
2
Relational DB -> Databases -> Tables -> Rows -> Columns
Elasticsearch -> Indices -> Types -> Documents -> Fields
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

[root@VM_120_247_centos bk_bkdata_api]# curl http://10.105.120.247:8080/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open 3_bk_log_search_log_search_app_20170421 5 1 0 0 795b 795b
yellow open 2_bk_log_search_log_search_app_20170422 5 1 0 0 795b 795b
yellow open 3_bk_log_search_log_search_app_20170420 5 1 194 0 210.6kb 210.6kb
yellow open 2_bk_log_search_log_search_app_20170421 5 1 0 0 795b 795b
yellow open 2_bk_log_search_log_search_app_20170420 5 1 673 0 233.9kb 233.9kb
yellow open 3_bk_log_search_log_search_app_20170422 5 1 0 0 795b 795b

[root@VM_120_247_centos bk_bkdata_api]# curl http://10.105.120.247:8080/_cat/health?v
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1492677247 16:34:07 bk-bkdata-es yellow 1 1 30 30 0 0 30 0 - 50.0%


[root@VM_120_247_centos bk_bkdata_api]# curl http://10.105.120.247:8080/_cat/nodes?v
host ip heap.percent ram.percent load node.role master name
10.105.120.247 10.105.120.247 27 83 0.46 d * bk-bkdata-es-node