A cloud cache database construction processing method and device based on a finite state machine
By adopting a construction processing method based on finite state machines and utilizing the component console and Zookeeper node registration, precise control and code reuse of cloud cache database construction operations are achieved. This solves the security and scalability issues of construction operations in existing technologies and improves the autonomy and convenience of the construction process.
Patent Information
- Application Number
- CN202211716419.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Existing cloud caching databases suffer from low security during construction and operation, complex code implementation that is difficult to decouple and reuse, and high scalability and maintenance costs.
A construction processing method based on finite state machines is adopted. Work order information is received through the component console, the underlying Agent service is called to perform asynchronous construction, and the construction state transition is triggered by node registration on Zookeeper, so as to achieve precise control of construction operations and code reuse.
It improves the precision, controllability, and scalability of construction operations, reduces the complexity of code implementation, and enhances the autonomy and convenience of the construction process.
Smart Images

Figure CN115952198B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of IT and software development, and particularly relates to a cloud cache database construction processing method and device based on a finite state machine. BACKGROUND
[0002] For cloud cache databases and other components, a cloud platform as a service (PaaS) mode is generally used for external delivery, that is, a tenant selects a corresponding product on a unified PaaS platform portal interface, and then a construction order is issued by clicking an instance opening button, so that a background service program completes deployment and construction of the component. In public cloud or private cloud scenarios, a general deployment architecture is that the PaaS platform is located in a management public area, a component management console service is located in a preset resource area, and a resource host of an actual deployment instance node is located in a tenant VPC area. A tenant construction order, such as opening and canceling, is issued to the component console through the PaaS platform, and specific construction logic processing is completed by a management and control service of the component console.
[0003] At present, construction operations such as opening, canceling, suspending, resuming, restarting, and expanding or shrinking of a cloud cache database product are generally performed by a component management and control service in a resource preset area, which interacts with a host resource in a tenant VPC area through an SSH protocol, and implements construction functions through nearly pipeline programming processing logic, which has low security, complex code implementation, and is not easy to decouple and reuse, and has great challenges in scalability and later maintenance cost. SUMMARY
[0004] In view of the problems in the prior art, an embodiment of the present application provides a cloud cache database construction processing method and device based on a finite state machine.
[0005] An embodiment of the present application provides a cloud cache database construction processing method based on a finite state machine, which comprises the following steps.
[0006] A component console receives work order information issued by a tenant through a PaaS platform, and determines a corresponding construction operation according to the work order information, and calls a bottom-layer Agent proxy service to implement the construction operation;
[0007] The construction operation comprises the following steps.
[0008] The component console completes work order information processing based on the work order information, and obtains a processing result, and the work order information processing comprises the following steps: analyzing a work order format, verifying a work order parameter, judging a construction type, and saving data information.
[0009] The component console deploys an underlying Agent agent service to an underlying tenant VPC area, and performs asynchronous construction in the tenant VPC area based on the processing result, the asynchronous construction is triggered by registering a node on Zookeeper, including: determining the construction type according to the processing result, and then determining the corresponding state set and state transition as the action set of the asynchronous construction;
[0010] After the asynchronous construction is completed, the construction result is fed back to the component console, and the construction state is updated to the PaaS platform through the construction result.
[0011] In one embodiment, the asynchronous construction includes:
[0012] Host environment initialization, creating instance nodes according to the processing result, establishing node relationship, and configuring unified access layer.
[0013] In one embodiment, the method further includes:
[0014] When the construction type corresponding to the work order information is determined to be single machine type, preparation type, and read-only version type in sequence according to the processing result, the action set of the asynchronous construction is node creation action in single, twice and multiple times in sequence;
[0015] When the construction type corresponding to the work order information is determined to be cluster version type in sequence according to the processing result, the action set of the asynchronous construction is to execute multiple creation shard actions, and then execute the creation cluster agent node action.
[0016] In one embodiment, the method further includes:
[0017] The component console communicates with the tenant VPC area through the grpc protocol.
[0018] In one embodiment, the method further includes:
[0019] During the asynchronous construction process, the construction flow history state of the work order information is recorded through the MySQL storage system.
[0020] In one embodiment, the method further includes:
[0021] When an error response occurs in the work order information processing process, the component console sends the PaaS platform that the work order information is wrong, and stops entering the asynchronous construction;
[0022] When an error response occurs in the asynchronous construction process, a current construction step is returned according to the error response, the current construction step is repaired, and a node on the Zookeeper is re-registered to trigger the work order information to continue execution after the repair is completed.
[0023] The embodiment of the application provides a cloud cache database construction processing device based on a finite state machine, which comprises:
[0024] A construction module is configured to receive work order information issued by a tenant through a PaaS platform by a component console, determine corresponding construction operations according to the work order information, and call a bottom-layer Agent proxy service to implement the construction operations.
[0025] A work order information processing module is configured to complete work order information processing based on the work order information by the component console to obtain a processing result, wherein the work order information processing comprises analyzing a work order format, checking work order parameters, judging a construction type, and saving data information.
[0026] An asynchronous construction module is configured to deploy the bottom-layer Agent proxy service to a bottom-layer tenant VPC area by the component console, and perform asynchronous construction based on the processing result in the tenant VPC area, wherein the asynchronous construction is triggered by registering a node on the Zookeeper, and the asynchronous construction comprises determining a construction type according to the processing result, and then determining a corresponding state set and state transition as an action set of the asynchronous construction.
[0027] A state updating module is configured to feed back a construction result to the component console after the asynchronous construction is completed, and update a construction state to the PaaS platform through the construction result.
[0028] In one of the embodiments, the device further comprises:
[0029] A node creation module is configured to, when it is determined according to the processing result that the construction type corresponding to the work order information is a single-machine type, a preparation type, and a read-only version type in sequence, the action set of the asynchronous construction is a node creation action performed once, twice, and multiple times in sequence.
[0030] A shard creation module is configured to, when it is determined according to the processing result that the construction type corresponding to the work order information is a cluster version type in sequence, the action set of the asynchronous construction is a multiple-time shard creation action, and then a cluster proxy node creation action is performed.
[0031] The embodiment of the application provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps of the cloud cache database construction processing method based on the finite state machine when executing the program.
[0032] The embodiment of the present application provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the cloud cache database construction processing method based on a finite state machine.
[0033] The embodiment of the present application provides a cloud cache database construction processing method and device based on a finite state machine, a component console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operations according to the work order information, and calls a bottom-layer Agent proxy service to implement the construction operations; the construction operations include: the component console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing includes: analyzing a work order format, checking work order parameters, judging a construction type, and saving data information; the component console deploys the bottom-layer Agent proxy service to a bottom-layer tenant VPC area, and performs asynchronous construction in the tenant VPC area based on the processing result; the asynchronous construction is triggered by registering a node on a Zookeeper, and includes: determining a construction type according to the processing result, and then determining a corresponding state set and a state transition action set for asynchronous construction; after the asynchronous construction is completed, a construction result is fed back to the component console, and a construction state is updated to the PaaS platform through the construction result. Advantages and improvements include: 1, different types of construction operations of different versions of instances are step-split and mapped with a state machine, the granularity of each construction step is refined, corresponding coding is implemented for the conversion actions between different states, the construction operations are accurately controllable, the same construction actions in different construction processes can realize code reuse, which is convenient for development and implementation and also convenient for later maintenance, and greatly enhances the simplicity and expansibility of coding; 2, the node registration on the Zookeeper is used to trigger and start the construction state flow task, which greatly improves the autonomy and convenience of construction process scheduling. BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0035] Figure 1 A flowchart of a cloud cache database construction processing method based on a finite state machine in the embodiment of the present application;
[0036] Figure 2A whole architecture interaction diagram of a cloud cache database construction processing method based on a finite state machine in an embodiment of the present application is shown in the figure.
[0037] Figure 3 An example timing diagram of a construction operation in the cloud cache database construction processing method based on the finite state machine in an embodiment of the present application is shown in the figure.
[0038] Figure 4 A structure diagram of the cloud cache database construction processing device based on the finite state machine in an embodiment of the present application is shown in the figure.
[0039] Figure 5 An electronic device structure schematic diagram in an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0041] Figure 1 A flow schematic diagram of the cloud cache database construction processing method based on the finite state machine provided in an embodiment of the present application is shown in the figure. Figure 1 The present application provides a cloud cache database construction processing method based on a finite state machine, which comprises the following steps:
[0042] In step S101, the component console receives the work order information issued by a tenant through a PaaS platform, and determines the corresponding construction operation according to the work order information, and calls the underlying Agent proxy service to implement the construction operation.
[0043] Specifically, the cloud cache database construction processing method based on the finite state machine in the present embodiment can be adapted to Redis database and related derivative cloud cache database products supporting its protocol, and is generally delivered in a cloud platform as a service (PaaS) mode, that is, the tenant issues a work order through a PaaS platform portal, the component console accepts and processes the work order, and then calls the underlying Agent proxy service to implement construction operations such as creation or deregistration of specific instance nodes.
[0044] In addition, in the construction operation, the construction processing logic based on the finite state machine is mainly implemented by the component console backend service, and MySQL and Zookeeper are used to respectively implement the storage of state sets and state context information and the triggering and scheduling of construction flow. The specific whole architecture interaction diagram is shown in the figure. Figure 2as shown.
[0045] The construction operation includes:
[0046] In step S102, the component console completes work order information processing based on the work order information to obtain a processing result. The work order information processing includes: analyzing work order format, checking work order parameters, determining construction type, and saving data information.
[0047] Specifically, after the component console receives the construction order issued by the PaaS, the component console completes work order information processing based on the work order information. The work order information processing includes: analyzing work order format, checking work order parameters, determining construction type, and saving data information, to obtain a processing result. In addition, the component console can also synchronously respond to the PaaS platform with the work order information processing, so that the PaaS platform displays the construction order state as “under construction”.
[0048] In step S103, the component console deploys the underlying Agent agent service to the underlying tenant VPC area, and performs asynchronous construction in the tenant VPC area based on the processing result. The asynchronous construction is triggered by registering a node on the Zookeeper, and includes: determining the construction type according to the processing result, and then determining the corresponding state set and state transition as the action set of the asynchronous construction.
[0049] Specifically, the component console deploys the Agent agent service to the underlying VPC area resource host, for the operation and deployment of the underlying instance resources. The component console sequentially executes subsequent asynchronous construction operations in the tenant VPC area based on the state machine. The component console registers a node on the Zookeeper to trigger the asynchronous construction process based on the state machine. The asynchronous construction operation is based on the finite state machine mode. From the original state, the asynchronous construction operation is converted to the initialization ready state through the environment initialization action. Then, the asynchronous construction operation executes node creation or cluster shard creation according to different instance types. In addition, the asynchronous construction operation corresponds to the code implementation level, which is each operation class or operation function interface. The state transitions that overlap with each other in the creation process can be reused, which reduces the coupling of code implementation, and enhances the extensibility and maintainability.
[0050] In addition, the asynchronous construction operation can include the steps of host environment initialization, instance node creation according to a processing result, node relationship establishment, configuration of a unified access layer, and in the instance node creation according to the processing result, specifically including: for single machine, primary and backup and read-only version instances, single, twice and multiple node creation actions are respectively required to be performed to realize the conversion from the environment initialization ready state to the instance node ready state, and then the configuration of the primary and backup relationship action is performed; for the cluster version instance, multiple creation shard actions are required to be performed to realize the conversion from the environment initialization ready state to the shard ready state, and each shard is equivalent to a primary and backup instance, so the creation of each shard is equivalent to the execution of the process of creating a primary and backup node and establishing a primary and backup relationship, and multiple shards execute multiple creation processes, and then the creation of a cluster agent node action is performed.
[0051] In addition, the component console of the resource pre-provisioning area and the Agent agent service initialized and deployed on the resource host of the tenant VPC area communicate and interact through the grpc protocol, avoiding the coding complexity of ssh protocol interaction, and enhancing the communication security.
[0052] Step S104, after the asynchronous construction is completed, the construction result is fed back to the component console, and the construction state is updated to the PaaS platform through the construction result.
[0053] Specifically, after the asynchronous construction is completed, the construction result is fed back to the component console, and the construction state is updated to the PaaS platform through the construction result, so that the display of the construction state is updated to “construction success”, and thus the instance opening construction is successfully completed and the tenant can be provided with services. In addition, if any link before the asynchronous construction such as ticket analysis and parameter verification is wrong, the synchronous response result is directly returned as failure, and the asynchronous construction process will not be triggered; if any state conversion action in the asynchronous construction process is wrong, the construction response result is asynchronously returned as failure in the current state, because the context of each state is stored in the MySQL, so after the problem is repaired, the corresponding construction flow of the ticket is triggered to continue to be executed by re-registering the Zookeeper node.
[0054] In addition, in the asynchronous construction process, the history state of the construction flow of the ticket information is recorded through the MySQL storage system (if it is a new ticket, the history state is EMPTY, i.e. the original state), which can realize the triggering and execution from the initial or intermediate state machine action, so that the finite state set corresponding to each construction type, the current construction state and the context information are maintained through the MySQL, which can realize the idempotent and continuation operation of the construction interruption, retry and other process processing, avoid the rollback or repeated operation of the executed operation, improve the construction efficiency and enhance the robustness of the ticket processing.
[0055] The example timing diagram of the construction operation in the embodiment can be as followsFigure 3 As shown, the component console initiates an asynchronous construction process after receiving the work order analysis and verification, first deploying the Agent agent service to the underlying VPC zone resource host during environment initialization for the operation and deployment of the underlying instance resources, then sequentially executing subsequent construction operations by the component console based on the state machine, and communicating between the resource pre-provisioning zone and the tenant VPC zone through grpc; finally, the asynchronous single response is executed to the PaaS platform after the construction is completed, the construction state is updated, and the product instance is delivered to the tenant.
[0056] The embodiment of the application provides a cloud cache database construction processing method based on a finite state machine, a component console receives work order information issued by a tenant through a PaaS platform, and determines corresponding construction operations according to the work order information, and calls an underlying Agent agent service to implement the construction operations; the construction operations include that the component console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing includes analyzing a work order format, verifying work order parameters, judging a construction type, and saving data information; the component console deploys the underlying Agent agent service to a tenant VPC zone in the underlying layer, and performs asynchronous construction in the tenant VPC zone based on the processing result, and the asynchronous construction is triggered by registering a node on Zookeeper, including determining a construction type according to the processing result, and then determining a corresponding state set and a state transition action set for asynchronous construction; after the asynchronous construction is completed, the construction result is fed back to the component console, and the construction state is updated to the PaaS platform through the construction result. Advantages and improvements include: 1, different types of construction operations of different versions of instances are step-split and mapped with the state machine, the granularity of each construction step is refined, corresponding coding is implemented for the conversion actions between different states, the construction operation is accurate and controllable, the same construction actions in different construction processes can realize code reuse, which is convenient for development and implementation and also convenient for later maintenance, greatly enhancing the simplicity and expansibility of coding; 2, the node registration on Zookeeper is used to trigger and start the construction state flow task, greatly improving the autonomy and convenience of construction process scheduling.
[0057] Figure 4 The embodiment of the application provides a cloud cache database construction processing device based on a finite state machine, which comprises a construction module S201, a work order information processing module S202, an asynchronous construction module S203, and a state updating module S204.
[0058] The construction module S201 is used for the component console to receive work order information issued by a tenant through a PaaS platform, and to determine corresponding construction operations according to the work order information, and to call an underlying Agent agent service to implement the construction operations.
[0059] The work order information processing module S202 is configured to complete work order information processing based on the work order information by the component console to obtain a processing result, and the work order information processing includes analyzing work order format, checking work order parameters, judging construction type, and saving data information.
[0060] The asynchronous construction module S203 is configured to deploy a bottom-layer agent proxy service to a bottom-layer tenant VPC area by the component console, and perform asynchronous construction in the tenant VPC area based on the processing result, and the asynchronous construction is triggered by registering a node on a Zookeeper, and includes determining a construction type according to the processing result, and then determining a corresponding state set and state transition as an action set of the asynchronous construction.
[0061] The state updating module S204 is configured to feed back a construction result to the component console after the asynchronous construction is completed, and update a construction state to the PaaS platform by the construction result.
[0062] In one of the embodiments, the apparatus further includes:
[0063] The node creation module is configured to, when it is determined according to the processing result that the construction type corresponding to the work order information is in turn single-machine type, preparation type, and read-only version type, the action set of the asynchronous construction is in turn a single-time node creation action, a twice node creation action, and a multiple-time node creation action.
[0064] The shard creation module is configured to, when it is determined according to the processing result that the construction type corresponding to the work order information is in turn cluster version type, the action set of the asynchronous construction is a multiple-time shard creation action, and then a cluster proxy node creation action is performed.
[0065] The specific limitations of the cloud cache database construction processing apparatus based on the finite state machine can refer to the limitations of the cloud cache database construction processing method based on the finite state machine in the foregoing, and will not be repeated here. Each module in the cloud cache database construction processing apparatus based on the finite state machine can be realized by software, hardware, and a combination thereof in whole or in part. Each module can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform the operations corresponding to each module.
[0066] Figure 5 An example of an entity structure diagram of an electronic device is shown in FIG. 1. Figure 5As shown, the electronic device can include a processor 301, a memory 302, a communications interface 303, and a communications bus 304, wherein the processor 301, the memory 302, and the communications interface 303 complete mutual communication through the communications bus 304. The processor 301 can invoke a logical instruction in the memory 302 to execute the following method: the component console receives work order information issued by a tenant through a PaaS platform, and determines corresponding construction operations according to the work order information, and invokes a bottom-layer Agent proxy service to implement the construction operations; the construction operations include: the component console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing includes: analyzing work order format, verifying work order parameters, judging construction types, and saving data information; the component console deploys the bottom-layer Agent proxy service to a bottom-layer tenant VPC area, and performs asynchronous construction in the tenant VPC area based on the processing result, and the asynchronous construction is triggered by registering a node on a Zookeeper, including: determining a construction type according to the processing result, and then determining a corresponding state set and a state transition to an action set of asynchronous construction; after the asynchronous construction ends, a construction result is fed back to the component console, and a construction state is updated to the PaaS platform through the construction result.
[0067] In addition, the logical instruction in the memory 302 described above can be implemented in the form of a software functional unit and sold or used as an independent product, and can be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0068] On the other hand, embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the transmission methods provided in the above embodiments, including, for example,: a component console receives work order information issued by a tenant through a PaaS platform, determines the corresponding construction operation based on the work order information, and calls the underlying Agent proxy service to implement the construction operation; the construction operation includes: the component console processes the work order information based on the work order information to obtain a processing result, the work order information processing includes: parsing the work order format, verifying the work order parameters, determining the construction type, and saving data information; the component console deploys the underlying Agent proxy service to the underlying tenant VPC area, and performs asynchronous construction in the tenant VPC area based on the processing result, the asynchronous construction is triggered by registering a node on Zookeeper, including: determining the construction type based on the processing result, and then determining the corresponding state set and the action set for converting the state to asynchronous construction; after the asynchronous construction is completed, the construction result is fed back to the component console, and the construction status is updated to the PaaS platform based on the construction result.
[0069] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0070] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cloud cache database construction processing method based on a finite state machine, characterized in that, The method comprises the steps of: The component console receives the work order information issued by the tenant through the PaaS platform, determines the corresponding construction operation according to the work order information, and calls the underlying Agent proxy service to implement the construction operation; The construction operation comprises: The component console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises: analyzing the work order format, verifying the work order parameters, judging the construction type, and saving the data information; The component console deploys the underlying Agent proxy service to the underlying tenant VPC area, and performs asynchronous construction based on the finite state machine mode in the tenant VPC area based on the processing result, the asynchronous construction is triggered by registering a node on Zookeeper, and comprises: determining the construction type according to the processing result, and then determining the corresponding state set and state transition as the action set of the asynchronous construction; After the asynchronous construction is completed, the construction result is fed back to the component console, and the construction state is updated to the PaaS platform through the construction result.
2. The finite state machine based cloud cache database construction processing method according to claim 1, wherein, The asynchronous construction comprises: Host environment initialization, creation of instance nodes according to the processing result, establishment of node relationship, and configuration of unified access layer.
3. The finite state machine based cloud cache database construction processing method according to claim 2, wherein, The determination of the construction type according to the processing result, and then the determination of the corresponding state set and state transition as the action set of the asynchronous construction comprise: When the construction type corresponding to the work order information is determined to be single machine type, preparation type, and read-only version type in sequence according to the processing result, the action set of the asynchronous construction is node creation action in single time, twice and multiple times in sequence; When the construction type corresponding to the work order information is determined to be cluster version type in sequence according to the processing result, the action set of the asynchronous construction is to execute multiple creation shard actions, and then execute the creation cluster agent node action.
4. The finite state machine based cloud cache database construction processing method according to claim 1, wherein, The method further comprises: The component console communicates with the tenant VPC area through the grpc protocol.
5. The finite state machine based cloud cache database construction processing method according to claim 1, wherein, The method further comprises: In the asynchronous construction process, the construction flow history state of the work order information is recorded through the MySQL storage system.
6. The finite state machine based cloud cache database construction processing method according to claim 1, wherein, The method further comprises: When an error response occurs in the work order information processing process, the component console sends a work order information error to the PaaS platform and stops entering the asynchronous construction; When an error response occurs in the asynchronous construction process, the current construction step is returned according to the error response, the current construction step is repaired, and the node on Zookeeper is re-registered to trigger the work order information to continue execution.
7. A finite state machine based cloud cache database construction processing apparatus, characterized by, The device comprises: A construction module, configured to receive, by a component console, work order information issued by a tenant through a PaaS platform, determine a corresponding construction operation according to the work order information, and call an underlying Agent proxy service to implement the construction operation; A work order information processing module, configured to complete, by the component console, work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises: analyzing the work order format, verifying the work order parameters, judging the construction type, and saving the data information; A construction module, configured to receive, by a component console, work order information issued by a tenant through a PaaS platform, determine a corresponding construction operation according to the work order information, and call an underlying Agent proxy service to implement the construction operation; The asynchronous construction module is used for deploying a bottom-layer Agent agent service to a bottom-layer tenant VPC area by the component console, and performing asynchronous construction based on a finite state machine mode in the tenant VPC area based on the processing result, the asynchronous construction being triggered by registering a node on Zookeeper, and comprising: determining a construction type according to the processing result, and then determining a corresponding state set and state-to-state transition as an action set of the asynchronous construction; The state updating module is used for feeding back a construction result to the component console after the asynchronous construction ends, and updating a construction state to the PaaS platform through the construction result.
8. The finite state machine based cloud cache database construction processing method according to claim 7, wherein, The device further comprises: The node creation module is used for when it is determined according to the processing result that the construction types corresponding to the work order information are single-machine type, preparation type and read-only version type in sequence, then the action sets of the asynchronous construction are single-node creation action, twice-node creation action and multiple-node creation action in sequence; The shard creation module is used for when it is determined according to the processing result that the construction types corresponding to the work order information are cluster version type in sequence, then the action set of the asynchronous construction is to execute multiple shard creation actions, and then execute a cluster agent node creation action.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the steps of the cloud cache database construction processing method based on the finite state machine according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the cloud cache database construction processing method based on the finite state machine according to any one of claims 1 to 6.
Citation Information
Patent Citations
Information flow dependability guarantee mechanism for cloud computation
CN104065651A
State machine configuration method and device, equipment and readable storage medium
CN110825428A