CN107229555B - Identification generation method and device - Google Patents

Identification generation method and device Download PDF

Info

Publication number
CN107229555B
CN107229555B CN201710309238.6A CN201710309238A CN107229555B CN 107229555 B CN107229555 B CN 107229555B CN 201710309238 A CN201710309238 A CN 201710309238A CN 107229555 B CN107229555 B CN 107229555B
Authority
CN
China
Prior art keywords
service
self
sequence number
identification number
data processing
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.)
Expired - Fee Related
Application number
CN201710309238.6A
Other languages
Chinese (zh)
Other versions
CN107229555A (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 Xingxuan Technology Co Ltd
Original Assignee
Beijing Xingxuan 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 Xingxuan Technology Co Ltd filed Critical Beijing Xingxuan 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

Images

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 invention provides an identification generation method and device, wherein the method comprises the following steps: responding to the starting of the business process, acquiring a business identification number and a process identification number corresponding to the business process, wherein the business identification numbers of different businesses are different, and the process identification numbers of different processes of the same business are different; determining a current timestamp in response to a data processing request received by a business process; determining a self-increment sequence number corresponding to the data processing request by combining the time stamp; and generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number. Because the log identification comprises the service identification and the process identification, unique identification can be carried out on logs generated by a large number of service processes in the server, when the abnormal operation problem of a certain service needs to be checked, the logs corresponding to the service can be quickly positioned, and the log analysis efficiency aiming at the service is improved.

Description

Identification generation method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for generating an identifier.
Background
In the internet industry, a server generates a single log at runtime. The log is the main basis for checking the running state of the server and troubleshooting the abnormal work of the server.
When each log is generated, a unique identifier needs to be given to each log. A common Unique Identifier generation scheme is to generate a Unique Identifier based on a Universal Unique Identifier (UUID). However, when the UUID is used as the log identifier, on one hand, the UUID needs 128 binary bits, and the number of bits is long, which is not favorable for storing and transmitting the log; on the other hand, the purpose of analyzing the logs mainly includes monitoring the operation status of each service in the server so as to find and process abnormal situations in time, and since the UUID is usually generated based on a random number, when analyzing a large amount of logs, the abnormal situations can be found only by checking all logs one by one, so that the log analysis efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide an identifier generating method and apparatus, so as to generate a log identifier including a service identifier, so that a service corresponding to a log can be conveniently identified when analyzing the log, and the log analysis efficiency for the operating condition of a certain service is improved.
In a first aspect, an embodiment of the present invention provides an identifier generating method, including:
responding to the starting of a business process, acquiring a business identification number and a process identification number corresponding to the business process, wherein the business identification numbers of different businesses are different, and the process identification numbers of different processes of the same business are different;
determining a current timestamp in response to the business process receiving a data processing request;
determining a self-increment sequence number corresponding to the data processing request;
and generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
Optionally, the obtaining a service identification number corresponding to the service process includes:
and inquiring a preset configuration file according to the service name corresponding to the service process so as to obtain the service identification number corresponding to the service name.
Optionally, the obtaining a process identification number corresponding to the service process includes:
selecting a process identification number to be acquired within a preset process identification number value range;
inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in a preset numbering service or not;
and if the process identification number does not exist in the used process identification number set, determining that the process identification number to be acquired is the process identification number corresponding to the service process.
Optionally, the method further comprises:
and responding to the exit of the service process, and deleting the process identification number corresponding to the service process in the used process identification number set.
Optionally, the determining a self-incrementing sequence number corresponding to the data processing request includes:
if the timestamp is different from the previous timestamp corresponding to the business process, determining a self-increasing sequence number corresponding to the data processing request as an initial self-increasing sequence number;
if the timestamp is the same as the previous timestamp corresponding to the business process, performing an addition operation on the previous self-increment serial number corresponding to the business process;
and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
Optionally, the determining, according to the incremented sequence number after the addition operation, a self-incrementing sequence number corresponding to the data processing request includes:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
In a second aspect, an embodiment of the present invention provides an identifier generating apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to the starting of a service process and acquiring a service identification number and a process identification number corresponding to the service process, the service identification numbers of different services are different, and the process identification numbers of different processes of the same service are different;
the timestamp determining module is used for responding to the data processing request received by the business process and determining the current timestamp;
a sequence number determining module, configured to determine a self-increment sequence number corresponding to the data processing request;
and the generating module is used for generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment serial number.
In a possible design, the structure of the identifier generating apparatus includes a processor and a memory, the memory is used for storing a program that supports the identifier generating apparatus to execute the identifier generating method in the first aspect, and the processor is configured to execute the program stored in the memory. The identification generation means may further comprise a communication interface for the identification generation means to communicate with other devices or a communication network.
In a third aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an identifier generating apparatus, which includes a program for executing the identifier generating method in the first aspect.
According to the identifier generation method and device provided by the embodiment of the invention, when a certain service process in the server is started, the service process acquires the service identifier number and the process identifier number corresponding to the service process. In the scheme, the service identification numbers of different services in the server are different, and the process identification numbers of different processes of the same service are different, so that different services in the server and different processes under the same service can be distinguished. When the business process receives a data processing request, the business process determines a current time stamp, determines a self-increment serial number corresponding to the data processing request by combining the time stamp, and finally generates a log identifier corresponding to the data processing request according to the time stamp, the business identifier, the process identifier and the self-increment serial number, wherein the log identifier is used for uniquely identifying a log corresponding to the data processing request. Because the log identification comprises the service identification and the process identification, unique identification can be carried out on logs generated by a large number of service processes in the server, when the abnormal operation problem of a certain service needs to be checked, the logs corresponding to the service can be quickly positioned, and the log analysis efficiency aiming at the service is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic composition diagram of a log identifier according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of an identifier generation method according to the present invention;
fig. 3 is a flowchart of acquiring a process identification number according to an embodiment of the present invention;
fig. 4 is a flowchart of a second embodiment of an identifier generation method according to the present invention;
fig. 5 is a schematic structural diagram of a first identifier generating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a second identifier generating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to an identifier generating apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are used only to distinguish XXX. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
It is further worth noting that the order between the steps in the embodiments of the present invention may be adjusted, and is not necessarily performed in the order illustrated below.
The identifier generation method provided by the embodiment of the invention can be used for generating the log identifier, but is not limited to the log identifier. Before specifically describing the identifier generating method provided by the embodiment of the present invention, an identifier composition structure provided by the embodiment of the present invention is described first, as shown in fig. 1.
The mark is composed of 64 binary bits, wherein the mark sequentially comprises the following bits from the highest bit to the lowest bit: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32. In fig. 1, M is 6, N is 14, and K is 12. In practice, however, the value of M, N, K may vary.
Specifically, the reserved bit is constantly 0 to ensure that the generated flag is always a positive number. The time stamp bit is 31 bits, which can ensure that the time stamp can be accurate to seconds, i.e. in the embodiment of the present invention, the time stamp of the second level is used, because in practical situation, the identification number generated in one second of a single business process, i.e. the log number generated in one second rarely exceeds 2KE.g. 2124096.
The number of the service identification bits and the number of the process identification bits may be determined according to the actual configuration of the server, for example, 6 bits and 14 bits are respectively allocated to the service identification and the process identification. A 6-bit service identification may represent 26A 14-bit process identification may represent 2 for 64 services1416384 processes. In general, the number of services of one server does not exceed 64, and the number of processes in the same service does not exceed 1 ten thousand, so that the distribution scheme can meet the actual requirement.
The following describes a method for generating an identifier according to an embodiment of the present invention with reference to the following method embodiments. Fig. 2 is a flowchart of a first embodiment of an identifier generating method according to an embodiment of the present invention, where the identifier generating method provided in this embodiment may be executed by an identifier generating apparatus, and the identifier generating apparatus may be implemented as software or as a combination of software and hardware, and the identifier generating apparatus may be integrated in an electronic device, such as a server as an example in the following embodiments. More specifically, the identifier generating means may be arranged in the work logic of each business process of the electronic device. As shown in fig. 1, the method comprises the steps of:
201. and responding to the starting of the business process, and acquiring a business identification number and a process identification number corresponding to the business process.
Generally, a server often includes a plurality of services or services, and each service can support a large number of processes.
For the service identification number, a corresponding service identification number may be allocated to each service name in advance for the service name included in the server, where the service identification number is, for example, a 6-bit binary number, and the service identification numbers of different services are different. After the corresponding service identification number is set for each service, optionally, the corresponding relationship between each service name and the service identification number may be written into a certain configuration file of the server. Therefore, when a certain service process in the server, that is, a certain process under a certain service is started, the service process can obtain a corresponding service identification number from the configuration file by querying the configuration file according to the corresponding service name, so as to be used for subsequent log identification generation.
For the process identification numbers, the process identification numbers of different processes under the same service are different, but the same process identification number may exist between the processes of different services because the processes of different services can be distinguished by the service identification numbers.
Optionally, for the current service process, the acquisition of the process identification number corresponding to the current service process may be obtained as follows: a process dedicated to assigning a process identification number to each service process under the service may be set under each service, and for convenience of description, the process is referred to as a special process. Therefore, when the current business process is started, the notification message can be sent to the corresponding special process, and the special process allocates a process identification number to the business process. In order to ensure that the special process cannot distribute repeated process identification numbers to different business processes under the same business, the distribution of the process identification numbers can be carried out as follows: assuming that the number of bits of the process identification number is 14 bits, it indicates that the number of available process identification numbers in the same service is 21416384, the value range is [0,16383 ]]The special process may use each process identification number one after another from scratch.
202. In response to a business process receiving a data processing request, a current timestamp is determined.
When a business process receives a data processing request, such as a user-triggered request to access a page, the business process first needs to determine a current timestamp to characterize when the data processing request was received.
The timestamp may be a relative timestamp, i.e. how many seconds the current time is from a reference time relative to the reference time. Assuming T seconds, by binary scaling T, the timestamp bits corresponding to the above-described flag structure can be obtained.
203. A self-incrementing sequence number corresponding to the data processing request is determined.
The self-increment sequence number is used for distinguishing different data processing requests received under the same service process.
The current service process may record a self-incrementing sequence number used when a data processing request is received last time, so that, in one case, when the service process receives the current data processing request, an operation may be added to obtain the self-incrementing sequence number corresponding to the current data processing request on the basis of the previous self-incrementing sequence number.
After obtaining the self-incrementing sequence number, the self-incrementing sequence number may be converted into a binary number to correspond to the self-incrementing sequence number bits in the above-mentioned identification structure.
204. And generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
After obtaining the timestamp, the service identification number, the process identification number, and the self-increment serial number, the service process may generate a corresponding log identification for uniquely identifying a log.
Specifically, the generation process is simply: the time stamp, the service identification number, the process identification number, and the self-incrementing sequence number are first represented as 64-bit binary numbers, respectively. Furthermore, the left shift operation with different digits is performed on the several 64-bit binary numbers respectively aiming at the corresponding bit position in the mark structure. For example, assuming that the time stamp indicates 16 seconds, 16 is converted into a binary number 10000, and 59 0 s are added to the front of 10000, which becomes a 64-bit binary number. Since the timestamp occupies 31 bits, 2-32 bits, in the identification structure, the 64-bit binary number can be left-shifted by 32 bits. And finally, carrying out bit OR operation on each 64-bit binary number after left shift to obtain the log identifier.
In this embodiment, when a certain service process in the server is started, the service process acquires a service identification number and a process identification number corresponding to the service process. In the scheme, the service identification numbers of different services in the server are different, and the process identification numbers of different processes of the same service are different, so that different services in the server and different processes under the same service can be distinguished. When the business process receives a data processing request, the business process determines a current time stamp, determines a self-increment serial number corresponding to the data processing request by combining the time stamp, and finally generates a log identifier corresponding to the data processing request according to the time stamp, the business identifier, the process identifier and the self-increment serial number, wherein the log identifier is used for uniquely identifying a log corresponding to the data processing request. Because the log identification comprises the service identification and the process identification, unique identification can be carried out on logs generated by a large number of service processes in the server, when the abnormal operation problem of a certain service needs to be checked, the logs corresponding to the service can be quickly positioned, and the log analysis efficiency aiming at the service is improved.
The embodiment of the present invention further provides another alternative way for optionally acquiring a process identification number, as shown in fig. 3, the method may include the following steps:
301. and selecting the process identification number to be acquired within the range of the preset process identification number.
302. And inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in the preset numbering service, if not, executing the step 303, otherwise, continuing to execute the step 301.
303. And determining the process identification number to be acquired as the process identification number corresponding to the service process.
304. And responding to the exit of the business process, and deleting the process identification number corresponding to the business process in the used process identification number set.
In this embodiment, a numbering service is preset in the server, and the numbering service is used to ensure that process identification numbers of different processes in the same service in the server are different. A set of used process identification numbers corresponding to different services may be created in the numbering service. The creation time of the used process identification number set corresponding to each service may be when an inquiry request of a first service process corresponding to each service is received. Initially, the set of used process identification numbers is empty.
The main process of the scheme provided by the embodiment is as follows: the business process can select the process identification numbers one by one in the value range of the process identification numbers. And then, taking the currently selected process identification number as the identification number of the process to be acquired, and sending an inquiry request to the numbering service so as to inquire whether the currently selected identification number of the process to be acquired exists in a used process identification number set corresponding to the business process in the numbering service. The query request may include the service identification number that the service process has obtained and the currently selected process identification number to be obtained, so that the numbering service can know that the service process is corresponding to the set of used process identification numbers corresponding to the service identification number, and what the process identification number that the service process wants to obtain is.
If the numbering service finds that the process identification number to be acquired already exists in the corresponding used process identification number set, the numbering service indicates that other business processes under the same business already use the process identification number to be acquired, and feeds back failure notification to the business process so as to inform that the business process cannot use the process identification number to be acquired. The business process then tries the next process identification number, and so on until an available process identification number is obtained.
On the contrary, if the process identification number to be acquired selected by the current service process does not exist in the used process identification number set, which indicates that other service processes under the same service do not use the process identification number to be acquired currently, the numbering service side feeds back a success notification to the service process to inform that the service process can use the process identification number to be acquired, and on the other hand, adds the process identification number to be acquired in the used process identification number set to avoid the subsequent repeated use by other service processes under the same service.
In summary, based on the numbering service, the service processes under each service in the server can be subjected to unified process identification number allocation management, so as to ensure that different service processes under the same service can have different process identification numbers.
In addition, when the current business process exits, the business process may send a deletion request to the numbering service, where the deletion request may include a corresponding business identification number and process identification number. Therefore, the numbering service deletes the process identification number in the used process identification number set corresponding to the service identification number, so that other service processes under the same service can reuse the process identification number, and the utilization rate of the process identification number is improved.
Fig. 4 is a flowchart of a second embodiment of the identifier generation method provided in the embodiment of the present invention, and as shown in fig. 4, the method may include the following steps:
401. and responding to the starting of the business process, and acquiring a business identification number and a process identification number corresponding to the business process.
402. In response to a business process receiving a data processing request, a current timestamp is determined.
The specific implementation process of the above steps can refer to the description in the foregoing embodiments, and is not described herein again.
The following steps are combined in this embodiment to describe in detail an acquisition process of a self-increment serial number corresponding to a data processing request when the current business process receives the data processing request.
403. And judging whether the current timestamp is the same as the previous timestamp corresponding to the business process, if so, executing the step 404, otherwise, executing the step 405.
404. And determining the self-increment sequence number corresponding to the data processing request as the initial self-increment sequence number.
405. And adding one operation to the previous self-increment sequence number corresponding to the business process.
The previous timestamp and the previous self-incrementing sequence number correspond to a previous data processing request received by the business process. The business process may record the previous timestamp and the previous self-incrementing sequence number.
If the timestamp obtained when the business process receives the current data processing request is the same as the previous timestamp, the business process receives different data processing requests successively within the same second because the timestamp is a second-level timestamp, and at the moment, in order to distinguish different data processing requests, the business process can perform an operation on the basis of the previous self-increasing serial number to obtain the self-increasing serial number corresponding to the current data processing request. Conversely, if the current timestamp is different from the previous timestamp, which indicates that the current data processing request is the first data processing request received within a new second, the self-incrementing sequence number corresponding to the data processing request is the starting self-incrementing sequence number, that is, the starting self-incrementing sequence number is 0 when the value range is the first in the value range of the self-incrementing sequence number, for example, the value range is [0,4095 ].
In addition, the self-incrementing sequence number obtained after adding one operation to the previous self-incrementing sequence number is generally the self-incrementing sequence number corresponding to the current data processing request, but there is also a special case that the number of data processing requests received by the business process in the current timestamp is very large and exceeds the value range of the self-incrementing sequence number, for example, exceeds 4096, and at this time, the self-incrementing sequence number after adding one operation cannot be simply considered as the self-incrementing sequence number corresponding to the current data processing request.
In this case, the following steps may be referred to, and the incremented sequence number corresponding to the current data processing request is determined according to the incremented sequence number after the addition:
406. and judging whether the self-increment serial number after the operation is added is larger than the upper limit of the value of the preset self-increment serial number, if not, executing the step 407, otherwise, executing the step 408.
407. And determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number obtained by adding one operation to the previous self-increment sequence number.
408. And delaying to the next time stamp and then determining the self-increasing sequence number corresponding to the data processing request.
If the upper limit of the value of the self-increment sequence number is 4095, if the self-increment sequence number after the addition of one operation is less than or equal to 4095, the self-increment sequence number corresponding to the current data processing request can be determined to be the self-increment sequence number after the addition of one operation from the previous self-increment sequence number. On the contrary, if the time is greater than 4095, it indicates that the current timestamp, that is, within the current one second, no idle self-incrementing sequence number has been allocated to the service process for use, at this time, the service process cannot immediately set the corresponding self-incrementing sequence number for the currently received data processing request, and needs to delay to the next timestamp for further processing. That is, the business process waits until the next time stamp arrives and sets a starting self-incrementing sequence number for the currently received data processing request.
Of course, it can be understood that if, within the current timestamp, the business process receives the current data processing request and finds that the self-incrementing sequence number after the previous self-incrementing sequence number plus one operation exceeds 4095, and the business process receives the next data processing request again, the determination of the self-incrementing sequence number corresponding to the next data processing request is also delayed until the next timestamp. Assuming that the self-incrementing sequence number corresponding to the currently received data processing request is determined to be the starting self-incrementing sequence number at the next time stamp, the self-incrementing sequence number corresponding to the next data processing request is determined to be the self-incrementing sequence number after the starting self-incrementing sequence number is increased by one at the next time stamp.
409. And generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
By the embodiment, different self-increment sequence numbers can be distributed to the data processing requests received by the business process in the same timestamp.
Because the log identification comprises the service identification and the process identification, unique identification can be carried out on logs generated by a large number of service processes in the server, when the abnormal operation problem of a certain service needs to be checked, the logs corresponding to the service can be quickly positioned, and the log analysis efficiency aiming at the service is improved.
The identity generation means of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these identifier generation means can each be constructed by configuring the steps taught in the present scheme using commercially available hardware components.
Fig. 5 is a schematic structural diagram of a first embodiment of an identifier generating apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: the device comprises an acquisition module 11, a timestamp determination module 12, a serial number determination module 13 and a generation module 14.
The acquiring module 11 is configured to, in response to starting of a service process, acquire a service identification number and a process identification number corresponding to the service process, where the service identification numbers of different services are different, and the process identification numbers of different processes of the same service are different.
And the timestamp determining module 12 is configured to determine a current timestamp in response to the business process receiving the data processing request.
A sequence number determining module 13, configured to determine a self-incrementing sequence number corresponding to the data processing request.
And a generating module 14, configured to generate a log identifier corresponding to the data processing request according to the timestamp, the service identifier, the process identifier, and the self-increment sequence number.
Optionally, the log identifier is composed of 64 binary bits, where the log identifier sequentially includes, from the highest bit to the lowest bit: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32.
The apparatus shown in fig. 5 can perform the method of the embodiment shown in fig. 1, and reference may be made to the related description of the embodiment shown in fig. 1 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 1, and are not described herein again.
Fig. 6 is a schematic structural diagram of a second embodiment of the identifier generating apparatus according to the embodiment of the present invention, as shown in fig. 5, on the basis of the embodiment shown in fig. 5, optionally, the obtaining module 11 includes: an acquisition unit 111, a selection unit 112, an inquiry unit 113, a determination unit 114, and a deletion unit 115.
The obtaining unit 111 is configured to query a preset configuration file according to a service name corresponding to the service process, so as to obtain the service identification number corresponding to the service name.
The selecting unit 112 is configured to select a process identifier to be acquired within a preset process identifier value range.
The querying unit 113 is configured to query whether the process identification number to be obtained already exists in a used process identification number set corresponding to the service identification number in a preset numbering service.
A determining unit 114, configured to determine, if the process identifier does not exist in the used process identifier set, that the process identifier to be obtained is a process identifier corresponding to the service process.
A deleting unit 115, configured to delete, in response to the exit of the service process, the process identification number corresponding to the service process in the used process identification number set.
Optionally, the serial number determining module 13 includes: a first serial number determination unit 131 and a second serial number determination unit 132.
A first sequence number determining unit 131, configured to determine, if the timestamp is different from a previous timestamp corresponding to the business process, that a self-incrementing sequence number corresponding to the data processing request is a starting self-incrementing sequence number.
A second sequence number determining unit 132, configured to add one to a previous self-increment sequence number corresponding to the service process if the timestamp is the same as a previous timestamp corresponding to the service process; and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
Specifically, the second sequence number determining unit 132 is specifically configured to:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 3-4, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 3-4. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 3 to fig. 4, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The internal functions and structures of the identifier generating apparatus are described above, and in one possible design, the structure of the identifier generating apparatus may be implemented as an electronic device, such as a server, and as shown in fig. 7, the electronic device may include: a processor 21 and a memory 22. Wherein the memory 22 is used for storing a program supporting the identifier generating apparatus to execute the identifier generating method provided in any of the above embodiments, and the processor 31 is configured to execute the program stored in the memory 22.
The program comprises one or more computer instructions which, when executed by the processor 21, are capable of performing the steps of:
responding to the starting of a business process, acquiring a business identification number and a process identification number corresponding to the business process, wherein the business identification numbers of different businesses are different, and the process identification numbers of different processes of the same business are different; determining a current timestamp in response to the business process receiving a data processing request; determining a self-increment sequence number corresponding to the data processing request; and generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
Optionally, the processor 21 is further configured to perform all or part of the steps of the foregoing methods.
The structure of the identifier generating apparatus may further include a communication interface 23, which is used for the identifier generating apparatus to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an identifier generating apparatus, which includes a program for executing the identifier generating method in each of the above-mentioned method embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The invention discloses an A1 identification generation method, which comprises the following steps:
responding to the starting of a business process, acquiring a business identification number and a process identification number corresponding to the business process, wherein the business identification numbers of different businesses are different, and the process identification numbers of different processes of the same business are different;
determining a current timestamp in response to the business process receiving a data processing request;
determining a self-increment sequence number corresponding to the data processing request;
and generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
A2, according to the method of A1, the acquiring the service identification number corresponding to the service process includes:
and inquiring a preset configuration file according to the service name corresponding to the service process so as to obtain the service identification number corresponding to the service name.
A3, according to the method of A1, the acquiring the process identification number corresponding to the business process includes:
selecting a process identification number to be acquired within a preset process identification number value range;
inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in a preset numbering service or not;
and if the process identification number does not exist in the used process identification number set, determining that the process identification number to be acquired is the process identification number corresponding to the service process.
A4, the method of A3, the method further comprising:
and responding to the exit of the service process, and deleting the process identification number corresponding to the service process in the used process identification number set.
A5, the method of A1, the determining a self-incrementing sequence number corresponding to the data processing request, comprising:
if the timestamp is different from the previous timestamp corresponding to the business process, determining a self-increasing sequence number corresponding to the data processing request as an initial self-increasing sequence number;
if the timestamp is the same as the previous timestamp corresponding to the business process, performing an addition operation on the previous self-increment serial number corresponding to the business process;
and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
A6, according to the method in A5, the determining the self-incrementing sequence number corresponding to the data processing request according to the self-incrementing sequence number after the one-time addition operation includes:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
A7, the method according to any one of A1 to A6, wherein the log identification consists of 64 binary bits, and comprises the following in sequence from the most significant bit to the least significant bit: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32.
The invention also discloses B8, an identification generating device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to the starting of a service process and acquiring a service identification number and a process identification number corresponding to the service process, the service identification numbers of different services are different, and the process identification numbers of different processes of the same service are different;
the timestamp determining module is used for responding to the data processing request received by the business process and determining the current timestamp;
a sequence number determining module, configured to determine a self-increment sequence number corresponding to the data processing request;
and the generating module is used for generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment serial number.
B9, the apparatus of B8, the obtaining module comprising:
and the acquisition unit is used for inquiring a preset configuration file according to the service name corresponding to the service process so as to obtain the service identification number corresponding to the service name.
B10, the apparatus of B8, the obtaining module comprising:
the selection unit is used for selecting the process identification number to be acquired in a preset process identification number value range;
the inquiry unit is used for inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in a preset numbering service or not;
and the determining unit is used for determining the process identification number to be acquired as the process identification number corresponding to the service process if the process identification number does not exist in the used process identification number set.
B11, the apparatus of B10, the obtaining module comprising:
and the deleting unit is used for responding to the exit of the service process and deleting the process identification number corresponding to the service process in the used process identification number set.
B12, the apparatus of B8, the sequence number determination module comprising:
a first sequence number determining unit, configured to determine, if the timestamp is different from a previous timestamp corresponding to the business process, that a self-incrementing sequence number corresponding to the data processing request is an initial self-incrementing sequence number;
a second sequence number determining unit, configured to perform an addition operation on a previous self-increment sequence number corresponding to the service process if the timestamp is the same as a previous timestamp corresponding to the service process; and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
B13, according to the apparatus of B12, the second sequence number determining unit is specifically configured to:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
B14, the apparatus according to any one of B8 to B13, the log identification is composed of 64 binary bits, wherein the log identification comprises the following bits from the highest bit to the lowest bit: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32.
The invention also discloses C15, an electronic device, comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions that, when executed by the processor, implement the identity generation method of any of a 1-a 7.
The present invention also discloses D16, a computer-readable storage medium storing a computer program that, when executed by a computer, implements the logo generation method as described in any one of a1 to a 7.

