| Cloud encryption application system based on content-associated key technology is a multi-client,micro-service structure application in distributed cluster environment.Its main function is to securely and efficiently encrypt various types of files of users through new content-associated key technology.The system now requires a logging system that can effectively monitor application system operations and manage log data in a unified manner.The existing general logging system can usually complete basic log collection and simple query statistics,however,in the scenario of high concurrency,high customizability,and high data integrity requirements,it is slightly weak.By analyzing the application characteristics,distributed cluster characteristics,security features and content-associated key encryption features of cloud encryption application services,the requirements of the dedicated logging system for the application are analyzed.Around the requirements,the system is designed from two aspects of architectural availability and application functionality.Architecturally,a three-layer structure of collection,transmission and storage is adopted to collect log data.Cluster technology,message queue and other technologies are added to achieve high availability and disaster tolerance under high concurrency scenarios.And the redundant backup mechanism of the storage layer allows the system to meet the requirements of data integrity and consistency.In terms of log application,the scheme of data retrieval and visualization is designed in detail at first,customized monitoring and statistical schemes are designed from three aspects: network access log,service standard output log and system running environment log.Also,a tracing structure is designed to record the underlying call chain triggered by each user operation,and the entire scene can be restored if the problem occurs,thereby can quickly locate the problem node.In the meantime,for the security problems of the encryption system and the logging system itself,exception recognition alarms,security login structure are designed to ensure the reliability of the entire application environment.Finally,based on the above design,the architecture and application of the log system are separately configured and coded,and tested in a near-real production environment.The test results prove that the logging system has achieved the core requirements and reached the design goals. |