CN115952198A - Cloud cache database construction processing method and device based on finite-state machine - Google Patents

Cloud cache database construction processing method and device based on finite-state machine Download PDF

Info

Publication number
CN115952198A
CN115952198A CN202211716419.8A CN202211716419A CN115952198A CN 115952198 A CN115952198 A CN 115952198A CN 202211716419 A CN202211716419 A CN 202211716419A CN 115952198 A CN115952198 A CN 115952198A
Authority
CN
China
Prior art keywords
construction
work order
order information
asynchronous
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.)
Pending
Application number
CN202211716419.8A
Other languages
Chinese (zh)
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202211716419.8A priority Critical patent/CN115952198A/en
Publication of CN115952198A publication Critical patent/CN115952198A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a cloud cache database construction processing method and device based on a finite-state machine, wherein the method comprises the following steps: the method comprises the steps that a component console receives work order information issued by a tenant through a PaaS platform, determines construction operation according to the work order information, and calls an Agent service of a bottom layer to implement the construction operation; the construction operation comprises the following steps: the component console completes work order information processing based on the work order information to obtain a processing result; the component control console deploys the bottom layer Agent service to the tenant VPC area of the bottom layer for asynchronous construction, the asynchronous construction is triggered through the registration node on the Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction; and after the asynchronous construction is finished, updating the construction result to the PaaS platform. By means of the finite state machine design concept and mode, the method splits the state and the action of the construction steps, and refines the construction flow granularity, thereby realizing the mode circulation of the state machine for construction treatment.

Description