Claims (16)

1. An identifier generation method, comprising:
responding to the starting of a business process, acquiring a business identification number and a process identification number corresponding to the business process, wherein the business identification numbers of different businesses are different, and the process identification numbers of different processes of the same business are different;
determining a current timestamp in response to the business process receiving a data processing request;
determining a self-increment sequence number corresponding to the data processing request;
determining a self-incrementing sequence number corresponding to the data processing request, including:
if the timestamp is different from the previous timestamp corresponding to the business process, determining a self-increasing sequence number corresponding to the data processing request as an initial self-increasing sequence number;
and generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment sequence number.
2. The method of claim 1, wherein the obtaining the service identification number corresponding to the service process comprises:
and inquiring a preset configuration file according to the service name corresponding to the service process so as to obtain the service identification number corresponding to the service name.
3. The method according to claim 1, wherein the obtaining the process identification number corresponding to the service process comprises:
selecting a process identification number to be acquired within a preset process identification number value range;
inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in a preset numbering service or not;
and if the process identification number does not exist in the used process identification number set, determining that the process identification number to be acquired is the process identification number corresponding to the service process.
4. The method of claim 3, further comprising:
and responding to the exit of the service process, and deleting the process identification number corresponding to the service process in the used process identification number set.
5. The method of claim 1, wherein determining a self-incrementing sequence number corresponding to the data processing request further comprises:
if the timestamp is the same as the previous timestamp corresponding to the business process, performing an addition operation on the previous self-increment serial number corresponding to the business process;
and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
6. The method according to claim 5, wherein the determining the self-incrementing sequence number corresponding to the data processing request according to the self-incrementing sequence number after the adding operation comprises:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
7. The method according to any one of claims 1 to 6, wherein the log identifier is composed of 64 binary bits, and wherein the sequence from the highest bit to the lowest bit comprises: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32.
8. An identifier generation apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to the starting of a service process and acquiring a service identification number and a process identification number corresponding to the service process, the service identification numbers of different services are different, and the process identification numbers of different processes of the same service are different;
the timestamp determining module is used for responding to the data processing request received by the business process and determining the current timestamp;
a sequence number determining module, configured to determine a self-increment sequence number corresponding to the data processing request; the serial number determination module comprises: a first sequence number determining unit, configured to determine, if the timestamp is different from a previous timestamp corresponding to the business process, that a self-incrementing sequence number corresponding to the data processing request is an initial self-incrementing sequence number;
and the generating module is used for generating a log identifier corresponding to the data processing request according to the timestamp, the service identifier number, the process identifier number and the self-increment serial number.
9. The apparatus of claim 8, wherein the obtaining module comprises:
and the acquisition unit is used for inquiring a preset configuration file according to the service name corresponding to the service process so as to obtain the service identification number corresponding to the service name.
10. The apparatus of claim 8, wherein the obtaining module comprises:
the selection unit is used for selecting the process identification number to be acquired in a preset process identification number value range;
the inquiry unit is used for inquiring whether the process identification number to be acquired exists in a used process identification number set corresponding to the service identification number in a preset numbering service or not;
and the determining unit is used for determining the process identification number to be acquired as the process identification number corresponding to the service process if the process identification number does not exist in the used process identification number set.
11. The apparatus of claim 10, wherein the obtaining module comprises:
and the deleting unit is used for responding to the exit of the service process and deleting the process identification number corresponding to the service process in the used process identification number set.
12. The apparatus of claim 8, wherein the sequence number determination module further comprises:
a second sequence number determining unit, configured to perform an addition operation on a previous self-increment sequence number corresponding to the service process if the timestamp is the same as a previous timestamp corresponding to the service process; and determining the self-increasing sequence number corresponding to the data processing request according to the self-increasing sequence number after the one-time addition operation.
13. The apparatus according to claim 12, wherein the second sequence number determining unit is specifically configured to:
if the self-increment sequence number after the one-time operation is not larger than the upper limit of the value of the preset self-increment sequence number, determining the self-increment sequence number corresponding to the data processing request as the self-increment sequence number after the one-time operation;
and if the self-increment sequence number after the one-time addition operation is larger than the upper limit of the value of the preset self-increment sequence number, delaying to the next time stamp and then determining the self-increment sequence number corresponding to the data processing request.
14. The apparatus according to any one of claims 8 to 13, wherein the log identifier is composed of 64 binary bits, and wherein the log identifier comprises, in order from the most significant bit to the least significant bit: 1 reserved bit, 31 timestamp bits, M service identification number bits, N process identification number bits, and K self-increasing sequence number bits, where M + N + K is 32.
15. An electronic device comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the identity generation method of any of claims 1 to 7.
16. A computer-readable storage medium storing a computer program which, when executed, causes a computer to implement the identity generation method of any one of claims 1 to 7.
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 CN107229555A (en) 2017-10-03
CN107229555B true 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)

