Check patentability & draft patents in minutes with Patsnap Eureka AI!

Machine serial number distribution method and device and computer readable storage medium

A distribution method and storage medium technology, applied in the field of data processing, to achieve the effect of improving the degree of intelligence and increasing the degree of intelligence

Pending Publication Date: 2021-12-03
SHENZHEN SINOSUN TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention aims to solve the technical problem of how to improve the intelligence of machine serial number allocation by providing a machine serial number allocation method, device, and computer-readable storage medium

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Machine serial number distribution method and device and computer readable storage medium
  • Machine serial number distribution method and device and computer readable storage medium
  • Machine serial number distribution method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0076] refer to figure 2 , figure 2 It is the first embodiment of the method for allocating machine serial numbers of the present invention, the method includes the following steps:

[0077] Step S10, when it is detected that the instance is started, it is determined whether there is a deactivated machine serial number among the generated machine serial numbers.

[0078] In this embodiment, there are many schemes for distributed unique IDs. The snowflake algorithm is preferred in this embodiment, and the composition structure is roughly divided into invalid bits, time bits, machine bits, and serial number bits. It is characterized by self-incrementing, orderly, pure digital composition, high query efficiency and does not depend on the database. It is suitable for application in distributed scenarios, and specific implementation details can be adjusted according to requirements. The serial number of the above machine has global uniqueness, incrementality, high availability,...

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

PUM

No PUM Login to View More

Abstract

The invention discloses a machine serial number distribution method and device and a computer readable storage medium. The method comprises the steps of: determining whether there is a disabled machine serial number in generated machine serial numbers or not when an instance is detected to be started; if there are disabled machine serial numbers, determining a target machine serial number in the disabled machine serial numbers; and assigning the target machine serial number to the started instance. According to the invention, the degree of intelligence of machine serial number distribution can be improved.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a method, device and computer-readable storage medium for allocating machine serial numbers. Background technique [0002] The snowflake algorithm is an algorithm that provides a globally unique serial number under an efficient distributed architecture. It is attached to timestamps, concurrent serial numbers, and machine serial numbers in memory to generate a serial number through bit operations to achieve uniqueness. The significance of the machine serial number is to allocate it in a multi-instance scenario, ensuring that the serial number assigned to each instance is unique. Conventional technical means often need to configure respective machine serial numbers for each instance in the program. For example, the workId of instance 1 is set to 1, and the workId of instance 2 is set to 2. However, when the conventional technical means need to allocate the machin...

Claims

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/50G06F21/73
CPCG06F9/5027G06F21/73Y02D10/00
Inventor 程路
Owner SHENZHEN SINOSUN TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More