Finite-state-machine-based cloud cache database construction processing method and device
Technical Field
The invention relates to the technical field of IT and software development, in particular to a cloud cache database construction processing method and device based on a finite-state machine.
Background
Generally, components such as a cloud cache database and the like are delivered to the outside through a cloud platform as a service (PaaS) mode, namely, a tenant selects a corresponding product on a portal interface of a unified PaaS platform, and then a construction order is issued by clicking a button such as instance opening and the like, so that deployment and construction of the components are completed by a background service program. In a common cloud or private cloud scenario, a PaaS platform is located in a management public area, a management console service of a component is located in a preset area of resources, a resource host of an actual deployment instance node is located in a tenant VPC area, construction orders of activation, logout and the like of tenants are issued to the component console through the PaaS platform, and specific construction logic processing is completed by a control service of the component console.
At present, the construction operations of opening, canceling, suspending, recovering, restarting, expanding and shrinking capacity and the like of cloud cache database products are that component management and control services in a resource preset area interact with host resources in a tenant VPC area by utilizing an SSH protocol, construction functions are realized through almost pipelined programming processing logic, safety is low, code realization is heavy, decoupling and multiplexing are not easy to occur, and expansibility and later maintenance cost are greatly challenged.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a cloud cache database construction processing method and device based on a finite-state machine.
The embodiment of the invention provides a cloud cache database construction processing method based on a finite-state machine, which comprises the following steps:
the method comprises the steps that a component console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an Agent service of a bottom layer to implement the construction operation;
the construction operation comprises:
the assembly control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information;
the component console deploys a bottom layer Agent service to a bottom layer tenant VPC area, and asynchronous construction is conducted in the tenant VPC area based on the processing result, and the asynchronous construction is triggered through a registration node on a Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction;
and after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating the construction state to the PaaS platform according to the construction result.
In one embodiment, the asynchronous construction comprises:
initializing a host environment, creating instance nodes according to the processing result, establishing a node relation, and configuring a uniform access layer.
In one embodiment, the method further comprises:
when the construction types corresponding to the work order information are determined to be a single machine type, a preparation type and a read-only type in sequence according to the processing result, the asynchronous construction action set is respectively node creation actions of a single time, two times and multiple times in sequence;
and when the construction types corresponding to the work order information are determined to be cluster edition types in sequence according to the processing result, the asynchronous construction action set is an action of executing multiple times of fragment creation, and then executing an action of creating a cluster agent node.
In one embodiment, the method further comprises:
the component console communicates with the tenant VPC zone via a grpc protocol.
In one embodiment, the method further comprises:
and in the asynchronous construction process, recording the construction flow historical state of the work order information through a MySQL storage system.
In one embodiment, the method further comprises:
when an error response occurs in the work order information processing process, the component control console sends a work order information error to the PaaS platform and stops entering the asynchronous construction;
and when an error response occurs in the asynchronous construction process, returning an error in the current construction step according to the error response, repairing the current construction step, and after the repair is completed, re-registering a node on the Zookeeper to trigger the continuous execution of the work order information.
The embodiment of the invention provides a cloud cache database construction processing device based on a finite-state machine, which comprises:
the construction module is used for receiving work order information issued by a tenant through a PaaS platform by the component console, determining corresponding construction operation according to the work order information, and calling an Agent service at the bottom layer to implement the construction operation;
the work order information processing module is used for the component control console completing work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information;
the asynchronous construction module is used for the component control console to deploy the bottom layer Agent proxy service to the bottom layer tenant VPC area, asynchronous construction is carried out in the tenant VPC area based on the processing result, the asynchronous construction is triggered through a registration node on the Zookeeper, and the asynchronous construction method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction;
and the state updating module is used for feeding back a construction result to the component control console after the asynchronous construction is finished, and updating the construction state to the PaaS platform according to the construction result.
In one embodiment, the apparatus further comprises:
the node creating module is used for sequentially and respectively creating actions for single, twice and multiple nodes by the asynchronous construction action set when the construction types corresponding to the work order information are determined to be a single machine type, a preparation type and a read-only type in sequence according to the processing result;
and the fragment creating module is used for performing a plurality of fragment creating actions for the asynchronous construction action set when the construction types corresponding to the work order information are determined to be cluster edition types in sequence according to the processing result, and further performing a cluster agent node creating action.
The embodiment of the invention provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the cloud cache database construction processing method based on the finite-state machine when executing the program.
The embodiment of the invention provides a non-transitory computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the finite state machine-based cloud cache database construction processing method.
According to the cloud cache database construction processing method and device based on the finite-state machine, an assembly console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an underlying Agent service to implement the construction operation; a construction operation comprising: the component control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information; the method comprises the following steps that a component console deploys a bottom layer Agent service to a bottom layer tenant VPC area, asynchronous construction is conducted in the tenant VPC area based on a processing result, and the asynchronous construction is triggered through a registration node on a Zookeeper, and comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction; and after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating the construction state to the PaaS platform according to the construction result. Such advantages and improvements include: 1. the method comprises the steps of splitting different versions of different types of construction operation, establishing a mapping relation with a state machine, refining the granularity of each construction step, and carrying out corresponding coding implementation aiming at conversion actions among different states, so that the construction operation is accurate and controllable, and the same construction action in different construction flows can realize code multiplexing, thereby facilitating development and implementation, facilitating later maintenance and greatly enhancing the simplicity and expansibility of coding; 2. the method has the advantages that the triggering and starting of the construction state circulation task are realized through node registration on the Zookeeper by utilizing a node monitoring mechanism of the Zookeeper, and the autonomy and convenience of construction flow scheduling are greatly improved.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a cloud cache database construction processing method based on a finite-state machine according to an embodiment of the present invention;
fig. 2 is an interaction diagram of an overall architecture of a finite-state-machine-based cloud cache database construction processing method according to an embodiment of the present invention;
fig. 3 is an exemplary timing chart of a construction operation in a finite state machine-based cloud cache database construction processing method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a finite state machine-based cloud cache database construction processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the 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.
Fig. 1 is a schematic flow diagram of a finite-state-machine-based cloud cache database construction processing method according to an embodiment of the present invention, and as shown in fig. 1, the finite-state-machine-based cloud cache database construction processing method according to an embodiment of the present invention includes:
and S101, receiving work order information issued by a tenant through a PaaS platform by a component console, determining corresponding construction operation according to the work order information, and calling an Agent service at the bottom layer to implement the construction operation.
Specifically, the finite-state-machine-based cloud cache database construction processing method in this embodiment may be adapted to a Redis database and a related derivative cloud cache database product supporting a protocol thereof, and deliver the cloud cache database product to the outside in a mode of generally adopting a cloud platform as a service (PaaS), that is, a tenant issues a work order through a PaaS platform portal, and a component console receives and processes the work order, thereby invoking a bottom-layer Agent service to implement construction operations such as creation or logout of a specific instance node.
In addition, in the construction operation, the finite state machine-based construction processing logic is mainly realized by a back-end service of a component console, the storage of state sets and state context information and the triggering and scheduling of the construction flow are respectively realized by means of MySQL and Zookeeper, and a specific overall architecture interaction diagram is shown in fig. 2.
The construction operation comprises:
step S102, the assembly control console completes the work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing the data information.
Specifically, after receiving a construction order issued by the PaaS, the component console completes work order information processing based on work order information, wherein the work order information processing step includes analyzing a work order format, checking work order parameters, judging a construction type and storing data information to obtain a processing result, and in addition, the work order information processing can be synchronously responded to the PaaS platform, so that the PaaS platform displays the state of the construction order as in construction.
Step S103, the component console deploys the bottom layer Agent service to the bottom layer tenant VPC area, and asynchronous construction is carried out in the tenant VPC area based on the processing result, and the asynchronous construction is triggered by registering nodes on a Zookeeper, and the method comprises the following steps: and determining the construction type according to the processing result, and further determining the corresponding state set and the state-to-state conversion to the asynchronous construction action set.
Specifically, the component console deploys Agent services to a resource host of a bottom layer VPC area for operation deployment of bottom layer instance resources, sequentially executes subsequent asynchronous construction operations based on a state machine in the tenant VPC area, and registers nodes on a Zookeeper to trigger an asynchronous construction flow based on the state machine, wherein the asynchronous construction operations are converted into an initialization ready state from an original state through environment initialization actions based on a finite state machine mode, and then executes operations such as node creation or cluster fragment creation according to different instance types.
In addition, the asynchronous construction operation may include steps of initializing a host environment, creating an instance node according to a processing result, establishing a node relationship, configuring a uniform access layer, and the like, and specifically includes, in creating an instance node according to a processing result: for the single machine, the main and standby and the read-only examples, the conversion from the environment initialization ready state to the example node ready state is realized by respectively executing single, twice and many times of node creation actions, and then executing the action of configuring the main and standby relation; for the cluster version example, multiple fragment creating actions are required to realize the conversion from the environment initialization ready state to the fragment ready state, each fragment is equivalent to a main/standby example, so that the creation of each fragment is equivalent to the process of creating a main/standby node and establishing a main/standby relationship once, and multiple fragments execute multiple creating processes to further execute the action of creating the cluster agent node.
In addition, the component console of the resource preset area and the Agent service which is initially deployed on the resource host of the tenant VPC area carry out communication interaction through a grpc protocol, coding complexity of interaction with the ssh protocol is avoided, and meanwhile communication safety is enhanced.
And step S104, after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating a construction state to the PaaS platform according to the construction result.
Specifically, after asynchronous construction is finished, 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 construction state is updated, for example, the construction is successful, and the opening construction of the example is successfully completed and the tenant can be provided with service. In addition, if any link before asynchronous construction such as work order analysis, parameter verification and the like makes a mistake, a synchronous response result is directly returned to be a failure, and an asynchronous construction flow cannot be triggered; if the action execution between any state conversion in the asynchronous construction process is wrong, the construction response result asynchronously returned from the current state is failed, and because each state stores the context of the state in MySQL, the continuous execution of the construction flow corresponding to the work order is triggered by re-registering the Zookeeper node after the problem is repaired.
In addition, in the asynchronous construction process, the historical state of the construction flow of the work order information is recorded through the MySQL storage system (if the work order is a new work order, the historical state is an EMPTY (instance), namely an original state), the execution of the work order information can be triggered from the action of an initial state or a middle state, and therefore the finite state set, the current construction state and the context information of each construction type are maintained through the MySQL, the idempotent and continuous operation of the flow processing such as construction interruption and retry can be achieved, the executed operation is prevented from being backed off or repeated, the construction efficiency is improved, and the robustness of the work order processing is enhanced.
An example timing diagram of the construction operation in this embodiment may be as shown in fig. 3, where after receiving the work order analysis and checking, the component console initiates an asynchronous construction process, and first deploys the Agent proxy service to the bottom-layer VPC area resource host during environment initialization, so as to provide for operation deployment of the bottom-layer instance resource; then, the component console sequentially executes subsequent construction operation based on a state machine, and the resource preset area and the tenant VPC area are communicated through a grpc; and finally, after the construction is finished, executing asynchronous receipt response to the PaaS platform, and updating the construction state so as to finish the delivery of the product instance to the tenant.
According to the cloud cache database construction processing method based on the finite-state machine, an assembly console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an underlying Agent service to implement the construction operation; a construction operation comprising: the component control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information; the component control console deploys the bottom layer Agent service to a bottom layer tenant VPC area, asynchronous construction is conducted in the tenant VPC area based on a processing result, the asynchronous construction is triggered through a registration node on a Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction; and after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating the construction state to the PaaS platform according to the construction result. Such advantages and improvements include: 1. the method comprises the steps of splitting different versions of different types of construction operation, establishing a mapping relation with a state machine, refining the granularity of each construction step, and carrying out corresponding coding implementation aiming at conversion actions among different states, so that the construction operation is accurate and controllable, and the same construction action in different construction flows can realize code multiplexing, thereby facilitating development and implementation, facilitating later maintenance and greatly enhancing the simplicity and expansibility of coding; 2. the method has the advantages that the triggering and starting of the construction state circulation task are realized through node registration on the Zookeeper by utilizing a node monitoring mechanism of the Zookeeper, and the autonomy and convenience of construction flow scheduling are greatly improved.
Fig. 4 is a device for processing cloud cache database construction based on a finite-state machine according to an embodiment of the present invention, including: the system comprises a detection module S201, a selection module S202, an initialization module S203, a first adding module S204 and a second adding module S205, wherein:
the construction module S201 is used for receiving work order information issued by a tenant through a PaaS platform by the component console, determining corresponding construction operation according to the work order information, and calling an underlying Agent proxy service to implement the construction operation.
A work order information processing module S202, configured to complete work order information processing by the component console based on the work order information, and obtain a processing result, where the work order information processing includes: analyzing the work order format, checking the work order parameters, judging the construction type and storing the data information.
The asynchronous construction module S203 is configured to deploy, by the component console, the bottom Agent proxy service to a tenant VPC area of the bottom, and perform asynchronous construction in the tenant VPC area based on the processing result, where the asynchronous construction is triggered by registering a node on a Zookeeper, and includes: and determining the construction type according to the processing result, and further determining the corresponding state set and the state-to-state conversion to the asynchronous construction action set.
And the state updating module S204 is used for feeding back a construction result to the component console after the asynchronous construction is finished, and updating the construction state to the PaaS platform according to the construction result.
In one embodiment, the apparatus further comprises:
and the node creating module is used for sequentially and respectively creating actions for single, twice and multiple nodes by the asynchronous construction action set when the construction types corresponding to the work order information are determined to be a single machine type, a preparation type and a read-only type in sequence according to the processing result.
And the fragment creating module is used for performing a plurality of fragment creating actions for the asynchronous construction action set when the construction types corresponding to the work order information are determined to be cluster edition types in sequence according to the processing result, and further performing a cluster agent node creating action.
For specific limitations of the finite state machine-based cloud cache database construction processing device, reference may be made to the above limitations of the finite state machine-based cloud cache database construction processing method, and details are not repeated here. The modules in the finite state machine-based cloud cache database construction processing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor) 301, a memory (memory) 302, a communication Interface (Communications Interface) 303 and a communication bus 304, wherein the processor 301, the memory 302 and the communication Interface 303 complete communication with each other through the communication bus 304. The processor 301 may call logic instructions in the memory 302 to perform the following method: the method comprises the steps that a component console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an Agent service of a bottom layer to implement the construction operation; a construction operation comprising: the component control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information; the component control console deploys the bottom layer Agent service to a bottom layer tenant VPC area, asynchronous construction is conducted in the tenant VPC area based on a processing result, the asynchronous construction is triggered through a registration node on a Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction; and after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating the construction state to the PaaS platform according to the construction result.
Furthermore, the logic instructions in the memory 302 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, for example, the method includes: the method comprises the steps that a component console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an Agent service of a bottom layer to implement the construction operation; a construction operation comprising: the component control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information; the component control console deploys the bottom layer Agent service to a bottom layer tenant VPC area, asynchronous construction is conducted in the tenant VPC area based on a processing result, the asynchronous construction is triggered through a registration node on a Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction; and after the asynchronous construction is finished, feeding back a construction result to the assembly control console, and updating the construction state to the PaaS platform according to the construction result.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
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.

