CN113641454B - A business application deployment method, device, electronic equipment and storage medium - Google Patents

A business application deployment method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113641454B
CN113641454B CN202110943313.0A CN202110943313A CN113641454B CN 113641454 B CN113641454 B CN 113641454B CN 202110943313 A CN202110943313 A CN 202110943313A CN 113641454 B CN113641454 B CN 113641454B
Authority
CN
China
Prior art keywords
cloud device
cloud
container image
container
information
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.)
Active
Application number
CN202110943313.0A
Other languages
Chinese (zh)
Other versions
CN113641454A (en
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.)
China United Network Communications Group Co Ltd
Unicom Cloud Data Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Cloud Data 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 China United Network Communications Group Co Ltd, Unicom Cloud Data Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110943313.0A priority Critical patent/CN113641454B/en
Publication of CN113641454A publication Critical patent/CN113641454A/en
Application granted granted Critical
Publication of CN113641454B publication Critical patent/CN113641454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a service application deployment method, a service application deployment device, electronic equipment and a storage medium. The method comprises the following steps: acquiring demand information and use area information of a target service application; generating a container mirror image of the target business application according to the demand information; determining first cloud equipment from a preset network system according to the using area information, wherein the preset network system comprises a plurality of cloud equipment; determining cloud equipment adjacent to the first cloud equipment in the preset network system as second cloud equipment; deploying the container image in the second cloud device. According to the method and the device for the cloud service application, the target service application can be deployed to cloud equipment which is used by a user in advance, so that the problem that service interruption time is long due to temporary migration of the service application when the user moves is avoided, and user experience is improved.

Description

一种业务应用部署方法、装置、电子设备及存储介质A business application deployment method, device, electronic equipment and storage medium

技术领域technical field

本申请涉及通信技术,尤其涉及一种业务应用部署方法、装置、电子设备及存储介质。The present application relates to communication technologies, and in particular to a service application deployment method, device, electronic equipment and storage medium.

背景技术Background technique

当前,业务应用规模已经越来越大,好多业务应用需要覆盖全球、全国、全域,为了提高业务应用的使用体验,大多数业务应用都是部署在距离用户比较近的云平台上,并且根据用户的网络所在域,在不同的域内部署。At present, the scale of business applications has become larger and larger, and many business applications need to cover the whole world, the whole country, and the whole domain. In order to improve the experience of using business applications, most business applications are deployed on cloud platforms that are relatively close to users, and are deployed in different domains according to the domain of the user's network.

但是,边缘云的能力有限,无法将所有的算力任务都能完成,或者由于用户的移动,算力任务需要从一个位置迁移到用户移动后更近的位置。However, the edge cloud has limited capabilities and cannot complete all computing power tasks, or due to the movement of users, computing power tasks need to be migrated from one location to a closer location after the user moves.

在相关技术中,针对上述问题的解决方法通常是通过迁移的方式解决,但是这种方法会导致业务中断较长时间。In related technologies, the solution to the above problems is usually solved by migration, but this method will cause service interruption for a long time.

发明内容Contents of the invention

本申请提供一种业务应用部署方法、装置、电子设备及存储介质,用以解决用户移动时因临时迁移业务应用而导致业务中断时间较长的问题。The present application provides a service application deployment method, device, electronic equipment and storage medium to solve the problem of long service interruption caused by temporary relocation of service applications when users move.

第一方面,本申请实施例提供一种业务应用部署方法,该方法包括:In the first aspect, the embodiment of the present application provides a business application deployment method, the method includes:

获取目标业务应用的需求信息和使用区域信息;Obtain the demand information and usage area information of the target business application;

根据所述需求信息生成所述目标业务应用的容器镜像;generating a container image of the target business application according to the requirement information;

根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备;determining a first cloud device from a preset network system according to the use area information, where the preset network system includes a plurality of cloud devices;

将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备;determining a cloud device adjacent to the first cloud device in the preset network system as a second cloud device;

在所述第二云设备中部署所述容器镜像。Deploy the container image on the second cloud device.

在可选的一种实施方式中,所述多个云设备包括雾云设备和边缘云设备,所述根据所述需求信息生成所述目标业务应用的容器镜像,包括:In an optional implementation manner, the plurality of cloud devices include fog cloud devices and edge cloud devices, and the generating the container image of the target business application according to the demand information includes:

根据所述需求信息生成与所述雾云设备对应类型的第一容器镜像、与所述边缘云设备对应类型的第二容器镜像。A first container image of a type corresponding to the fog cloud device and a second container image of a type corresponding to the edge cloud device are generated according to the requirement information.

在可选的一种实施方式中,在所述第二云设备中部署所述容器镜像,包括:In an optional implementation manner, deploying the container image in the second cloud device includes:

若所述第二云设备为雾云设备,将所述第一容器镜像部署到所述第二云设备;If the second cloud device is a fog cloud device, deploying the first container image to the second cloud device;

若所述第二云设备为边缘云设备,将所述第二容器镜像部署到所述第二云设备。If the second cloud device is an edge cloud device, deploying the second container image to the second cloud device.

在可选的一种实施方式中,所述预设网络系统还包括与所述第二云设备连接的中心云设备,所述方法还包括:In an optional implementation manner, the preset network system further includes a central cloud device connected to the second cloud device, and the method further includes:

将所述第一容器镜像和所述第二容器镜像存储在所述中心云设备的镜像库中。storing the first container image and the second container image in an image library of the central cloud device.

在可选的一种实施方式中,所述第一容器镜像为docker类型的容器镜像,所述第二容器镜像为k8s类型的容器镜像。In an optional implementation manner, the first container image is a docker type container image, and the second container image is a k8s type container image.

在可选的一种实施方式中,所述方法还包括:In an optional embodiment, the method also includes:

若检测到所述目标业务应用从所述第二云设备转出,对所述第二云设备中的所述容器镜像进行销毁处理。If it is detected that the target service application is transferred out from the second cloud device, the container image in the second cloud device is destroyed.

在可选的一种实施方式中,所述需求信息包括容器需求信息和容器编排信息。In an optional implementation manner, the requirement information includes container requirement information and container arrangement information.

第二方面,本申请实施例提供一种业务应用部署装置,所述装置包括:In the second aspect, the embodiment of the present application provides a service application deployment device, the device includes:

信息获取模块,用于获取目标业务应用的需求信息和使用区域信息;An information acquisition module, configured to acquire demand information and use area information of target business applications;

容器镜像生成模块,用于根据所述需求信息生成所述目标业务应用的容器镜像;A container image generating module, configured to generate a container image of the target business application according to the requirement information;

