###
计算机系统应用英文版:2017,26(6):59-64
本文二维码信息
码上扫一扫!
基于OSGi的分布式系统集中日志管理方案
(国网信息通信产业集团有限公司 北京中电普华信息技术有限公司, 北京 100192)
Centralized Log Management Scheme for Distributed System Based on OSGi
(Beijing China-Power Information Technology Co. Ltd., State Grid Information & Telecommunication Group, Beijing 100192, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1398次   下载 1527
Received:September 28, 2016    Revised:October 27, 2016
中文摘要: 目前分布式业务应用的日志多存储在各分布式服务器节点本地日志文件中,没有集中存储和管理,导致业务系统问题定位速度慢,解决问题效率低.本文提供一种基于OSGi的分布式日志收集与分析技术方案.该方案单独设计了集中的日志存储服务器用于存储日志,并提供一套通用日志模型,业务应用分布式节点向该设备发送基于该模型的日志数据,日志存储服务器接收到各节点的日志数据后进行统一存储和界面化分析展示,帮助开发人员快速定位和分析问题.该方案以OSGi插件形式部署到应用系统,应用卸载该插件后则以原有方式存储日志.应用结果表明,采用该日志管理方案对1000并发下记录日志的业务应用访问性能平均提升2秒,并且没有日志数据丢失.开发人员反馈,错误日志更加一目了然,定位问题的时间明显短于普通的日志存储方式.
中文关键词: OSGi  分布式  日志管理
Abstract:At present, the distributed business application logs are stored in the local log files on distributed servers, and there is no centralized storage and management, which leads to slow positioning speed for business system problems, and low efficiency in solving problems. This paper provides a distributed log collection and analysis scheme based on OSGi technology. It uses a centralized log storage server to store the log, and provides a set of general log model, so that distributed business application nodes can send the log data to the servers, based on the model. The log storage server receives log data of each node and then unifies storage and interface of analysis display, helping developers to quickly locate and analyze the problem. The scheme is deployed to the application system in the form of the OSGi plug-in, and log is stored in the original way after unloading the OSGi plug-in. Application results show that when the log management scheme is applied to 1000 concurrent business applications which perform logging, the access performance is improved to 2 seconds, and there is no log data loss. According to the developers' feedback, the error logs are clearer, the time of locating problems is obviously shorter than ordinary log storage.
keywords: OSGi  distributed  log management
文章编号:     中图分类号:    文献标志码:
基金项目:国家电网公司2016年科技项目
引用文本:
王宇飞,刘丹,吴嘉生.基于OSGi的分布式系统集中日志管理方案.计算机系统应用,2017,26(6):59-64
WANG Yu-Fei,LIU Dan,WU Jia-Sheng.Centralized Log Management Scheme for Distributed System Based on OSGi.COMPUTER SYSTEMS APPLICATIONS,2017,26(6):59-64