WO2017129106A1 - Data request processing method, server and system - Google Patents

Data request processing method, server and system Download PDF

Info

Publication number
WO2017129106A1
WO2017129106A1 PCT/CN2017/072409 CN2017072409W WO2017129106A1 WO 2017129106 A1 WO2017129106 A1 WO 2017129106A1 CN 2017072409 W CN2017072409 W CN 2017072409W WO 2017129106 A1 WO2017129106 A1 WO 2017129106A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
container
image file
mirror
mirror container
Prior art date
Application number
PCT/CN2017/072409
Other languages
French (fr)
Chinese (zh)
Inventor
庄志伟
聂志明
李从兵
艾风
顾煜
王杨军
曹文升
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2017129106A1 publication Critical patent/WO2017129106A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Definitions

  • the present invention relates to the field of cloud technologies, and in particular, to a data request processing method, server, and system.
  • Cloud interactive systems usually include servers and multiple user devices. Servers can be cluster servers, multiple interactions. Applications can run in a cloud interactive system.
  • a service request sent by a user that is, a corresponding user equipment, is distributed to one or more servers for processing, for a request sent by multiple users, or separately processed by multiple servers, Or create multiple virtual machines in the same server for separate processing.
  • different systems and environments need to be set up on different servers or different virtual machines on the same server when deploying the server environment. Complex and difficult to operate and maintain.
  • the embodiment of the invention provides a data request processing method, a server and a system, which reduce the difficulty of constructing the system and the environment when processing the application service request in the server, and improve the processing efficiency.
  • a first aspect of the embodiments of the present invention provides a data request processing method, where the method is applied to a cloud interactive system, where the cloud interactive system includes a user equipment and a server, where the server includes at least one a mirrored container, the first mirrored container is created according to a preset first image file, where the target application is installed in the first mirrored container, and the method includes:
  • the first mirroring container is used as the target mirroring container, and after the target mirroring container is started, the target application service request is forwarded to the target mirroring container;
  • the server processes the target application service request in the target mirror container.
  • a second aspect of the embodiments of the present invention provides a server, where the server is applied to a cloud interactive system, where the cloud interactive system further includes a user equipment, where the server includes at least one first mirror container that has been activated.
  • the first mirror container is created according to a preset first image file, where the target application is installed in the first mirror container, and the server includes:
  • a receiving unit configured to receive a target application service request sent by the user equipment
  • a determining unit configured to determine whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to The target mirroring container, if not, creating a new first mirroring container as the target mirroring container by using the first image file, and starting the target mirroring container, and forwarding the target application service request to the target mirroring container.
  • a processing unit configured to process the target application service request in the target mirror container.
  • a third aspect of the embodiments of the present invention provides a cloud interactive system, including a server and a user equipment, where the server is any one of the second aspects.
  • an application service request of the user equipment may be executed in any idle mirror container that has been started in the server, because the cloud interactive system in the server
  • the server will correspond to multiple user device clients, and the mirror containers in the server are created by the same image file. Therefore, any idle mirror container in the server can process the client application server request and reduce the processing application service in the server. The difficulty of setting up the system and the environment at the request time improves the processing efficiency.
  • FIG. 1 is a schematic diagram of a scenario of a cloud interactive system according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an embodiment of a method for data request processing in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another embodiment of a method for data request processing in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an embodiment of a startup mirror container in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of a server in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a server in an embodiment of the present invention.
  • the embodiment of the invention provides a data request processing method, a server and a system, which reduce the difficulty of constructing the system and the environment when processing the application service request in the server, and improve the processing efficiency.
  • FIG. 1 it is a schematic diagram of a scenario of a cloud interactive system according to an embodiment of the present invention.
  • the cloud interactive system includes a user equipment and a server, wherein the server and the user equipment perform data interaction through a network, and the server may be Any of the possible servers in the following description may be used.
  • the server may also be a server cluster.
  • a variety of interactive applications may be run in the cloud interaction system.
  • the user equipment may be a terminal device such as a personal computer (PC), a notebook, and a mobile phone, and the server may be a dedicated game server.
  • an embodiment of a method for data request processing is applied to the cloud interactive system, where the cloud interactive system includes a user equipment and a server, and the user equipment may have multiple
  • the server can also be a server cluster, and a variety of interactive applications can run in the cloud interaction system.
  • the user equipment may be a terminal device such as a personal computer (PC), a notebook, and a mobile phone
  • the server includes at least one first mirror container that has been activated, and the first mirror container is based on the preset first image file. Created, the target application is installed in the first mirror container, and the method includes:
  • the server receives a target application service request sent by the user equipment.
  • the target application may be a game application, such as a QQ game, or a general terminal application, such as Photoshop, which is not limited herein.
  • the server determines whether there is an idle first mirror container in the at least one first mirror container, and if so, step 203 is performed, and if not, step 204 is performed;
  • the server determines that the idle first mirror container is a target mirror container, and forwards the target application service request to the target mirror container.
  • the first image file may be obtained from the image file server in advance, and the first image file may also be saved in the image file storage space preset by the server.
  • the server creates a new first mirror container as the target mirror container by using the first image file, and starts the target image container to forward the target application service request to the target mirror container.
  • the server processes the target application service request in the target mirroring container.
  • an application service request of the user equipment may be executed in any idle mirror container that has been started in the server, because the cloud interactive system in the server
  • the server will correspond to multiple user device clients, and the mirror containers in the server are created by the same image file. Therefore, any idle mirror container in the server can process the client application server request and reduce the processing application service in the server. The difficulty of setting up the system and the environment at the request time improves the processing efficiency.
  • the method may further include:
  • the server creates the at least one first mirror container by using the first image file according to a preset mirror container configuration policy
  • the server starts the at least one first mirrored container.
  • the preset mirror container configuration policy may include: specifying an initial number of the first mirror container that the server needs to create by using the first image file, and may also include: when the first mirror container that is idle in the server is lower than a preset number (such as 2) When creating a new first mirrored container for backup.
  • a preset number such as 2
  • the server starts the at least one first mirror container, which may include:
  • the server starts the at least one first mirror container according to the startup instruction
  • the server obtains notification information after successful startup from the at least one first mirror container
  • the server After each first mirror container is successfully launched, the server records the identification information of each first mirror container.
  • the purpose of recording the identification information of the first mirror container is mainly to mark the first mirror container. Since the first mirror container after startup has two states, one is allocated for use, one is idle, and each record is recorded.
  • the identification information of the mirrored container may be used to mark whether the state of the first mirrored container is in use or idle according to the identifier information when the first mirrored container is used.
  • one server can correspond to multiple user equipments, that is, it can be accessed by multiple user equipments, and the target application service requirements of the user equipments (which may be the current set time of the server statistics, the target application service requirements per unit time)
  • the target application service requirements of the user equipments which may be the current set time of the server statistics, the target application service requirements per unit time
  • the first mirror container that is idle in at least one first mirror container that has been activated is sufficiently rich, for example, there are only two target application service requirements per unit time (such as within 10 minutes), and at least one first is activated.
  • the mirroring container includes 10 free mirroring containers, the first mirroring container may be closed and deleted as needed.
  • the method may further include:
  • the server closes the at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and deletes the at least one idle first mirror container.
  • the method It can also include:
  • the server acquires an updated second image file
  • the server replaces the first image file with the second image file in the image file storage space.
  • the first image container originally created according to the first image file needs to be updated.
  • the deletion operation is performed, and the second image container is created according to the updated second image file, and the second target container service is used to process the new target application service request initiated by the user equipment.
  • the server closes and deletes all current first mirror containers in the server
  • the server creates at least one second mirror container according to the second image file.
  • an image file server that saves an image file may be separately set, and the first image file is saved in the image file server, and the server in this embodiment may access the image file server.
  • the first image file is obtained by the server from the image file server.
  • the update of the second image file is also updated and replaced in the image file server.
  • the image file server sends the updated second image file to the server, and the server can close all the first image containers in the server. Deleting, and creating at least one second mirror container according to the second image file.
  • the mirror container described may be a container Container in the field of Docker virtual technology
  • Docker is an open source application container engine, which allows developers to package their applications and dependencies into a portable container. And then released to any popular Linux machine, you can also achieve virtualization.
  • Containers are completely sandboxed, have no interfaces to each other, have virtually no performance overhead, can be easily run in machines and data centers, and most importantly, they don't depend on any language, framework, or system. .
  • Containers in the Docker virtual technology domain can dynamically create, run, stop, and delete management through Docker instructions.
  • Docker virtual technology creates an image file repository to save image files. This image file can create a certain number of images as needed.
  • Container Container which has a Container-based management program (such as the Agent program), which is responsible for managing the dynamic creation, operation, stop, and deletion management of the mirror container.
  • FIG. 3 is another embodiment of a method for data request processing according to an embodiment of the present invention.
  • a target application is a QQ game
  • the method is applied to a cloud interactive system, where the cloud interaction is performed.
  • the system includes a user equipment and a server, and the server includes at least one Container 1 that has been activated.
  • the Container 1 is created according to a preset image file image1, and the QQ game is installed in the Container 1.
  • the method includes:
  • the server receives a QQ game service request sent by the user equipment.
  • the server determines whether there is an idle Container in the at least one Container 1, and if so, step 303 is performed, and if not, step 304 is performed;
  • the server determines that the idle Container 1 is the target Container1, and forwards the QQ game service request to the target Container1;
  • the server creates a new Container 1 as the target Container 1 through the image1, and starts the target Container 1 to forward the QQ game service request to the target Container1;
  • the server processes the QQ game service request in the target Container 1.
  • the server processes the QQ game service request in the target Container 1, and the server may start the QQ game application in the target Container 1, and the server may further receive other service requests of the QQ game sent by the user equipment, for example, after the startup operation.
  • the command request or the like the server continues to process the corresponding request in the QQ game application of the target Container 1 according to the subsequent request, and realizes the interaction between the user device and the target Container 1 of the server.
  • the method may further include:
  • the server creates the at least one Container 1 through the image1 according to a preset Container configuration policy
  • the server starts the at least one Container 1.
  • the server and the Container 1 may include an Agent management program, and the information exchange between the server and the Container 1 in the server is implemented by the Agent management program, wherein, as shown in FIG. 4, the server starts each of the at least one Container 1.
  • Container 1 can include the following steps:
  • the server acquires a startup instruction of Container 1.
  • the server starts the Container 1 according to the startup instruction
  • the server obtains notification information after the startup is successful from the Container 1;
  • the server After the Container 1 is successfully started, the server records the identifier information of the Container 1.
  • the server obtains the updated image file image2. At this time, the server replaces the image1 with the second image file in the image file storage space. Since the previous Container 1 was created according to image1, it has not met the requirements, so it needs to be completely closed and deleted. Then, according to image2, the new Container2 is created to realize the maintenance and update of the system, which is simple and fast.
  • Embodiments of the server in the embodiment of the present invention are described below.
  • an embodiment of a server is applied to a cloud interactive system, where the cloud interactive system further includes a user equipment, where the server includes at least one started. a mirroring container, the first mirroring container is created according to a preset first image file, wherein the first image container is installed with a target application, and the server 500 includes:
  • the receiving unit 501 is configured to receive a target application service request sent by the user equipment;
  • the determining unit 502 is configured to determine whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request Giving the target image container, if not, creating a new first image container as the target image container by using the first image file, and starting the target image container to forward the target application service request to the target image container;
  • the processing unit 503 is configured to process the target application service request in the target mirroring container.
  • the server further includes:
  • a creating unit configured to create the at least one first mirror container by using the first image file according to a preset mirror container configuration policy, before the receiving unit receives the target application service request sent by the user equipment;
  • a starting unit configured to start the at least one first mirror container.
  • the startup unit is specifically configured to: acquire a startup instruction of the at least one first mirror container;
  • each first mirror container After each first mirror container is successfully started, the identification information of each first mirror container is recorded.
  • the server further includes:
  • a deleting unit configured to close at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and delete the at least one idle first mirror container.
  • the first image file is obtained by the server from a preset image file storage space, where the image file storage space is located in the server;
  • the server further includes:
  • an update unit configured to obtain an updated second image file, where the first image file is replaced with the second image file in the image file storage space.
  • the creating unit is further configured to: close and delete all current first mirror containers in the server, and create at least one second mirror container according to the second image file.
  • the server 600 in the embodiment of the present invention includes:
  • the input device 601, the output device 602, the processor 603, and the memory 604 (wherein the number of the processors 603 may be one or more, and one processor 603 is taken as an example in FIG. 6).
  • the input device 601, the output device 602, the processor 603, and the memory 604 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the server according to an embodiment of the present invention may have more or less components than those shown in FIG. 6, may combine two or more components, or may have different component configurations or settings, and each component may include one Hardware, software, or a combination of hardware and software, including multiple signal processing and/or application specific integrated circuits.
  • the processor 603 is configured to perform the following steps by calling an operation instruction stored in the memory 604:
  • the processor 603 is further configured to perform the following steps by using an operation instruction stored in the memory 604:
  • the at least one first mirror container is activated.
  • the processor 603 is specifically configured to perform the following steps by calling an operation instruction stored in the memory 604:
  • each first mirror container After each first mirror container is successfully started, the identification information of each first mirror container is recorded.
  • the processor 603 is further configured to perform the following steps by calling an operation instruction stored in the memory 604:
  • the first image file is obtained by the server from a preset image file storage space, where the image file storage space is located in the server;
  • the processor 603 is further configured to perform the following steps by calling an operation instruction stored in the memory 604:
  • the first image file is replaced with the second image file.
  • the processor 603 is further configured to perform the following steps by calling an operation instruction stored by the memory 604:
  • the memory 604 can be used to store software programs and modules, and the processor 603 executes various functional applications and data processing by running software programs and modules stored in the memory 604.
  • the memory 604 can mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the server (such as mirrored container data).
  • memory 604 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Processor 603 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 603 or an instruction in a form of software.
  • the processor 603 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • Software modules can be located Random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., are well-established storage media in the field.
  • the storage medium is located in memory 604, and processor 603 reads the information in memory 604 and, in conjunction with its hardware, performs the steps of the above method.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the at least data request processing method described in the foregoing method embodiments.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the present invention Technical Solution In essence or in part that contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product, the computer software product is stored in a storage medium, including a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