第一云设备确定模块,用于根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备;A first cloud device determining module, configured to determine a first cloud device from a preset network system according to the use area information, and the preset network system includes a plurality of cloud devices;

第二云设备确定模块,将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备;The second cloud device determination module determines a cloud device adjacent to the first cloud device in the preset network system as a second cloud device;

部署模块,用于在所述第二云设备中部署所述容器镜像。A deployment module, configured to deploy the container image in the second cloud device.

在可选的一种实施方式中,容器镜像生成模块具体用于:In an optional implementation manner, the container image generation module is specifically used for:

根据所述需求信息生成与所述雾云设备对应类型的第一容器镜像、与所述边缘云设备对应类型的第二容器镜像。A first container image of a type corresponding to the fog cloud device and a second container image of a type corresponding to the edge cloud device are generated according to the requirement information.

在可选的一种实施方式中,部署模块,包括:In an optional implementation manner, the deployment module includes:

第一部署单元,用于若所述第二云设备为雾云设备,将所述第一容器镜像部署到所述第二云设备;A first deployment unit, configured to deploy the first container image to the second cloud device if the second cloud device is a fog cloud device;

第二部署单元,用于若所述第二云设备为边缘云设备,将所述第二容器镜像部署到所述第二云设备。The second deployment unit is configured to deploy the second container image to the second cloud device if the second cloud device is an edge cloud device.

在可选的一种实施方式中,所述预设网络系统还包括与所述第二云设备连接的中心云设备,该装置还包括:In an optional implementation manner, the preset network system further includes a central cloud device connected to the second cloud device, and the device further includes:

存储模块,用于将所述第一容器镜像和所述第二容器镜像存储在所述中心云设备的镜像库中。A storage module, configured to store the first container image and the second container image in an image library of the central cloud device.

在可选的一种实施方式中,所述第一容器镜像为docker类型的容器镜像,所述第二容器镜像为k8s类型的容器镜像。In an optional implementation manner, the first container image is a docker type container image, and the second container image is a k8s type container image.

在可选的一种实施方式中,该装置还包括:In an optional embodiment, the device also includes:

销毁模块,用于若检测到所述目标业务应用从所述第二云设备转出,对所述第二云设备中的所述容器镜像进行销毁处理。A destroying module, configured to destroy the container image in the second cloud device if it is detected that the target business application is transferred out from the second cloud device.

在可选的一种实施方式中,所述需求信息包括容器需求信息和容器编排信息。In an optional implementation manner, the requirement information includes container requirement information and container arrangement information.

第三方面,本申请实施例提供一种电子设备,包括:存储器和处理器;In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;

存储器,用于存储所述处理器可执行指令的存储器;a memory for storing said processor-executable instructions;

其中,所述处理器被配置为执行上述实施例提供的方法。Wherein, the processor is configured to execute the method provided in the foregoing embodiments.

第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现上述实施例提供的方法。In a fourth aspect, the embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are used to implement the methods provided in the foregoing embodiments.

第五方面,本申请实施例提供一种计算机程序产品,该计算机程序产品包括计算机程序,该计算机程序被处理器执行时实现上述实施例提供的方法。In a fifth aspect, the embodiments of the present application provide a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the method provided in the foregoing embodiments is implemented.

本申请提供的业务应用部署方法、装置、电子设备及存储介质,通过获取目标业务应用的需求信息和使用区域信息,并根据所述需求信息生成所述目标业务应用的容器镜像,再根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备,从而可以根据用户所处区域准确确定用户正在使用的云设备。然后,将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备,并在所述第二云设备中部署所述容器镜像,由于第二云设备与第一云设备相邻,当用户移动导致目标业务应用无法在第一云设备上使用时,可以直接使用第二云设备中提前部署好的目标业务应用的容器镜像,确保了用户在移动过程中目标业务不会中断较长时间,有效提升了用户体验。The business application deployment method, device, electronic device, and storage medium provided by the present application acquire the demand information and use area information of the target business application, generate a container image of the target business application according to the demand information, and then determine the first cloud device from a preset network system according to the use area information. The preset network system includes a plurality of cloud devices, so that the cloud device being used by the user can be accurately determined according to the area where the user is located. Then, the cloud device adjacent to the first cloud device in the preset network system is determined as the second cloud device, and the container image is deployed on the second cloud device. Since the second cloud device is adjacent to the first cloud device, when the user moves and the target business application cannot be used on the first cloud device, the container image of the target business application deployed in advance in the second cloud device can be directly used, which ensures that the target business will not be interrupted for a long time during the user's movement, and effectively improves user experience.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

图1为本申请实施例提供的业务应用部署方法的一种应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a service application deployment method provided in an embodiment of the present application;

图2为本申请实施例提供的一种业务应用部署方法的流程示意图;FIG. 2 is a schematic flow diagram of a service application deployment method provided in an embodiment of the present application;

图3为本申请实施例提供的另一种业务应用部署方法的流程示意图;FIG. 3 is a schematic flowchart of another service application deployment method provided by the embodiment of the present application;

图4为本申请实施例提供的业务应用部署方法的另一种应用环境示意图;FIG. 4 is a schematic diagram of another application environment of the service application deployment method provided by the embodiment of the present application;

图5为本申请实施例提供的一种业务应用部署装置的结构示意图;FIG. 5 is a schematic structural diagram of a service application deployment device provided in an embodiment of the present application;

图6为本申请实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

目前,业务应用规模已经越来越大,许多业务应用需要覆盖全球、全国、全域等。为了提高业务应用的使用体验,大多数业务应用都是部署在距离用户比较近的云或者边,并且根据用户的网络所在域,在不同的域内部署。At present, the scale of business applications has become larger and larger, and many business applications need to cover the whole world, the whole country, and the whole domain. In order to improve the user experience of business applications, most business applications are deployed on the cloud or edge that is relatively close to the user, and are deployed in different domains according to the domain of the user's network.

但是,毕竟边缘云的能力有限,不可能把对所有业务应用的算力任务都完成,而且由于用户的移动,针对业务应用的算力任务需要从一个位置迁移到用户移动后更近的位置。However, after all, the edge cloud has limited capabilities, and it is impossible to complete the computing power tasks for all business applications. Moreover, due to the movement of users, the computing power tasks for business applications need to be migrated from one location to a location closer to the user after moving.

