This application discloses a method of log processing, including: obtaining the service throughput of the server; determining whether the service throughput exceeds the first threshold; and if so, mounting the server's log storage path to a preset SSD fast disk. The technical solution provided in this application is to obtain the service throughput of the server first and then determine whether the service throughput exceeds the first threshold. If the throughput exceeds, the log storage path of the server is mounted on the preset SSD fast disk, so that the log can be directly stored on the preset SSD fast disk. Because the reading and writing efficiency of the preset SSD fast disk is much higher than that of the normal SAS disk, It avoids the performance bottleneck of the server when the log is down, and greatly reduces the impact of the business processing ability of the log service server. The application also provides a log processing system, equipment and computer readable storage medium, which has the above beneficial effects.
【技术实现步骤摘要】
一种日志处理的方法、系统、设备及计算机可读存储介质
本申请涉及日志处理领域,特别涉及一种日志处理的方法、系统、设备及计算机可读存储介质。
技术介绍
服务器的日志存放路径/var/log/icfs默认为系统盘/dev/sda,目前服务器的设备系统盘的标配为SAS盘,在业务量比较大的时候,每个节点日志产生的压力偏大,在日志业务压力大的时候会阻塞业务执行,极大的影响了服务器的业务处理能力。因此,如何降低日志对服务器业务处理能力的影响是本领域技术人员目前需要解决的技术问题。
技术实现思路
本申请的目的是提供一种日志处理的方法、系统、设备及计算机可读存储介质,用于降低日志对服务器业务处理能力的影响。为解决上述技术问题,本申请提供一种日志处理的方法,该方法包括:获取服务器的业务吞吐量;判断所述业务吞吐量是否超过第一阈值;若是,则将所述服务器的日志存放路径挂载至预设SSD快盘。可选的,所述获取服务器的业务吞吐量,包括:实时获取所述服务器的业务吞吐量。可选的,在将所述服务器的日志存放路径挂载至预设SSD快盘之后,还包括:获取所述预设SSD快盘中的日志数量;当所述日志数量超过第二阈值时 ...
【技术保护点】
1.一种日志处理的方法,其特征在于,包括:获取服务器的业务吞吐量;判断所述业务吞吐量是否超过第一阈值;若是,则将所述服务器的日志存放路径挂载至预设SSD快盘。
【技术特征摘要】
1.一种日志处理的方法,其特征在于,包括:获取服务器的业务吞吐量;判断所述业务吞吐量是否超过第一阈值;若是,则将所述服务器的日志存放路径挂载至预设SSD快盘。2.根据权利要求1所述的方法,其特征在于,所述获取服务器的业务吞吐量,包括:实时获取所述服务器的业务吞吐量。3.根据权利要求1所述的方法,其特征在于,在将所述服务器的日志存放路径挂载至预设SSD快盘之后,还包括:获取所述预设SSD快盘中的日志数量;当所述日志数量超过第二阈值时,将所述预设SSD快盘中的日志上传至云端。4.根据权利要求1所述的方法,其特征在于,在将所述服务器的日志存放路径挂载至预设SSD快盘之后,还包括:输出包含所述日志存放路径的提示信息。5.一种日志处理的系统,其特征在于,包括:第一获取模块,用于获取服务器的业务吞吐量;第一判断模块,用于判断所述业务吞吐量是否超过第一阈值;挂载模块,用于当所述业务吞吐量超过所述第一阈值时,将所述服务器的日志存放路径挂载至预设...
【专利技术属性】
技术研发人员:尚付飞,刘杰,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。