Claims (10)

1. A cloud cache database construction processing method based on a finite-state machine is characterized by comprising the following steps:
the method comprises the steps that a component console receives work order information issued by a tenant through a PaaS platform, determines corresponding construction operation according to the work order information, and calls an underlying Agent service to implement the construction operation;
the construction operation comprises:
the assembly control console completes work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information;
the component console deploys a bottom layer Agent service to a bottom layer tenant VPC area, and asynchronous construction is conducted in the tenant VPC area based on the processing result, and the asynchronous construction is triggered through a registration node on a Zookeeper, and the method comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction;
and after the asynchronous construction is finished, feeding back a construction result to the assembly console, and updating the construction state to the PaaS platform according to the construction result.
2. The finite-state-machine-based cloud cache database construction processing method according to claim 1, wherein the asynchronous construction comprises:
initializing a host environment, creating instance nodes according to the processing result, establishing a node relation, and configuring a uniform access layer.
3. The finite-state-machine-based cloud cache database construction processing method according to claim 2, wherein the determining a construction type according to the processing result, and further determining a corresponding state set and an action set for converting between states into the asynchronous construction comprises:
when the construction types corresponding to the work order information are determined to be a single machine type, a preparation type and a read-only type in sequence according to the processing result, the asynchronous construction action set respectively creates actions for single, twice and multiple nodes in sequence;
and when the construction types corresponding to the work order information are determined to be cluster edition types in sequence according to the processing result, the asynchronous construction action set is an action of executing multiple times of fragment creation, and then executing an action of creating a cluster agent node.
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 zone via a grpc protocol.
5. The finite state machine-based cloud cache database construction processing method according to claim 1, wherein the method further comprises:
and in the asynchronous construction process, recording the construction flow historical state of the work order information through a 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 control console sends a work order information error to the PaaS platform and stops entering the asynchronous construction;
and when an error response occurs in the asynchronous construction process, returning an error in the current construction step according to the error response, repairing the current construction step, and after the repair is completed, re-registering a node on the Zookeeper to trigger the work order information to be continuously executed.
7. A cloud cache database construction processing device based on a finite state machine is characterized by comprising:
the construction module is used for receiving work order information issued by a tenant through a PaaS platform by the component console, determining corresponding construction operation according to the work order information, and calling an Agent service at the bottom layer to implement the construction operation;
the work order information processing module is used for the assembly control console completing the work order information processing based on the work order information to obtain a processing result, and the work order information processing comprises the following steps: analyzing the work order format, checking the work order parameters, judging the construction type and storing data information;
the asynchronous construction module is used for deploying the bottom layer Agent service to a bottom layer tenant VPC area by the component control console, and carrying out asynchronous construction in the tenant VPC area based on the processing result, wherein the asynchronous construction is triggered by registering nodes on a Zookeeper, and the asynchronous construction module comprises the following steps: determining the construction type according to the processing result, and further determining a corresponding state set and an action set for converting the states into asynchronous construction;
and the state updating module is used for feeding back a construction result to the component console after the asynchronous construction is finished, and updating the construction state to the PaaS platform according to the construction result.
8. The finite-state-machine-based cloud cache database construction processing method according to claim 7, wherein the apparatus further comprises:
the node creating module is used for sequentially and respectively creating actions for single, twice and many nodes according to the asynchronous construction action set when the construction types corresponding to the work order information are determined to be a single machine type, a preparation type and a read-only type according to the processing result;
and the fragment creating module is used for performing a plurality of fragment creating actions for the asynchronous construction action set when the construction types corresponding to the work order information are determined to be cluster edition types in sequence according to the processing result, and further performing a cluster agent node creating action.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the finite state machine based cloud cache database construction processing method according to any one of claims 1 to 6 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the finite state machine based cloud cache database construction processing method according to any one of claims 1 to 6.
CN202211716419.8A 2022-12-29 2022-12-29 Cloud cache database construction processing method and device based on finite-state machine Pending CN115952198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211716419.8A CN115952198A (en) 2022-12-29 2022-12-29 Cloud cache database construction processing method and device based on finite-state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211716419.8A CN115952198A (en) 2022-12-29 2022-12-29 Cloud cache database construction processing method and device based on finite-state machine