在相关技术中,当前大多数解决方案是通过在用户移动到的目标地区,再部署一套业务应用,但是边缘云的能力有限,不可能全部部署。或者是通过迁移的方式解决,但是迁移的方法虽然很多,但是迁移是需要花费一定时间才能完成的,所以在迁移过程中可能会导致业务中断较长时间。In related technologies, most of the current solutions are to deploy a set of business applications in the target area where the user moves, but the edge cloud has limited capabilities and it is impossible to deploy them all. Or it can be solved by migration. Although there are many migration methods, the migration takes a certain amount of time to complete, so the migration process may cause business interruption for a long time.

本申请实施例提供一种业务应用部署方法、装置、电子设备及存储介质,旨在解决现有技术的如上技术问题,本申请实施例提供的业务应用部署方法、装置、电子设备及存储介质可以将目标业务应用提前部署到用户将会使用到的云设备,避免了用户移动时因临时迁移业务应用而导致业务中断时间较长,提升了用户体验。The embodiment of the present application provides a service application deployment method, device, electronic device, and storage medium, aiming to solve the above technical problems in the prior art. The service application deployment method, device, electronic device, and storage medium provided in the embodiment of the present application can deploy the target service application to the cloud device that the user will use in advance, avoiding the long service interruption time caused by the temporary migration of the service application when the user moves, and improving the user experience.

下面对本申请实施例涉及到的专业术语进行解释说明:The technical terms involved in the embodiment of this application are explained below:

镜像(Image):镜像是只读层的集合,为一堆只读层的统一视角,除了最底层没有指向外,每一层都指向它的父层。就相当于是一个root文件系统。镜像是一个特殊的文件系统,除了提供容器运行时所需的程序、库、资源、配置等文件外,还包含了一些为运行时准备的一些配置参数(如匿名卷、环境变量、用户等)。镜像不包含任何动态数据,其内容在构建之后也不会被改变。Image: Image is a collection of read-only layers. It is a unified perspective of a bunch of read-only layers. Except for the bottom layer, each layer points to its parent layer. It is equivalent to a root file system. Mirroring is a special file system. In addition to providing programs, libraries, resources, configuration and other files required for container runtime, it also contains some configuration parameters (such as anonymous volumes, environment variables, users, etc.) prepared for runtime. Images do not contain any dynamic data, and their contents are not changed after they are built.

容器(Container):容器是镜像的一个运行实例,不同的是它带有额外的可写层。镜像(Image)和容器(Container)的关系,就像是面向对象程序设计中的类和实例一样,镜像是静态的定义,容器是镜像运行时的实体。容器可以被创建、启动、停止、删除、暂停等。容器内的进程是运行在一个隔离的环境里,使用起来,就好像是在一个独立于宿主的系统下操作一样。这种特性使得容器封装的应用比直接在宿主运行更加安全。Container: A container is a running instance of an image, the difference is that it has an additional writable layer. The relationship between the image (Image) and the container (Container) is like the class and instance in object-oriented programming. The image is a static definition, and the container is the entity of the image runtime. Containers can be created, started, stopped, deleted, paused, etc. The process in the container runs in an isolated environment, and when used, it seems to be operating under a system independent of the host. This feature makes container-encapsulated applications more secure than running directly on the host.

仓库(Repository):用于存储镜像,在镜像构建完成后,可以很容易的在当前宿主机上运行,但是,如果需要在其它服务器上使用这个镜像,我们就需要一个集中的存储、分发镜像的服务,DockerRegistry就是这样的服务。Repository: It is used to store images. After the image is built, it can be easily run on the current host machine. However, if we need to use this image on other servers, we need a centralized storage and distribution image service. DockerRegistry is such a service.

一个DockerRegistry中可以包含多个仓库(Repository);每个仓库可以包含多个标签(Tag);每个标签对应一个镜像。A Docker Registry can contain multiple warehouses (Repository); each warehouse can contain multiple tags (Tag); each tag corresponds to a mirror image.

标签(Tag):标记本地镜像,将其归入某一仓库。Tag (Tag): Mark the local image and put it into a certain warehouse.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below in conjunction with the accompanying drawings.

图1为本申请是实施例提供的一种业务应用部署方法的应用环境,如图1所示,该应用环境可以包括:用户服务系统、漂移管理系统、网络系统。其中,网络系统可以包括多个云设备(以下可简称云),多个云设备可以为多个中心云(如中心云1、中心云n等)、多个雾云(如雾云1、雾云n等)、多个边缘云(如边缘云1、边缘云m、边缘云n等)。FIG. 1 is an application environment of a service application deployment method provided by an embodiment of the present application. As shown in FIG. 1 , the application environment may include: a user service system, a drift management system, and a network system. Wherein, the network system may include multiple cloud devices (hereinafter referred to as clouds), and the multiple cloud devices may be multiple central clouds (such as central cloud 1, central cloud n, etc.), multiple fog clouds (such as fog cloud 1, fog cloud n, etc.), and multiple edge clouds (such as edge cloud 1, edge cloud m, edge cloud n, etc.).

其中,用户服务系统可以与漂移管理系统建立通讯链路,漂移管理系统可以分别与多个中心云建立通讯链路,每一中心云可以与多个雾云建立通讯链路,每一雾云可以分别与多个边缘云建立通讯链路。Among them, the user service system can establish communication links with the drift management system, the drift management system can respectively establish communication links with multiple central clouds, each central cloud can establish communication links with multiple fog clouds, and each fog cloud can respectively establish communication links with multiple edge clouds.

其中,用户服务系统用于接收用户提交的针对目标业务的任务信息,并对用户提交的任务信息进行处理后发送给漂移管理系统。Wherein, the user service system is used to receive the task information for the target service submitted by the user, and process the task information submitted by the user and send it to the drift management system.

其中,漂移管理系统用于接收用户服务系统处理后的任务信息,并根据任务信息向云设备(如中心云、雾云、以及边缘云)发出漂移任务,以在相应的云设备中部署对应目标应用的任务。Among them, the drift management system is used to receive task information processed by the user service system, and send drift tasks to cloud devices (such as central cloud, fog cloud, and edge cloud) according to the task information, so as to deploy tasks corresponding to target applications in corresponding cloud devices.

其中,网络系统中的多个云设备可以预先划分到多个不同的区域。多个区域中的每一区域可以对应至少一个云设备。Wherein, multiple cloud devices in the network system may be pre-divided into multiple different areas. Each of the multiple regions may correspond to at least one cloud device.

可选地,用户服务系统和漂移管理系统可以是服务器设备、电子设备、终端设备等。Optionally, the user service system and drift management system may be server equipment, electronic equipment, terminal equipment, and the like.

