Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A log distribution method and device

A technology for logging and processing servers, which is applied in the Internet field and can solve problems such as the inability to reasonably use log processing servers.

Active Publication Date: 2020-11-06
NEUSOFT CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present application provides a log distribution method and device to solve the technical problem in the prior art that the log distribution cannot make reasonable use of the log processing server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A log distribution method and device
  • A log distribution method and device
  • A log distribution method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the above objects, features and advantages of the present application more obvious and understandable, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0061] In order to facilitate the understanding of the technical solution provided by the present application, the background technology of the present application will be described below first.

[0062] The inventor found through research on traditional log distribution methods that traditional distribution strategies include three strategies. The first is the active-standby strategy. The Agent server first sends logs to a log processing server. When the log processing server is down or its performance is low, it switches to other log processing servers. However, this distribution strategy tends to cause the primary log processing server to be fully loaded, while the standby log proce...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present application discloses a log distribution method and device. Firstly, the writing speed corresponding to each log processing server is obtained, and the probability value of the log processing server is determined according to the writing speed of the log processing server. Then the probability value of the log processing server is determined as the hit interval length of the log processing server. Finally, a random number is generated, the log processing server corresponding to the hit interval to which the random number belongs is determined as the current log processing server, and the log data is sent to the current log processing server. It can be seen that the hit interval corresponding to the log processing server is determined by the writing speed corresponding to the log processing server. Since the writing speed is proportional to the probability value, the greater the writing speed, the greater the probability value, and the hit interval corresponding to the log processing server The larger the value, the higher the probability of the log processing server being selected, achieving the effect of automatic load balancing of each log processing server.

Description

technical field [0001] The present application relates to the technical field of the Internet, and in particular to a log distribution method and device. Background technique [0002] Network devices, service programs, etc. will generate logs during operation. In some scenarios, logs need to be collected and processed to realize log analysis. [0003] In the prior art, an agent server is usually used to collect logs, and then the agent server sends them to a log processing server to realize log cleaning, matching, extraction, and other processing. Because the log processing process is relatively complicated, it is usually necessary to distribute the logs collected by an Agent server to multiple log processing servers for processing, so as to fully utilize the performance of the Agent server and log processing servers. [0004] Existing log distribution can adopt a pre-established distribution strategy, such as assigning log processing servers according to log sources. Howe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/18H04L29/08
CPCH04L67/1001H04L67/56
Inventor 吴擒龙
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products