Disclosed are a data request processing method, server and system. The method in embodiments of the present invention comprises: a server receiving a target application service request sent by a user equipment; the server judging whether an idle first mirror container exists in at least one first mirror container; if so, determining the idle first mirror container to be a target mirror container, and forwarding the target application service request to the target mirror container; and if not, creating a new first mirror container as a target mirror container through a first mirror file, starting the target mirror container, and then forwarding the target application service request to the target mirror container; and the server processing the target application service request in the target mirror container. The embodiments of the present invention reduce the difficulty in the construction of a system and an environment during processing of an application service request in a server, and improve the processing efficiency.

Description

数据请求处理的方法、服务器及系统Data request processing method, server and system
本申请要求于2016年1月29日提交中国专利局、申请号为200610067810.8、发明名称为“一种数据请求处理的方法、服务器及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 200610067810.8, entitled "Method, Server and System for Data Request Processing", filed on January 29, 2016, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及云技术领域,特别涉及一种数据请求处理的方法、服务器及系统。The present invention relates to the field of cloud technologies, and in particular, to a data request processing method, server, and system.
背景技术Background technique
随着近年来终端技术和网络带宽的高速发展,云计算技术的日趋成熟催生了云交互系统,现有的云交互式系统通常包括服务器和多个用户设备,服务器可以是集群服务器,多种交互式应用都可以运行在云交互式系统中。With the rapid development of terminal technologies and network bandwidth in recent years, the maturity of cloud computing technology has spawned cloud interaction systems. Existing cloud interactive systems usually include servers and multiple user devices. Servers can be cluster servers, multiple interactions. Applications can run in a cloud interactive system.
目前的云交互式系统中,将用户也就是对应的用户设备发来的服务请求分发给一个或多个服务器去处理,针对多个用户发送的请求的情况,或者通过多个服务器进行分别处理,或者通过在同一个服务器中创建多个虚拟机进行分别处理,这种情况下,在部署服务器环境时不同的服务器或者同一个服务器上的不同虚拟机上,需要搭建不同的系统和环境,部署环境复杂且运行维护困难。In the current cloud interactive system, a service request sent by a user, that is, a corresponding user equipment, is distributed to one or more servers for processing, for a request sent by multiple users, or separately processed by multiple servers, Or create multiple virtual machines in the same server for separate processing. In this case, different systems and environments need to be set up on different servers or different virtual machines on the same server when deploying the server environment. Complex and difficult to operate and maintain.
发明内容Summary of the invention
本发明实施例提供了一种数据请求处理的方法、服务器及系统,降低了服务器中处理应用服务请求时系统和环境的搭建难度,提高了处理效率。The embodiment of the invention provides a data request processing method, a server and a system, which reduce the difficulty of constructing the system and the environment when processing the application service request in the server, and improve the processing efficiency.
本发明实施例中第一方面提供一种数据请求处理的方法,所述方法应用于云交互式系统,所述云交互式系统包括用户设备和服务器,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述方法包括:A first aspect of the embodiments of the present invention provides a data request processing method, where the method is applied to a cloud interactive system, where the cloud interactive system includes a user equipment and a server, where the server includes at least one a mirrored container, the first mirrored container is created according to a preset first image file, where the target application is installed in the first mirrored container, and the method includes:
所述服务器接收所述用户设备发送的目标应用服务请求;Receiving, by the server, a target application service request sent by the user equipment;
所述服务器判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的 第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;Determining, by the server, whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to the Target mirror container, if not, create a new one through the first image file The first mirroring container is used as the target mirroring container, and after the target mirroring container is started, the target application service request is forwarded to the target mirroring container;
所述服务器在所述目标镜像容器处理所述目标应用服务请求。The server processes the target application service request in the target mirror container.
本发明实施例中第二方面提供一种服务器,所述服务器应用于云交互式系统,所述云交互式系统还包括用户设备,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述服务器包括:A second aspect of the embodiments of the present invention provides a server, where the server is applied to a cloud interactive system, where the cloud interactive system further includes a user equipment, where the server includes at least one first mirror container that has been activated. The first mirror container is created according to a preset first image file, where the target application is installed in the first mirror container, and the server includes:
接收单元,用于接收所述用户设备发送的目标应用服务请求;a receiving unit, configured to receive a target application service request sent by the user equipment;
判断单元,用于判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;a determining unit, configured to determine whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to The target mirroring container, if not, creating a new first mirroring container as the target mirroring container by using the first image file, and starting the target mirroring container, and forwarding the target application service request to the target mirroring container. ;
处理单元,用于在所述目标镜像容器处理所述目标应用服务请求。a processing unit, configured to process the target application service request in the target mirror container.
本发明实施例中第三方面提供一种云交互式系统,包括服务器和用户设备,所述服务器为第二方面中任一所述的服务器。A third aspect of the embodiments of the present invention provides a cloud interactive system, including a server and a user equipment, where the server is any one of the second aspects.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例中通过在云交互式系统中引进镜像容器作为应用的载体,用户设备的应用服务请求可以在服务器中已启动的任意空闲的镜像容器中执行,由于服务器中云交互式系统中,服务器会对应多个用户设备客户端,而服务器中镜像容器都是通过同一镜像文件创建的,因此服务器中的任一个空闲的镜像容器都可以处理客户端的应用服务器请求,降低了服务器中处理应用服务请求时系统和环境的搭建难度,提高了处理效率。In the embodiment of the present invention, by introducing a mirror container as a carrier of an application in a cloud interactive system, an application service request of the user equipment may be executed in any idle mirror container that has been started in the server, because the cloud interactive system in the server The server will correspond to multiple user device clients, and the mirror containers in the server are created by the same image file. Therefore, any idle mirror container in the server can process the client application server request and reduce the processing application service in the server. The difficulty of setting up the system and the environment at the request time improves the processing efficiency.
附图说明DRAWINGS
图1是本发明实施例中云交互式系统的场景示意图;1 is a schematic diagram of a scenario of a cloud interactive system according to an embodiment of the present invention;
图2是本发明实施例中数据请求处理的方法的一个实施例示意图;2 is a schematic diagram of an embodiment of a method for data request processing in an embodiment of the present invention;
图3是本发明实施例中数据请求处理的方法的另一个实施例示意图;3 is a schematic diagram of another embodiment of a method for data request processing in an embodiment of the present invention;
图4是本发明实施例中启动镜像容器的一个实施例示意图;4 is a schematic diagram of an embodiment of a startup mirror container in an embodiment of the present invention;
图5是本发明实施例中服务器的一个实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a server in an embodiment of the present invention; FIG.
图6是本发明实施例中服务器的另一个实施例示意图。 FIG. 6 is a schematic diagram of another embodiment of a server in an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了一种数据请求处理的方法、服务器及系统,降低了服务器中处理应用服务请求时系统和环境的搭建难度,提高了处理效率。The embodiment of the invention provides a data request processing method, a server and a system, which reduce the difficulty of constructing the system and the environment when processing the application service request in the server, and improve the processing efficiency.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", and the like (if any) in the specification and claims of the present invention and the above figures are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
如图1所示,为本发明实施例中云交互式系统的一个场景示意图,所述云交互式系统包括用户设备和服务器,其中,服务器和用户设备通过网络进行数据交互,所述服务器可以是如下描述内容中任一种可能的服务器,用户设备可以有多个,服务器也可以是服务器集群,多种交互式应用都可以运行在云交互系统中。用户设备可以是个人电脑(Personal Computer,PC)、笔记本和手机等终端设备,服务器可以是专用的游戏服务器。As shown in FIG. 1 , it is a schematic diagram of a scenario of a cloud interactive system according to an embodiment of the present invention. The cloud interactive system includes a user equipment and a server, wherein the server and the user equipment perform data interaction through a network, and the server may be Any of the possible servers in the following description may be used. There may be multiple user devices, and the server may also be a server cluster. A variety of interactive applications may be run in the cloud interaction system. The user equipment may be a terminal device such as a personal computer (PC), a notebook, and a mobile phone, and the server may be a dedicated game server.
下面介绍本发明实施例中数据请求处理的方法。The method of data request processing in the embodiment of the present invention is described below.
请参阅图2,为本发明实施例中数据请求处理的方法一个实施例,所述方法应用于上述云交互式系统,所述云交互式系统包括用户设备和服务器,用户设备可以有多个,服务器也可以是服务器集群,多种交互式应用都可以运行在云交互系统中。用户设备可以是个人电脑(Personal Computer,PC)、笔记本和手机等终端设备,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述方法包括: Referring to FIG. 2, an embodiment of a method for data request processing according to an embodiment of the present invention is applied to the cloud interactive system, where the cloud interactive system includes a user equipment and a server, and the user equipment may have multiple The server can also be a server cluster, and a variety of interactive applications can run in the cloud interaction system. The user equipment may be a terminal device such as a personal computer (PC), a notebook, and a mobile phone, and the server includes at least one first mirror container that has been activated, and the first mirror container is based on the preset first image file. Created, the target application is installed in the first mirror container, and the method includes:
201、服务器接收所述用户设备发送的目标应用服务请求;201. The server receives a target application service request sent by the user equipment.
本实施例中,目标应用可以是游戏应用,如QQ游戏等,也可以是一般的终端应用,如Photoshop等,此处不作限定。In this embodiment, the target application may be a game application, such as a QQ game, or a general terminal application, such as Photoshop, which is not limited herein.
202、服务器判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,则执行步骤203,若否,则执行步骤204;202, the server determines whether there is an idle first mirror container in the at least one first mirror container, and if so, step 203 is performed, and if not, step 204 is performed;
203、服务器确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器;203. The server determines that the idle first mirror container is a target mirror container, and forwards the target application service request to the target mirror container.
本实施例中,所述第一镜像文件可以是预先从镜像文件服务器获取的,第一镜像文件也可以是保存在服务器预置的镜像文件存储空间中。In this embodiment, the first image file may be obtained from the image file server in advance, and the first image file may also be saved in the image file storage space preset by the server.
204、服务器通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;The server creates a new first mirror container as the target mirror container by using the first image file, and starts the target image container to forward the target application service request to the target mirror container.
205、服务器在所述目标镜像容器处理所述目标应用服务请求。205. The server processes the target application service request in the target mirroring container.
本发明实施例中通过在云交互式系统中引进镜像容器作为应用的载体,用户设备的应用服务请求可以在服务器中已启动的任意空闲的镜像容器中执行,由于服务器中云交互式系统中,服务器会对应多个用户设备客户端,而服务器中镜像容器都是通过同一镜像文件创建的,因此服务器中的任一个空闲的镜像容器都可以处理客户端的应用服务器请求,降低了服务器中处理应用服务请求时系统和环境的搭建难度,提高了处理效率。In the embodiment of the present invention, by introducing a mirror container as a carrier of an application in a cloud interactive system, an application service request of the user equipment may be executed in any idle mirror container that has been started in the server, because the cloud interactive system in the server The server will correspond to multiple user device clients, and the mirror containers in the server are created by the same image file. Therefore, any idle mirror container in the server can process the client application server request and reduce the processing application service in the server. The difficulty of setting up the system and the environment at the request time improves the processing efficiency.
本实施例中,在服务器接收所述用户设备发送的目标应用服务请求之前,所述方法还可以包括:In this embodiment, before the server receives the target application service request sent by the user equipment, the method may further include:
所述服务器根据预置的镜像容器配置策略,通过所述第一镜像文件创建所述至少一个第一镜像容器;The server creates the at least one first mirror container by using the first image file according to a preset mirror container configuration policy;
所述服务器启动所述至少一个第一镜像容器。The server starts the at least one first mirrored container.
其中,预置的镜像容器配置策略可以包括规定服务器需要通过第一镜像文件创建第一镜像容器的初始个数,还可以包括当服务器中空闲的第一镜像容器低于预设的数量(如2个)时,创建新的第一镜像容器以作备用。The preset mirror container configuration policy may include: specifying an initial number of the first mirror container that the server needs to create by using the first image file, and may also include: when the first mirror container that is idle in the server is lower than a preset number (such as 2) When creating a new first mirrored container for backup.
所述服务器启动所述至少一个第一镜像容器,可以包括:The server starts the at least one first mirror container, which may include:
所述服务器获取所述至少一个第一镜像容器的启动指令;Obtaining, by the server, a startup instruction of the at least one first mirror container;
所述服务器根据所述启动指令启动所述至少一个第一镜像容器;The server starts the at least one first mirror container according to the startup instruction;
所述服务器从所述至少一个第一镜像容器分别获取启动成功后通知信息; The server obtains notification information after successful startup from the at least one first mirror container;
在每个第一镜像容器启动成功后,所述服务器记录每个第一镜像容器的标识信息。After each first mirror container is successfully launched, the server records the identification information of each first mirror container.
记录第一镜像容器的标识信息的作用主要是为了标记该第一镜像容器,由于启动后的第一镜像容器有两种状态,一种是被分配使用中,一种是空闲,记录每个第一镜像容器的标识信息,可以以便后续在第一镜像容器被使用时,可以根据该标识信息标记该第一镜像容器的状态是使用中还是空闲。The purpose of recording the identification information of the first mirror container is mainly to mark the first mirror container. Since the first mirror container after startup has two states, one is allocated for use, one is idle, and each record is recorded. The identification information of the mirrored container may be used to mark whether the state of the first mirrored container is in use or idle according to the identifier information when the first mirrored container is used.
由于一个服务器可以对应多个用户设备,即可以供多个用户设备访问,在用户设备的目标应用服务需求(可以是服务器统计的当前某个设定的时间段内,单位时间内目标应用服务需求)不大时,若已启动的至少一个第一镜像容器中空闲的第一镜像容器充分富足,例如单位时间(如10分钟内)平均只有2个目标应用服务需求,而已启动的至少一个第一镜像容器包括10个空闲的镜像容器时,可以酌情关闭并删掉一部分空闲的第一镜像容器,即此时,所述方法还可以包括:Since one server can correspond to multiple user equipments, that is, it can be accessed by multiple user equipments, and the target application service requirements of the user equipments (which may be the current set time of the server statistics, the target application service requirements per unit time) When the time is small, if the first mirror container that is idle in at least one first mirror container that has been activated is sufficiently rich, for example, there are only two target application service requirements per unit time (such as within 10 minutes), and at least one first is activated. When the mirroring container includes 10 free mirroring containers, the first mirroring container may be closed and deleted as needed. In this case, the method may further include:
所述服务器根据当前目标应用服务需求,将所述已启动的至少一个第一镜像容器中的至少一个空闲的第一镜像容器关闭,并删除所述至少一个空闲的第一镜像容器。The server closes the at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and deletes the at least one idle first mirror container.
一般情况下,由于技术的发展,工程师还需要随时对第一镜像文件进行维护更新,例如镜像文件中的目标应用升级等,当所述第一镜像文件是所述服务器从预置的镜像文件存储空间获取,所述镜像文件存储空间位于所述服务器中时,此时工程师可以在镜像文件存储空间对第一镜像文件进行更新替换为最新开发的新的第二镜像文件,此时,所述方法还可以包括:In general, due to the development of technology, engineers also need to perform maintenance updates on the first image file at any time, such as target application upgrade in the image file, etc., when the first image file is stored by the server from a preset image file. When the image storage space is located in the server, the engineer can replace the first image file with the newly developed new second image file in the image file storage space. At this time, the method It can also include:
所述服务器获取更新的第二镜像文件;The server acquires an updated second image file;
所述服务器在所述镜像文件存储空间,用所述第二镜像文件替换所述第一镜像文件。The server replaces the first image file with the second image file in the image file storage space.
在用所述第二镜像文件替换所述第一镜像文件之后,由于作为复制母本的第一镜像文件已经被替换更新,因此相应的,原来根据第一镜像文件创建的第一镜像容器需要进行关闭删除操作,同时需要根据更新后的第二镜像文件,创建第二镜像容器,利用第二镜像容器处理用户设备发起的新的目标应用服务请求,此时,即所述方法还包括:After replacing the first image file with the second image file, since the first image file that is the copy parent has been replaced, the first image container originally created according to the first image file needs to be updated. The deletion operation is performed, and the second image container is created according to the updated second image file, and the second target container service is used to process the new target application service request initiated by the user equipment.
所述服务器将服务器内当前所有的第一镜像容器关闭并删除;The server closes and deletes all current first mirror containers in the server;
所述服务器根据所述第二镜像文件创建至少一个第二镜像容器。 The server creates at least one second mirror container according to the second image file.
这样,简单快捷的实现了系统的维护更新,便于管理维护。In this way, the maintenance and update of the system is realized simply and quickly, which is convenient for management and maintenance.
可以理解的是,本发明实施例中,还可以单独设置一个保存镜像文件的镜像文件服务器,第一镜像文件保存在该镜像文件服务器中,本实施例中的服务器可以访问所述镜像文件服务器,上述第一镜像文件是服务器从所述镜像文件服务器中获取得到的,此时第二镜像文件的更新也是在镜像文件服务器中更新替换的,在所述镜像文件服务器中镜像文件发生更新后,例如,由第一镜像文件更新为第二镜像文件后,所述镜像文件服务器将更新后的第二镜像文件发送给所述服务器,所述服务器即可将服务器内当前所有的第一镜像容器关闭并删除,并且根据所述第二镜像文件创建至少一个第二镜像容器。It can be understood that, in the embodiment of the present invention, an image file server that saves an image file may be separately set, and the first image file is saved in the image file server, and the server in this embodiment may access the image file server. The first image file is obtained by the server from the image file server. At this time, the update of the second image file is also updated and replaced in the image file server. After the image file is updated in the image file server, for example, After the first image file is updated to the second image file, the image file server sends the updated second image file to the server, and the server can close all the first image containers in the server. Deleting, and creating at least one second mirror container according to the second image file.
本发明实施例中,所描述的镜像容器可以是Docker虚拟技术领域中的容器Container,Docker是一个开源的应用容器引擎,让开发者可以将他们的应用以及依赖包打包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口,也几乎没有性能开销,可以很容易地在机器和数据中心中运行,最重要的是,他们不依赖于任何语言、框架和系统。In the embodiment of the present invention, the mirror container described may be a container Container in the field of Docker virtual technology, and Docker is an open source application container engine, which allows developers to package their applications and dependencies into a portable container. And then released to any popular Linux machine, you can also achieve virtualization. Containers are completely sandboxed, have no interfaces to each other, have virtually no performance overhead, can be easily run in machines and data centers, and most importantly, they don't depend on any language, framework, or system. .
Docker虚拟技术领域中的Container可以通过Docker指令来动态的创建,运行,停止和删除管理等,Docker虚拟技术中创建有镜像文件仓库来保存镜像文件,通过该镜像文件可以根据需要创建一定数量的镜像容器Container,服务器中具有基于Container的管理程序(例如Agent程序),负责管理镜像容器Container的动态的创建,运行,停止和删除管理等。Containers in the Docker virtual technology domain can dynamically create, run, stop, and delete management through Docker instructions. Docker virtual technology creates an image file repository to save image files. This image file can create a certain number of images as needed. Container Container, which has a Container-based management program (such as the Agent program), which is responsible for managing the dynamic creation, operation, stop, and deletion management of the mirror container.
下面以一具体应用场景介绍上述数据请求处理的方法。The following describes the method of data request processing in a specific application scenario.
请参阅图3,为本发明实施例中数据请求处理的方法的另一个实施例,本实施例中以目标应用为QQ游戏为例,所述方法应用于云交互式系统,所述云交互式系统包括用户设备和服务器,所述服务器中包括已启动的至少一个Container 1,所述Container 1是根据预置的镜像文件image1创建的,所述Container 1中安装有QQ游戏,所述方法包括:Please refer to FIG. 3, which is another embodiment of a method for data request processing according to an embodiment of the present invention. In this embodiment, a target application is a QQ game, and the method is applied to a cloud interactive system, where the cloud interaction is performed. The system includes a user equipment and a server, and the server includes at least one Container 1 that has been activated. The Container 1 is created according to a preset image file image1, and the QQ game is installed in the Container 1. The method includes:
301、服务器接收所述用户设备发送的QQ游戏服务请求;301. The server receives a QQ game service request sent by the user equipment.
302、服务器判断所述至少一个Container 1中是否存在空闲的Container 1,若是,执行步骤303,若否,执行步骤304;302, the server determines whether there is an idle Container in the at least one Container 1, and if so, step 303 is performed, and if not, step 304 is performed;
303、服务器确定所述空闲的Container 1为目标Container1,并将所述QQ游戏服务请求转发给所述目标Container1; 303, the server determines that the idle Container 1 is the target Container1, and forwards the QQ game service request to the target Container1;
304、服务器通过所述image1创建新的Container 1作为目标Container 1,启动所述目标Container 1后将所述QQ游戏服务请求转发给所述目标Container1;304, the server creates a new Container 1 as the target Container 1 through the image1, and starts the target Container 1 to forward the QQ game service request to the target Container1;
305、服务器在所述目标Container 1处理所述QQ游戏服务请求。305. The server processes the QQ game service request in the target Container 1.
服务器在所述目标Container 1处理所述QQ游戏服务请求,可以是服务器在所述目标Container 1启动QQ游戏应用,服务器后续还可以接收用户设备发送的QQ游戏的其他服务请求,例如启动后的操作指令请求等,服务器根据后续的请求继续在目标Container 1的QQ游戏应用中处理对应的请求,实现用户设备和服务器的目标Container 1的交互。The server processes the QQ game service request in the target Container 1, and the server may start the QQ game application in the target Container 1, and the server may further receive other service requests of the QQ game sent by the user equipment, for example, after the startup operation. The command request or the like, the server continues to process the corresponding request in the QQ game application of the target Container 1 according to the subsequent request, and realizes the interaction between the user device and the target Container 1 of the server.
本实施例中,在服务器接收所述用户设备发送的目QQ游戏服务请求之前,所述方法还可以包括:In this embodiment, before the server receives the target QQ game service request sent by the user equipment, the method may further include:
所述服务器根据预置的Container配置策略,通过所述image1创建所述至少一个Container 1;The server creates the at least one Container 1 through the image1 according to a preset Container configuration policy;
所述服务器启动所述至少一个Container 1。The server starts the at least one Container 1.
本实施例中服务器和Container 1都可以包括Agent管理程序,通过该Agent管理程序实现服务器和服务器内Container 1的信息交互,其中,如图4所示,服务器启动所述至少一个Container 1中每个Container 1可以包括如下步骤:In this embodiment, the server and the Container 1 may include an Agent management program, and the information exchange between the server and the Container 1 in the server is implemented by the Agent management program, wherein, as shown in FIG. 4, the server starts each of the at least one Container 1. Container 1 can include the following steps:
401、服务器获取Container 1的启动指令;401. The server acquires a startup instruction of Container 1.
402、服务器根据所述启动指令启动所述Container 1;402, the server starts the Container 1 according to the startup instruction;
403、服务器从所述Container 1获取启动成功后通知信息;403. The server obtains notification information after the startup is successful from the Container 1;
404、在所述Container 1启动成功后,所述服务器记录所述Container 1的标识信息。404. After the Container 1 is successfully started, the server records the identifier information of the Container 1.
在已启动至少一个Container 1后,如果服务器统计的当前某个设定的时间段内,单位时间内玩QQ游戏的用户不多,此时,此时对Container 1的需求不大,因此,在空闲状态的Container 1比较富足的情况下,可以关闭并删除一部分空闲状态的Container 1,以节约系统资源。After at least one Container 1 has been started, if there is not much user playing QQ games per unit time within a certain set time period of the server statistics, at this time, the demand for Container 1 is not large, therefore, In the case of the idle state of Container 1, it is possible to shut down and delete part of the idle state of Container 1 to save system resources.
本实施例中,当对镜像文件image1需要进行更新时,所述服务器获取更新的镜像文件image2,此时,服务器将在所述镜像文件存储空间,用所述第二镜像文件替换所述image1,由于之前的Container 1均是根据image1创建的,已经不符合要求,因此需要全部进行关闭和删除,再根据image2进行新的Container2的创建,实现系统的维护更新,简单快捷。 In this embodiment, when the image file image1 needs to be updated, the server obtains the updated image file image2. At this time, the server replaces the image1 with the second image file in the image file storage space. Since the previous Container 1 was created according to image1, it has not met the requirements, so it needs to be completely closed and deleted. Then, according to image2, the new Container2 is created to realize the maintenance and update of the system, which is simple and fast.
下面介绍本发明实施例中服务器的实施例。Embodiments of the server in the embodiment of the present invention are described below.
请参阅图5,为本发明实施例中一种服务器的实施例,所述服务器应用于云交互式系统,所述云交互式系统还包括用户设备,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述服务器500包括:Referring to FIG. 5, an embodiment of a server is applied to a cloud interactive system, where the cloud interactive system further includes a user equipment, where the server includes at least one started. a mirroring container, the first mirroring container is created according to a preset first image file, wherein the first image container is installed with a target application, and the server 500 includes:
接收单元501,用于接收所述用户设备发送的目标应用服务请求;The receiving unit 501 is configured to receive a target application service request sent by the user equipment;
判断单元502,用于判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;The determining unit 502 is configured to determine whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request Giving the target image container, if not, creating a new first image container as the target image container by using the first image file, and starting the target image container to forward the target application service request to the target image container;
处理单元503,用于在所述目标镜像容器处理所述目标应用服务请求。The processing unit 503 is configured to process the target application service request in the target mirroring container.
可选地,所述服务器还包括:Optionally, the server further includes:
创建单元,用于在所述接收单元接收所述用户设备发送的目标应用服务请求之前,根据预置的镜像容器配置策略,通过所述第一镜像文件创建所述至少一个第一镜像容器;a creating unit, configured to create the at least one first mirror container by using the first image file according to a preset mirror container configuration policy, before the receiving unit receives the target application service request sent by the user equipment;
启动单元,用于启动所述至少一个第一镜像容器。And a starting unit, configured to start the at least one first mirror container.
可选地,所述启动单元具体用于:获取所述至少一个第一镜像容器的启动指令;Optionally, the startup unit is specifically configured to: acquire a startup instruction of the at least one first mirror container;
根据所述启动指令启动所述至少一个第一镜像容器;And starting the at least one first mirror container according to the startup instruction;
从所述至少一个第一镜像容器分别获取启动成功后通知信息;Obtaining notification information after successful startup from the at least one first mirror container;
在每个第一镜像容器启动成功后,记录每个第一镜像容器的标识信息。After each first mirror container is successfully started, the identification information of each first mirror container is recorded.
可选地,所述服务器还包括:Optionally, the server further includes:
删除单元,用于根据当前目标应用服务需求,将所述已启动的至少一个第一镜像容器中的至少一个空闲的第一镜像容器关闭,并删除所述至少一个空闲的第一镜像容器。And a deleting unit, configured to close at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and delete the at least one idle first mirror container.
可选地,所述第一镜像文件是所述服务器从预置的镜像文件存储空间获取,所述镜像文件存储空间位于所述服务器中;Optionally, the first image file is obtained by the server from a preset image file storage space, where the image file storage space is located in the server;
所述服务器还包括:The server further includes:
更新单元,用于获取更新的第二镜像文件,在所述镜像文件存储空间,用所述第二镜像文件替换所述第一镜像文件。 And an update unit, configured to obtain an updated second image file, where the first image file is replaced with the second image file in the image file storage space.
可选地,所述创建单元还用于将服务器内当前所有的第一镜像容器关闭并删除,根据所述第二镜像文件创建至少一个第二镜像容器。Optionally, the creating unit is further configured to: close and delete all current first mirror containers in the server, and create at least one second mirror container according to the second image file.
上面从单元化功能实体的角度对本发明实施例中的服务器进行了描述,下面从硬件处理的角度对本发明实施例中的服务器进行描述,请参阅图6,本发明实施例中的服务器600包括:The server in the embodiment of the present invention is described above from the perspective of a unitized functional entity. The server in the embodiment of the present invention is described below from the perspective of hardware processing. Referring to FIG. 6, the server 600 in the embodiment of the present invention includes:
输入装置601、输出装置602、处理器603和存储器604(其中处理器603的数量可以一个或多个,图6中以一个处理器603为例)。The input device 601, the output device 602, the processor 603, and the memory 604 (wherein the number of the processors 603 may be one or more, and one processor 603 is taken as an example in FIG. 6).
在本发明的一些实施例中,输入装置601、输出装置602、处理器603和存储器604可通过总线或其它方式连接,其中,图6中以通过总线连接为例。In some embodiments of the present invention, the input device 601, the output device 602, the processor 603, and the memory 604 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
本发明实施例涉及的服务器可以具有比图6所示出的更多或更少的部件,可以组合两个或更多个部件,或者可以具有不同的部件配置或设置,各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件或硬件和软件的组合实现。The server according to an embodiment of the present invention may have more or less components than those shown in FIG. 6, may combine two or more components, or may have different component configurations or settings, and each component may include one Hardware, software, or a combination of hardware and software, including multiple signal processing and/or application specific integrated circuits.
其中,通过调用存储器604存储的操作指令,处理器603用于执行如下步骤:The processor 603 is configured to perform the following steps by calling an operation instruction stored in the memory 604:
通过输入装置601接收所述用户设备发送的目标应用服务请求;Receiving, by the input device 601, a target application service request sent by the user equipment;
判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;Determining whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to the target mirror container If not, creating a new first mirror container as the target mirror container by using the first image file, and starting the target mirror container to forward the target application service request to the target mirror container;
在所述目标镜像容器处理所述目标应用服务请求。Processing the target application service request at the target mirror container.
可选地,在服务器接收所述用户设备发送的目标应用服务请求之前,通过调用存储器604存储的操作指令,处理器603还用于执行如下步骤:Optionally, before the server receives the target application service request sent by the user equipment, the processor 603 is further configured to perform the following steps by using an operation instruction stored in the memory 604:
根据预置的镜像容器配置策略,通过所述第一镜像文件创建所述至少一个第一镜像容器;Creating the at least one first mirror container by using the first image file according to a preset mirror container configuration policy;
启动所述至少一个第一镜像容器。The at least one first mirror container is activated.
可选地,通过调用存储器604存储的操作指令,处理器603具体用于执行如下步骤:Optionally, the processor 603 is specifically configured to perform the following steps by calling an operation instruction stored in the memory 604:
获取所述至少一个第一镜像容器的启动指令;Obtaining a startup instruction of the at least one first mirror container;
根据所述启动指令启动所述至少一个第一镜像容器; And starting the at least one first mirror container according to the startup instruction;
从所述至少一个第一镜像容器分别获取启动成功后通知信息;Obtaining notification information after successful startup from the at least one first mirror container;
在每个第一镜像容器启动成功后,记录每个第一镜像容器的标识信息。After each first mirror container is successfully started, the identification information of each first mirror container is recorded.
可选地,通过调用存储器604存储的操作指令,处理器603还用于执行如下步骤:Optionally, the processor 603 is further configured to perform the following steps by calling an operation instruction stored in the memory 604:
根据当前目标应用服务需求,将所述已启动的至少一个第一镜像容器中的至少一个空闲的第一镜像容器关闭,并删除所述至少一个空闲的第一镜像容器。And closing at least one of the at least one first mirrored container that is idle, and deleting the at least one idle first mirrored container, according to the current target application service requirement.
可选地,所述第一镜像文件是所述服务器从预置的镜像文件存储空间获取,所述镜像文件存储空间位于所述服务器中;Optionally, the first image file is obtained by the server from a preset image file storage space, where the image file storage space is located in the server;
通过调用存储器604存储的操作指令,处理器603还用于执行如下步骤:The processor 603 is further configured to perform the following steps by calling an operation instruction stored in the memory 604:
获取更新的第二镜像文件;Obtaining the updated second image file;
在所述镜像文件存储空间,用所述第二镜像文件替换所述第一镜像文件。In the image file storage space, the first image file is replaced with the second image file.
可选地,在用所述第二镜像文件替换所述第一镜像文件之后,通过调用存储器604存储的操作指令,处理器603还用于执行如下步骤:Optionally, after the first image file is replaced by the second image file, the processor 603 is further configured to perform the following steps by calling an operation instruction stored by the memory 604:
将服务器内当前所有的第一镜像容器关闭并删除;Close all the first mirror containers in the server and delete them;
根据所述第二镜像文件创建至少一个第二镜像容器。Creating at least one second mirror container according to the second image file.
本实施例中,存储器604可用于存储软件程序以及模块,处理器603通过运行存储在存储器604的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器604可主要包括存储程序区和存储数据区。In this embodiment, the memory 604 can be used to store software programs and modules, and the processor 603 executes various functional applications and data processing by running software programs and modules stored in the memory 604. The memory 604 can mainly include a storage program area and a storage data area.
其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据服务器的使用所创建的数据(比如镜像容器数据)等。此外,存储器604可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the server (such as mirrored container data). Moreover, memory 604 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器603可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器603中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器603可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。 Processor 603 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 603 or an instruction in a form of software. The processor 603 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于 随机存储器、闪存、只读存储器、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器604,处理器603读取存储器604中的信息,结合其硬件完成上述方法的步骤。The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. Software modules can be located Random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., are well-established storage media in the field. The storage medium is located in memory 604, and processor 603 reads the information in memory 604 and, in conjunction with its hardware, performs the steps of the above method.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的至少数据请求处理的方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the at least data request processing method described in the foregoing method embodiments.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。It will be apparent to those skilled in the art that, for the convenience and brevity of the description, in the above embodiments, the description of each embodiment has its own emphasis, and a part not described in detail in a certain embodiment can be referred to other implementations. A description of the example.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention Technical Solution In essence or in part that contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product, the computer software product is stored in a storage medium, including a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (14)

  1. 一种数据请求处理的方法,其特征在于,所述方法应用于云交互式系统,所述云交互式系统包括用户设备和服务器,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述方法包括:A method for data request processing, the method being applied to a cloud interactive system, the cloud interactive system comprising a user equipment and a server, wherein the server includes at least one first mirror container that has been activated, The first mirror container is created according to the preset first image file, and the target application is installed in the first mirror container, and the method includes:
    所述服务器接收所述用户设备发送的目标应用服务请求;Receiving, by the server, a target application service request sent by the user equipment;
    所述服务器判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;Determining, by the server, whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to the a target mirroring container, if not, creating a new first mirroring container as the target mirroring container by using the first image file, and starting the target mirroring container, and forwarding the target application service request to the target mirroring container;
    所述服务器在所述目标镜像容器处理所述目标应用服务请求。The server processes the target application service request in the target mirror container.
  2. 根据权利要求1所述的方法,其特征在于,在服务器接收所述用户设备发送的目标应用服务请求之前,所述方法还包括:The method according to claim 1, wherein before the server receives the target application service request sent by the user equipment, the method further includes:
    所述服务器根据预置的镜像容器配置策略,通过所述第一镜像文件创建所述至少一个第一镜像容器;The server creates the at least one first mirror container by using the first image file according to a preset mirror container configuration policy;
    所述服务器启动所述至少一个第一镜像容器。The server starts the at least one first mirrored container.
  3. 根据权利要求2所述的方法,其特征在于,所述服务器启动所述至少一个第一镜像容器,包括:The method according to claim 2, wherein the server starts the at least one first mirror container, comprising:
    所述服务器获取所述至少一个第一镜像容器的启动指令;Obtaining, by the server, a startup instruction of the at least one first mirror container;
    所述服务器根据所述启动指令启动所述至少一个第一镜像容器;The server starts the at least one first mirror container according to the startup instruction;
    所述服务器从所述至少一个第一镜像容器分别获取启动成功后通知信息;The server obtains notification information after successful startup from the at least one first mirror container;
    在每个第一镜像容器启动成功后,所述服务器记录每个第一镜像容器的标识信息。After each first mirror container is successfully launched, the server records the identification information of each first mirror container.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, further comprising:
    所述服务器根据当前目标应用服务需求,将所述已启动的至少一个第一镜像容器中的至少一个空闲的第一镜像容器关闭,并删除所述至少一个空闲的第一镜像容器。The server closes the at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and deletes the at least one idle first mirror container.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一镜像 文件是所述服务器从预置的镜像文件存储空间获取,所述镜像文件存储空间位于所述服务器中;The method according to any one of claims 1 to 4, wherein the first image The file is obtained by the server from a preset image file storage space, where the image file storage space is located in the server;
    所述方法还包括:The method further includes:
    所述服务器获取更新的第二镜像文件;The server acquires an updated second image file;
    所述服务器在所述镜像文件存储空间,用所述第二镜像文件替换所述第一镜像文件。The server replaces the first image file with the second image file in the image file storage space.
  6. 根据权利要求1至4中的任一项所述的方法,其特征在于,所述第一镜像文件和所述第二镜像文件是所述服务器从镜像文件服务器中获取,在所述镜像文件服务器中将第一镜像文件更新为第二镜像文件。The method according to any one of claims 1 to 4, wherein the first image file and the second image file are obtained by the server from an image file server at the image file server The first image file is updated to the second image file.
  7. 根据权利要求5或6所述的方法,其特征在于,在用所述第二镜像文件替换所述第一镜像文件之后,所述方法还包括:The method according to claim 5 or 6, wherein after the replacing the first image file with the second image file, the method further comprises:
    所述服务器将服务器内当前所有的第一镜像容器关闭并删除;The server closes and deletes all current first mirror containers in the server;
    所述服务器根据所述第二镜像文件创建至少一个第二镜像容器。8、一种服务器,其特征在于,所述服务器应用于云交互式系统,所述云交互式系统还包括用户设备,所述服务器中包括已启动的至少一个第一镜像容器,所述第一镜像容器是根据预置的第一镜像文件创建的,所述第一镜像容器中安装有目标应用,所述服务器包括:The server creates at least one second mirror container according to the second image file. A server, wherein the server is applied to a cloud interactive system, the cloud interactive system further comprising a user equipment, wherein the server includes at least one first mirror container that has been activated, the first The mirroring container is created according to the preset first image file, where the target application is installed in the first mirror container, and the server includes:
    接收单元,用于接收所述用户设备发送的目标应用服务请求;a receiving unit, configured to receive a target application service request sent by the user equipment;
    判断单元,用于判断所述至少一个第一镜像容器中是否存在空闲的第一镜像容器,若是,确定所述空闲的第一镜像容器为目标镜像容器,并将所述目标应用服务请求转发给所述目标镜像容器,若否,则通过所述第一镜像文件创建新的第一镜像容器作为目标镜像容器,启动所述目标镜像容器后将所述目标应用服务请求转发给所述目标镜像容器;a determining unit, configured to determine whether there is an idle first mirror container in the at least one first mirror container, and if yes, determining that the idle first mirror container is a target mirror container, and forwarding the target application service request to The target mirroring container, if not, creating a new first mirroring container as the target mirroring container by using the first image file, and starting the target mirroring container, and forwarding the target application service request to the target mirroring container. ;
    处理单元,用于在所述目标镜像容器处理所述目标应用服务请求。a processing unit, configured to process the target application service request in the target mirror container.
  8. 根据权利要求8所述的服务器,其特征在于,所述服务器还包括:The server according to claim 8, wherein the server further comprises:
    创建单元,用于在所述接收单元接收所述用户设备发送的目标应用服务请求之前,根据预置的镜像容器配置策略,通过所述第一镜像文件创建所述至少一个第一镜像容器;a creating unit, configured to create the at least one first mirror container by using the first image file according to a preset mirror container configuration policy, before the receiving unit receives the target application service request sent by the user equipment;
    启动单元,用于启动所述至少一个第一镜像容器。And a starting unit, configured to start the at least one first mirror container.
  9. 根据权利要求9所述的服务器,其特征在于,所述启动单元具体用于:获取所述至少一个第一镜像容器的启动指令; The server according to claim 9, wherein the activation unit is specifically configured to: acquire a startup instruction of the at least one first mirror container;
    根据所述启动指令启动所述至少一个第一镜像容器;And starting the at least one first mirror container according to the startup instruction;
    从所述至少一个第一镜像容器分别获取启动成功后通知信息;Obtaining notification information after successful startup from the at least one first mirror container;
    在每个第一镜像容器启动成功后,记录每个第一镜像容器的标识信息。After each first mirror container is successfully started, the identification information of each first mirror container is recorded.
  10. 根据权利要求8至10中任一项所述的服务器,其特征在于,所述服务器还包括:The server according to any one of claims 8 to 10, wherein the server further comprises:
    删除单元,用于根据当前目标应用服务需求,将所述已启动的至少一个第一镜像容器中的至少一个空闲的第一镜像容器关闭,并删除所述至少一个空闲的第一镜像容器。And a deleting unit, configured to close at least one idle first mirror container of the at least one first mirror container that is started according to the current target application service requirement, and delete the at least one idle first mirror container.
  11. 根据权利要求8至11中任一项所述的服务器,其特征在于,所述第一镜像文件是所述服务器从预置的镜像文件存储空间获取,所述镜像文件存储空间位于所述服务器中;The server according to any one of claims 8 to 11, wherein the first image file is obtained by the server from a preset image file storage space, and the image file storage space is located in the server. ;
    所述服务器还包括:The server further includes:
    更新单元,用于获取更新的第二镜像文件,在所述镜像文件存储空间,用所述第二镜像文件替换所述第一镜像文件。And an update unit, configured to obtain an updated second image file, where the first image file is replaced with the second image file in the image file storage space.
  12. 根据权利要求8至11中任一项所述的服务器,其特征在于,所述服务器从镜像文件服务器中获取所述第一镜像文件和所述第二镜像文件,在所述镜像文件服务器中将第一镜像文件更新为第二镜像文件。The server according to any one of claims 8 to 11, wherein the server acquires the first image file and the second image file from an image file server, where the image file server The first image file is updated to the second image file.
  13. 根据权利要求12或13所述的服务器,其特征在于,所述创建单元还用于将服务器内当前所有的第一镜像容器关闭并删除,根据所述第二镜像文件创建至少一个第二镜像容器。The server according to claim 12 or 13, wherein the creating unit is further configured to close and delete all current first mirror containers in the server, and create at least one second mirror container according to the second image file. .
  14. 一种云交互式系统,其特征在于,包括服务器和用户设备,所述服务器为如权利要求8至14中任一所述的服务器。 A cloud interactive system, comprising a server and a user equipment, the server being a server according to any one of claims 8 to 14.