图2为本申请实施例提供的一种业务应用部署方法的流程示意图,如图2所示,本实施例提供的方法,包括:Fig. 2 is a schematic flow diagram of a service application deployment method provided in the embodiment of the present application. As shown in Fig. 2, the method provided in the present embodiment includes:

101、获取目标业务应用的需求信息和使用区域信息。101. Obtain demand information and usage area information of a target business application.

示例性地,本实施例的执行主体可以是电子设备、或者终端设备、或者其他可以执行本实施例的装置或设备,不做限制。本实施例以执行主体为电子设备进行说明,具体可以为图1中的用户服务系统。Exemplarily, the subject of execution of this embodiment may be an electronic device, or a terminal device, or other apparatuses or devices capable of executing this embodiment, without limitation. In this embodiment, the execution subject is described as an electronic device, which may specifically be the user service system in FIG. 1 .

在一些实施方式中,用户可以通过用户终端访问用户服务系统,并向用户服务系统提交关于目标业务应用的需求信息和使用区域信息,当客户服务系统接收到该需求信息和该用户使用区域信息时,即得到目标业务应用的需求信息和使用区域信息。In some embodiments, the user can access the user service system through the user terminal, and submit the demand information and the use area information about the target business application to the user service system, and when the customer service system receives the demand information and the user use area information, the demand information and the use area information of the target business application are obtained.

其中,使用区域信息可以是指目标业务应用的使用区域范围。Wherein, the use area information may refer to the use area range of the target service application.

在一些实施方式中,用户终端可以在用户使用目标业务应用时,检测用户的位置信息,并将检测到的位置信息上传到用户服务系统,用户服务系统可以根据该位置信息确定目标业务应用的使用区域信息。In some implementations, the user terminal can detect the location information of the user when the user uses the target service application, and upload the detected location information to the user service system, and the user service system can determine the use area information of the target service application according to the location information.

其中,需求信息可以包括容器需求信息、容器编排信息等。其中,容器需求信息可以包括用于建立容器镜像的参数信息,例如需要的nginx、mysql、tomcat、postgres、debian镜像的参数。作为一种示例,容器需求信息可以如表1所示:Wherein, the requirement information may include container requirement information, container orchestration information, and the like. Wherein, the container requirement information may include parameter information for establishing a container image, such as required parameters of nginx, mysql, tomcat, postgres, and debian images. As an example, container requirement information may be shown in Table 1:

表1Table 1

REPOSITORYREPOSITORY TAGTAG sizesize Nginxnginx latestlatest 359MB359MB Mysqlmysql 5.75.7 448MB448MB TomcatTomcat latestlatest 647MB647MB PostgresPostgres latestlatest 313MB313MB DebianDebian latestlatest 114MB114MB

根据表1可知,镜像的参数可以包括仓库(REPOSITORY)、标签(TAG)和大小(size)等。According to Table 1, it can be seen that the parameters of the image may include a warehouse (REPOSITORY), a tag (TAG), a size (size), and so on.

作为一种示例,编排信息如下:As an example, the orchestration information is as follows:

可见,编排信息可以包括主机名(hostname)、映射端口(ports)、网络(networks)等信息。It can be seen that the orchestration information may include hostname (hostname), mapped ports (ports), network (networks) and other information.

102、根据需求信息生成目标业务应用的容器镜像。102. Generate a container image of the target business application according to the requirement information.

在一些实施方式中,客户服务系统可以根据生成目标业务应用的容器需求信息和容器编排信息生成目标业务应用的容器镜像。In some implementations, the customer service system can generate the container image of the target business application according to the generated container requirement information and container orchestration information of the target business application.

承接上述示例,用户服务系统可以对需求信息进行处理,从需求信息中抽取出来容器需求信息和容器编排信息的通用字段信息。然后通过这些抽取出来的通用信息,生成docker和k8s类型的容器镜像,并可以将该容器镜像放到中心云的镜像库,方便生成需求时,直接来拉镜像。Following the above example, the user service system can process the requirement information, and extract the general field information of container requirement information and container orchestration information from the requirement information. Then use the extracted general information to generate docker and k8s type container images, and put the container images in the image library of the central cloud, so that when the demand is generated, the image can be directly pulled.

示例性地,抽取出来所需要的镜像参数为mysql和tomcat。抽取出来编排信息的通用信息如下:Exemplarily, the image parameters required for extraction are mysql and tomcat. The general information of the extracted arrangement information is as follows:

Webappwebapp

-1216:80-1216:80

-1217:443-1217:443

103、根据使用区域信息从预设网络系统中确定第一云设备,预设网络系统包括多个云设备。103. Determine a first cloud device from a preset network system according to the use area information, where the preset network system includes multiple cloud devices.

在一些实施方式中,用户服务系统中预先存储了多个区域和多个云设备之间的映射关系,其中,每一区域可以对应至少一个云设备,示例性地,多个区域和多个云设备之间的映射关系可以如表2所示:In some implementations, the mapping relationship between multiple regions and multiple cloud devices is pre-stored in the user service system, wherein each region can correspond to at least one cloud device. Exemplarily, the mapping relationship between multiple regions and multiple cloud devices can be as shown in Table 2:

表2Table 2

根据表2可知,当使用区域信息确定以后,可以根据表2查找到对应的云设备,例如用户服务系统确定使用区域信息为区域范围b时,可以从预设网络系统中确定雾云n为第一云设备。It can be seen from Table 2 that after the use area information is determined, the corresponding cloud device can be found according to Table 2. For example, when the user service system determines that the use area information is the area range b, fog cloud n can be determined from the preset network system as the first cloud device.

104、将预设网络系统中与第一云设备相邻的云设备确定为第二云设备。104. Determine a cloud device adjacent to the first cloud device in the preset network system as the second cloud device.

在一些实施方式中,在用户服务系统中可以预先存储有预设网络系统对应的网络拓扑结构,根据网络拓扑结构可以确定预设网络系统中的多个云设备的分布情况。示例性地,多个云设备的具体分布情况可以如图1所示。用户服务系统可以将网络拓扑结构中与第一云设备相邻的云设备,确定为第二云设备。可选地,可以将预设网络系统中距离第一云设备最近的云设备,确定为与第一云设备相邻的云设备。In some implementations, the network topology corresponding to the preset network system may be pre-stored in the user service system, and the distribution of multiple cloud devices in the preset network system may be determined according to the network topology. Exemplarily, the specific distribution of multiple cloud devices may be as shown in FIG. 1 . The user service system may determine a cloud device adjacent to the first cloud device in the network topology as the second cloud device. Optionally, a cloud device closest to the first cloud device in the preset network system may be determined as a cloud device adjacent to the first cloud device.