Families Citing this family (33)

* 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
CN110019239B (en) * 2017-12-29 2021-06-04 百度在线网络技术(北京)有限公司 Storage method and device of reported data, electronic equipment and storage medium
CN108459939B (en) * 2018-01-08 2020-06-23 平安科技(深圳)有限公司 Log collection method and device, terminal equipment and storage medium
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
CN109063088B (en) * 2018-07-26 2020-07-28 阿里巴巴集团控股有限公司 Serial number generation method and device
CN109597806A (en) * 2018-09-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of generation method and system of sequence number
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
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
CN110442498B (en) * 2019-06-28 2022-11-25 平安科技(深圳)有限公司 Abnormal data node positioning method and device, storage medium and computer equipment
CN110392100B (en) * 2019-07-12 2022-03-11 辽宁途隆科技有限公司 Processing method and device for high-concurrency events, storage medium and computer equipment
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
CN111291424B (en) * 2020-02-19 2023-03-24 望海康信(北京)科技股份公司 Identification number generation method and device, computer equipment and storage medium
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
CN112187790B (en) * 2020-09-27 2023-04-28 北京罗克维尔斯科技有限公司 Signal identification generation method, message transmission method and device
CN112422337A (en) * 2020-11-11 2021-02-26 网宿科技股份有限公司 Method, system and device for generating log identification
CN112711567B (en) * 2021-01-06 2023-04-25 湖南同有飞骥科技有限公司 Session file use space cleaning method and system
CN112860661B (en) * 2021-01-20 2022-11-08 上海万物新生环保科技集团有限公司 Method and device for generating data sequence identification
CN113271342B (en) * 2021-04-27 2023-03-07 北京沃东天骏信息技术有限公司 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
CN116048928B (en) * 2023-03-27 2023-06-20 新华三技术有限公司 Service monitoring method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording

Family Cites Families (7)

* 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
US7085782B2 (en) * 2003-05-14 2006-08-01 International Business Machines Corporation Log grooming in a multi-log environment
CN102769667B (en) * 2012-06-29 2015-01-28 北京奇虎科技有限公司 Method, equipment and system for generating ID
CN104113435B (en) * 2014-07-04 2017-11-07 广州华多网络科技有限公司 Generate the method and device of mark
CN105447023B (en) * 2014-08-25 2019-02-05 阿里巴巴集团控股有限公司 Service identification generation method and device
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902764A (en) * 2012-09-25 2013-01-30 北京奇虎科技有限公司 Method and device for log recording

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Twitter的分布式自增ID算法snowflake (Java版);OkidoGreen;《https://blog.csdn.net/z69183787/article/details/61917947》;20170313;第1-3页 *

Also Published As

Publication number Publication date
CN107229555A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107229555B (en) Identification generation method and device
US20200344322A1 (en) Resource scheduling method, apparatus, device and system
CN106202235B (en) Data processing method and device
CN109376155B (en) ID generation method and device, storage medium and electronic device
CN109669776B (en) Detection task processing method, device and system
CN107276970B (en) Unbinding and binding method and device
CN106326309B (en) Data query method and device
US10282120B2 (en) Method, apparatus and system for inserting disk
WO2018233630A1 (en) Fault discovery
CN112346829A (en) Method and equipment for task scheduling
CN110971571A (en) Website domain name verification method and related device
CN111008087B (en) Message processing method and device
CN112511580A (en) Message pushing method, device, storage medium and equipment
CN112243044A (en) Container address allocation method and device
CN108399175B (en) Data storage and query method and device
CN109634524B (en) Data partition configuration method, device and equipment of data processing daemon
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN113301173A (en) Domain name updating system and method, message forwarding method and server
CN111198756A (en) Application scheduling method and device of kubernets cluster
CN115756955A (en) Data backup and data recovery method and device and computer equipment
CN109669623B (en) File management method, file management device, electronic equipment and storage medium
CN113568891B (en) Distributed ID generation method, device, server and readable storage medium
CN113315853B (en) Cloud protection node scheduling method, system and storage medium
CN115686746A (en) Access method, task processing method, computing device, and computer storage medium
CN110681159A (en) Team forming method, device and equipment

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