PCT/CN2017/072409 2016-01-29 2017-01-24 Data request processing method, server and system WO2017129106A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610067810.8 2016-01-29
CN201610067810.8A CN105763602B (en) 2016-01-29 2016-01-29 A kind of method of data request processing, server and system

Publications (1)

Publication Number Publication Date
WO2017129106A1 true WO2017129106A1 (en) 2017-08-03

Family

ID=56342904

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072409 WO2017129106A1 (en) 2016-01-29 2017-01-24 Data request processing method, server and system

Country Status (2)

Country Link
CN (1) CN105763602B (en)
WO (1) WO2017129106A1 (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897527A (en) * 2018-05-21 2018-11-27 东莞理工学院 The Docker mirror image of remote sensing image processing automates dynamic fixing method in a kind of cloud computing
CN108920136A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of operating system creation method, system and relevant apparatus based on container
CN110347389A (en) * 2019-07-19 2019-10-18 中国工商银行股份有限公司 Processing method, the device and system of algorithm file
CN110674043A (en) * 2019-09-24 2020-01-10 聚好看科技股份有限公司 Application debugging processing method and server
CN110908671A (en) * 2018-09-18 2020-03-24 北京京东尚科信息技术有限公司 Method and device for constructing docker mirror image and computer readable storage medium
CN111221623A (en) * 2019-12-26 2020-06-02 中科曙光国际信息产业有限公司 Mirror image library management system
CN111427600A (en) * 2020-03-20 2020-07-17 成都千立网络科技有限公司 Docker-based platform system deployment and upgrade method and system
CN111459613A (en) * 2020-03-30 2020-07-28 山东浪潮通软信息科技有限公司 Method and device for dynamically expanding development environment
CN111611054A (en) * 2020-05-21 2020-09-01 网宿科技股份有限公司 Application deployment method and device
CN111638935A (en) * 2020-04-15 2020-09-08 阿里巴巴集团控股有限公司 Mirror image management method, network system, device, and storage medium
CN111831391A (en) * 2020-06-08 2020-10-27 北京百度网讯科技有限公司 Method and device for managing preset container in automatic driving simulation system
CN111966445A (en) * 2020-06-30 2020-11-20 北京百度网讯科技有限公司 Processing method and device for calling application program interface
CN112148419A (en) * 2019-06-28 2020-12-29 杭州海康威视数字技术股份有限公司 Mirror image management method, device and system in cloud platform and storage medium
CN112463170A (en) * 2020-10-29 2021-03-09 苏州浪潮智能科技有限公司 Method, device and equipment for making mirror image on cloud platform and storage medium
CN112596741A (en) * 2020-11-16 2021-04-02 新华三大数据技术有限公司 Video monitoring service deployment method and device
CN112732407A (en) * 2021-01-15 2021-04-30 上海浪潮云计算服务有限公司 Container full life cycle management method for realizing multi-CPU architecture
CN113377665A (en) * 2021-06-25 2021-09-10 北京百度网讯科技有限公司 Container technology-based testing method and device, electronic equipment and storage medium
CN114615340A (en) * 2022-03-08 2022-06-10 北京字节跳动网络技术有限公司 Request processing method and device, computer equipment and storage device
CN114706622A (en) * 2022-03-10 2022-07-05 北京百度网讯科技有限公司 Method, apparatus, device, medium and product for starting model service
CN114936066A (en) * 2022-04-15 2022-08-23 支付宝(杭州)信息技术有限公司 Mirror image stacking method, mirror image stacking device, mirror image stacking apparatus, mirror image stacking medium, and program product
CN115277728A (en) * 2022-07-01 2022-11-01 阳光电源股份有限公司 Model file issuing method and system and cloud server
CN112650478B (en) * 2021-01-04 2024-03-26 中车青岛四方车辆研究所有限公司 Dynamic construction method, system and equipment for embedded software development platform

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763602B (en) * 2016-01-29 2017-12-01 腾讯科技(深圳)有限公司 A kind of method of data request processing, server and system
CN107797807B (en) 2016-08-29 2021-04-06 阿里巴巴集团控股有限公司 Method, device, terminal, server and system for generating container
CN108376061B (en) * 2016-10-13 2019-12-10 北京百度网讯科技有限公司 Method and apparatus for developing unmanned vehicle applications
CN108965214B (en) * 2017-05-24 2021-07-23 中国移动通信集团山西有限公司 Data processing method, device and computer storage medium
CN109922106B (en) * 2017-12-13 2021-09-17 中标软件有限公司 Cloud mobile phone system realized based on Docker container
CN110166409B (en) * 2018-02-13 2021-12-28 华为技术有限公司 Device access method, related platform and computer storage medium
CN108833532B (en) * 2018-06-13 2021-11-30 中国联合网络通信集团有限公司 Service processing method, device and system based on Internet of things
CN111382136B (en) * 2018-12-29 2024-03-15 华为技术有限公司 File system mirror image and file request method
CN110096371A (en) * 2019-03-08 2019-08-06 国网浙江省电力有限公司 Application exchange method, device, system and management container based on container technique
CN111984722A (en) * 2019-05-22 2020-11-24 顺丰科技有限公司 Block chain data request processing method and device, server and storage medium
CN112187841B (en) * 2019-07-02 2022-07-08 北京百度网讯科技有限公司 Service hosting method and device based on SaaS platform, electronic equipment and storage medium
CN110430442B (en) * 2019-08-08 2021-11-26 赛尔网络有限公司 Playing method, device and system
CN112044079B (en) * 2020-10-14 2023-02-07 腾讯科技(深圳)有限公司 Game running method and device, storage medium and electronic equipment
CN113282308A (en) * 2021-06-17 2021-08-20 杭州华橙软件技术有限公司 Mirror image construction method and device, storage medium and electronic device
CN114090183B (en) * 2021-11-25 2023-07-21 抖音视界有限公司 Application starting method and device, computer equipment and storage medium
CN114390104A (en) * 2022-01-26 2022-04-22 杭州趣链科技有限公司 Process forensics system, method, apparatus, computer device and medium
CN116827668B (en) * 2023-07-31 2024-02-23 江苏云涌电子科技股份有限公司 Zero trust architecture-based data leakage prevention system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120780A1 (en) * 2013-10-30 2015-04-30 Oracle International Corporation System and method for integrating a database with a service deployed on a cloud platform
CN105138403A (en) * 2015-09-02 2015-12-09 浪潮集团有限公司 Cloud host multi-service parallel achieving method
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105763602A (en) * 2016-01-29 2016-07-13 腾讯科技(深圳)有限公司 Data request processing method, server and cloud interactive system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378368B (en) * 2008-09-28 2011-05-04 腾讯科技(深圳)有限公司 Method and system for information interaction
CN103888485B (en) * 2012-12-19 2018-03-09 华为技术有限公司 The distribution method of cloud computing resources, apparatus and system
US9843533B2 (en) * 2014-03-06 2017-12-12 Trilio Data Inc. Elastic compute cloud based on underutilized server resources using a distributed container system
CN105045656B (en) * 2015-06-30 2018-11-30 深圳清华大学研究院 Big data storage and management method based on virtual container
CN105099706A (en) * 2015-08-25 2015-11-25 华为技术有限公司 Data communication method, user equipment and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120780A1 (en) * 2013-10-30 2015-04-30 Oracle International Corporation System and method for integrating a database with a service deployed on a cloud platform
CN105138403A (en) * 2015-09-02 2015-12-09 浪潮集团有限公司 Cloud host multi-service parallel achieving method
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105763602A (en) * 2016-01-29 2016-07-13 腾讯科技(深圳)有限公司 Data request processing method, server and cloud interactive system

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897527A (en) * 2018-05-21 2018-11-27 东莞理工学院 The Docker mirror image of remote sensing image processing automates dynamic fixing method in a kind of cloud computing
CN108920136A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of operating system creation method, system and relevant apparatus based on container
CN110908671A (en) * 2018-09-18 2020-03-24 北京京东尚科信息技术有限公司 Method and device for constructing docker mirror image and computer readable storage medium
CN112148419B (en) * 2019-06-28 2024-01-02 杭州海康威视数字技术股份有限公司 Mirror image management method, device and system in cloud platform and storage medium
CN112148419A (en) * 2019-06-28 2020-12-29 杭州海康威视数字技术股份有限公司 Mirror image management method, device and system in cloud platform and storage medium
CN110347389A (en) * 2019-07-19 2019-10-18 中国工商银行股份有限公司 Processing method, the device and system of algorithm file
CN110347389B (en) * 2019-07-19 2023-09-15 中国工商银行股份有限公司 Method, device and system for processing algorithm file
CN110674043A (en) * 2019-09-24 2020-01-10 聚好看科技股份有限公司 Application debugging processing method and server
CN111221623A (en) * 2019-12-26 2020-06-02 中科曙光国际信息产业有限公司 Mirror image library management system
CN111221623B (en) * 2019-12-26 2024-01-19 中科曙光国际信息产业有限公司 Mirror image library management system
CN111427600A (en) * 2020-03-20 2020-07-17 成都千立网络科技有限公司 Docker-based platform system deployment and upgrade method and system
CN111459613A (en) * 2020-03-30 2020-07-28 山东浪潮通软信息科技有限公司 Method and device for dynamically expanding development environment
CN111459613B (en) * 2020-03-30 2023-08-15 浪潮通用软件有限公司 Method and device for dynamically expanding development environment
CN111638935A (en) * 2020-04-15 2020-09-08 阿里巴巴集团控股有限公司 Mirror image management method, network system, device, and storage medium
CN111638935B (en) * 2020-04-15 2022-07-01 阿里巴巴集团控股有限公司 Mirror image management method, network system, device, and storage medium
CN111611054B (en) * 2020-05-21 2023-05-16 网宿科技股份有限公司 Application deployment method and device
CN111611054A (en) * 2020-05-21 2020-09-01 网宿科技股份有限公司 Application deployment method and device
CN111831391A (en) * 2020-06-08 2020-10-27 北京百度网讯科技有限公司 Method and device for managing preset container in automatic driving simulation system
CN111831391B (en) * 2020-06-08 2023-09-22 北京百度网讯科技有限公司 Method and device for managing preset containers in automatic driving simulation system
CN111966445B (en) * 2020-06-30 2023-07-25 北京百度网讯科技有限公司 Processing method and device for calling application program interface
CN111966445A (en) * 2020-06-30 2020-11-20 北京百度网讯科技有限公司 Processing method and device for calling application program interface
CN112463170B (en) * 2020-10-29 2022-08-23 苏州浪潮智能科技有限公司 Method, device and equipment for making mirror image on cloud platform and storage medium
CN112463170A (en) * 2020-10-29 2021-03-09 苏州浪潮智能科技有限公司 Method, device and equipment for making mirror image on cloud platform and storage medium
CN112596741B (en) * 2020-11-16 2022-08-30 新华三大数据技术有限公司 Video monitoring service deployment method and device
CN112596741A (en) * 2020-11-16 2021-04-02 新华三大数据技术有限公司 Video monitoring service deployment method and device
CN112650478B (en) * 2021-01-04 2024-03-26 中车青岛四方车辆研究所有限公司 Dynamic construction method, system and equipment for embedded software development platform
CN112732407B (en) * 2021-01-15 2024-04-16 上海浪潮云计算服务有限公司 Container full life cycle management method for realizing multi-CPU architecture
CN112732407A (en) * 2021-01-15 2021-04-30 上海浪潮云计算服务有限公司 Container full life cycle management method for realizing multi-CPU architecture
CN113377665A (en) * 2021-06-25 2021-09-10 北京百度网讯科技有限公司 Container technology-based testing method and device, electronic equipment and storage medium
CN114615340B (en) * 2022-03-08 2023-10-20 抖音视界有限公司 Request processing method and device, computer equipment and storage device
CN114615340A (en) * 2022-03-08 2022-06-10 北京字节跳动网络技术有限公司 Request processing method and device, computer equipment and storage device
CN114706622A (en) * 2022-03-10 2022-07-05 北京百度网讯科技有限公司 Method, apparatus, device, medium and product for starting model service
CN114706622B (en) * 2022-03-10 2023-08-18 北京百度网讯科技有限公司 Method, device, equipment, medium and product for starting model service
CN114936066A (en) * 2022-04-15 2022-08-23 支付宝(杭州)信息技术有限公司 Mirror image stacking method, mirror image stacking device, mirror image stacking apparatus, mirror image stacking medium, and program product
CN115277728A (en) * 2022-07-01 2022-11-01 阳光电源股份有限公司 Model file issuing method and system and cloud server

Also Published As

Publication number Publication date
CN105763602B (en) 2017-12-01
CN105763602A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
WO2017129106A1 (en) Data request processing method, server and system
US10120711B2 (en) Rapid suspend/resume for virtual machines via resource sharing
US9613039B2 (en) File system snapshot data management in a multi-tier storage environment
US9582311B2 (en) System, method and computer program product for data processing and system deployment in a virtual environment
CN107870968B (en) Performing real-time updates to a file system volume
JP5496254B2 (en) Converting a machine to a virtual machine
US9639432B2 (en) Live rollback for a computing environment
US8782106B2 (en) Method and system for managing execution of virtual applications
US8498997B2 (en) Server image migration
WO2016165472A1 (en) Method and device for creating virtual machine
US20200310859A1 (en) System and method for an object layer
WO2019127191A1 (en) File system sharing method and apparatus for multi-operating system, and electronic device
US10664415B2 (en) Quality of service enforcement and data security for containers accessing storage
US9652263B2 (en) Migrating servers into a secured environment
US9804878B2 (en) Using a status indicator for a merge operation for writing data associated with a virtual machine
US20140082275A1 (en) Server, host and method for reading base image through storage area network
TW201428613A (en) System and method for staring a diskless workstation
US9619168B2 (en) Memory deduplication masking
WO2023066246A1 (en) Method and system for installing application on cloudphone, and client cloudphone
US11095745B1 (en) Cloud-based scheduling of data operations to an object storage using an operation pool
CN115408103A (en) Virtual machine live migration method, system, equipment and storage medium
US10102020B2 (en) Methods, systems, and computer readable media for virtual machine (VM) deployment using read-only memory
WO2018028321A1 (en) Method and apparatus for managing virtual external storage device, and terminal
WO2016070641A1 (en) Data storage method and device, and data reading method and device
KR102327065B1 (en) Apparatus for accelerating virtual machine provisioning by use of bws and apparatus for managing the virtual machine and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17743721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17743721

Country of ref document: EP

Kind code of ref document: A1