作为一种示例,请再次参阅图1,例如第一云设备为雾云n,用户服务系统可以在雾云n中部署目标业务应用的容器镜像,在雾云n部署完成后,用户服务系统查看用户所提交的使用区域信息,具体可以为应用地域范围,根据地域范围,查找网络拓扑结构,查找到边缘云n与雾云n相邻,则可以将边缘云n确定为第二云设备。As an example, please refer to Figure 1 again. For example, the first cloud device is fog cloud n, and the user service system can deploy the container image of the target business application in fog cloud n. After the deployment of fog cloud n is completed, the user service system checks the usage area information submitted by the user. Specifically, it can be the application area.

105、在第二云设备中部署容器镜像。105. Deploy the container image on the second cloud device.

在一些实施方式中,若用户切换到第一云设备对应的区域范围内,则用户服务系统可以向漂移管理系统下达漂移任务,以在与第一云设备相邻的第二云设备中部署用户需求的目标业务应用的容器镜像。以使第二云设备做好迎接关于目标业务的算力任务的准备。In some implementations, if the user switches to the area corresponding to the first cloud device, the user service system can issue a drift task to the drift management system to deploy the container image of the target business application required by the user in the second cloud device adjacent to the first cloud device. So that the second cloud device is ready to meet the computing power task related to the target business.

本实施例中,通过获取目标业务应用的需求信息和使用区域信息,并根据所述需求信息生成所述目标业务应用的容器镜像,再根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备,从而可以根据用户所处区域准确确定用户正在使用的云设备。然后,将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备,并在所述第二云设备中部署所述容器镜像,由于第二云设备与第一云设备相邻,当用户移动导致目标业务应用无法在第一云设备上使用时,可以直接使用第二云设备中提前部署好的目标业务应用的容器镜像,确保了用户在移动过程中目标业务不会中断较长时间,有效提升了用户体验。In this embodiment, by acquiring demand information and usage area information of the target business application, generating a container image of the target business application according to the demand information, and then determining the first cloud device from a preset network system according to the usage area information, the preset network system includes multiple cloud devices, so that the cloud device being used by the user can be accurately determined according to the area where the user is located. Then, determine the cloud device adjacent to the first cloud device in the preset network system as the second cloud device, and deploy the container image on the second cloud device. Since the second cloud device is adjacent to the first cloud device, when the user moves and the target business application cannot be used on the first cloud device, the container image of the target business application deployed in advance in the second cloud device can be directly used, which ensures that the target business will not be interrupted for a long time during the user's movement, and effectively improves user experience.

图3为本申请实施例提供的另一种业务应用部署方法的流程示意图,如图3所示,本实施例提供的方法,包括:Fig. 3 is a schematic flow chart of another business application deployment method provided in the embodiment of the present application. As shown in Fig. 3, the method provided in the present embodiment includes:

201、获取目标业务应用的需求信息和使用区域信息。201. Acquire demand information and usage area information of a target service application.

202、根据需求信息生成目标业务应用的容器镜像。202. Generate a container image of the target service application according to the requirement information.

其中,步骤201至步骤202的具体实施方式可以参考步骤101至步骤102,故不在此赘述。Wherein, for specific implementation manners of steps 201 to 202, reference may be made to steps 101 to 102, so details are not repeated here.

在一些实施方式中,所述多个云设备包括雾云设备和边缘云设备,步骤102的具体实施方式包括:根据需求信息生成与雾云设备对应类型的第一容器镜像、与边缘云设备对应类型的第二容器镜像。In some implementations, the multiple cloud devices include fog cloud devices and edge cloud devices, and the specific implementation of step 102 includes: generating a first container image corresponding to the fog cloud device and a second container image corresponding to the edge cloud device according to the demand information.

可选地,第一容器镜像为docker类型的容器镜像,第二容器镜像为k8s类型的容器镜像。Optionally, the first container image is a docker type container image, and the second container image is a k8s type container image.

其中,docker类型的容器镜像用于部署在雾云设备上,k8s类型的容器镜像用于部署在边缘云设备上。Among them, the docker type container image is used to deploy on the fog cloud device, and the k8s type container image is used to deploy on the edge cloud device.

在一些实施方式中,该方法还包括:将第一容器镜像和第二容器镜像存储在中心云设备的镜像库中。In some implementations, the method further includes: storing the first container image and the second container image in an image library of the central cloud device.

作为一种示例,例如用户服务系统可以根据用户的业务需求,将用户所需要的的容器镜像按照容器需求信息(以下也可称镜像信息)部署到边缘云或者雾云上。同时,若中心云设备的镜像库没有这个版本的容器镜像,则可以在镜像库中存储该用户所部署的容器镜像。As an example, for example, the user service system can deploy the container image required by the user to the edge cloud or the fog cloud according to the container requirement information (also referred to as image information hereinafter) according to the user's business requirements. At the same time, if the image library of the central cloud device does not have this version of the container image, the container image deployed by the user can be stored in the image library.

203、根据使用区域信息从预设网络系统中确定第一云设备,预设网络系统包括多个云设备。203. Determine a first cloud device from a preset network system according to the use area information, where the preset network system includes multiple cloud devices.

204、将预设网络系统中与第一云设备相邻的云设备确定为第二云设备。204. Determine a cloud device adjacent to the first cloud device in the preset network system as the second cloud device.

在一些实施方式中,用户服务系统可以根据预设网络系统的网络拓扑结构,将预设网络系统中与第一云设备之间的距离不超过指定距离的云设备,确定为与第一云设备相邻的云设备,并确定为第二云设备。In some implementations, the user service system may determine, according to the network topology of the preset network system, a cloud device whose distance from the first cloud device in the preset network system does not exceed a specified distance as a cloud device adjacent to the first cloud device, and as a second cloud device.

在另一些实施方式中,用户服务系统可以根据预设网络系统的网络拓扑结构,将预设网络系统中与第一云设备之间的距离最近的前指定数量个云设备,确定为与第一云设备相邻的云设备,并确定为第二云设备。以更灵活地确定出第二云设备。In some other implementations, the user service system may determine, according to the network topology of the preset network system, a specified number of cloud devices in the preset network system that are closest to the first cloud device as cloud devices adjacent to the first cloud device, and as the second cloud device. In order to determine the second cloud device more flexibly.

205、在第二云设备中部署容器镜像。205. Deploy the container image on the second cloud device.

