CN107229555A - Mark generating method and device - Google Patents

Mark generating method and device Download PDF

Info

Publication number
CN107229555A
CN107229555A CN201710309238.6A CN201710309238A CN107229555A CN 107229555 A CN107229555 A CN 107229555A CN 201710309238 A CN201710309238 A CN 201710309238A CN 107229555 A CN107229555 A CN 107229555A
Authority
CN
China
Prior art keywords
business
identification number
increasing row
data processing
processing request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710309238.6A
Other languages
Chinese (zh)
Other versions
CN107229555B (en
Inventor
石兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201710309238.6A priority Critical patent/CN107229555B/en
Publication of CN107229555A publication Critical patent/CN107229555A/en
Application granted granted Critical
Publication of CN107229555B publication Critical patent/CN107229555B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/835Timestamp

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides a kind of mark generating method and device, and this method includes:In response to the startup of business process, corresponding with business process service identification number and process identification number are obtained, the service identification difference of different business, the process identification number of the different processes of same business is different;Data processing request is received in response to business process, it is determined that current timestamp;Binding time stamp determines corresponding with data processing request from increasing row number;According to timestamp, service identification number, process identification number and from increasing row number, generate daily record corresponding with data processing request and identify.Due to including service identification and process identification (PID) in daily record mark, unique mark can be carried out to the daily record that a large number of services process in server is produced, when needing to investigate the operation exception problem of certain business, the corresponding daily record of the business can be quickly positioned, the log analysis efficiency for the business is improved.

Description

Mark generating method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of mark generating method and device.
Background technology
In internet industry, server operationally can all produce the daily record of a rule.Daily record is to look at server fortune Main Basiss when row state and investigation server operation irregularity.
When generating every daily record, it is necessary to assign a unique mark to every daily record.Conventional unique mark is produced Scheme is unique to generate based on general unique identifier (Universally Unique Identifier, abbreviation UUID) Mark.But when being identified using UUID as daily record, on the one hand, because UUID need 128 binary bits, digit compared with It is long, it is unfavorable for the storage and transmission of daily record;On the other hand, the purpose analyzed daily record mainly includes each in monitoring server The operation conditions of business, to find in time and to handle abnormal conditions, and because UUID is normally based on random number generation, When analyzing a large amount of daily records, generally require to have investigated whole daily records one by one, can just found the abnormal situation so that log analysis It is less efficient.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of mark generating method and device, and service identification is included to generate Daily record mark so that can conveniently identify the business corresponding to daily record when to log analysis, improve for certain business The log analysis efficiency of operation conditions.
In a first aspect, the embodiment of the present invention provides a kind of mark generating method, including:
In response to the startup of business process, corresponding with the business process service identification number and process identification number are obtained, The service identification difference of different business, the process identification number of the different processes of same business is different;
Data processing request is received in response to the business process, it is determined that current timestamp;
It is determined that corresponding with the data processing request from increasing row number;
According to the timestamp, the service identification number, the process identification number and described from increasing row number, generation and institute State the corresponding daily record mark of data processing request.
Alternatively, acquisition service identification number corresponding with the business process, including:
According to the corresponding Business Name of the business process, preset configuration file is inquired about, to obtain and the Business Name The corresponding service identification number.
Alternatively, acquisition process identification number corresponding with the business process, including:
In default process identification number span, process identification number to be obtained is selected;
Inquire about the process identification number to be obtained whether be present in preset numbers service in it is right with the service identification number Answer with process identification number set;
If being not present in described with process identification number set, it is determined that the process identification number to be obtained be with it is described The corresponding process identification number of business process.
Alternatively, methods described also includes:
In response to exiting for the business process, delete described in in process identification number set with the business process pair The process identification number answered.
Alternatively, the determination is corresponding with the data processing request from increasing row number, including:
If the timestamp previous timestamp corresponding from the business process is different, it is determined that the data processing request Corresponding is to initiate from increasing row number from increasing row number;
If the timestamp previous timestamp corresponding with the business process is identical, corresponding to the business process It is previous to carry out add one operation from increasing row number;
According to determining that the data processing request is corresponding from increasing row number from increasing row number after the add one operation.
Alternatively, it is described according to after the add one operation from increasing row number determine the data processing request it is corresponding from Increasing row number, including:
If being not more than from increasing row number after the add one operation is default from the increasing row number value upper limit, it is determined that the number According to processing request it is corresponding from increasing row number be the add one operation after from increasing row number;
If being more than from increasing row number after the add one operation is default from the increasing row number value upper limit, lower a period of time is deferred to Between stab and determine that the data processing request is corresponding from increasing row number again.
Second aspect, the embodiment of the present invention provides a kind of identification generation apparatus, including:
Acquisition module, for the startup in response to business process, obtains service identification number corresponding with the business process And process identification number, the service identification difference of different business, the process identification number difference of the different processes of same business;
Timestamp determining module, for receiving data processing request in response to the business process, it is determined that when current Between stab;
Sequence number determining module, it is corresponding with the data processing request from increasing row number for determining;
Generation module, for according to the timestamp, the service identification number, the process identification number and described from increasing Row number, generates daily record mark corresponding with the data processing request.
In a possible design, the structure of above-mentioned identification generation apparatus includes processor and memory, described to deposit Reservoir is used to store the program for supporting identification generation apparatus to perform mark generating method in above-mentioned first aspect, the processor quilt It is configured for performing the program stored in the memory.The identification generation apparatus can also include communication interface, be used for Identification generation apparatus and other equipment or communication.
The third aspect, the embodiments of the invention provide a kind of computer-readable storage medium, for store identification generating means institute Computer software instructions, it, which is included, is used to perform the program in above-mentioned first aspect involved by mark generating method.
Mark generating method and device provided in an embodiment of the present invention, when some business process in server is activated When, the business process obtains corresponding service identification number and process identification number.In this programme, different business in server Service identification difference, the process identification number of the different processes of same business is different, so as to the difference in Differentiated Services device Different processes under business and same business.When above-mentioned business process receives data processing request, the business process is true Timestamp before settled, and combination timestamp determination is corresponding with the data processing request from increasing row number, finally, according to upper Timestamp, service identification number, process identification number and from increasing row number are stated, daily record mark corresponding with the data processing request is generated Know, the daily record is identified for the corresponding daily record of the unique mark data processing request.Due to including business in daily record mark Mark and process identification (PID), can in server a large number of services process produce daily record carry out unique mark, when need investigate certain During the operation exception problem of business, the corresponding daily record of the business can be quickly positioned, the log analysis for the business is improved Efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of composition schematic diagram of daily record mark provided in an embodiment of the present invention;
Fig. 2 is the flow chart of mark generating method embodiment one provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart for obtaining process identification number provided in an embodiment of the present invention;
Fig. 4 is the flow chart of mark generating method embodiment two provided in an embodiment of the present invention;
Fig. 5 is the structural representation of identification generation apparatus embodiment one provided in an embodiment of the present invention;
Fig. 6 is the structural representation of identification generation apparatus embodiment two provided in an embodiment of the present invention;
Fig. 7 is the structural representation of electronic equipment corresponding with identification generation apparatus provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not Exclude and include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but These XXX should not necessarily be limited by these terms.These terms are only used for distinguishing XXX.For example, not departing from model of the embodiment of the present invention In the case of enclosing, the first XXX can also be referred to as the 2nd XXX, similarly, and the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of key elements not only include those key elements, but also including without clear and definite Other key elements listed, or also include for this commodity or the intrinsic key element of system.In the feelings of not more limitations Under condition, the key element limited by sentence "including a ...", it is not excluded that in the commodity or system including the key element also There is other identical element.
Further what deserves to be explained is, the order in various embodiments of the present invention between each step is adjustable, and is not It must be performed according to the order of following citing.
Mark generating method provided in an embodiment of the present invention can be used for generation daily record mark, but be not restricted to that daily record mark Know.Before mark generating method provided in an embodiment of the present invention is specifically introduced, mark provided in an embodiment of the present invention is first introduced Structure is constituted, as shown in Figure 1.
The mark is made up of 64 binary bits, wherein, include successively from highest order to lowest order:1 retains ratio Special position, 31 timestamp bits, M service identification bit, N number of process identification number bit, and K are individual from increasing sequence Number bit, M+N+K=32.In shown in Fig. 1, M=6, N=14, K=12.But in practical application, M, N, K value can be with Change.
Specifically, reserved bit perseverance is 0, is always positive number with the mark for ensureing generation.Timestamp bit is 31, can be with Ensure that timestamp can be as accurate as in second, the i.e. embodiment of the present invention, the timestamp of second level is used, because in actual conditions Under, the daily record number produced in mark number i.e. one second that single business process is produced in one second seldom can be more than 2KIt is individual, such as 212= 4096.
The number of service identification bit and process identification (PID) bit can be determined according to the actual disposition situation of server, For example respectively distribute 6,14 give service identification and process identification (PID).The service identification of 6 can represent 26=64 business, 14 The process identification (PID) of position can represent 214=16384 processes.In general, the business of a server is not over 64 Individual, the number of processes under same business is not more than 10,000, therefore this allocative decision can meet actual demand.
Mark generating method provided in an embodiment of the present invention is introduced with reference to following embodiment of the method.Fig. 2 is this hair The flow chart for the mark generating method embodiment one that bright embodiment is provided, the mark generating method that the present embodiment is provided can be by One identification generation apparatus is performed, and the identification generation apparatus can be implemented as software, or is embodied as the combination of software and hardware, The identification generation apparatus can be integrally disposed in an electronic equipment, such as in the server in following examples as an example. More specifically, the identification generation apparatus can be arranged in the work-based logic of each business process of the electronic equipment.Such as Fig. 1 institutes Show, this method comprises the following steps:
201st, in response to the startup of business process, corresponding with business process service identification number and process identification number are obtained.
In general, often comprising multiple business or service is referred to as in server, can be with each business Support substantial amounts of process.
For service identification number, the Business Name included in server can be directed in advance, is each Business Name Corresponding service identification number is distributed, the service identification number is such as 6 bits, the service identification difference of different business. After corresponding service identification number is provided with for each business, it is alternatively possible to by each Business Name and service identification number In certain configuration file of corresponding relation write service device.So as to certain under some business process in server is certain business When individual process is activated, the business process can therefrom be obtained according to its corresponding Business Name by inquiring about the configuration file Corresponding service identification number, generation is identified for follow-up daily record.
For process identification number, the process identification number of the different processes under same business is different, still, different business Process between there may be identical process identification number because the process of different business can be subject to area by service identification number Point.
Alternatively, for current business process, the acquisition of its corresponding process identification number can pass through such as lower section Formula is obtained:One can be set under each business dedicated for entering for each business process distribution process identification number under the business Journey, for convenience of description, referred to as special processing.So as to when the current business process starts, be sent out to corresponding special processing Notification message is sent, the special processing is that the business process distributes process identification number.The special processing is in order to which ensure will not be to same The process identification number that different business course allocation under business is repeated, the distribution for process identification number can be carried out so:It is false If the digit of process identification number is 14, then the number for illustrating available process identification number under same business is 214=16384, Span is [0,16383], and the special processing can start anew gradually to use each process identification number.
202nd, data processing request is received in response to business process, it is determined that current timestamp.
When business process receives certain data processing request, such as receive asking for some page of the access of user's triggering When asking, the business process have received at the data at what time firstly the need of current timestamp is determined for characterizing Reason request.
The timestamp can be relative time stamp, i.e. current time is for some reference time, apart from the reference Time is how many second.It is assumed to be T seconds, by carrying out binary conversion to T, the timestamp corresponding to above-mentioned mark structure can be obtained Bit.
203rd, determine corresponding with data processing request from increasing row number.
This is used to distinguish the different pieces of information processing request received under same business process from increasing row number.
Above-mentioned current business process once receives used from increasing during certain data processing request before can recording Sequence number so that, in one case, the business process when receiving current data processing request, can it is previous from On the basis of increasing row number, add one operation obtains corresponding from increasing row number with the current data processing request.
This is being obtained from after increasing row number, this from increasing row number binary number can be converted to, with corresponding to above-mentioned mark Know in structure from increasing row number bit.
204th, according to timestamp, service identification number, process identification number and from increasing row number, generation and data processing request pair The daily record mark answered.
Above-mentioned timestamp, service identification number, process identification number and from after increasing row number are being obtained, business process can give birth to Into corresponding daily record mark, for one daily record of unique mark.
Specifically, generating process is in simple terms:First by timestamp, service identification number, process identification number and from increasing Row number is expressed as 64 bits.And then, for corresponding bit location in each comfortable mark structure, respectively to this Several 64 bits carry out the shift left operation of not isotopic number.Such as by taking timestamp as an example, it is assumed that what timestamp was represented is 16 Second, then binary number 10000 is converted to by 16,59 0 are supplemented before 10000 and is changed into 64 bits.Due in mark What timestamp was occupied in knowledge structure is 2-32 this 31 bits, therefore, it can move to left 32 to 64 bit. Finally, each 64 bit after moving to left enters line position or computing, you can obtain daily record mark.
In the present embodiment, when some business process in server is activated, the business process obtains corresponding Service identification number and process identification number.In this programme, the service identification difference of different business in server, same business is not It is different with the process identification number of process, enter so as to the difference under the different business in Differentiated Services device and same business Journey.When above-mentioned business process receives data processing request, the business process determines current timestamp, and combines the time Stamp determination is corresponding with the data processing request from increasing row number, finally, according to above-mentioned timestamp, service identification number, process mark Know number and from increasing row number, generate daily record mark corresponding with the data processing request, the daily record identify for unique mark this The corresponding daily record of data processing request., can be to server due to including service identification and process identification (PID) in daily record mark The daily record that middle a large number of services process is produced carries out unique mark, can be fast when needing to investigate the operation exception problem of certain business Speed positions the corresponding daily record of the business, improves the log analysis efficiency for the business.
The embodiment of the present invention additionally provides another mode for alternatively obtaining process identification number, as shown in figure 3, can wrap Include following steps:
301st, in default process identification number span, process identification number to be obtained is selected.
302nd, whether inquiry process identification number to be obtained is present in corresponding with service identification number in preset numbers service With in process identification number set, if being not present in, step 303 is performed, otherwise, step 301 is continued executing with.
303rd, it is process identification number corresponding with business process to determine process identification number to be obtained.
304th, exiting in response to business process, deletes with process corresponding with business process in process identification number set Identification number.
In the present embodiment, a numbering service is pre-set in the server, and the numbering services same in server for ensureing The process identification number of different processes under one business is different.It can create corresponding with different business in numbering service Process identification number set is used.Corresponding each business can receive each business with the creation time of process identification number set Respectively during the inquiry request of corresponding first business process.When initial, this is combined into sky with process identification number collection.
The main process of scheme that the present embodiment is provided is:Business process can be by the span of process identification number Individual selection process identification number.And then, using a process identification number currently selecting as process identification number to be obtained, to numbering Service send inquiry request, in being serviced with number of queries it is corresponding with the business process with process identification number set whether Through there is the process identification number to be obtained currently selected.Wherein, it can have been obtained in the inquiry request including the business process The service identification number obtained and the process identification number to be obtained currently selected, for enabling call number service to know the business process Correspond to that service identification number corresponding with process identification number set, and the process that the business process is gone for What identification number is.
Numbering service accordingly with process identification number set if it find that having existed for the process mark to be obtained Knowledge number, then illustrate that other business process under same business are used for the process identification number to be obtained, to the business process Feeding back unsuccessful is notified, the process identification number to be obtained is used to inform that the business process is unavailable.And then, the business process is tasted again Next process identification number is tried, so repeatedly, untill obtaining available process identification number.
On the contrary, assuming that process identification number to be obtained that the current business process is selected is not present in above-mentioned having used process In identification number set, illustrate that other business process do not use the process identification number to be obtained currently under same business, then compile Number service on the one hand to the business process feed back success notification, to inform that the business process can use the process identification (PID) to be obtained Number, on the other hand, at this with the process identification number to be obtained is added in process identification number set, to avoid subsequently by same industry Other business process under business are reused.
To sum up, based on numbering service, unified process identification (PID) can be carried out to the business process under each business in server Number allocation manager, can have different process identification numbers with the different business process ensured under same business.
In addition, when current business process is exited, the business process can send removal request to numbering service, and this is deleted Except its corresponding service identification number and process identification number can be included in request.So as to which numbering service is right in the service identification number Answer with deleting the process identification number in process identification number set, so that other business process under follow-up same business can be with The process identification number is reused, the utilization rate of process identification number is improved.
Fig. 4 is the flow chart of mark generating method embodiment two provided in an embodiment of the present invention, as shown in figure 4, can wrap Include following steps:
401st, in response to the startup of business process, corresponding with business process service identification number and process identification number are obtained.
402nd, data processing request is received in response to business process, it is determined that current timestamp.
The process that implements of above-mentioned steps may refer to explanation in previous embodiment, will not be repeated here.
The present embodiment combination steps describes certain current business process in detail when receiving certain data processing request, The acquisition process from increasing row number corresponding with the data processing request.
403rd, judge whether current timestamp previous timestamp corresponding with business process is identical, if it is different, then performing Step 404, otherwise, step 405 is performed.
404th, determine data processing request it is corresponding from increasing row number to initiate from increasing row number.
405th, it is corresponding to business process previous from increasing row number progress add one operation.
Above-mentioned previous timestamp and the previous last data processing request pair received from increasing row number and the business process Should.The business process can record the previous timestamp and previous from increasing row number.
If the timestamp that the business process is obtained when receiving current data processing request and previous timestamp phase Together, because the timestamp is the timestamp of second level, illustrate within the same second, the business process successively have received different data Processing request, now, in order to distinguish different data processing requests, business process can be on the basis of the previous row number from increasing Add one operation is carried out, obtains corresponding with current data processing request from increasing row number.If on the contrary, current timestamp Different from previous timestamp, it is first data processing received in new one second to illustrate current data processing request Request, now, the data processing request it is corresponding from increasing row number to initiate from increasing row number, i.e., from increasing row number span In first, such as when the span is [0,4095], this initiates from increasing row number for 0.
In addition, it is above-mentioned obtained after to the previous row number add one operation from increasing from increasing row number, generally, be Current data processing request is corresponding from increasing row number, and still, there is also the industry in a kind of special circumstances, i.e. current time stamp The data processing request quantity that business process is received is very more, has exceeded the span from increasing row number, such as more than 4096, then now, it can not be simply considered that after above-mentioned add one operation be that current data processing is asked from increasing row number It is corresponding from increasing row number.
At this point it is possible to reference to following steps, according to determining that current data processing please from increasing row number after add one operation Ask corresponding from increasing row number:
406th, being preset from whether increasing row number is more than from the increasing row number value upper limit after add one operation is judged, if less In, then step 407 is performed, otherwise, execution step 408.
407th, determine data processing request it is corresponding from increasing row number be the previous row number add one operation from increasing after from increase Sequence number.
408th, it is deferred to future time stamp and determines that data processing request is corresponding from increasing row number again.
Assuming that it is above-mentioned from the increasing row number value upper limit be 4095, then, if being less than from increasing row number after add one operation Or equal to 4095, then now can determine that current data processing request is corresponding and add from increasing row number to be previous from increasing row number After one computing from increasing row number., whereas if more than 4095, then illustrating that current time stamp when in previous second, has not had Available free to distribute to the business process from increasing row number and use, now, the business process can not be currently received at once Data processing request set corresponding from increasing row number, and need to be deferred to next timestamp and handled again.Namely Say, the business process etc. is that currently received data processing request sets and initiated from until after the arrival of next timestamp Increasing row number.
If it is, of course, understood that in current time stamp, the business process is receiving current data processing Request, and being alreadyd exceed from increasing row number after 4095 after the previous row number add one operation from increasing is found, the business process is again Next data processing request is have received, then the corresponding determination from increasing row number of next data processing request also can be by It is deferred to future time stamp progress.Assuming that the data processing request being currently received it is corresponding from increasing row number in next time Stamp be confirmed as initiating from increasing row number, then next data processing request it is corresponding from increasing row number in next time Stamp be confirmed as initiating from after increasing row number plus one from increasing row number.
409th, according to timestamp, service identification number, process identification number and from increasing row number, generation and data processing request pair The daily record mark answered.
Pass through the present embodiment, it is ensured that each data processing request point received for business process in same timestamp With different from increasing row number.
Due to including service identification and process identification (PID) in daily record mark, a large number of services process in server can be produced Raw daily record carries out unique mark, when needing to investigate the operation exception problem of certain business, can quickly position business correspondence Daily record, improve the log analysis efficiency for the business.
The identification generation apparatus of one or more embodiments of the invention described in detail below.Those skilled in the art can With understand, the step of commercially available nextport hardware component NextPort can be used to be instructed by this programme for these identification generation apparatus configured come Constitute.
Fig. 5 is the structural representation of identification generation apparatus embodiment one provided in an embodiment of the present invention, as shown in figure 5, should Device includes:Acquisition module 11, timestamp determining module 12, sequence number determining module 13, generation module 14.
Acquisition module 11, for the startup in response to business process, obtains service identification corresponding with the business process Number and process identification number, the service identification difference of different business, the process identification number of the different processes of same business is different.
Timestamp determining module 12, for receiving data processing request in response to the business process, it is determined that current Timestamp.
Sequence number determining module 13, it is corresponding with the data processing request from increasing row number for determining.
Generation module 14, for according to the timestamp, the service identification number, the process identification number and the increasing certainly Sequence number, generates daily record mark corresponding with the data processing request.
Alternatively, the daily record mark is made up of 64 binary bits, wherein, wrapped successively from highest order to lowest order Include:1 reservation bit position, 31 timestamp bits, M service identification bit, N number of process identification number bit, with And K is individual from increasing row number bit, M+N+K=32.
Fig. 5 shown devices can perform the method for embodiment illustrated in fig. 1, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 1.In implementation procedure and the technique effect embodiment shown in Figure 1 of the technical scheme Description, will not be repeated here.
Fig. 6 is the structural representation of identification generation apparatus embodiment two provided in an embodiment of the present invention, as shown in figure 5, On the basis of embodiment illustrated in fig. 5, alternatively, the acquisition module 11 includes:Acquiring unit 111, selecting unit 112, cargo tracer Member 113, determining unit 114, deletion unit 115.
Acquiring unit 111, for according to the corresponding Business Name of the business process, preset configuration file being inquired about, to obtain Obtain the service identification number corresponding with the Business Name.
Selecting unit 112, in default process identification number span, selecting process identification number to be obtained.
Query unit 113, for inquire about the process identification number to be obtained whether be present in preset numbers service in The service identification number is corresponding with process identification number set.
Determining unit 114, if described with process identification number set for being not present in, it is determined that it is described it is to be obtained enter Journey identification number is process identification number corresponding with the business process.
Delete unit 115, for exiting in response to the business process, delete described in in process identification number set Process identification number corresponding with the business process.
Alternatively, the sequence number determining module 13 includes:First ray determining unit 131, the second sequence number are determined Unit 132.
First ray determining unit 131, if for the timestamp previous timestamp corresponding with the business process It is different, it is determined that the data processing request it is corresponding from increasing row number to initiate from increasing row number.
Second sequence number determining unit 132, if for the timestamp previous timestamp corresponding with the business process It is identical, then it is corresponding to the business process previous from increasing row number progress add one operation;According to after the add one operation from Increasing row number determines that the data processing request is corresponding from increasing row number.
Specifically, second sequence number determining unit 132 specifically for:
If being not more than from increasing row number after the add one operation is default from the increasing row number value upper limit, it is determined that the number According to processing request it is corresponding from increasing row number be the add one operation after from increasing row number;
If being more than from increasing row number after the add one operation is default from the increasing row number value upper limit, lower a period of time is deferred to Between stab and determine that the data processing request is corresponding from increasing row number again.
Fig. 6 shown devices can perform the method for Fig. 3-embodiment illustrated in fig. 4, the part that the present embodiment is not described in detail, Refer to the related description to Fig. 3-embodiment illustrated in fig. 4.The implementation procedure and technique effect of the technical scheme are referring to Fig. 3-Fig. 4 Description in illustrated embodiment, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
The built-in function and structure of identification generation apparatus are the foregoing described, in a possible design, mark generation The structure of device can realize that as an electronic equipment electronic equipment is such as server, as shown in fig. 7, the electronic equipment can be with Including:Processor 21 and memory 22.Wherein, the memory 22, which is used to store, supports identification generation apparatus is performed any of the above-described The program of the mark generating method provided in embodiment, the processor 31 is configurable for performing and deposited in the memory 22 The program of storage.
Described program includes one or more computer instruction, wherein, one or more computer instruction is described Processor 21 can realize following steps when performing:
In response to the startup of business process, corresponding with the business process service identification number and process identification number are obtained, The service identification difference of different business, the process identification number of the different processes of same business is different;Enter in response to the business Journey receives data processing request, it is determined that current timestamp;It is determined that corresponding with the data processing request from increasing row number; According to the timestamp, the service identification number, the process identification number and described from increasing row number, generation with the data The corresponding daily record mark of reason request.
Alternatively, the processor 21 is additionally operable to perform all or part of step in aforementioned approaches method step.
Wherein, in the structure of the identification generation apparatus can also include communication interface 23, for identification generation apparatus with Other equipment or communication.
In addition, the embodiments of the invention provide a kind of computer-readable storage medium, for used in store identification generating means Computer software instructions, it, which is included, is used to perform the program in above-mentioned each method embodiment involved by mark generating method.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of general hardware platform necessary to add, naturally it is also possible to come real by way of hardware and software is combined It is existing.Understood based on such, the part that above-mentioned technical proposal substantially contributes to prior art in other words can be with calculating The form of machine product is embodied, and the present invention can be used in one or more meters for wherein including computer usable program code The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.
The invention discloses A1, a kind of mark generating method, including:
In response to the startup of business process, corresponding with the business process service identification number and process identification number are obtained, The service identification difference of different business, the process identification number of the different processes of same business is different;
Data processing request is received in response to the business process, it is determined that current timestamp;
It is determined that corresponding with the data processing request from increasing row number;
According to the timestamp, the service identification number, the process identification number and described from increasing row number, generation and institute State the corresponding daily record mark of data processing request.
A2, the method according to A1, acquisition service identification number corresponding with the business process, including:
According to the corresponding Business Name of the business process, preset configuration file is inquired about, to obtain and the Business Name The corresponding service identification number.
A3, the method according to A1, acquisition process identification number corresponding with the business process, including:
In default process identification number span, process identification number to be obtained is selected;
Inquire about the process identification number to be obtained whether be present in preset numbers service in it is right with the service identification number Answer with process identification number set;
If being not present in described with process identification number set, it is determined that the process identification number to be obtained be with it is described The corresponding process identification number of business process.
A4, the method according to A3, methods described also include:
In response to exiting for the business process, delete described in in process identification number set with the business process pair The process identification number answered.
A5, the method according to A1, the determination are corresponding with the data processing request from increasing row number, including:
If the timestamp previous timestamp corresponding from the business process is different, it is determined that the data processing request Corresponding is to initiate from increasing row number from increasing row number;
If the timestamp previous timestamp corresponding with the business process is identical, corresponding to the business process It is previous to carry out add one operation from increasing row number;
According to determining that the data processing request is corresponding from increasing row number from increasing row number after the add one operation.
A6, the method according to A5, it is described according to being determined after the add one operation from increasing row number at the data Reason request is corresponding from increasing row number, including:
If being not more than from increasing row number after the add one operation is default from the increasing row number value upper limit, it is determined that the number According to processing request it is corresponding from increasing row number be the add one operation after from increasing row number;
If being more than from increasing row number after the add one operation is default from the increasing row number value upper limit, lower a period of time is deferred to Between stab and determine that the data processing request is corresponding from increasing row number again.
A7, the method according to any one of A1 to A6, the daily record mark are made up of 64 binary bits, its In, include successively from highest order to lowest order:1 reservation bit position, 31 timestamp bits, M service identification bit Position, N number of process identification number bit, and K are individual from increasing row number bit, M+N+K=32.
Invention additionally discloses B8, a kind of identification generation apparatus, including:
Acquisition module, for the startup in response to business process, obtains service identification number corresponding with the business process And process identification number, the service identification difference of different business, the process identification number difference of the different processes of same business;
Timestamp determining module, for receiving data processing request in response to the business process, it is determined that when current Between stab;
Sequence number determining module, it is corresponding with the data processing request from increasing row number for determining;
Generation module, for according to the timestamp, the service identification number, the process identification number and described from increasing Row number, generates daily record mark corresponding with the data processing request.
B9, the device according to B8, the acquisition module include:
Acquiring unit, for according to the corresponding Business Name of the business process, inquiring about preset configuration file, with obtain with The corresponding service identification number of the Business Name.
B10, the device according to B8, the acquisition module include:
Selecting unit, in default process identification number span, selecting process identification number to be obtained;
Query unit, for inquire about the process identification number to be obtained whether be present in preset numbers service in it is described Service identification number is corresponding with process identification number set;
Determining unit, if described with process identification number set for being not present in, it is determined that the process to be obtained Identification number is process identification number corresponding with the business process.
B11, the device according to B10, the acquisition module include:
Delete unit, for exiting in response to the business process, delete it is described with process identification number set and The corresponding process identification number of the business process.
B12, the device according to B8, the sequence number determining module include:
First ray determining unit, if for the timestamp previous timestamp corresponding with the business process not Together, it is determined that the data processing request it is corresponding from increasing row number to initiate from increasing row number;
Second sequence number determining unit, if for the timestamp previous timestamp phase corresponding with the business process Together, then it is corresponding to the business process previous from increasing row number progress add one operation;According to increasing certainly after the add one operation Sequence number determines that the data processing request is corresponding from increasing row number.
B13, the device according to B12, second sequence number determining unit specifically for:
If being not more than from increasing row number after the add one operation is default from the increasing row number value upper limit, it is determined that the number According to processing request it is corresponding from increasing row number be the add one operation after from increasing row number;
If being more than from increasing row number after the add one operation is default from the increasing row number value upper limit, lower a period of time is deferred to Between stab and determine that the data processing request is corresponding from increasing row number again.
B14, the device according to any one of B8 to B13, the daily record mark are made up of 64 binary bits, Wherein, include successively from highest order to lowest order:1 reservation bit position, 31 timestamp bits, M service identification number ratio Special position, N number of process identification number bit, and K are individual from increasing row number bit, M+N+K=32.
The invention also discloses C15, a kind of electronic equipment, including memory and processor;Wherein,
The memory is used to store one or more computer instruction, wherein, one or more computer instruction By mark generating method of the realization as any one of A1 to A7 during the computing device.
Invention additionally discloses D16, a kind of computer-readable recording medium for the computer program that is stored with, the computer journey Sequence makes computer realize the mark generating method as any one of A1 to A7 when performing.

Claims (10)

1. a kind of mark generating method, it is characterised in that including:
In response to the startup of business process, corresponding with the business process service identification number and process identification number are obtained, it is different The service identification difference of business, the process identification number of the different processes of same business is different;
Data processing request is received in response to the business process, it is determined that current timestamp;
It is determined that corresponding with the data processing request from increasing row number;
According to the timestamp, the service identification number, the process identification number and described from increasing row number, generation and the number Corresponding daily record mark is asked according to processing.
2. according to the method described in claim 1, it is characterised in that described to obtain service identification corresponding with the business process Number, including:
According to the corresponding Business Name of the business process, preset configuration file is inquired about, it is corresponding with the Business Name to obtain The service identification number.
3. according to the method described in claim 1, it is characterised in that described to obtain process identification (PID) corresponding with the business process Number, including:
In default process identification number span, process identification number to be obtained is selected;
Inquire about the process identification number to be obtained whether be present in preset numbers service in it is corresponding with the service identification number With in process identification number set;
If being not present in described with process identification number set, it is determined that the process identification number to be obtained is and the business The corresponding process identification number of process.
4. method according to claim 3, it is characterised in that methods described also includes:
In response to exiting for the business process, delete described in corresponding with the business process in process identification number set Process identification number.
5. according to the method described in claim 1, it is characterised in that described to determine increasing certainly corresponding with the data processing request Sequence number, including:
If the timestamp previous timestamp corresponding from the business process is different, it is determined that the data processing request correspondence From increasing row number to initiate from increasing row number;
It is corresponding to the business process previous if the timestamp previous timestamp corresponding with the business process is identical Add one operation is carried out from increasing row number;
According to determining that the data processing request is corresponding from increasing row number from increasing row number after the add one operation.
6. method according to claim 5, it is characterised in that described according to true from increasing row number after the add one operation The fixed data processing request is corresponding from increasing row number, including:
If being not more than from increasing row number after the add one operation is default from the increasing row number value upper limit, it is determined that at the data Reason request it is corresponding from increasing row number be the add one operation after from increasing row number;
If being more than from increasing row number after the add one operation is default from the increasing row number value upper limit, future time stamp is deferred to Determine that the data processing request is corresponding from increasing row number again.
7. method according to any one of claim 1 to 6, it is characterised in that the daily record mark is by 64 binary systems Bit is constituted, wherein, include successively from highest order to lowest order:1 reservation bit position, 31 timestamp bits, M industry Business identification number bit, N number of process identification number bit, and K are individual from increasing row number bit, M+N+K=32.
8. a kind of identification generation apparatus, it is characterised in that including:
Acquisition module, for the startup in response to business process, obtains service identification number corresponding with the business process and enters Journey identification number, the service identification difference of different business, the process identification number of the different processes of same business is different;
Timestamp determining module, for receiving data processing request in response to the business process, it is determined that current timestamp;
Sequence number determining module, it is corresponding with the data processing request from increasing row number for determining;
Generation module, for according to the timestamp, the service identification number, the process identification number and described from increasing sequence Number, generate daily record mark corresponding with the data processing request.
9. device according to claim 8, it is characterised in that the acquisition module includes:
Acquiring unit, for according to the corresponding Business Name of the business process, inquiring about preset configuration file, with obtain with it is described The corresponding service identification number of Business Name.
10. device according to claim 8, it is characterised in that the acquisition module includes:
Selecting unit, in default process identification number span, selecting process identification number to be obtained;
Query unit, for inquiring about whether the process identification number to be obtained is present in preset numbers service and the business Identification number is corresponding with process identification number set;
Determining unit, if described with process identification number set for being not present in, it is determined that the process identification (PID) to be obtained Number be process identification number corresponding with the business process.
CN201710309238.6A 2017-05-04 2017-05-04 Identification generation method and device Expired - Fee Related CN107229555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710309238.6A CN107229555B (en) 2017-05-04 2017-05-04 Identification generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710309238.6A CN107229555B (en) 2017-05-04 2017-05-04 Identification generation method and device

Publications (2)

Publication Number Publication Date
CN107229555A true CN107229555A (en) 2017-10-03
CN107229555B CN107229555B (en) 2021-07-20

Family

ID=59933211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710309238.6A Expired - Fee Related CN107229555B (en) 2017-05-04 2017-05-04 Identification generation method and device

Country Status (1)

Country Link
CN (1) CN107229555B (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704373A (en) * 2017-10-31 2018-02-16 北京奇艺世纪科技有限公司 A kind of data processing method and device
CN108304310A (en) * 2018-02-28 2018-07-20 厦门美图移动科技有限公司 A kind of log analysis method and computing device
CN109063088A (en) * 2018-07-26 2018-12-21 阿里巴巴集团控股有限公司 The generation method and device of sequence number
CN109474698A (en) * 2018-12-14 2019-03-15 平安城市建设科技(深圳)有限公司 Access request labeling method, device, equipment and storage medium
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109597806A (en) * 2018-09-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of generation method and system of sequence number
CN109597853A (en) * 2018-10-22 2019-04-09 平安科技(深圳)有限公司 Business scenario element sequence generation method, device, medium and computer equipment
CN109697133A (en) * 2018-12-28 2019-04-30 广州华多网络科技有限公司 ID generation method, apparatus and system
CN109948012A (en) * 2019-03-14 2019-06-28 北京达佳互联信息技术有限公司 Generation method, device and the storage medium of sequence number
CN109951541A (en) * 2019-03-11 2019-06-28 中国银联股份有限公司 A kind of serial number generation method and server
WO2019134226A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Log collection method, device, terminal apparatus, and storage medium
CN110019069A (en) * 2017-10-30 2019-07-16 阿里巴巴集团控股有限公司 A kind of log processing method, device and equipment
CN110019239A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Storage method, device, electronic equipment and the storage medium of reported data
CN110392100A (en) * 2019-07-12 2019-10-29 辽宁途隆科技有限公司 Processing method and processing device, storage medium, the computer equipment of high concurrent event
CN110442498A (en) * 2019-06-28 2019-11-12 平安科技(深圳)有限公司 Localization method, device, storage medium and the computer equipment of abnormal data node
CN110569274A (en) * 2019-08-02 2019-12-13 福建星网智慧软件有限公司 Distributed real-time log analysis method and computer-readable storage medium
CN110580305A (en) * 2018-05-22 2019-12-17 北京京东尚科信息技术有限公司 Method, apparatus, system, and medium for generating identifier
CN110598107A (en) * 2019-09-09 2019-12-20 恩亿科(北京)数据科技有限公司 Management method of query system and computer storage medium
CN110928442A (en) * 2019-10-18 2020-03-27 北京字节跳动网络技术有限公司 Electronic whiteboard operation instruction coding method, system, medium and electronic equipment
CN111083228A (en) * 2019-12-24 2020-04-28 腾讯云计算(北京)有限责任公司 Identification number generation method and device and electronic equipment
CN111291424A (en) * 2020-02-19 2020-06-16 望海康信(北京)科技股份公司 Identification number generation method and device, computer equipment and storage medium
CN111353773A (en) * 2020-02-24 2020-06-30 网银在线(北京)科技有限公司 Method and device for processing identifier, storage medium and electronic device
CN112073554A (en) * 2020-09-08 2020-12-11 腾讯科技(深圳)有限公司 Global unique identifier generation method, device and computer readable storage medium
CN112187790A (en) * 2020-09-27 2021-01-05 北京罗克维尔斯科技有限公司 Signal identifier generation method, message transmission method and device
CN112422337A (en) * 2020-11-11 2021-02-26 网宿科技股份有限公司 Method, system and device for generating log identification
CN112434241A (en) * 2019-08-26 2021-03-02 上海哔哩哔哩科技有限公司 Service processing method, computer device and storage medium
CN112711567A (en) * 2021-01-06 2021-04-27 湖南同有飞骥科技有限公司 Session file use space cleaning method and system
CN112860661A (en) * 2021-01-20 2021-05-28 上海悦易网络信息技术有限公司 Method and device for generating data sequence identification
CN113271342A (en) * 2021-04-27 2021-08-17 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
US11194790B1 (en) * 2020-05-21 2021-12-07 Atlassian Pty Ltd. Client write event sequencing system in a federated database platform
CN113778736A (en) * 2021-09-14 2021-12-10 北京房江湖科技有限公司 Method and device for positioning error information
CN114599025A (en) * 2022-03-15 2022-06-07 北京京东拓先科技有限公司 Request sending method, request processing method and device
CN116048928A (en) * 2023-03-27 2023-05-02 新华三技术有限公司 Service monitoring method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055809A1 (en) * 2001-09-18 2003-03-20 Sun Microsystems, Inc. Methods, systems, and articles of manufacture for efficient log record access
US20040230623A1 (en) * 2003-05-14 2004-11-18 International Business Machines Corporation Log grooming in a multi-log environment
CN102769667A (en) * 2012-06-29 2012-11-07 北京奇虎科技有限公司 Method, equipment and system for generating ID
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording
CN104113435A (en) * 2014-07-04 2014-10-22 广州华多网络科技有限公司 Method and device for generating identifier
CN105404953A (en) * 2015-10-23 2016-03-16 努比亚技术有限公司 Identification generation method and apparatus
CN105447023A (en) * 2014-08-25 2016-03-30 阿里巴巴集团控股有限公司 Service identifier generation method and apparatus
CN106572165A (en) * 2016-10-26 2017-04-19 宜人恒业科技发展(北京)有限公司 Distributed global unique ID application method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055809A1 (en) * 2001-09-18 2003-03-20 Sun Microsystems, Inc. Methods, systems, and articles of manufacture for efficient log record access
US20040230623A1 (en) * 2003-05-14 2004-11-18 International Business Machines Corporation Log grooming in a multi-log environment
CN102769667A (en) * 2012-06-29 2012-11-07 北京奇虎科技有限公司 Method, equipment and system for generating ID
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording
CN104113435A (en) * 2014-07-04 2014-10-22 广州华多网络科技有限公司 Method and device for generating identifier
CN105447023A (en) * 2014-08-25 2016-03-30 阿里巴巴集团控股有限公司 Service identifier generation method and apparatus
CN105404953A (en) * 2015-10-23 2016-03-16 努比亚技术有限公司 Identification generation method and apparatus
CN106572165A (en) * 2016-10-26 2017-04-19 宜人恒业科技发展(北京)有限公司 Distributed global unique ID application method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OKIDOGREEN: "Twitter的分布式自增ID算法snowflake (Java版)", 《HTTPS://BLOG.CSDN.NET/Z69183787/ARTICLE/DETAILS/61917947》 *

Cited By (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019069A (en) * 2017-10-30 2019-07-16 阿里巴巴集团控股有限公司 A kind of log processing method, device and equipment
CN107704373B (en) * 2017-10-31 2021-08-27 北京奇艺世纪科技有限公司 Data processing method and device
CN107704373A (en) * 2017-10-31 2018-02-16 北京奇艺世纪科技有限公司 A kind of data processing method and device
CN110019239B (en) * 2017-12-29 2021-06-04 百度在线网络技术(北京)有限公司 Storage method and device of reported data, electronic equipment and storage medium
CN110019239A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Storage method, device, electronic equipment and the storage medium of reported data
WO2019134226A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Log collection method, device, terminal apparatus, and storage medium
CN108304310A (en) * 2018-02-28 2018-07-20 厦门美图移动科技有限公司 A kind of log analysis method and computing device
CN108304310B (en) * 2018-02-28 2021-04-16 厦门美图移动科技有限公司 Log analysis method and computing device
CN110580305B (en) * 2018-05-22 2024-04-16 北京京东尚科信息技术有限公司 Method, apparatus, system and medium for generating identifier
CN110580305A (en) * 2018-05-22 2019-12-17 北京京东尚科信息技术有限公司 Method, apparatus, system, and medium for generating identifier
CN109063088A (en) * 2018-07-26 2018-12-21 阿里巴巴集团控股有限公司 The generation method and device of sequence number
TWI728357B (en) * 2018-07-26 2021-05-21 開曼群島商創新先進技術有限公司 Method and device for generating serial number
CN109597806A (en) * 2018-09-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of generation method and system of sequence number
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109492019B (en) * 2018-10-16 2024-03-08 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109597853B (en) * 2018-10-22 2024-01-23 平安科技(深圳)有限公司 Business scene element serial number generation method, device, medium and computer equipment
CN109597853A (en) * 2018-10-22 2019-04-09 平安科技(深圳)有限公司 Business scenario element sequence generation method, device, medium and computer equipment
CN109474698A (en) * 2018-12-14 2019-03-15 平安城市建设科技(深圳)有限公司 Access request labeling method, device, equipment and storage medium
CN109697133A (en) * 2018-12-28 2019-04-30 广州华多网络科技有限公司 ID generation method, apparatus and system
CN109951541A (en) * 2019-03-11 2019-06-28 中国银联股份有限公司 A kind of serial number generation method and server
CN109948012B (en) * 2019-03-14 2021-11-16 北京达佳互联信息技术有限公司 Serial number generation method and device and storage medium
CN109948012A (en) * 2019-03-14 2019-06-28 北京达佳互联信息技术有限公司 Generation method, device and the storage medium of sequence number
CN110442498A (en) * 2019-06-28 2019-11-12 平安科技(深圳)有限公司 Localization method, device, storage medium and the computer equipment of abnormal data node
CN110392100B (en) * 2019-07-12 2022-03-11 辽宁途隆科技有限公司 Processing method and device for high-concurrency events, storage medium and computer equipment
CN110392100A (en) * 2019-07-12 2019-10-29 辽宁途隆科技有限公司 Processing method and processing device, storage medium, the computer equipment of high concurrent event
CN110569274A (en) * 2019-08-02 2019-12-13 福建星网智慧软件有限公司 Distributed real-time log analysis method and computer-readable storage medium
CN112434241A (en) * 2019-08-26 2021-03-02 上海哔哩哔哩科技有限公司 Service processing method, computer device and storage medium
CN110598107A (en) * 2019-09-09 2019-12-20 恩亿科(北京)数据科技有限公司 Management method of query system and computer storage medium
CN110928442A (en) * 2019-10-18 2020-03-27 北京字节跳动网络技术有限公司 Electronic whiteboard operation instruction coding method, system, medium and electronic equipment
CN111083228B (en) * 2019-12-24 2023-06-30 腾讯云计算(北京)有限责任公司 Identification number generation method and device and electronic equipment
CN111083228A (en) * 2019-12-24 2020-04-28 腾讯云计算(北京)有限责任公司 Identification number generation method and device and electronic equipment
CN111291424A (en) * 2020-02-19 2020-06-16 望海康信(北京)科技股份公司 Identification number generation method and device, computer equipment and storage medium
CN111353773A (en) * 2020-02-24 2020-06-30 网银在线(北京)科技有限公司 Method and device for processing identifier, storage medium and electronic device
CN111353773B (en) * 2020-02-24 2024-01-16 网银在线(北京)科技有限公司 Identification processing method and device, storage medium and electronic device
US11194790B1 (en) * 2020-05-21 2021-12-07 Atlassian Pty Ltd. Client write event sequencing system in a federated database platform
CN112073554B (en) * 2020-09-08 2023-04-18 腾讯科技(深圳)有限公司 Global unique identifier generation method, device and computer readable storage medium
CN112073554A (en) * 2020-09-08 2020-12-11 腾讯科技(深圳)有限公司 Global unique identifier generation method, device and computer readable storage medium
CN112187790B (en) * 2020-09-27 2023-04-28 北京罗克维尔斯科技有限公司 Signal identification generation method, message transmission method and device
CN112187790A (en) * 2020-09-27 2021-01-05 北京罗克维尔斯科技有限公司 Signal identifier generation method, message transmission method and device
CN112422337A (en) * 2020-11-11 2021-02-26 网宿科技股份有限公司 Method, system and device for generating log identification
CN112711567A (en) * 2021-01-06 2021-04-27 湖南同有飞骥科技有限公司 Session file use space cleaning method and system
CN112860661A (en) * 2021-01-20 2021-05-28 上海悦易网络信息技术有限公司 Method and device for generating data sequence identification
CN113271342B (en) * 2021-04-27 2023-03-07 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
CN113271342A (en) * 2021-04-27 2021-08-17 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
CN113778736A (en) * 2021-09-14 2021-12-10 北京房江湖科技有限公司 Method and device for positioning error information
CN114599025A (en) * 2022-03-15 2022-06-07 北京京东拓先科技有限公司 Request sending method, request processing method and device
CN116048928A (en) * 2023-03-27 2023-05-02 新华三技术有限公司 Service monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107229555B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN107229555A (en) Mark generating method and device
US10430332B2 (en) System and method for performance tuning of garbage collection algorithms
CN110022337A (en) Resource regulating method, device, equipment and system
CN109274782A (en) A kind of method and device acquiring website data
CN112346829A (en) Method and equipment for task scheduling
CN110377402A (en) Business data processing method, device, storage medium and computer equipment
CN111815454B (en) Data uplink method and device, electronic equipment and storage medium
CN106708608A (en) Distributed lock service method and acquisition method, and corresponding device
CN106844055A (en) A kind of execution method and apparatus of task
CN109033365B (en) Data processing method and related equipment
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN106991314A (en) A kind of date storage method and device
CN110362630A (en) Data managing method, device, equipment and computer readable storage medium
CN110036623B (en) On-demand contact center generation
CN113012336A (en) Queuing reservation method of banking business and device, storage medium and equipment thereof
CN111651522B (en) Data synchronization method and device
US11210290B2 (en) Automated optimization of number-of-frequent-value database statistics
CN106470218A (en) The method and apparatus that under a kind of network platform, resource content reclaims
CN116132448B (en) Data distribution method based on artificial intelligence and related equipment
CN112148202B (en) Training sample reading method and device
CN107402812A (en) Cluster resource dispatching method, device, equipment and storage medium
CN108664322A (en) Data processing method and system
CN111177782A (en) Method and device for extracting distributed data based on big data and storage medium
CN107291777A (en) A kind of method and apparatus of hot spot data identification and processing
CN108023920B (en) Data packet transmission method, equipment and application interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Building N3, Jinyu Zhizao workshop, No. 27, Jiancai Chengzhong Road, Haidian District, Beijing 100096

Applicant after: Beijing Xingxuan Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant before: Beijing Xiaodu Information Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210720

CF01 Termination of patent right due to non-payment of annual fee