CN112068938A - Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform - Google Patents

Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform Download PDF

Info

Publication number
CN112068938A
CN112068938A CN202010850380.3A CN202010850380A CN112068938A CN 112068938 A CN112068938 A CN 112068938A CN 202010850380 A CN202010850380 A CN 202010850380A CN 112068938 A CN112068938 A CN 112068938A
Authority
CN
China
Prior art keywords
function
online
cloud platform
cpu
architecture
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.)
Withdrawn
Application number
CN202010850380.3A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010850380.3A priority Critical patent/CN112068938A/en
Publication of CN112068938A publication Critical patent/CN112068938A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • G06F9/4862Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration the task being a mobile agent, i.e. specifically designed to migrate

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a system for realizing online function service of a cloud platform with a hybrid CPU architecture, which are characterized in that online functions are established in various ways such as introducing built-in function templates through built-in function templates, timed tasks are added in the online functions, the online functions can be automatically executed after an online function timer is triggered, in addition, different CPU platforms can be selected for different CPU architectures in the application migration process, compiling is carried out again, and the adaptation of the hybrid CPU architecture is completed.

Description

Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method and a system for realizing an online function service of a cloud platform with a hybrid CPU architecture.
Background
With the development of cloud computing, a traditional data center gradually turns to a virtualized data center, and the virtualized data center realizes virtualization of bottom hardware based on a virtualization technology, including computing virtualization, network virtualization, storage virtualization and the like. As the business grows, more system business begins to migrate to the cloud computing platform. In addition, most of the applications in various industries operate based on Windows and X86 architectures, and once the commercial technologies are limited, the application systems in various industries are at great risk. Therefore, from the perspective of actively coping with new technology competition or guaranteeing national information safety, research and development strength is increased, and an open ecological cloud is constructed, so that the ecological cloud becomes the most important and longest development task of the cloud computing industry in China. In the process of migrating the service cloud and the service from the X86 platform to the hybrid CPU architecture platform, a large amount of migration adaptation work is needed, and the migration adaptation process is actually a code tuning and adapting process. Therefore, a hybrid CPU architecture cloud platform online function service is needed, which is convenient for operation and maintenance personnel to quickly adapt and debug.
Disclosure of Invention
The invention aims to provide a method and a system for realizing online function service of a cloud platform with a hybrid CPU (central processing unit) architecture, which aim to solve the problem that system application cannot adapt to different CPU architectures in the prior art, realize automatic operation and maintenance, reduce operation and maintenance cost and operation and maintenance pressure and improve adaptability.
In order to achieve the technical purpose, the invention provides a method for realizing the online function service of a cloud platform with a hybrid CPU architecture, which comprises the following operations:
a plurality of functions are pre-built in the cloud platform and stored as built-in function templates;
selecting different CPU (central processing unit) architecture platforms by introducing a built-in function template, uploading a function script or an online compiling mode, creating an online function, and performing online compiling and debugging in a cloud platform;
and in the operation and maintenance process, setting a trigger for the online function, and executing the online function according to a preset rule when a trigger condition is met so as to perform operation and maintenance management of the application system.
Preferably, the method further comprises:
in the application migration process, aiming at different CPU architectures, different CPU platforms are selected for recompilation by the online function, and the mixed CPU architecture is adapted.
Preferably, the built-in variety of functions includes:
basic function, picture processing function, video processing function, file processing function, message queue function, AI function, big data function.
Preferably, the CPU architecture platform is any one of X86, ARM, MIPS and ALPHA.
The invention also provides a system for realizing the online function service of the cloud platform with the hybrid CPU architecture, which comprises the following steps:
the function pre-built-in module is used for pre-building various functions in the cloud platform and storing the functions as built-in function templates;
the online function creating module is used for selecting different CPU (central processing unit) architecture platforms by importing built-in function templates, uploading function scripts or online compiling, creating online functions and performing online compiling and debugging in the cloud platform;
and the online function triggering module is used for setting a trigger for the online function in the application operation and maintenance process, and executing the online function according to a preset rule when a triggering condition is reached so as to carry out operation and maintenance management on the application system.
Preferably, the system further comprises:
and the application adaptation module is used for selecting different CPU platforms for recompilation by the online function aiming at different CPU architectures in the application migration process so as to adapt to the mixed CPU architecture.
Preferably, the built-in variety of functions includes:
basic function, picture processing function, video processing function, file processing function, message queue function, AI function, big data function.
Preferably, the CPU architecture platform is any one of X86, ARM, MIPS and ALPHA.
The invention also provides a device for realizing the online function service of the cloud platform with the hybrid CPU architecture, which comprises:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the online function service realization method of the cloud platform with the hybrid CPU architecture.
The invention also provides a readable storage medium for storing a computer program, wherein the computer program is executed by a processor to realize the method for realizing the online function service of the cloud platform with the hybrid CPU architecture.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the online function is created by introducing the built-in function template and other modes through the built-in function template, the timing task is added in the online function, the online function can be automatically executed after the on-line function timer is triggered, in addition, different CPU platforms can be selected for different CPU architectures in the application migration process, the compiling is carried out again, the adaptation of the mixed CPU architecture is completed, the automatic operation and maintenance can be realized through the mode, the operation and maintenance cost and the operation and maintenance pressure are reduced, an efficient and quick entrance is provided for the application migration, developers can debug various codes on line without building any development environment of people, and the quick adaptation effect is achieved.
Drawings
Fig. 1 is a flowchart of a method for implementing an online function service of a cloud platform with a hybrid CPU architecture according to an embodiment of the present invention;
fig. 2 is a block diagram of a system for implementing an online function service of a cloud platform with a hybrid CPU architecture according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The method and the system for realizing the online function service of the cloud platform with the hybrid CPU architecture according to the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses a method for implementing an online function service of a cloud platform with a hybrid CPU architecture, the method includes the following operations:
a plurality of functions are pre-built in the cloud platform and stored as built-in function templates;
selecting different CPU (central processing unit) architecture platforms by introducing a built-in function template, uploading a function script or an online compiling mode, creating an online function, and performing online compiling and debugging in a cloud platform;
and in the operation and maintenance process, setting a trigger for the online function, and executing the online function according to a preset rule when a trigger condition is met so as to perform operation and maintenance management of the application system.
The hybrid CPU architecture in the embodiment of the invention comprises X86, ARM, MIPS, ALPHA and the like.
Various functions are built in the cloud platform, including a basic function, a picture processing function, a video processing function, a file processing function, a message queue function, an AI function, a big data function and the like, programming languages include java, C + +, python, go languages, jsp, php, js and the like, and the developed functions are stored as private templates and are convenient to quote.
When creating a function, a developer can specify the name and description information of the online function, select a running platform, select an existing template for creation, or select an empty template for creation. The existing template includes the function operations of the scene, such as database connection query, file uploading and downloading, startup and shutdown of the virtual machine in the virtualization environment, acquisition of monitoring information and other common functions. If the written program script exists locally, the file can be uploaded to the cloud platform in an uploading mode. The cloud platform can automatically identify the uploaded file content and display the file content to the console. After the compiling is finished, online debugging is selected, if compiling errors occur in the debugging process, prompting is carried out in a highlight mode, operation and maintenance personnel can find the errors conveniently, and the current cloud platform supports automatic compiling prompting of java and python.
When the online function is not needed, the online function can be deleted or the function can be modified.
Through online functions, operation and maintenance personnel can compile advanced operation and maintenance scripts to realize automatic operation and maintenance, operation and maintenance cost and pressure can be reduced, in addition, in the process of migrating an application X86 platform to a hybrid CPU architecture platform, partial functions need to be compiled again due to different server CPU architectures, the online function platform provides a high-efficiency quick entrance, developers can debug various codes online without building any development environment, and the effect of quick adaptation is achieved.
The online function can be triggered to execute by setting a timing trigger or other triggers, the trigger time is set by the timing trigger, and when the set time is reached, the function is triggered to execute, and the timing trigger supports fixed time triggering or cyclic triggering.
The embodiment of the invention creates the online function by a built-in function template, by introducing the built-in function template and other modes, adds a timing task in the online function, can automatically execute the online function after the online function timer is triggered, and can select different CPU platforms for recompilation aiming at different CPU architectures in the application migration process to complete the adaptation of a mixed CPU architecture.
As shown in fig. 2, an embodiment of the present invention further discloses a system for implementing an online function service of a cloud platform with a hybrid CPU architecture, where the system includes:
the function pre-built-in module is used for pre-building various functions in the cloud platform and storing the functions as built-in function templates;
the online function creating module is used for selecting different CPU (central processing unit) architecture platforms by importing built-in function templates, uploading function scripts or online compiling, creating online functions and performing online compiling and debugging in the cloud platform;
and the online function triggering module is used for setting a trigger for the online function in the application operation and maintenance process, and executing the online function according to a preset rule when a triggering condition is reached so as to carry out operation and maintenance management on the application system.
The hybrid CPU architecture in the embodiment of the invention comprises X86, ARM, MIPS, ALPHA and the like.
Various functions are built in the cloud platform, including a basic function, a picture processing function, a video processing function, a file processing function, a message queue function, an AI function, a big data function and the like, programming languages include java, C + +, python, go languages, jsp, php, js and the like, and the developed functions are stored as private templates and are convenient to quote.
When creating a function, a developer can specify the name and description information of the online function, select a running platform, select an existing template for creation, or select an empty template for creation. The existing template includes the function operations of the scene, such as database connection query, file uploading and downloading, startup and shutdown of the virtual machine in the virtualization environment, acquisition of monitoring information and other common functions. If the written program script exists locally, the file can be uploaded to the cloud platform in an uploading mode. The cloud platform can automatically identify the uploaded file content and display the file content to the console. After the compiling is finished, online debugging is selected, if compiling errors occur in the debugging process, prompting is carried out in a highlight mode, operation and maintenance personnel can find the errors conveniently, and the current cloud platform supports automatic compiling prompting of java and python.
When the online function is not needed, the online function can be deleted or the function can be modified.
Through online functions, operation and maintenance personnel can compile advanced operation and maintenance scripts to realize automatic operation and maintenance, operation and maintenance cost and pressure can be reduced, in addition, in the process of migrating an application X86 platform to a hybrid CPU architecture platform, partial functions need to be compiled again due to different server CPU architectures, the online function platform provides a high-efficiency quick entrance, developers can debug various codes online without building any development environment, and the effect of quick adaptation is achieved.
The online function can be triggered to execute by setting a timing trigger or other triggers, the trigger time is set by the timing trigger, and when the set time is reached, the function is triggered to execute, and the timing trigger supports fixed time triggering or cyclic triggering.
The embodiment of the invention creates the online function by a built-in function template, by introducing the built-in function template and other modes, adds a timing task in the online function, can automatically execute the online function after the online function timer is triggered, and can select different CPU platforms for recompilation aiming at different CPU architectures in the application migration process to complete the adaptation of a mixed CPU architecture.
The embodiment of the invention also discloses a device for realizing the online function service of the cloud platform with the hybrid CPU architecture, which comprises:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the online function service realization method of the cloud platform with the hybrid CPU architecture.
The embodiment of the invention also discloses a readable storage medium for storing the computer program, wherein the computer program is executed by a processor to realize the method for realizing the online function service of the cloud platform with the hybrid CPU architecture.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for realizing online function service of a cloud platform with a hybrid CPU architecture is characterized by comprising the following operations:
a plurality of functions are pre-built in the cloud platform and stored as built-in function templates;
selecting different CPU (central processing unit) architecture platforms by introducing a built-in function template, uploading a function script or an online compiling mode, creating an online function, and performing online compiling and debugging in a cloud platform;
and in the operation and maintenance process, setting a trigger for the online function, and executing the online function according to a preset rule when a trigger condition is met so as to perform operation and maintenance management of the application system.
2. The method for realizing the online function service of the cloud platform with the hybrid CPU architecture according to claim 1, wherein the method further comprises:
in the application migration process, aiming at different CPU architectures, different CPU platforms are selected for recompilation by the online function, and the mixed CPU architecture is adapted.
3. The method for realizing the online function service of the cloud platform with the hybrid CPU architecture according to claim 1, wherein the step of embedding a plurality of functions comprises the steps of:
basic function, picture processing function, video processing function, file processing function, message queue function, AI function, big data function.
4. The method as claimed in claim 1, wherein the CPU architecture platform is any one of X86, ARM, MIPS and ALPHA.
5. An online function service implementation system of a cloud platform with a hybrid CPU architecture is characterized by comprising:
the function pre-built-in module is used for pre-building various functions in the cloud platform and storing the functions as built-in function templates;
the online function creating module is used for selecting different CPU (central processing unit) architecture platforms by importing built-in function templates, uploading function scripts or online compiling, creating online functions and performing online compiling and debugging in the cloud platform;
and the online function triggering module is used for setting a trigger for the online function in the application operation and maintenance process, and executing the online function according to a preset rule when a triggering condition is reached so as to carry out operation and maintenance management on the application system.
6. The hybrid CPU architecture cloud platform online function service implementation system of claim 5, wherein the system further comprises:
and the application adaptation module is used for selecting different CPU platforms for recompilation by the online function aiming at different CPU architectures in the application migration process so as to adapt to the mixed CPU architecture.
7. The hybrid CPU architecture cloud platform online function service implementation system of claim 5, wherein the built-in multiple functions comprise:
basic function, picture processing function, video processing function, file processing function, message queue function, AI function, big data function.
8. The system of claim 5, wherein the CPU architecture platform is any one of X86, ARM, MIPS, and ALPHA.
9. The utility model provides a mixed CPU framework cloud platform on-line function service realizes equipment which characterized in that, includes:
a memory for storing a computer program;
a processor configured to execute the computer program to implement the hybrid CPU architecture cloud platform online function service implementation method according to any one of claims 1 to 4.
10. A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the hybrid CPU architecture cloud platform online function service implementation method according to any one of claims 1 to 4.
CN202010850380.3A 2020-08-21 2020-08-21 Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform Withdrawn CN112068938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010850380.3A CN112068938A (en) 2020-08-21 2020-08-21 Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010850380.3A CN112068938A (en) 2020-08-21 2020-08-21 Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform

Publications (1)

Publication Number Publication Date
CN112068938A true CN112068938A (en) 2020-12-11

Family

ID=73659475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010850380.3A Withdrawn CN112068938A (en) 2020-08-21 2020-08-21 Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform

Country Status (1)

Country Link
CN (1) CN112068938A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117666963A (en) * 2023-12-13 2024-03-08 湖南承希科技有限公司 Data IO acceleration method of CPU cloud computing platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622264A (en) * 2012-02-24 2012-08-01 北京华胜天成科技股份有限公司 Multi-virtualization computing platform method in cloud computing
CN102622263A (en) * 2012-02-20 2012-08-01 烽火通信科技股份有限公司 Method for implementing embedded system based virtual machine on set-top box
CN111309401A (en) * 2020-03-24 2020-06-19 广西梯度科技有限公司 Method for operating multi-CPU architecture service in Kubernetes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622263A (en) * 2012-02-20 2012-08-01 烽火通信科技股份有限公司 Method for implementing embedded system based virtual machine on set-top box
CN102622264A (en) * 2012-02-24 2012-08-01 北京华胜天成科技股份有限公司 Multi-virtualization computing platform method in cloud computing
CN111309401A (en) * 2020-03-24 2020-06-19 广西梯度科技有限公司 Method for operating multi-CPU architecture service in Kubernetes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿里巴巴云原生: "函数计算自动化运维实战1 --定时任务", 《HTTPS://WWW.CNBLOGS.COM/ALISYSTEMSOFTWARE/P/11975062.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117666963A (en) * 2023-12-13 2024-03-08 湖南承希科技有限公司 Data IO acceleration method of CPU cloud computing platform

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
US11093270B2 (en) Fast-booting application image
CN107111498B (en) Live migration of virtual machines from/to a host computer using graphical virtualization
US20180173529A1 (en) Systems and methods for multi-architecture computing
US20180173675A1 (en) Systems and methods for multi-architecture computing
CN107506247B (en) Asynchronous callback-based task processing method and device
US10417011B2 (en) Thread-agile execution of dynamic programming language programs
CN112395736B (en) Parallel simulation job scheduling method of distributed interactive simulation system
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN114880159B (en) Data processing method, device, equipment and storage medium
US10169193B2 (en) Common debug scripting framework for driving hybrid applications consisting of compiled languages and interpreted languages
CN111123737A (en) Digital hardware virtual simulation system
CN106293687B (en) A kind of control method and device being packaged process
CN112068938A (en) Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform
CN108595178B (en) Hook-based data acquisition method, device and equipment
CN115794355B (en) Task processing method, device, terminal equipment and storage medium
CN113157429A (en) SAAS cloud service implementation method and system
CN114416031B (en) Operating system for supporting RISC-V processor facing AIoT scene
CN111352664A (en) Distributed machine learning task starting method, system, equipment and storage medium
CN110399296B (en) Method, system and medium for testing interactive interface between client and server
CN107229506B (en) Virtual machine migration method and device
CN113810247B (en) Distributed cluster testing method, electronic device, storage medium, and program product
CN112445607A (en) Method and device for executing method function by application program
CN113590166B (en) Application program updating method and device and computer readable storage medium
Zhang et al. A Scheme and Implementation of Automatic Deployment of Multilingual Industrial Mechanism Model Based on OpenStack

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201211

WW01 Invention patent application withdrawn after publication