在一些实施方式中,步骤205的具体实施方式包括:若第二云设备为雾云设备,将第一容器镜像部署到第二云设备。若第二云设备为边缘云设备,将第二容器镜像部署到第二云设备,从而保证部署容器镜像时,能够根据云设备的类型部署合适的容器镜像。In some implementations, the specific implementation of step 205 includes: if the second cloud device is a fog cloud device, deploying the first container image to the second cloud device. If the second cloud device is an edge cloud device, deploy the second container image to the second cloud device, so as to ensure that when deploying the container image, an appropriate container image can be deployed according to the type of the cloud device.

206、若检测到目标业务应用从第二云设备转出,对第二云设备中的容器镜像进行销毁处理。206. If it is detected that the target business application is transferred out from the second cloud device, destroy the container image in the second cloud device.

作为一种示例,例如第二云设备为雾云n,则可以将目标业务应用的容器镜像部署到雾云n上,雾云n为docker的容器,则部署用户需要的docker容器。由于边缘云的规模较小,部署业务很少,只能在需要时部署。因此,当用户切换出雾云n,比如用户移动到雾云n对应的区域范围以外,并且雾云n不再是用户当前所在云的临近云,则雾云n可以销毁刚才部署的容器,因为这个算力任务暂时不会来了。其中,用户当前所在云的临近云是指与用户当前所在云设备相邻的云设备。As an example, for example, if the second cloud device is a fog cloud n, then the container image of the target business application can be deployed on the fog cloud n, and the fog cloud n is a docker container, and the docker container required by the user is deployed. Due to the small scale of the edge cloud, there are few deployment services and it can only be deployed when needed. Therefore, when the user switches out of the fog cloud n, for example, the user moves outside the area corresponding to the fog cloud n, and the fog cloud n is no longer the adjacent cloud of the user's current cloud, the fog cloud n can destroy the container just deployed, because this computing power task will not come for the time being. Wherein, the adjacent cloud of the cloud where the user is currently located refers to a cloud device adjacent to the cloud device where the user is currently located.

作为另一种示例,如图4所示,目标业务应用的容器镜像可以随着用户的移动而转移,例如用户刚才在雾云n中使用目标业务应用的容器镜像时,可以提前在雾云n的相邻的边缘云n中部署该容器镜像。当用户现在转移到在边缘云n中使用目标业务应用的容器镜像,则可以将目标业务应用的容器镜像从雾云n中销毁,并在边缘云n相邻的边缘云m中提前部署该容器镜像,以为用户的将可能用到的云设备的计算任务做准备。从而避免了因临时迁移而导致目标业务使用中断的情况发生。As another example, as shown in FIG. 4, the container image of the target business application can be transferred as the user moves. For example, when the user just uses the container image of the target business application in the fog cloud n, the container image can be deployed in advance in the adjacent edge cloud n of the fog cloud n. When the user now transfers to use the container image of the target business application in the edge cloud n, the container image of the target business application can be destroyed from the fog cloud n, and the container image can be deployed in advance in the edge cloud m adjacent to the edge cloud n, so as to prepare for the computing tasks of the cloud equipment that the user may use. Thus avoiding the interruption of target business use due to temporary migration.

在本实施例中,通过若检测到目标业务应用从第二云设备转出,对第二云设备中的容器镜像进行销毁处理,从而可以自动清理第二云设备的空间,方便其后续能够正常地接收部署。In this embodiment, if it is detected that the target business application is transferred from the second cloud device, the container image in the second cloud device is destroyed, so that the space of the second cloud device can be automatically cleared, so that it can receive and deploy normally in the future.

图5为本申请实施例提供的一种业务应用部署装置的结构示意图,如图5所示,该装置包括:Fig. 5 is a schematic structural diagram of a service application deployment device provided in an embodiment of the present application. As shown in Fig. 5, the device includes:

信息获取模块31,用于获取目标业务应用的需求信息和使用区域信息。The information acquisition module 31 is configured to acquire demand information and usage area information of the target business application.

容器镜像生成模块32,用于根据需求信息生成目标业务应用的容器镜像。The container image generating module 32 is configured to generate a container image of a target business application according to requirement information.

第一云设备确定模块33,用于根据使用区域信息从预设网络系统中确定第一云设备,预设网络系统包括多个云设备。The first cloud device determining module 33 is configured to determine the first cloud device from a preset network system according to the use area information, and the preset network system includes a plurality of cloud devices.

第二云设备确定模块34,将预设网络系统中与第一云设备相邻的云设备确定为第二云设备。The second cloud device determining module 34 determines a cloud device adjacent to the first cloud device in the preset network system as the second cloud device.

部署模块35,用于在第二云设备中部署容器镜像。The deployment module 35 is configured to deploy the container image in the second cloud device.

在一些实施方式中,容器镜像生成模块32具体用于:In some implementations, the container image generation module 32 is specifically used for:

根据需求信息生成与雾云设备对应类型的第一容器镜像、与边缘云设备对应类型的第二容器镜像。Generate the first container image corresponding to the fog cloud device and the second container image corresponding to the edge cloud device according to the demand information.

在一些实施方式中,部署模块35,包括:In some embodiments, the deployment module 35 includes:

第一部署单元,用于若第二云设备为雾云设备,将第一容器镜像部署到第二云设备。The first deployment unit is configured to deploy the first container image to the second cloud device if the second cloud device is a fog cloud device.

第二部署单元,用于若第二云设备为边缘云设备,将第二容器镜像部署到第二云设备。The second deployment unit is configured to deploy the second container image to the second cloud device if the second cloud device is an edge cloud device.

在一些实施方式中,预设网络系统还包括与第二云设备连接的中心云设备,该装置还包括:In some implementations, the preset network system also includes a central cloud device connected to the second cloud device, and the device also includes:

存储模块,用于将第一容器镜像和第二容器镜像存储在中心云设备的镜像库中。The storage module is configured to store the first container image and the second container image in the image repository of the central cloud device.

在一些实施方式中,第一容器镜像为docker类型的容器镜像,第二容器镜像为k8s类型的容器镜像。In some implementations, the first container image is a docker-type container image, and the second container image is a k8s-type container image.

在一些实施方式中,该装置还包括:In some embodiments, the device also includes:

销毁模块,用于若检测到目标业务应用从第二云设备转出,对第二云设备中的容器镜像进行销毁处理。The destruction module is used to destroy the container image in the second cloud device if it is detected that the target business application is transferred out from the second cloud device.

在一些实施方式中,需求信息包括容器需求信息和容器编排信息。In some implementations, the requirement information includes container requirement information and container orchestration information.

