Supercharge Your Innovation With Domain-Expert AI Agents!

Instance creation method and device for stateful application, equipment and medium

An application instance and state technology, applied in the field of database applications, can solve problems such as reducing user experience, unsatisfactory operation results, and heterogeneous cluster machines, and achieve the effect of improving experience.

Active Publication Date: 2020-01-03
TRANSWARP INFORMATION TECH SHANGHAI
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of implementing the present invention, the inventor found that the prior art has the following defects: when the stateful application controller in the prior art creates stateful application instances, it usually uses a fixed template to create all application instances , so the configurations of all application instances are exactly the same, but in actual applications due to heterogeneous differences among cluster machines, the running results of the same application instance created with the same template on different machines may not be ideal, thus reducing user experience effect

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instance creation method and device for stateful application, equipment and medium
  • Instance creation method and device for stateful application, equipment and medium
  • Instance creation method and device for stateful application, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] figure 1 It is a flowchart of a method for creating an instance of a stateful application provided by Embodiment 1 of the present invention. The embodiment of the present invention can be applied to the situation of creating an instance of a stateful application, and the method can be executed by the device for creating an instance of a stateful application provided by the embodiment of the present invention, and the device can be implemented in software and / or hardware, And generally can be integrated in the computer equipment.

[0040] Such as figure 1 As shown, the method of the embodiment of the present invention specifically includes:

[0041] Step 101, obtaining an application instance creation request submitted by a user.

[0042]Among them, after obtaining the application instance creation request submitted by the user, it also includes: detecting the application instance creation request, and if it is determined according to the detection result that the for...

Embodiment 2

[0058] figure 2 It is a flowchart of a method for creating an instance of a stateful application provided by Embodiment 2 of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. In the embodiment of the present invention, each entry is traversed to create application instances corresponding to different template names, including: for each template The application instance corresponding to the name is created in the following ways: Obtain the preset number of copies contained in the template definition in the currently traversed entry; collect the actual number of copies of the application instance running in the current cluster; The comparison result of the actual number of copies creates an application instance corresponding to the template name in the currently traversed entry.

[0059] Such as figure 2 As shown, the method of the embodiment of the present invention specificall...

Embodiment 3

[0079] image 3 It is a device for creating an instance of a stateful application provided by Embodiment 3 of the present invention. The device can be implemented in the form of software and / or hardware, and generally can be integrated into computer equipment. Such as image 3 As shown, the device includes: an application instance creation request acquisition module 301 , a template mapping list extraction module 302 and an application instance creation module 303 .

[0080] Among them, the application instance creation request acquisition module 301 is used to obtain the application instance creation request submitted by the user; the template mapping list extraction module 302 is used to extract the template mapping list from the application instance creation request, wherein the template mapping list includes the template name The entry corresponding to the template definition, and the number of template names is at least two; the application instance creation module 303 ...

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

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an instance creation method and device for stateful application, equipment and a medium. The method comprises the steps of obtaining an application instance creation request submitted by a user; executing a template mapping list from the application instance creation request, wherein the template mapping list comprises entries of corresponding relations between template names and template definitions, and the number of the template names is at least two; and respectively creating application instances corresponding to different template names by traversing each entry. The embodiment of the invention discloses a method and a device for establishing a stateful application. According to the embodiment of the invention, the template mapping list can beextracted from the application instance creation request submitted by the user, and the application instances with different configurations corresponding to different template names are created according to the template mapping list, so that the application instances with different configurations can run on different machines in the cluster, and the experience effect of the user is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of database applications, and in particular to a method, device, device and medium for creating an instance of a stateful application. Background technique [0002] The container cluster management system Kubernetes is an open source platform used to manage containerized applications on multiple hosts in the cloud platform, and can realize automatic deployment, automatic expansion and contraction, maintenance and other functions of container clusters. A pod is an application instance in a Kubernetes cluster. It is the smallest unit that can be created and deployed in Kubernetes. A pod contains one or more containers, as well as resources shared by containers such as storage and network. [0003] In a Kubernetes cluster, specific control pod resources are generally divided into stateful application controllers and stateless application controllers. For the built-in stateless controll...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/20G06F9/445
CPCG06F8/20G06F9/44536
Inventor 吴俣铖郑淮城
Owner TRANSWARP INFORMATION TECH SHANGHAI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More