Publications (1)

Publication Number Publication Date
CN115952198A true CN115952198A (en) 2023-04-11

Family

ID=87291133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211716419.8A Pending CN115952198A (en) 2022-12-29 2022-12-29 Cloud cache database construction processing method and device based on finite-state machine

Country Status (1)

Country Link
CN (1) CN115952198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117290440A (en) * 2023-09-12 2023-12-26 上海沄熹科技有限公司 Processing method and system for aggregation and splitting in database fragment replication process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117290440A (en) * 2023-09-12 2023-12-26 上海沄熹科技有限公司 Processing method and system for aggregation and splitting in database fragment replication process
CN117290440B (en) * 2023-09-12 2024-05-07 上海沄熹科技有限公司 Processing method and system for aggregation and splitting in database fragment replication process

Similar Documents

Publication Publication Date Title
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
CN109597655B (en) Method and device for configuring application program
CN110413304B (en) Intelligent contract hot upgrading method and device based on block chain network
US20210055925A1 (en) Method and system for implementing software changes using rolling upgrades with reduced downtime
CN109889377B (en) Method and device for deploying VNF in NFV system based on Openstack
US20110179398A1 (en) Systems and methods for per-action compiling in contact handling systems
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN112148315A (en) Software deployment method, device, server and storage medium
CN115952198A (en) Cloud cache database construction processing method and device based on finite-state machine
CN110995481A (en) Configuration method, server and computer-readable storage medium
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN112860282A (en) Upgrading method and device of cluster plug-in and server
US11539612B2 (en) Testing virtualized network functions
EP4350553A2 (en) Configurable memory device connected to a microprocessor
CN111143041B (en) Data consistency method, distributed coordinator and central coordinator
CN112732285A (en) Upgrading method and device suitable for cloud computing linux operating system and electronic equipment
CN111984623A (en) Database cluster automatic deployment method, device, medium and electronic equipment
EP4130982A1 (en) Network-based solution module deployment platform
CN107885574B (en) Deployment method of virtual machine, service node, control device and control node
CN108073460A (en) Global lock method for pre-emptively, device and computing device in distributed system
CN115766439A (en) KVM device batch upgrading method and device and electronic device
US11269615B2 (en) Automatically orchestrating deployments of software-defined storage stacks
CN108062224A (en) Data read-write method, device and computing device based on file handle
CN114879977A (en) Application deployment method, device and storage medium

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