The present invention discloses a method for obtaining the hardware information of a distributed storage server. The method includes the number of CPU and the number of nodes of the cluster server; the corresponding size of the thread pool is set according to the number of the CPU; the concurrent threads of the corresponding number are started according to the number of the nodes; and the IPMI tool is used. Over the concurrent thread, the hardware information of the cluster server is obtained from the nodes of the cluster server, and the hardware information is stored in the local file. The method uses concurrent methods to obtain the hardware information from the nodes of the cluster server through the concurrent threads. It avoids the time accumulation caused by the increase of the server number and the slow response of the related instructions. It effectively improves the efficiency of the hardware information of the server. The invention also discloses a device, a device and a computer readable storage medium for obtaining the hardware information of a distributed storage server, both of which have the beneficial effects. One
【技术实现步骤摘要】
一种获取分布式存储服务器硬件信息的方法、装置及设备
本专利技术涉及服务器管理领域,特别涉及一种获取分布式存储服务器硬件信息的方法;还涉及一种获取分布式存储服务器硬件信息的装置、设备以及计算机可读存储介质。
技术介绍
随着信息化浪潮的到来,全球各行各业借助信息技术进入深入发展阶段。据悉,企业及互联网数据以每年50%的速率在增长。据权威调查机构Gartnet预测,到2020年,全球数据量将达到35ZB,相当于80亿块4TB的硬盘,数据结构的变化给存储系统带来了全新的挑战。分布式存储有效解决了海量数据存储的问题,为应用程序提供了标准统一的访问接入,提升了数据安全性与可靠性,提高了存储整体容量和性能。因此,分布式存储广泛地应用于航天、航空、石油、科研、政务、医疗、视频等高性能计算、云计算和大数据处理领域。由于分布式存储需要大量的存储服务器作为硬件支撑,于是能够及时获取各服务器的硬件信息及状态对于系统管理及维护维修尤为重要。目前,各领域采用串行的方式获取服务器的硬件信息。但是,当存储服务器数量较多,尤其,相关指令响应较慢时,采用传统的串行方式去获取各服务器的信息会造成时间累积,严重影响了工作效率。因此,如何提高获取服务器硬件信息的工作效率是本领域技术人员亟待解决的技术问题。
技术实现思路
本专利技术的目的是提供一种获取分布式存储服务器硬件信息的方法,该方法可避免因服务器数量的增加以及获取服务器硬件信息的指令响应慢而导致的时间累加,可有效提高获取集群服务器硬件信息的工作效率。本专利技术的另一个目的是提供一种获取分布式存储服务器硬件信息的装置、设备以及计算机可读存储介质,均 ...
【技术保护点】
1.一种获取分布式存储服务器硬件信息的方法,其特征在于,包括:
【技术特征摘要】
1.一种获取分布式存储服务器硬件信息的方法,其特征在于,包括:获取集群服务器的CPU的数量与节点的数量;根据所述CPU的数量,设置相应大小的线程池;根据所述节点的数量,启动相应个数的并发线程;利用IPMI工具,通过所述并发线程,同步从所述集群服务器的各所述节点获取所述集群服务器的硬件信息,并将所述硬件信息存入本地文件。2.根据权利要求1所述的方法,其特征在于,还包括:从所述本地文件中读取所述硬件信息,并打印。3.一种获取分布式存储服务器硬件信息的装置,其特征在于,包括:第一获取单元,用于获取集群服务器的CPU的数量与节点的数量;设置单元,用于根据所述CPU的数量,设置相应大小的线程池;启动单元,用于根据所述节点的数量,启动相应...
【专利技术属性】
技术研发人员:张潘,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。