2014年5月15日 星期四

[elasticsearch]列出 node 裝有哪些 plugins與狀態 / List of existing plugins with Node Info API


管理 Elasticsearch 我們想知道每個node的狀態與他們有裝置哪些 plugins。

這時候可以使用 api 來 list existing plugins與 node 的資訊:

curl http://localhost:9200/_nodes?plugin=true
response

{"cluster_name": "elasticsearchpc2","nodes": {"Esuo81ErRqCNNmCbJfPMxQ": {"name": "renode2","transport_address": "inet[/10.1.191.1:9300]","host": "renode2","ip": "10.1.191.1","version": "1.1.1","build": "f1585f0","http_address": "inet[/10.1.191.1:9200]","settings": {"path": {"logs": "/root/elasticsearch-1.1.1/logs","home": "/root/elasticsearch-1.1.1"},"cluster": {"name": "elasticsearchpc2"},"node": {"name": "renode2"},"discovery": {"zen": {"ping": {"unicast": {"hosts": ["renode1","renode2"]},"multicast": {"enabled": "false"}}}},"foreground": "yes","name": "renode2"},"os": {"refresh_interval": 1000,"available_processors": 8,"cpu": {"vendor": "Intel","model": "Xeon","mhz": 2526,"total_cores": 8,"total_sockets": 8,"cores_per_socket": 1,"cache_size_in_bytes": 8192},"mem": {"total_in_bytes": 6029754368},"swap": {"total_in_bytes": 4227850240}},"process": {"refresh_interval": 1000,"id": 18017,"max_file_descriptors": 4096,"mlockall": false},"jvm": {"pid": 18017,"version": "1.6.0_31","vm_name": "Java HotSpot(TM) 64-Bit Server VM","vm_version": "20.6-b01","vm_vendor": "Sun Microsystems Inc.","start_time": 1400126620513,"mem": {"heap_init_in_bytes": 268435456,"heap_max_in_bytes": 1060372480,"non_heap_init_in_bytes": 24313856,"non_heap_max_in_bytes": 136314880,"direct_max_in_bytes": 1060372480},"gc_collectors": ["ParNew","ConcurrentMarkSweep"],"memory_pools": ["Code Cache","Par Eden Space","Par Survivor Space","CMS Old Gen","CMS Perm Gen"]},"thread_pool": {"generic": {"type": "cached","keep_alive": "30s"},"index": {"type": "fixed","min": 8,"max": 8,"queue_size": "200"},"get": {"type": "fixed","min": 8,"max": 8,"queue_size": "1k"},"snapshot": {"type": "scaling","min": 1,"max": 4,"keep_alive": "5m"},"merge": {"type": "scaling","min": 1,"max": 4,"keep_alive": "5m"},"suggest": {"type": "fixed","min": 8,"max": 8,"queue_size": "1k"},"bulk": {"type": "fixed","min": 8,"max": 8,"queue_size": "50"},"optimize": {"type": "fixed","min": 1,"max": 1},"warmer": {"type": "scaling","min": 1,"max": 4,"keep_alive": "5m"},"flush": {"type": "scaling","min": 1,"max": 4,"keep_alive": "5m"},"search": {"type": "fixed","min": 24,"max": 24,"queue_size": "1k"},"percolate": {"type": "fixed","min": 8,"max": 8,"queue_size": "1k"},"management": {"type": "scaling","min": 1,"max": 5,"keep_alive": "5m"},"refresh": {"type": "scaling","min": 1,"max": 4,"keep_alive": "5m"}},"network": {"refresh_interval": 5000,"primary_interface": {"address": "10.1.191.1","name": "eth0","mac_address": "FA:3E:B2:87:97:5s"}},"transport": {"bound_address": "inet[/0:0:0:0:0:0:0:0%0:9300]","publish_address": "inet[/10.1.191.1:9300]"},"http": {"bound_address": "inet[/0:0:0:0:0:0:0:0%0:9200]","publish_address": "inet[/10.1.191.1:9200]","max_content_length_in_bytes": 104857600},"plugins": []},}}
a

沒有留言:

張貼留言