示例性地,本实施例可以参见上述方法实施例,其原理和技术效果类似,不再赘述。Exemplarily, this embodiment may refer to the foregoing method embodiment, and its principles and technical effects are similar, so details are not repeated here.

图6是本申请实施例提供的一种电子设备的结构示意图,如图6所示,电子设备包括存储器43和处理器42。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device includes a memory 43 and a processor 42 .

存储器43,用于存储处理器42可执行指令的存储器。The memory 43 is used for storing instructions executable by the processor 42 .

处理器42被配置为执行上述实施例提供的方法。The processor 42 is configured to execute the methods provided in the foregoing embodiments.

电子设备还包括接收器40和发送器41。接收器40用于接收外部设备发送的指令和数据,发送器41用于向外部设备发送指令和数据。The electronic device also includes a receiver 40 and a transmitter 41 . The receiver 40 is used to receive instructions and data sent by the external device, and the transmitter 41 is used to send instructions and data to the external device.

其中,该电子设备可以是移动终端,计算机、平板电脑等等。Wherein, the electronic device may be a mobile terminal, a computer, a tablet computer or the like.

具体地,该电子设备还可以包括以下一个或多个组件:处理组件,电源组件,多媒体组件,输入/输出(I/O)接口。处理组件可以相当于上述实施例的处理器42,Specifically, the electronic device may further include one or more of the following components: a processing component, a power supply component, a multimedia component, and an input/output (I/O) interface. The processing component may be equivalent to the processor 42 of the above-mentioned embodiment,

处理组件通常控制电子设备的整体操作,诸如与显示和记录操作相关联的操作。处理组件可以包括一个或多个处理器来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件可以包括一个或多个模块,便于处理组件和其他组件之间的交互。例如,处理组件可以包括多媒体模块,以方便多媒体组件和处理组件之间的交互。The processing components typically control the overall operations of the electronic device, such as those associated with display and recording operations. The processing component may include one or more processors to execute instructions to complete all or part of the steps of the above method. Additionally, a processing component may include one or more modules to facilitate interaction between the processing component and other components. For example, the processing component may include a multimedia module to facilitate interaction between the multimedia component and the processing component.

存储器被配置为存储各种类型的数据以支持在电子设备的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令等。存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器等。The memory is configured to store various types of data to support operations at the electronic device. Examples of such data include, among other things, instructions for any application or method operating on the electronic device. The memory can be implemented by any type of volatile or non-volatile memory devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, etc.

电源组件为电子设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电子设备生成、管理和分配电力相关联的组件。Power components provide power to various components of electronic equipment. Power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic devices.

多媒体组件包括在所述电子设备和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The multimedia component includes a screen providing an output interface between said electronic device and a user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action.

I/O接口为处理组件和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface provides an interface between the processing component and the peripheral interface module, and the above peripheral interface module can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由电子设备的处理器执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, which can be executed by a processor of an electronic device to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现上述实施例提供的方法。An embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement the methods provided in the foregoing embodiments when executed by a processor.

本申请实施例提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。An embodiment of the present application provides a computer program product, and the computer program product includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of the electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application intends to cover any modification, use or adaptation of the application, and these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application. The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1.一种业务应用部署方法,其特征在于,包括:1. A business application deployment method, characterized in that, comprising: 获取目标业务应用的需求信息和使用区域信息;Obtain the demand information and usage area information of the target business application; 根据所述需求信息生成所述目标业务应用的容器镜像;generating a container image of the target business application according to the requirement information; 根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备;determining a first cloud device from a preset network system according to the use area information, where the preset network system includes a plurality of cloud devices; 将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备;determining a cloud device adjacent to the first cloud device in the preset network system as a second cloud device; 在所述第二云设备中部署所述容器镜像;Deploying the container image in the second cloud device; 当用户移动导致所述目标业务应用无法在所述第一云设备上使用时,使用所述第二云设备中提前部署好的所述目标业务应用的容器镜像。When the user moves and the target service application cannot be used on the first cloud device, the container image of the target service application deployed in advance in the second cloud device is used. 2.根据权利要求1所述的方法,其特征在于,所述多个云设备包括雾云设备和边缘云设备,所述根据所述需求信息生成所述目标业务应用的容器镜像,包括:2. The method according to claim 1, wherein the multiple cloud devices include fog cloud devices and edge cloud devices, and generating the container image of the target business application according to the demand information includes: 根据所述需求信息生成与所述雾云设备对应类型的第一容器镜像、与所述边缘云设备对应类型的第二容器镜像。A first container image of a type corresponding to the fog cloud device and a second container image of a type corresponding to the edge cloud device are generated according to the demand information. 3.根据权利要求2所述的方法,其特征在于,在所述第二云设备中部署所述容器镜像,包括:3. The method according to claim 2, wherein deploying the container image in the second cloud device comprises: 若所述第二云设备为雾云设备,将所述第一容器镜像部署到所述第二云设备;If the second cloud device is a fog cloud device, deploying the first container image to the second cloud device; 若所述第二云设备为边缘云设备,将所述第二容器镜像部署到所述第二云设备。If the second cloud device is an edge cloud device, deploying the second container image to the second cloud device. 4.根据权利要求2所述的方法,其特征在于,所述预设网络系统还包括与所述第二云设备连接的中心云设备,所述方法还包括:4. The method according to claim 2, wherein the preset network system further comprises a central cloud device connected to the second cloud device, and the method further comprises: 将所述第一容器镜像和所述第二容器镜像存储在所述中心云设备的镜像库中。storing the first container image and the second container image in an image library of the central cloud device. 5.根据权利要求2所述的方法,其特征在于,所述第一容器镜像为docker类型的容器镜像,所述第二容器镜像为k8s类型的容器镜像。5. The method according to claim 2, wherein the first container image is a docker type container image, and the second container image is a k8s type container image. 6.根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1-5, wherein the method further comprises: 若检测到所述目标业务应用从所述第二云设备转出,对所述第二云设备中的所述容器镜像进行销毁处理。If it is detected that the target service application is transferred out from the second cloud device, the container image in the second cloud device is destroyed. 7.根据权利要求1-5任一项所述的方法,其特征在于,所述需求信息包括容器需求信息和容器编排信息。7. The method according to any one of claims 1-5, wherein the requirement information includes container requirement information and container arrangement information. 8.一种业务应用部署装置,其特征在于,所述装置包括:8. A service application deployment device, characterized in that the device comprises: 信息获取模块,用于获取目标业务应用的需求信息和使用区域信息;An information acquisition module, configured to acquire demand information and use area information of target business applications; 容器镜像生成模块,用于根据所述需求信息生成所述目标业务应用的容器镜像;A container image generating module, configured to generate a container image of the target business application according to the requirement information; 第一云设备确定模块,用于根据所述使用区域信息从预设网络系统中确定第一云设备,所述预设网络系统包括多个云设备;A first cloud device determining module, configured to determine a first cloud device from a preset network system according to the use area information, and the preset network system includes a plurality of cloud devices; 第二云设备确定模块,将所述预设网络系统中与所述第一云设备相邻的云设备确定为第二云设备;The second cloud device determination module determines a cloud device adjacent to the first cloud device in the preset network system as a second cloud device; 部署模块,用于在所述第二云设备中部署所述容器镜像;a deployment module, configured to deploy the container image in the second cloud device; 当用户移动导致所述目标业务应用无法在所述第一云设备上使用时,使用所述第二云设备中提前部署好的所述目标业务应用的容器镜像。When the user moves and the target service application cannot be used on the first cloud device, the container image of the target service application deployed in advance in the second cloud device is used. 9.一种电子设备,其特征在于,包括:存储器和处理器;9. An electronic device, comprising: a memory and a processor; 存储器,用于存储所述处理器可执行指令的存储器;a memory for storing said processor-executable instructions; 其中,所述处理器被配置为执行如权利要求1-7任一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 1-7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement the method according to any one of claims 1-7 when executed by a processor.
CN202110943313.0A 2021-08-17 2021-08-17 A business application deployment method, device, electronic equipment and storage medium Active CN113641454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110943313.0A CN113641454B (en) 2021-08-17 2021-08-17 A business application deployment method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110943313.0A CN113641454B (en) 2021-08-17 2021-08-17 A business application deployment method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113641454A CN113641454A (en) 2021-11-12
CN113641454B true CN113641454B (en) 2023-07-25

Family

ID=78422532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110943313.0A Active CN113641454B (en) 2021-08-17 2021-08-17 A business application deployment method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113641454B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257205A (en) * 2018-08-08 2019-01-22 西安电子科技大学 Based on the Docker container thermomigration process between SDN cloud and mist
CN110580198A (en) * 2019-08-29 2019-12-17 上海仪电(集团)有限公司中央研究院 Method and device for adaptively switching OpenStack computing node into control node
CN111625317A (en) * 2020-05-15 2020-09-04 苏州浪潮智能科技有限公司 Container cloud construction method and related device of business system
CN111638935A (en) * 2020-04-15 2020-09-08 阿里巴巴集团控股有限公司 Mirror image management method, network system, device, and storage medium
WO2020207267A1 (en) * 2019-04-08 2020-10-15 阿里巴巴集团控股有限公司 Network system, mirror image management method, device and storage medium
CN112637299A (en) * 2020-12-15 2021-04-09 中国联合网络通信集团有限公司 Cloud resource allocation method, apparatus, equipment, medium and product
CN112631614A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Application deployment method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474966B (en) * 2019-07-22 2022-04-19 腾讯科技(深圳)有限公司 Method for processing cloud platform resource fragments and related equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257205A (en) * 2018-08-08 2019-01-22 西安电子科技大学 Based on the Docker container thermomigration process between SDN cloud and mist
WO2020207267A1 (en) * 2019-04-08 2020-10-15 阿里巴巴集团控股有限公司 Network system, mirror image management method, device and storage medium
CN110580198A (en) * 2019-08-29 2019-12-17 上海仪电(集团)有限公司中央研究院 Method and device for adaptively switching OpenStack computing node into control node
CN111638935A (en) * 2020-04-15 2020-09-08 阿里巴巴集团控股有限公司 Mirror image management method, network system, device, and storage medium
CN111625317A (en) * 2020-05-15 2020-09-04 苏州浪潮智能科技有限公司 Container cloud construction method and related device of business system
CN112637299A (en) * 2020-12-15 2021-04-09 中国联合网络通信集团有限公司 Cloud resource allocation method, apparatus, equipment, medium and product
CN112631614A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Application deployment method and device, computer equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Femto Clouds: Leveraging Mobile Devices to Provide Cloud Service at the Edge;Karim Habak 等;《2015 IEEE 8th International Conference on Cloud Computing》;第9-16页 *
中国联通边缘云平台架构与业务能力开放;陈丹等;《邮电设计技术》;第11卷;第63-67页 *
基于可编程网络的算力调度机制研究;李铭轩等;《中兴通讯技术》;第27卷(第3期);第18-22+61页 *
移动边缘计算中基于用户移动的虚拟机迁移策略研究;刘亮等;《重庆邮电大学学报(自然科学版)》;第31卷(第2期);第158-165页 *

Also Published As

Publication number Publication date
CN113641454A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US20220222070A1 (en) Techniques to deploy an application as a cloud computing service
US10757036B2 (en) Method and system for provisioning computing resources
US9684528B2 (en) Planned virtual machines
WO2020238751A1 (en) Resource access method under serverless architecture, device, system, and storage medium
US11146620B2 (en) Systems and methods for instantiating services on top of services
WO2021072912A1 (en) File sharing method, apparatus, and system, interactive smart device, source end device, and storage medium
US9891890B2 (en) Generation of an application from template
US8533701B2 (en) Virtual machine image update service
US9417870B2 (en) Managing user access to alternative versions of a particular function of a software product from within a current version of the software product
US11221860B2 (en) Managing multi-single-tenant SaaS services
CN107992275B (en) Document printing method and device, computer equipment and storage medium
US20150012657A1 (en) Allocation of resources in a networked computing environment based on physical location mapping
CN108829588A (en) A kind of processing method of test application program, deployment system and device
CN110520848A (en) Emerge application relevant to task in isomery tabs environment
US20140040874A1 (en) Implementing multiple versions of a plug-in concurrently
US20200293164A1 (en) Html editing operations
CN111198739A (en) Rendering method, device and equipment of application view and storage medium
US12242844B2 (en) Determining correct base images for custom images
CN109144776A (en) Virtual machine image file processing method and processing device
CN112148164A (en) Arranging method and device of multi-cluster system, computer equipment and storage medium
CN113641454B (en) A business application deployment method, device, electronic equipment and storage medium
US11204754B2 (en) Operating system update
US11740789B2 (en) Automated storage capacity provisioning using machine learning techniques
US10997269B1 (en) Using web application components with different web application frameworks in a web application
US9628335B2 (en) Building and transporting centrally modified software systems

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
GR01 Patent grant
GR01 Patent grant