[go: up one dir, main page]

WO2017028689A1 - Method and device for recovering resource contents under network platform - Google Patents

Method and device for recovering resource contents under network platform Download PDF

Info

Publication number
WO2017028689A1
WO2017028689A1 PCT/CN2016/093494 CN2016093494W WO2017028689A1 WO 2017028689 A1 WO2017028689 A1 WO 2017028689A1 CN 2016093494 W CN2016093494 W CN 2016093494W WO 2017028689 A1 WO2017028689 A1 WO 2017028689A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
resource content
inactive
list
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/093494
Other languages
French (fr)
Chinese (zh)
Inventor
林锦成
姚雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2017028689A1 publication Critical patent/WO2017028689A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/535Tracking the activity of the user
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a method for resource content recovery under a network platform and a device for resource content recovery under a network platform.
  • Cloud computing is a pay-per-use model that provides usable, convenient, on-demand network access into a configurable pool of computing resources (resources including networks, servers, storage, applications, services, etc.) ) These resources can be delivered quickly, with minimal administrative effort or little interaction with service providers.
  • PaaS Platinum as a Service
  • the mainstream network platforms provide servers, and the applications are deployed on the servers to allocate corresponding resource content for each application. Users can access applications deployed on the server according to their own needs. However, this is actually the case. Even if the user has little or no access to certain applications on the server, these applications need to occupy certain server resource content. If the resource content of the server is too large, then It will cause huge waste.
  • embodiments of the present application are provided to provide a method for resource content recovery under a network platform and a device for resource content recovery under a network platform, which overcome the above problems or at least partially solve the above problems.
  • the present application discloses a method for resource content recovery under a network platform, where the network platform includes a server, and the server includes an application list and an application request log, and the method includes:
  • the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;
  • the step of determining an inactive application in the application list by using an application request log includes:
  • the application that is not accessed within the preset time is identified as an inactive application.
  • the step of recovering the resource content corresponding to the inactive application comprises:
  • the resource content recovery instruction is used to recover the resource content corresponding to the inactive application.
  • the server further includes a reclaiming application list, and after the step of retrieving the resource content corresponding to the inactive application, the method further includes:
  • the method further comprises:
  • the step of applying for resource content for the inactive application comprises:
  • the method further includes:
  • the inactive application is deleted from the list of recycled applications.
  • the method further includes:
  • the network platform is a PaaS platform.
  • the embodiment of the present application further discloses an apparatus for recovering resource content under a network platform, where the network platform includes a server, where the server includes an application list and an application request log, and the device includes:
  • An application data obtaining module configured to obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;
  • An inactive application determining module configured to determine, by using the application request log, an inactive application in the application list
  • the resource content recovery module is configured to recover resource content corresponding to the inactive application.
  • the inactive application determining module comprises:
  • An inactive application extraction submodule configured to extract, from the application list, an application that is not accessed within a preset time by using the application request log;
  • the inactive application identifier submodule is configured to identify the application that is not accessed within a preset time as an inactive application.
  • the resource content recovery module includes:
  • the recycle instruction processing submodule is configured to recover the resource content corresponding to the inactive application by using the resource content recovery instruction.
  • the server further includes a list of recycled applications, and further includes:
  • An inactive application write module for writing an inactive application of the recycled resource content to the recycle application list.
  • the method further comprises:
  • An inactive application determining module configured to: when receiving an application access request for any one of the servers, according to whether the application is an inactive application in the recycled application list; if yes, invoking a resource content requesting module ;
  • the resource content application module is configured to apply for resource content for the inactive application.
  • the resource content application module includes:
  • a deployment instruction receiving submodule configured to receive an application resource content deployment instruction for the inactive application
  • the deployment instruction processing submodule is configured to apply for the resource content for the inactive application by using the application resource content deployment instruction.
  • the method further comprises:
  • the inactive application deletion module is configured to delete the inactive application from the list of recycled applications.
  • the method further comprises:
  • a size determining module of the resource content configured to determine a size of the resource content corresponding to the inactive application
  • the value judging module is configured to determine whether the size of the resource content exceeds a preset value; if yes, the resource content recovery module is invoked.
  • the network platform is a PaaS platform.
  • the application provided for the user is deployed on the server based on the network platform in the cloud computing, and the corresponding resource content is allocated to the application in order to ensure the normal operation of the application.
  • the inactive application that has not been accessed for a long time is filtered according to the recorded application request log and the application list, and the resource content of the inactive application is recovered, thereby solving the application server with no long-term access. The problem of resource content consumption and the utilization efficiency of resource content.
  • the network platform of the embodiment of the present application may deploy the resource content of the application in the server as needed. Specifically, when the user accesses the application in the server, it is determined whether the application is an inactive application, and if so, the resource content of the server is re-allocated for the inactive application to ensure that the user can access the application normally.
  • the resource content of the application can be deployed on demand according to user requirements, and the user experience is better.
  • the application deployed on the server is considered, and the resource content occupied by some applications is less consumed than the total resource content of the server, and some resource content occupied by some applications is relative to the resource content of the server.
  • the application is large, so in the embodiment of the present application, an application that has not been accessed for a long time but has a small amount of resource content consumption may retain its resource content, and for some applications that have not been accessed for a long time, and the resource content consumption is large. Then recycle.
  • Embodiment 1 is a flow chart of the steps of Embodiment 1 of a method for resource content recovery in a network platform according to the present application;
  • FIG. 2 is a schematic diagram of resource content recovery under a PaaS platform of the present application
  • Embodiment 3 is a flow chart of steps in Embodiment 2 of a method for resource content recovery in a network platform according to the present application;
  • FIG. 4 is a schematic diagram of resource content deployment under a PaaS platform of the present application.
  • FIG. 5 is a structural block diagram of an apparatus for recovering resource content under a network platform according to the present application.
  • One of the core concepts of the embodiments of the present application is to adjust the resource content according to the usage of the application deployed by the server under the network platform, that is, the application of the application, and the application with small consumption of the resource content and the application of the resource content. Hybrid deployment to improve the utilization of server resource content.
  • the network platform may include a server, where the server may include an application list and an application request log.
  • the embodiment of the present application may specifically include the following steps:
  • Step 101 Obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;
  • the network platform may be a PaaS platform.
  • the PaaS platform is a PaaS platform in the cloud computing.
  • the following uses the PaaS platform as an example for description.
  • the embodiment of the present application can also be applied to other network platforms, and the embodiment of the present application does not need to be limited.
  • PaaS Platinum as a Service
  • SaaS Software as a Service
  • SaaS is a kind of service provided by programs on the network.
  • the corresponding server platform or development environment is provided as a service to become PaaS.
  • the so-called PaaS actually refers to the platform for software development as a service.
  • the form of SaaS is submitted to the user. Therefore, PaaS is also an application of the SaaS model.
  • SaaS, PaaS and IaaS constitute a three-layer structure of cloud computing, and there is no need for a very clear division between the three.
  • a brief description of the three-layer structure of the cloud computing is given below.
  • SaaS Software as a service, software as a service, provides software services, which can be used directly through the Internet, without local installation.
  • SaaS in cloud computing is based on the specific application on the platform and is the closest layer to the user. SaaS can even be defined as a piece of software, so there is a "software as a service" argument.
  • PaaS Platform as a Service, Platform as a Service, a business model that provides server platforms as a service. Users or enterprises can quickly develop their own applications and products based on the PaaS platform, that is, they can directly use the development platform through the Internet, and do not need to install various development environments locally.
  • IaaS Infrastructure as a Service
  • infrastructure as a service users can get services from a complete computer infrastructure via the Internet.
  • a computer with computing power can be obtained through the Internet, without the need for actual Server resources.
  • the server deployed under PaaS has an application that provides access to the user.
  • the server records the access status of each application by the user, and records it in the database of the server in the form of an application request log, wherein the time when the user accesses the application is recorded in the application request log.
  • a unified collection can be performed to form an application list.
  • the resource content refers to the resource content of other servers such as memory, disk, and CPU (Central Processing Unit).
  • Step 102 Determine, by using the application request log, an inactive application in the application list.
  • the step 102 may include the following sub-steps:
  • Sub-step S11 using the application request log to extract an application that has not been accessed within a preset time from the application list;
  • Sub-step S12 the application that has not been accessed within a preset time is identified as an inactive application.
  • the time when the application was last accessed by the user is extracted from the application request log, and then the preset time is compared with the time when the application in the application list is last accessed by the user, if the application is The user's last access time exceeds the preset time, which means that the application has not been accessed by the user for a long time, then it can be identified as an inactive application.
  • the application in the application list can be identified as an inactive application.
  • the value of the preset time is only an example. In the implementation of the embodiment of the present application, other preset time may be selected according to the resource content of the server and the actual situation of the application deployed on the server. Numerical values are not limited in this embodiment of the present application.
  • Step 103 Recover resource content corresponding to the inactive application.
  • the step 103 may include the following sub-steps:
  • Sub-step S21 receiving a resource content recovery instruction for the inactive application
  • Sub-step S22 the resource content recovery instruction is used to recover the resource content corresponding to the inactive application.
  • the server may generally include multiple modules, such as a scheduling module, a resource center, an application center, and the like.
  • the scheduling module is configured to implement scheduling of resource content in the server, and the resource center is used to manage resource content allocation and recycling in the server.
  • the application center is responsible for managing the applications that are part of the server.
  • the scheduling module resource content recovery instruction is sent to the application center, and the application center forwards the resource content recovery instruction to the resource center, and the resource center recovers the inactive application according to the resource content recovery instruction.
  • the application center stores the inactive application in the specified recycling application cache.
  • the server may further include a recycling application list
  • the method may further include the following steps:
  • a collection application list may be set for collecting an inactive application that has been recycled resource content.
  • a schematic diagram of resource content recovery under the PaaS platform of the present application including a scheduling module, an application center, a resource center, and a resource content recovery process in the server may specifically include the following steps:
  • Step 1 First, the application list in the server and the application request log of the server are pulled through the web access layer;
  • Step 2 Perform an analysis comparison according to the application list and the application request log of the server, and select an application that has no access for a long time according to the last access time of the application in the application request log, for example, an application that has no access within 7 days. , identified as an inactive application;
  • Step 3 The scheduling module sends a resource recovery instruction to the application center
  • Step 4 After receiving the resource recovery instruction, the application center forwards the resource to the resource center, and the resource center returns according to the resource. Receiving instructions to recover resource content of inactive applications;
  • Step 5 After reclaiming the resource content of the inactive application, the application center writes the inactive application into the recycling application cache (that is, the recycling application list).
  • the application provided for accessing the user is deployed on the server based on the PaaS platform in the cloud computing, and the corresponding resource content is allocated to the application in order to ensure the normal operation of the application.
  • the inactive application that has not been accessed for a long time is filtered according to the recorded application request log and the application list, and the resource content of the inactive application is recovered, thereby solving the application server with no long-term access. The problem of resource content consumption and the utilization efficiency of resource content.
  • the network platform may include a server, where the server may include an application list and an application request log.
  • the method may specifically include the following steps:
  • Step 201 Obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;
  • Step 202 Determine, by using the application request log, an inactive application in the application list.
  • Step 203 Recover resource content corresponding to the inactive application.
  • step 203 the following steps may be further included:
  • the resource content occupied by some applications is less consumed than the total resource content of the server, and some resource content occupied by some applications is relative to all resources of the server.
  • the content consumption is large, so in the embodiment of the present application, an application that has not been accessed for a long time but has a small amount of resource content consumption may retain its resource content, and for some applications that have not been accessed for a long time, and the content consumption of the resource content Larger recycling.
  • the size of the resource content of the server allocated by the application is obtained, and then the size of the resource content is compared with a preset value, that is, the judgment is performed. Whether the size of the resource content exceeds a preset value. If the size of the resource content exceeds a preset value, the content of the resource occupied by the application is large. To improve the utilization efficiency of the resource content, the resource of the application may be recovered. Content; if the size of the resource content does not exceed the preset value, the content of the resource occupied by the application is small. It is insignificant for all the resource contents in the server, and the resource content of the application can be ignored, that is, the resource content is not recycled.
  • the resource content is adjusted according to the usage of the application in the server, and the application with large resource consumption and the application with small resource consumption are mixedly deployed, thereby improving the utilization of the resource content.
  • the preset value can be set according to the actual resource content of the server, and the embodiment of the present application does not need to be limited.
  • Step 204 when receiving an application access request for any of the applications, according to whether the application is an inactive application in the collection of applications; if yes, proceed to step 205;
  • Step 205 Request resource content for the inactive application.
  • the resource content may be re-applied for the inactive application.
  • the step 205 may include the following sub-steps:
  • Sub-step S31 receiving an application resource content deployment instruction for the inactive application
  • Sub-step S32 applying the resource content deployment instruction to apply for the resource content for the inactive application.
  • a plurality of modules such as a request analysis module, a scheduling module, a resource center, an application center, and the like, may be included in the server, wherein the request analysis module may be configured to check whether the application accessed by the user is an inactive application.
  • the request analysis module in the server when receiving a request from the user to access any application in the server, the request analysis module in the server first checks whether the application requested by the user is an inactive application, and if yes, sends an application resource content deployment instruction. To the scheduling module, the scheduling module forwards the application resource deployment instruction to the application center, and the application center forwards the application resource deployment instruction to the resource center, and the resource center applies for the resource content for the inactive application according to the application resource deployment instruction, and performs deployment. .
  • the method may further include the following steps:
  • the inactive application is deleted from the list of recycled applications.
  • the application center can delete the application from the list of recycled applications, and can also rewrite the inactive application to the application list.
  • a schematic diagram of resource content deployment under the PaaS platform of the present application includes a request analysis module, a scheduling module, an application center, a resource center, and a resource content recovery process in the server, which may include the following steps:
  • Step 1 when the web access layer receives a request from the user to access any of the applications in the server, the request analysis module checks whether the application is in the recycle application cache (ie, recycles the application list), and if so, proceeds to step 2;
  • Step 2 The request analysis module sends an application resource content deployment instruction to the scheduling module.
  • Step 3 The scheduling module sends an application resource deployment instruction to the application center to the application center;
  • Step 4 The application center sends an application resource deployment instruction to the resource center, requesting to allocate resource content for the inactive application, and after receiving the instruction, the resource center allocates the resource content for the inactive application.
  • Step 5 After the resource center successfully allocates resource content for the inactive application, the application center deletes the inactive application in the recycling application cache.
  • the resource content of the server is re-allocated for the inactive application to ensure that the user can If the application is accessed normally, the resource content of the application can be deployed on demand according to the requirements of the user, and the user experience is better.
  • the PaaS platform may include a server, where the server may include an application list and an application request log.
  • the device may specifically include the following modules:
  • An application data obtaining module 301 configured to acquire the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;
  • the inactive application determining module 302 is configured to determine, by using the application request log, an inactive application in the application list;
  • the inactive application determining module 302 may include the following submodules:
  • An inactive application extraction submodule configured to extract, from the application list, an application that is not accessed within a preset time by using the application request log;
  • the inactive application identifier submodule is configured to identify the application that is not accessed within a preset time as an inactive application.
  • the resource content recovery module 303 is configured to recover resource content corresponding to the inactive application.
  • the resource content recovery module 303 may include the following sub-modules:
  • the recycle instruction processing submodule is configured to recover the resource content corresponding to the inactive application by using the resource content recovery instruction.
  • the server may further include a recycling application list, and further includes:
  • An inactive application write module for writing an inactive application of the recycled resource content to the recycle application list.
  • the apparatus may further include the following modules:
  • An inactive application determining module configured to: when receiving an application access request for any one of the servers, according to whether the application is an inactive application in the recycled application list; if yes, invoking a resource content requesting module ;
  • the resource content application module is configured to apply for resource content for the inactive application.
  • the resource content application module may include the following submodules:
  • a deployment instruction receiving submodule configured to receive an application resource content deployment instruction for the inactive application
  • the deployment instruction processing submodule is configured to apply for the resource content for the inactive application by using the application resource content deployment instruction.
  • the apparatus may further include the following modules:
  • the inactive application deletion module is configured to delete the inactive application from the list of recycled applications.
  • the apparatus may further include the following modules:
  • a size determining module of the resource content configured to determine a size of the resource content corresponding to the inactive application
  • the value judging module is configured to determine whether the size of the resource content exceeds a preset value; if yes, the resource content recovery module is invoked.
  • the network platform may be a PaaS platform.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device is implemented in one or more processes and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are a method and device for recovering resource contents under a network platform. The network platform comprises a server, and the server comprises an application list and an application request log. The method comprises: acquiring an application list and an application request log; the application list comprising one or more applications, and the one or more applications being respectively provided with corresponding resource contents; adopting the application request log to determine an inactive application in the application list; and recovering the resource contents corresponding to the inactive application. The embodiments of the present application are used to solve the problem of consumption of resource contents of an application server without visits for a long time, thereby increasing the utilization efficiency of resource contents.

Description

一种网络平台下资源内容回收的方法和装置Method and device for recycling resource content under network platform

本申请要求2015年08月14日递交的申请号为201510502876.0、发明名称为“一种网络平台下资源内容回收的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510502876.0, entitled "A Method and Apparatus for Recycling Resource Content under a Network Platform", filed on Aug. 14, 2015, the entire contents of which is incorporated herein by reference. in.

技术领域Technical field

本申请涉及数据处理技术领域,特别是涉及一种网络平台下资源内容回收的方法和一种网络平台下资源内容回收的装置。The present application relates to the field of data processing technologies, and in particular, to a method for resource content recovery under a network platform and a device for resource content recovery under a network platform.

背景技术Background technique

因特网的迅猛发展将人们带入了信息社会和网络经济时代,伴随着的是云技术及理念的深入应用,越来越成为业界关注的重点。云计算是一种按使用量付费的模式,这种模式提供可用的、便捷的、按需的网络访问,进入可配置的计算资源共享池(资源包括网络,服务器,存储,应用,服务等等),这些资源能够被快速提供,只需投入很少的管理工作,或者与服务供应商进行很少的交互。The rapid development of the Internet has brought people into the information society and the network economy era, accompanied by the in-depth application of cloud technologies and concepts, and has increasingly become the focus of the industry. Cloud computing is a pay-per-use model that provides usable, convenient, on-demand network access into a configurable pool of computing resources (resources including networks, servers, storage, applications, services, etc.) ) These resources can be delivered quickly, with minimal administrative effort or little interaction with service providers.

在云技术中,很多网络平台都提供应用服务,比如PaaS(Platform as a Service,平台即服务)平台。In cloud technology, many network platforms provide application services, such as the PaaS (Platform as a Service) platform.

当前主流的网络平台都提供服务器,同时将应用部署到服务器上,为各个应用分配相应的资源内容,用户可以根据自身需求访问服务器上部署的应用。但是,实际上会存在这种情况,即使用户针对服务器上的某些应用的访问量很小甚至没有,这些应用也需要占用一定的服务器的资源内容,如果占用服务器的资源内容过大,那么将会造成巨大的浪费。Currently, the mainstream network platforms provide servers, and the applications are deployed on the servers to allocate corresponding resource content for each application. Users can access applications deployed on the server according to their own needs. However, this is actually the case. Even if the user has little or no access to certain applications on the server, these applications need to occupy certain server resource content. If the resource content of the server is too large, then It will cause huge waste.

发明内容Summary of the invention

鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种网络平台下资源内容回收的方法和一种网络平台下资源内容回收的装置。In view of the above problems, embodiments of the present application are provided to provide a method for resource content recovery under a network platform and a device for resource content recovery under a network platform, which overcome the above problems or at least partially solve the above problems.

为了解决上述问题,本申请公开了一种网络平台下资源内容回收的方法,所述网络平台下包括服务器,所述服务器中包括应用列表和应用请求日志,所述的方法包括: In order to solve the above problem, the present application discloses a method for resource content recovery under a network platform, where the network platform includes a server, and the server includes an application list and an application request log, and the method includes:

获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;Obtaining the application list and the application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;

采用所述应用请求日志确定所述应用列表中的不活跃应用;Determining, by the application request log, an inactive application in the application list;

回收所述不活跃应用对应的资源内容。Recovering the resource content corresponding to the inactive application.

优选地,所述采用应用请求日志确定所述应用列表中的不活跃应用的步骤包括:Preferably, the step of determining an inactive application in the application list by using an application request log includes:

采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;Extracting, from the application list, an application that has not been accessed within a preset time by using the application request log;

将所述在预设时间内没有被访问的应用标识为不活跃应用。The application that is not accessed within the preset time is identified as an inactive application.

优选地,所述回收不活跃应用对应的资源内容的步骤包括:Preferably, the step of recovering the resource content corresponding to the inactive application comprises:

接收针对所述不活跃应用的资源内容回收指令;Receiving a resource content recovery instruction for the inactive application;

采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。The resource content recovery instruction is used to recover the resource content corresponding to the inactive application.

优选地,所述服务器还包括回收应用列表,在所述回收不活跃应用对应的资源内容的步骤之后,还包括:Preferably, the server further includes a reclaiming application list, and after the step of retrieving the resource content corresponding to the inactive application, the method further includes:

将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application of the recycled resource content is written to the recycle application list.

优选地,还包括:Preferably, the method further comprises:

当接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;When receiving an application access request for any of the applications, according to whether the application is an inactive application in the recycled application list;

若是,则针对所述不活跃应用申请资源内容。If yes, the resource content is requested for the inactive application.

优选地,所述针对不活跃应用申请资源内容的步骤包括:Preferably, the step of applying for resource content for the inactive application comprises:

接收针对所述不活跃应用的申请资源内容部署指令;Receiving an application resource content deployment instruction for the inactive application;

采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。Applying the resource content to the inactive application by using the application resource content deployment instruction.

优选地,在所述针对所述不活跃应用申请资源内容的步骤之后,还包括:Preferably, after the step of applying for the resource content for the inactive application, the method further includes:

从所述回收应用列表中删除所述不活跃应用。The inactive application is deleted from the list of recycled applications.

优选地,在所述回收不活跃应用对应的资源内容的步骤之前,还包括:Preferably, before the step of recovering the resource content corresponding to the inactive application, the method further includes:

确定所述不活跃应用对应的资源内容的大小;Determining a size of the resource content corresponding to the inactive application;

判断所述资源内容的大小是否超过预设数值;Determining whether the size of the resource content exceeds a preset value;

若是,则执行所述回收不活跃应用对应的资源内容的步骤。If yes, the step of recovering the resource content corresponding to the inactive application is performed.

优选地,所述网络平台为PaaS平台。Preferably, the network platform is a PaaS platform.

本申请实施例还公开了一种网络平台下资源内容回收的装置,所述网络平台下包括服务器,所述服务器中包括应用列表和应用请求日志,所述的装置包括: The embodiment of the present application further discloses an apparatus for recovering resource content under a network platform, where the network platform includes a server, where the server includes an application list and an application request log, and the device includes:

应用数据获取模块,用于获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;An application data obtaining module, configured to obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;

不活跃应用确定模块,用于采用所述应用请求日志确定所述应用列表中的不活跃应用;An inactive application determining module, configured to determine, by using the application request log, an inactive application in the application list;

资源内容回收模块,用于回收所述不活跃应用对应的资源内容。The resource content recovery module is configured to recover resource content corresponding to the inactive application.

优选地,所述不活跃应用确定模块包括:Preferably, the inactive application determining module comprises:

不活跃应用提取子模块,用于采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;An inactive application extraction submodule, configured to extract, from the application list, an application that is not accessed within a preset time by using the application request log;

不活跃应用标识子模块,用于将所述在预设时间内没有被访问的应用标识为不活跃应用。The inactive application identifier submodule is configured to identify the application that is not accessed within a preset time as an inactive application.

优选地,所述资源内容回收模块包括:Preferably, the resource content recovery module includes:

回收指令接收子模块,用于接收针对所述不活跃应用的资源内容回收指令;Retrieving an instruction receiving submodule, configured to receive a resource content recovery instruction for the inactive application;

回收指令处理子模块,用于采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。The recycle instruction processing submodule is configured to recover the resource content corresponding to the inactive application by using the resource content recovery instruction.

优选地,所述服务器还包括回收应用列表,还包括:Preferably, the server further includes a list of recycled applications, and further includes:

不活跃应用写入模块,用于将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application write module for writing an inactive application of the recycled resource content to the recycle application list.

优选地,还包括:Preferably, the method further comprises:

不活跃应用确定模块,用于在接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;若是,则调用资源内容申请模块;An inactive application determining module, configured to: when receiving an application access request for any one of the servers, according to whether the application is an inactive application in the recycled application list; if yes, invoking a resource content requesting module ;

资源内容申请模块,用于针对所述不活跃应用申请资源内容。The resource content application module is configured to apply for resource content for the inactive application.

优选地,所述资源内容申请模块包括:Preferably, the resource content application module includes:

部署指令接收子模块,用于接收针对所述不活跃应用的申请资源内容部署指令;a deployment instruction receiving submodule, configured to receive an application resource content deployment instruction for the inactive application;

部署指令处理子模块,用于采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。The deployment instruction processing submodule is configured to apply for the resource content for the inactive application by using the application resource content deployment instruction.

优选地,还包括:Preferably, the method further comprises:

不活跃应用删除模块,用于从所述回收应用列表中删除所述不活跃应用。The inactive application deletion module is configured to delete the inactive application from the list of recycled applications.

优选地,还包括:Preferably, the method further comprises:

资源内容的大小确定模块,用于确定所述不活跃应用对应的资源内容的大小; a size determining module of the resource content, configured to determine a size of the resource content corresponding to the inactive application;

数值判断模块,用于判断所述资源内容的大小是否超过预设数值;若是,则调用资源内容回收模块。The value judging module is configured to determine whether the size of the resource content exceeds a preset value; if yes, the resource content recovery module is invoked.

优选地,所述网络平台为PaaS平台。Preferably, the network platform is a PaaS platform.

本申请实施例包括以下优点:Embodiments of the present application include the following advantages:

本申请实施例中基于云计算中的网络平台,在服务器上部署提供给用户访问的应用,为了保证应用的正常运行,为应用分配相应的资源内容。在服务器运行期间,在本申请实施例中根据在记录的应用请求日志和应用列表筛选出长期没有被访问的不活跃应用,并回收不活跃应用的资源内容,从而解决长期没有访问量的应用服务器的资源内容消耗问题,提高资源内容的利用效率。In the embodiment of the present application, the application provided for the user is deployed on the server based on the network platform in the cloud computing, and the corresponding resource content is allocated to the application in order to ensure the normal operation of the application. During the running of the server, in the embodiment of the present application, the inactive application that has not been accessed for a long time is filtered according to the recorded application request log and the application list, and the resource content of the inactive application is recovered, thereby solving the application server with no long-term access. The problem of resource content consumption and the utilization efficiency of resource content.

本申请实施例的网络平台可对于服务器中应用的资源内容按需进行部署。具体地,在有用户访问服务器中应用的时候,将判断该应用是否是不活跃应用,如果是则为该不活跃应用重新分配服务器的资源内容,以保证用户能够正常访问该应用,在本申请实施例中能够根据用户需求进行按需对于应用的资源内容进行部署,用户体验效果较佳。The network platform of the embodiment of the present application may deploy the resource content of the application in the server as needed. Specifically, when the user accesses the application in the server, it is determined whether the application is an inactive application, and if so, the resource content of the server is re-allocated for the inactive application to ensure that the user can access the application normally. In the embodiment, the resource content of the application can be deployed on demand according to user requirements, and the user experience is better.

本申请实施例中考虑到在服务器上部署的应用,有些应用所占用的资源内容相对于服务器全部的资源内容消耗量较少,而有些对于一些应用所占用的资源内容相对于服务器全部的资源内容耗量较大,故在本申请实施例中对于长时间没有被访问,但资源内容消耗量较少的应用可以保留其资源内容,对于一些长时间没有被访问的应用,且资源内容消耗量大则进行回收。In the embodiment of the present application, the application deployed on the server is considered, and the resource content occupied by some applications is less consumed than the total resource content of the server, and some resource content occupied by some applications is relative to the resource content of the server. The application is large, so in the embodiment of the present application, an application that has not been accessed for a long time but has a small amount of resource content consumption may retain its resource content, and for some applications that have not been accessed for a long time, and the resource content consumption is large. Then recycle.

附图说明DRAWINGS

图1是本申请的一种网络平台下资源内容回收的方法实施例1的步骤流程图;1 is a flow chart of the steps of Embodiment 1 of a method for resource content recovery in a network platform according to the present application;

图2是本申请的一种PaaS平台下资源内容回收的示意图;2 is a schematic diagram of resource content recovery under a PaaS platform of the present application;

图3是本申请的一种网络平台下资源内容回收的方法实施例2的步骤流程图;3 is a flow chart of steps in Embodiment 2 of a method for resource content recovery in a network platform according to the present application;

图4是本申请的一种PaaS平台下资源内容部署的示意图;4 is a schematic diagram of resource content deployment under a PaaS platform of the present application;

图5是本申请的一种网络平台下资源内容回收的装置实施例的结构框图。FIG. 5 is a structural block diagram of an apparatus for recovering resource content under a network platform according to the present application.

具体实施方式detailed description

为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。 The above described objects, features and advantages of the present application will become more apparent and understood.

本申请实施例的核心构思之一在于,根据网络平台下服务器所部署应用的使用情况,即应用的访问情况进行资源内容的调整,对于资源内容消耗量大的应用和资源内容消耗量小的应用进行混合部署,提高服务器资源内容的利用率。One of the core concepts of the embodiments of the present application is to adjust the resource content according to the usage of the application deployed by the server under the network platform, that is, the application of the application, and the application with small consumption of the resource content and the application of the resource content. Hybrid deployment to improve the utilization of server resource content.

参照图1,示出了本申请的一种网络平台下资源内容回收的方法实施例1的步骤流程图,所述网络平台下可以包括服务器,所述服务器中可以包括应用列表和应用请求日志,本申请实施例具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of a method for performing resource content recovery in a network platform of the present application is shown. The network platform may include a server, where the server may include an application list and an application request log. The embodiment of the present application may specifically include the following steps:

步骤101,获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;Step 101: Obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;

在本申请一优选的实施例中,该网络平台可以为PaaS平台。PaaS是指云计算下的PaaS平台,在下面采用PaaS平台为例进行说明,当然,本申请实施例也可以应用于其他的网络平台,本申请实施例对此无需加以限制。In a preferred embodiment of the present application, the network platform may be a PaaS platform. The PaaS platform is a PaaS platform in the cloud computing. The following uses the PaaS platform as an example for description. Of course, the embodiment of the present application can also be applied to other network platforms, and the embodiment of the present application does not need to be limited.

其中,PaaS(Platform as a Service,平台即服务)是SaaS(Software as a Service,软件即服务)的一种使用方式。SaaS是一种通过网络进行程序提供的服务,而在云计算时代相应的服务器平台或者开发环境作为服务进行提供就成为了PaaS,所谓PaaS实际上是指将软件研发的平台作为一种服务,以SaaS的形式提交给用户。因此,PaaS也是SaaS模式的一种应用。Among them, PaaS (Platform as a Service) is a way of using SaaS (Software as a Service). SaaS is a kind of service provided by programs on the network. In the cloud computing era, the corresponding server platform or development environment is provided as a service to become PaaS. The so-called PaaS actually refers to the platform for software development as a service. The form of SaaS is submitted to the user. Therefore, PaaS is also an application of the SaaS model.

需要说明的是,SaaS、PaaS以及IaaS组成云计算的三层结构,三者之间并没有也不需要非常明确的划分。为了使本领域技术人员更好地理解本申请实施例,以下对于云计算的三层结构进行简要介绍。It should be noted that SaaS, PaaS and IaaS constitute a three-layer structure of cloud computing, and there is no need for a very clear division between the three. In order to enable those skilled in the art to better understand the embodiments of the present application, a brief description of the three-layer structure of the cloud computing is given below.

SaaS:是Software as a service,软件即服务,提供的是软件服务,通过互联网就直接能使用这个软件应用,不需要本地安装。在云计算中的SaaS,是基于平台上的具体应用,是距离用户最近的一层。SaaS甚至可以定义为一种软件,所以才会有“软件即服务”的说法。SaaS: Software as a service, software as a service, provides software services, which can be used directly through the Internet, without local installation. SaaS in cloud computing is based on the specific application on the platform and is the closest layer to the user. SaaS can even be defined as a piece of software, so there is a "software as a service" argument.

PaaS:是Platform as a Service,平台即服务,将服务器平台作为一种服务提供的商业模式。用户或者企业基于PaaS平台可以快速开发自己所需要的应用和产品,即通过互联网就直接能使用开发平台,不需要本地安装各类的开发环境。PaaS: Platform as a Service, Platform as a Service, a business model that provides server platforms as a service. Users or enterprises can quickly develop their own applications and products based on the PaaS platform, that is, they can directly use the development platform through the Internet, and do not need to install various development environments locally.

IaaS:是Infrastructure as a Service,基础设施即服务,用户通过因特网可以从完善的计算机基础设施获得服务。通过互联网就可以获得有计算能力的服务器,不需要实际的 服务器资源。IaaS: Infrastructure as a Service, infrastructure as a service, users can get services from a complete computer infrastructure via the Internet. A computer with computing power can be obtained through the Internet, without the need for actual Server resources.

将SaaS,PaaS以及IaaS结合在一起,再加上数据存储服务,整个就可以构成一个云计算的概念。将计算和存储集中于大型的数据中心,从而解放客户端复杂的应用部署和维护成本。Combining SaaS, PaaS, and IaaS, together with data storage services, can form a cloud computing concept. Centralize computing and storage in large data centers, freeing up complex application deployment and maintenance costs for clients.

在具体实现中,在PaaS下的服务器部署有为用户提供访问的应用。应用在服务器的运行期间,服务器记录各个应用被用户的访问情况,并以应用请求日志的形式记录在服务器的数据库中,其中,在应用请求日志中记录有用户访问应用的时间。另外,对于服务器中部署的应用,可以进行统一收集形成应用列表。In a specific implementation, the server deployed under PaaS has an application that provides access to the user. During the running of the server, the server records the access status of each application by the user, and records it in the database of the server in the form of an application request log, wherein the time when the user accesses the application is recorded in the application request log. In addition, for applications deployed in the server, a unified collection can be performed to form an application list.

在服务器中部署的应用,通常都分配有相应的资源内容,以保证应用的正常运行。所谓资源内容是指诸如内存、磁盘、CPU(Central Processing Unit,中央处理器)等其他服务器的资源内容。Applications deployed in the server are usually assigned corresponding resource content to ensure the normal operation of the application. The resource content refers to the resource content of other servers such as memory, disk, and CPU (Central Processing Unit).

步骤102,采用所述应用请求日志确定所述应用列表中的不活跃应用;Step 102: Determine, by using the application request log, an inactive application in the application list.

在本申请的一种优选实施例中,所述步骤102可以包括如下子步骤:In a preferred embodiment of the present application, the step 102 may include the following sub-steps:

子步骤S11,采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;Sub-step S11, using the application request log to extract an application that has not been accessed within a preset time from the application list;

子步骤S12,将所述在预设时间内没有被访问的应用标识为不活跃应用。Sub-step S12, the application that has not been accessed within a preset time is identified as an inactive application.

可以理解,在服务器中部署的应用,由于新旧的应用的替换,或者用户需求的改变等原因,一些应用可能会长时间没有被用户访问,但是,即使是没有或者很少被访问的应用,服务器也会为其分配资源内容。It can be understood that applications deployed in the server may not be accessed by users for a long time due to replacement of new and old applications, or changes in user requirements, etc., but even applications that are not or rarely accessed, the server It also allocates resource content for it.

在本申请的一种优选示例中,从应用请求日志中提取出应用被用户最后一次访问的时间,然后将预设时间与应用列表中的应用被用户最后一次访问的时间进行比较,如果应用被用户最后一次访问的时间超过了预设时间,也即是说该应用已经很长时间没有被用户访问,那么就可以标识为不活跃应用。In a preferred example of the present application, the time when the application was last accessed by the user is extracted from the application request log, and then the preset time is compared with the time when the application in the application list is last accessed by the user, if the application is The user's last access time exceeds the preset time, which means that the application has not been accessed by the user for a long time, then it can be identified as an inactive application.

例如,假设预设时间的数值设置为7天,如果一个应用被用户最后一次访问的时间是在8天前,那么应用列表中的该应用可以标识为不活跃应用。For example, suppose the value of the preset time is set to 7 days, and if the last time an application is accessed by the user is 8 days ago, the application in the application list can be identified as an inactive application.

需要说明的是,上述预设时间的数值仅仅是作为示例,在实施本申请实施例时,还可以根据服务器的资源内容,以及服务器上部署应用的实际情况等等,选用其他的预设时间的数值,本申请实施例对此不加以限制。It should be noted that the value of the preset time is only an example. In the implementation of the embodiment of the present application, other preset time may be selected according to the resource content of the server and the actual situation of the application deployed on the server. Numerical values are not limited in this embodiment of the present application.

步骤103,回收所述不活跃应用对应的资源内容。Step 103: Recover resource content corresponding to the inactive application.

对于不活跃应用,由于其长时间没有被访问,为了能够更加有效地利用服务器上的 资源内容,在本申请实施例中对于不活跃应用分配的资源内容进行回收处理。For inactive applications, because they have not been accessed for a long time, in order to be able to use the server more efficiently The content of the resource is collected in the embodiment of the present application for the resource content allocated by the inactive application.

在本申请的一种优选实施例中,所述步骤103可以包括如下子步骤:In a preferred embodiment of the present application, the step 103 may include the following sub-steps:

子步骤S21,接收针对所述不活跃应用的资源内容回收指令;Sub-step S21, receiving a resource content recovery instruction for the inactive application;

子步骤S22,采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。Sub-step S22, the resource content recovery instruction is used to recover the resource content corresponding to the inactive application.

在服务器中通常可以包括多个模块,例如调度模块,资源中心,应用中心等等,其中,调度模块用于实现服务器内资源内容的调度工作,资源中心用于管理服务器中资源内容的分配和回收,应用中心则负责管理服务器中所部属的应用。The server may generally include multiple modules, such as a scheduling module, a resource center, an application center, and the like. The scheduling module is configured to implement scheduling of resource content in the server, and the resource center is used to manage resource content allocation and recycling in the server. The application center is responsible for managing the applications that are part of the server.

在本申请实施例中,当确定不活跃应用后,调度模块资源内容回收指令给应用中心,应用中心则将资源内容回收指令转发给资源中心,资源中心依据资源内容回收指令回收不活跃应用对应的资源内容,当不活跃应用对应的资源内容回收成功后,应用中心将该不活跃应用存储到指定的回收应用缓存中。In the embodiment of the present application, after determining the inactive application, the scheduling module resource content recovery instruction is sent to the application center, and the application center forwards the resource content recovery instruction to the resource center, and the resource center recovers the inactive application according to the resource content recovery instruction. After the resource content of the inactive application is successfully recovered, the application center stores the inactive application in the specified recycling application cache.

在本申请的一种优选实施例中,所述服务器还可以包括回收应用列表,所述的方法还可以包括如下步骤:In a preferred embodiment of the present application, the server may further include a recycling application list, and the method may further include the following steps:

将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application of the recycled resource content is written to the recycle application list.

在本申请实施例的服务器中可以设置有回收应用列表,用于收集已经被回收资源内容的不活跃应用。In the server of the embodiment of the present application, a collection application list may be set for collecting an inactive application that has been recycled resource content.

当确定不活跃应用后,将其从服务器的应用列表中移除,并写入回收应用列表中,表明该应用已经被回收了资源内容,已经无法正常运行,除非能够重新分配到新的资源内容。After determining the inactive application, remove it from the server's application list and write it to the recycle application list, indicating that the application has been recycled resource content, and it is not working properly unless it can be reassigned to the new resource content. .

为了使本领域技术人员更好地理解本申请实施例,以下采用具体的示例对于本申请实施例进行资源内容回收的过程进行说明。In order to enable a person skilled in the art to better understand the embodiments of the present application, a specific example is used to describe the process of resource content recovery in the embodiment of the present application.

参照图2所述的本申请的一种PaaS平台下资源内容回收的示意图,在服务器中包括调度模块,应用中心,资源中心,资源内容回收的过程具体可以包括如下几个步骤:Referring to FIG. 2, a schematic diagram of resource content recovery under the PaaS platform of the present application, including a scheduling module, an application center, a resource center, and a resource content recovery process in the server may specifically include the following steps:

步骤1,首先通过web接入层拉取服务器中的应用列表和服务器的应用请求日志;Step 1: First, the application list in the server and the application request log of the server are pulled through the web access layer;

步骤2,根据应用列表和服务器的应用请求日志进行分析比对,并根据应用请求日志中用户针对应用最后一次访问时间,从中筛选出长时间没有任何访问的应用,例如7天内没有任何访问的应用,标识为不活跃应用;Step 2: Perform an analysis comparison according to the application list and the application request log of the server, and select an application that has no access for a long time according to the last access time of the application in the application request log, for example, an application that has no access within 7 days. , identified as an inactive application;

步骤3,调度模块发送资源回收指令给应用中心;Step 3: The scheduling module sends a resource recovery instruction to the application center;

步骤4,应用中心接收到资源回收指令后转发给资源中心,资源中心则根据资源回 收指令回收不活跃应用的资源内容;Step 4: After receiving the resource recovery instruction, the application center forwards the resource to the resource center, and the resource center returns according to the resource. Receiving instructions to recover resource content of inactive applications;

步骤5,应用中心在回收不活跃应用的资源内容后,将不活跃应用写入回收应用缓存(即回收应用列表)中。Step 5: After reclaiming the resource content of the inactive application, the application center writes the inactive application into the recycling application cache (that is, the recycling application list).

本申请实施例中基于云计算中的PaaS平台,在服务器上部署提供给用户访问的应用,为了保证应用的正常运行,为应用分配相应的资源内容。在服务器运行期间,在本申请实施例中根据在记录的应用请求日志和应用列表筛选出长期没有被访问的不活跃应用,并回收不活跃应用的资源内容,从而解决长期没有访问量的应用服务器的资源内容消耗问题,提高资源内容的利用效率。In the embodiment of the present application, the application provided for accessing the user is deployed on the server based on the PaaS platform in the cloud computing, and the corresponding resource content is allocated to the application in order to ensure the normal operation of the application. During the running of the server, in the embodiment of the present application, the inactive application that has not been accessed for a long time is filtered according to the recorded application request log and the application list, and the resource content of the inactive application is recovered, thereby solving the application server with no long-term access. The problem of resource content consumption and the utilization efficiency of resource content.

参照图3,示出了本申请的一种网络平台下资源内容回收的方法实施例2的步骤流程图,所述网络平台下可以包括服务器,所述服务器中可以包括应用列表和应用请求日志,所述的方法具体可以包括如下步骤:Referring to FIG. 3, a flow chart of the steps of the method for the resource content recovery in the network platform of the present application is shown. The network platform may include a server, where the server may include an application list and an application request log. The method may specifically include the following steps:

步骤201,获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;Step 201: Obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;

步骤202,采用所述应用请求日志确定所述应用列表中的不活跃应用;Step 202: Determine, by using the application request log, an inactive application in the application list.

步骤203,回收所述不活跃应用对应的资源内容;Step 203: Recover resource content corresponding to the inactive application.

在本申请的一种优选实施例中,在所述步骤203之前,还可以包括如下步骤:In a preferred embodiment of the present application, before the step 203, the following steps may be further included:

确定所述不活跃应用对应的资源内容的大小;Determining a size of the resource content corresponding to the inactive application;

判断所述资源内容的大小是否超过预设数值;Determining whether the size of the resource content exceeds a preset value;

若是,则执行所述回收不活跃应用对应的资源内容的步骤。If yes, the step of recovering the resource content corresponding to the inactive application is performed.

本申请实施例中,考虑到在服务器上部署的应用,有些应用所占用的资源内容相对于服务器全部的资源内容消耗量较少,而有些对于一些应用所占用的资源内容相对于服务器全部的资源内容耗量较大,故在本申请实施例中对于长时间没有被访问,但资源内容消耗量较少的应用可以保留其资源内容,对于一些长时间没有被访问的应用,且资源内容消耗量大则进行回收。In the embodiment of the present application, considering the application deployed on the server, the resource content occupied by some applications is less consumed than the total resource content of the server, and some resource content occupied by some applications is relative to all resources of the server. The content consumption is large, so in the embodiment of the present application, an application that has not been accessed for a long time but has a small amount of resource content consumption may retain its resource content, and for some applications that have not been accessed for a long time, and the content consumption of the resource content Larger recycling.

具体来说,在本申请实施例在某一应用确定为不活跃应用后,获取该应用分配的服务器的资源内容的大小,然后将该资源内容的大小与预设数值进行比对分析,即判断该资源内容的大小是否超过了预设数值,如果该资源内容的大小超过了预设数值,则说明该应用占用的该资源内容较大,为了提高资源内容的利用效率,可以回收该应用的资源内容;如果该资源内容的大小没有超过预设数值,则说明该应用占用的该资源内容较小, 对于服务器中全部的资源内容而言微不足道,可以无视该应用的资源内容,即不进行资源内容的回收处理。Specifically, after the application determines that the application is inactive, the size of the resource content of the server allocated by the application is obtained, and then the size of the resource content is compared with a preset value, that is, the judgment is performed. Whether the size of the resource content exceeds a preset value. If the size of the resource content exceeds a preset value, the content of the resource occupied by the application is large. To improve the utilization efficiency of the resource content, the resource of the application may be recovered. Content; if the size of the resource content does not exceed the preset value, the content of the resource occupied by the application is small. It is insignificant for all the resource contents in the server, and the resource content of the application can be ignored, that is, the resource content is not recycled.

本申请实施例根据服务器中应用的使用情况针对资源内容进行调整,将资源消耗量大的应用和资源消耗量小的应用进行混合部署,提高了资源内容的利用率。In the embodiment of the present application, the resource content is adjusted according to the usage of the application in the server, and the application with large resource consumption and the application with small resource consumption are mixedly deployed, thereby improving the utilization of the resource content.

需要说明的是,预设数值可以根据服务器实际的资源内容情况进行设置,本申请实施例对此无需加以限制。It should be noted that the preset value can be set according to the actual resource content of the server, and the embodiment of the present application does not need to be limited.

步骤204,当接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;若是,则执行步骤205;Step 204, when receiving an application access request for any of the applications, according to whether the application is an inactive application in the collection of applications; if yes, proceed to step 205;

步骤205,针对所述不活跃应用申请资源内容。Step 205: Request resource content for the inactive application.

本申请实施例在接收到应用访问请求时,如果确定用户请求的应用是回收应用列表中的不活跃应用,为了保证该不活跃应用的正常运行,可以重新为该不活跃应用申请资源内容。In the embodiment of the present application, when the application access request is received, if it is determined that the application requested by the user is an inactive application in the reclaimed application list, in order to ensure the normal operation of the inactive application, the resource content may be re-applied for the inactive application.

在本申请的一种优选实施例中,所述步骤205可以包括如下子步骤:In a preferred embodiment of the present application, the step 205 may include the following sub-steps:

子步骤S31,接收针对所述不活跃应用的申请资源内容部署指令;Sub-step S31, receiving an application resource content deployment instruction for the inactive application;

子步骤S32,采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。Sub-step S32, applying the resource content deployment instruction to apply for the resource content for the inactive application.

在服务器中通常可以包括多个模块,例如请求分析模块,调度模块,资源中心,应用中心等等,其中,请求分析模块可用于检查用户访问的应用是否是不活跃应用。A plurality of modules, such as a request analysis module, a scheduling module, a resource center, an application center, and the like, may be included in the server, wherein the request analysis module may be configured to check whether the application accessed by the user is an inactive application.

在本申请实施例中,当接收到用户访问服务器中的任一应用的请求时,服务器中的请求分析模块首先检查用户请求的应用是否是不活跃应用,如果是,则发送申请资源内容部署指令给调度模块,调度模块则向应用中心转发该申请资源部署指令,应用中心再转发该申请资源部署指令给资源中心,资源中心将根据申请资源部署指令为该不活跃应用申请资源内容,并执行部署。In the embodiment of the present application, when receiving a request from the user to access any application in the server, the request analysis module in the server first checks whether the application requested by the user is an inactive application, and if yes, sends an application resource content deployment instruction. To the scheduling module, the scheduling module forwards the application resource deployment instruction to the application center, and the application center forwards the application resource deployment instruction to the resource center, and the resource center applies for the resource content for the inactive application according to the application resource deployment instruction, and performs deployment. .

在本申请的一种优选实施例中,在所述步骤205之后,所述的方法还可以包括如下步骤:In a preferred embodiment of the present application, after the step 205, the method may further include the following steps:

从所述回收应用列表中删除所述不活跃应用。The inactive application is deleted from the list of recycled applications.

当资源中心针对不活跃应用部署资源内容成功后,应用中心可以将该应用从回收应用列表中删除,并且,还可以将不活跃应用重新写入应用列表中。After the resource center successfully deploys the resource content for the inactive application, the application center can delete the application from the list of recycled applications, and can also rewrite the inactive application to the application list.

为了使本领域技术人员更好地理解本申请实施例,以下采用具体的示例对于本申请实施例进行资源内容回收的过程进行说明。 In order to enable a person skilled in the art to better understand the embodiments of the present application, a specific example is used to describe the process of resource content recovery in the embodiment of the present application.

参照图4所述的本申请的一种PaaS平台下资源内容部署的示意图,在服务器中包括请求分析模块,调度模块,应用中心,资源中心,资源内容回收的过程具体可以包括如下几个步骤:Referring to FIG. 4, a schematic diagram of resource content deployment under the PaaS platform of the present application includes a request analysis module, a scheduling module, an application center, a resource center, and a resource content recovery process in the server, which may include the following steps:

步骤1,当在web接入层接收到用户访问服务器中的任一应用的请求时,请求分析模块检查该应用是否在回收应用缓存(即回收应用列表)中,若是,则执行步骤2;Step 1, when the web access layer receives a request from the user to access any of the applications in the server, the request analysis module checks whether the application is in the recycle application cache (ie, recycles the application list), and if so, proceeds to step 2;

步骤2,请求分析模块发送申请资源内容部署指令给调度模块;Step 2: The request analysis module sends an application resource content deployment instruction to the scheduling module.

步骤3,调度模块向应用中心发送申请资源部署指令给应用中心;Step 3: The scheduling module sends an application resource deployment instruction to the application center to the application center;

步骤4,应用中心向资源中心发送申请资源部署指令,请求为不活跃应用分配资源内容,资源中心接收该指令后,针对不活跃应用分配资源内容;Step 4: The application center sends an application resource deployment instruction to the resource center, requesting to allocate resource content for the inactive application, and after receiving the instruction, the resource center allocates the resource content for the inactive application.

步骤5,当资源中心成功针对不活跃应用分配资源内容后,应用中心删除在回收应用缓存中的不活跃应用。Step 5: After the resource center successfully allocates resource content for the inactive application, the application center deletes the inactive application in the recycling application cache.

本申请实施例中,在有用户访问服务器中应用的时候,会判断该应用是否是不活跃应用,如果是不活跃应用,那么就为该不活跃应用重新分配服务器的资源内容,以保证用户能够正常访问该应用,在本申请实施例中能够根据用户需求进行按需对于应用的资源内容进行部署,用户体验效果较佳。In the embodiment of the present application, when the user accesses the application in the server, it is determined whether the application is an inactive application, and if it is an inactive application, the resource content of the server is re-allocated for the inactive application to ensure that the user can If the application is accessed normally, the resource content of the application can be deployed on demand according to the requirements of the user, and the user experience is better.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the 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 embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.

参照图5,示出了本申请的一种PaaS平台下资源内容回收的装置实施例的结构框图,所述PaaS平台下可以包括服务器,所述服务器中可以包括应用列表和应用请求日志,所述的装置具体可以包括如下模块:Referring to FIG. 5, a structural block diagram of an apparatus for resource content recovery under the PaaS platform of the present application is shown. The PaaS platform may include a server, where the server may include an application list and an application request log. The device may specifically include the following modules:

应用数据获取模块301,用于获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;An application data obtaining module 301, configured to acquire the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content;

不活跃应用确定模块302,用于采用所述应用请求日志确定所述应用列表中的不活跃应用;The inactive application determining module 302 is configured to determine, by using the application request log, an inactive application in the application list;

在本申请的一种优选实施例中,所述不活跃应用确定模块302可以包括如下子模块: In a preferred embodiment of the present application, the inactive application determining module 302 may include the following submodules:

不活跃应用提取子模块,用于采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;An inactive application extraction submodule, configured to extract, from the application list, an application that is not accessed within a preset time by using the application request log;

不活跃应用标识子模块,用于将所述在预设时间内没有被访问的应用标识为不活跃应用。The inactive application identifier submodule is configured to identify the application that is not accessed within a preset time as an inactive application.

资源内容回收模块303,用于回收所述不活跃应用对应的资源内容。The resource content recovery module 303 is configured to recover resource content corresponding to the inactive application.

在本申请的一种优选实施例中,所述资源内容回收模块303可以包括如下子模块:In a preferred embodiment of the present application, the resource content recovery module 303 may include the following sub-modules:

回收指令接收子模块,用于接收针对所述不活跃应用的资源内容回收指令;Retrieving an instruction receiving submodule, configured to receive a resource content recovery instruction for the inactive application;

回收指令处理子模块,用于采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。The recycle instruction processing submodule is configured to recover the resource content corresponding to the inactive application by using the resource content recovery instruction.

在本申请的一种优选实施例中,所述服务器还可以包括回收应用列表,还包括:In a preferred embodiment of the present application, the server may further include a recycling application list, and further includes:

不活跃应用写入模块,用于将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application write module for writing an inactive application of the recycled resource content to the recycle application list.

在本申请的一种优选实施例中,所述的装置还可以包括如下模块:In a preferred embodiment of the present application, the apparatus may further include the following modules:

不活跃应用确定模块,用于在接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;若是,则调用资源内容申请模块;An inactive application determining module, configured to: when receiving an application access request for any one of the servers, according to whether the application is an inactive application in the recycled application list; if yes, invoking a resource content requesting module ;

资源内容申请模块,用于针对所述不活跃应用申请资源内容。The resource content application module is configured to apply for resource content for the inactive application.

在本申请的一种优选实施例中,所述资源内容申请模块可以包括如下子模块:In a preferred embodiment of the present application, the resource content application module may include the following submodules:

部署指令接收子模块,用于接收针对所述不活跃应用的申请资源内容部署指令;a deployment instruction receiving submodule, configured to receive an application resource content deployment instruction for the inactive application;

部署指令处理子模块,用于采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。The deployment instruction processing submodule is configured to apply for the resource content for the inactive application by using the application resource content deployment instruction.

在本申请的一种优选实施例中,所述的装置还可以包括如下模块:In a preferred embodiment of the present application, the apparatus may further include the following modules:

不活跃应用删除模块,用于从所述回收应用列表中删除所述不活跃应用。The inactive application deletion module is configured to delete the inactive application from the list of recycled applications.

在本申请的一种优选实施例中,所述的装置还可以包括如下模块:In a preferred embodiment of the present application, the apparatus may further include the following modules:

资源内容的大小确定模块,用于确定所述不活跃应用对应的资源内容的大小;a size determining module of the resource content, configured to determine a size of the resource content corresponding to the inactive application;

数值判断模块,用于判断所述资源内容的大小是否超过预设数值;若是,则调用资源内容回收模块。The value judging module is configured to determine whether the size of the resource content exceeds a preset value; if yes, the resource content recovery module is invoked.

在本申请的一种优选实施例中,所述网络平台可以为PaaS平台。In a preferred embodiment of the present application, the network platform may be a PaaS platform.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.

本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium. Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.

本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方 框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device is implemented in one or more processes and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.

尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While a preferred embodiment of the embodiments of the present application has been described, those skilled in the art can make further changes and modifications to the embodiments once they are aware of the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that comprises the element, without further limitation.

以上对本申请所提供的一种网络平台下资源内容回收的方法和一种网络平台下资源内容回收的装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The method for recovering resource content under the network platform and the device for recovering resource content under the network platform are described in detail above. The specific examples are used to explain the principle and implementation manner of the application. The description of the above embodiments is only for helping to understand the method of the present application and its core ideas; at the same time, for those of ordinary skill in the art, depending on the idea of the present application, there will be changes in specific implementations and applications. In summary, the contents of this specification are not to be construed as limiting the application.

Claims (18)

一种网络平台下资源内容回收的方法,其特征在于,所述网络平台下包括服务器,所述服务器中包括应用列表和应用请求日志,所述的方法包括:A method for recovering resource content in a network platform, wherein the network platform includes a server, where the server includes an application list and an application request log, and the method includes: 获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;Obtaining the application list and the application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content; 采用所述应用请求日志确定所述应用列表中的不活跃应用;Determining, by the application request log, an inactive application in the application list; 回收所述不活跃应用对应的资源内容。Recovering the resource content corresponding to the inactive application. 根据权利要求1所述的方法,其特征在于,所述采用应用请求日志确定所述应用列表中的不活跃应用的步骤包括:The method according to claim 1, wherein the step of determining an inactive application in the application list by using an application request log comprises: 采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;Extracting, from the application list, an application that has not been accessed within a preset time by using the application request log; 将所述在预设时间内没有被访问的应用标识为不活跃应用。The application that is not accessed within the preset time is identified as an inactive application. 根据权利要求1或2所述的方法,其特征在于,所述回收不活跃应用对应的资源内容的步骤包括:The method according to claim 1 or 2, wherein the step of recovering the resource content corresponding to the inactive application comprises: 接收针对所述不活跃应用的资源内容回收指令;Receiving a resource content recovery instruction for the inactive application; 采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。The resource content recovery instruction is used to recover the resource content corresponding to the inactive application. 根据权利要求1所述的方法,其特征在于,所述服务器还包括回收应用列表,在所述回收不活跃应用对应的资源内容的步骤之后,还包括:The method according to claim 1, wherein the server further comprises: a reclaiming application list, after the step of retrieving the resource content corresponding to the inactive application, the method further comprising: 将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application of the recycled resource content is written to the recycle application list. 根据权利要求1或4所述的方法,其特征在于,还包括:The method according to claim 1 or 4, further comprising: 当接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;When receiving an application access request for any of the applications, according to whether the application is an inactive application in the recycled application list; 若是,则针对所述不活跃应用申请资源内容。If yes, the resource content is requested for the inactive application. 根据权利要求5所述的方法,其特征在于,所述针对不活跃应用申请资源内容的步骤包括:The method according to claim 5, wherein the step of requesting resource content for the inactive application comprises: 接收针对所述不活跃应用的申请资源内容部署指令;Receiving an application resource content deployment instruction for the inactive application; 采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。Applying the resource content to the inactive application by using the application resource content deployment instruction. 根据权利要求5所述的方法,其特征在于,在所述针对所述不活跃应用申请资源内容的步骤之后,还包括:The method according to claim 5, further comprising: after the step of requesting resource content for the inactive application, further comprising: 从所述回收应用列表中删除所述不活跃应用。The inactive application is deleted from the list of recycled applications. 根据权利要求1所述的方法,其特征在于,在所述回收不活跃应用对应的资源 内容的步骤之前,还包括:The method according to claim 1, wherein said resource corresponding to said inactive application is recovered Before the steps of the content, it also includes: 确定所述不活跃应用对应的资源内容的大小;Determining a size of the resource content corresponding to the inactive application; 判断所述资源内容的大小是否超过预设数值;Determining whether the size of the resource content exceeds a preset value; 若是,则执行所述回收不活跃应用对应的资源内容的步骤。If yes, the step of recovering the resource content corresponding to the inactive application is performed. 根据权利要求1所述的方法,其特征在于,所述网络平台为PaaS平台。The method of claim 1 wherein said network platform is a PaaS platform. 一种网络平台下资源内容回收的装置,其特征在于,所述网络平台下包括服务器,所述服务器中包括应用列表和应用请求日志,所述的装置包括:An apparatus for recovering resource content under a network platform, wherein the network platform includes a server, where the server includes an application list and an application request log, and the device includes: 应用数据获取模块,用于获取所述应用列表和应用请求日志;所述应用列表中包括一个或多个应用,所述一个或多个应用分别具有对应的资源内容;An application data obtaining module, configured to obtain the application list and an application request log; the application list includes one or more applications, and the one or more applications respectively have corresponding resource content; 不活跃应用确定模块,用于采用所述应用请求日志确定所述应用列表中的不活跃应用;An inactive application determining module, configured to determine, by using the application request log, an inactive application in the application list; 资源内容回收模块,用于回收所述不活跃应用对应的资源内容。The resource content recovery module is configured to recover resource content corresponding to the inactive application. 根据权利要求10所述的装置,其特征在于,所述不活跃应用确定模块包括:The device according to claim 10, wherein the inactive application determining module comprises: 不活跃应用提取子模块,用于采用所述应用请求日志从所述应用列表中提取出在预设时间内没有被访问的应用;An inactive application extraction submodule, configured to extract, from the application list, an application that is not accessed within a preset time by using the application request log; 不活跃应用标识子模块,用于将所述在预设时间内没有被访问的应用标识为不活跃应用。The inactive application identifier submodule is configured to identify the application that is not accessed within a preset time as an inactive application. 根据权利要求10或11所述的装置,其特征在于,所述资源内容回收模块包括:The device according to claim 10 or 11, wherein the resource content recovery module comprises: 回收指令接收子模块,用于接收针对所述不活跃应用的资源内容回收指令;Retrieving an instruction receiving submodule, configured to receive a resource content recovery instruction for the inactive application; 回收指令处理子模块,用于采用所述资源内容回收指令回收所述不活跃应用对应的资源内容。The recycle instruction processing submodule is configured to recover the resource content corresponding to the inactive application by using the resource content recovery instruction. 根据权利要求10所述的装置,其特征在于,所述服务器还包括回收应用列表,还包括:The device according to claim 10, wherein the server further comprises a recycling application list, further comprising: 不活跃应用写入模块,用于将所述已回收资源内容的不活跃应用写入所述回收应用列表。An inactive application write module for writing an inactive application of the recycled resource content to the recycle application list. 根据权利要求10或13所述的装置,其特征在于,还包括:The device according to claim 10 or 13, further comprising: 不活跃应用确定模块,用于在接收到针对所述服务器中任一应用的应用访问请求时,依据所述应用是否为所述回收应用列表中的不活跃应用;若是,则调用资源内容申请模块;An inactive application determining module, configured to: when receiving an application access request for any one of the servers, according to whether the application is an inactive application in the recycled application list; if yes, invoking a resource content requesting module ; 资源内容申请模块,用于针对所述不活跃应用申请资源内容。 The resource content application module is configured to apply for resource content for the inactive application. 根据权利要求14所述的装置,其特征在于,所述资源内容申请模块包括:The device according to claim 14, wherein the resource content application module comprises: 部署指令接收子模块,用于接收针对所述不活跃应用的申请资源内容部署指令;a deployment instruction receiving submodule, configured to receive an application resource content deployment instruction for the inactive application; 部署指令处理子模块,用于采用所述申请资源内容部署指令为所述不活跃应用申请资源内容。The deployment instruction processing submodule is configured to apply for the resource content for the inactive application by using the application resource content deployment instruction. 根据权利要求17所述的装置,其特征在于,还包括:The device according to claim 17, further comprising: 不活跃应用删除模块,用于从所述回收应用列表中删除所述不活跃应用。The inactive application deletion module is configured to delete the inactive application from the list of recycled applications. 根据权利要求10所述的装置,其特征在于,还包括:The device according to claim 10, further comprising: 资源内容的大小确定模块,用于确定所述不活跃应用对应的资源内容的大小;a size determining module of the resource content, configured to determine a size of the resource content corresponding to the inactive application; 数值判断模块,用于判断所述资源内容的大小是否超过预设数值;若是,则调用资源内容回收模块。The value judging module is configured to determine whether the size of the resource content exceeds a preset value; if yes, the resource content recovery module is invoked. 根据权利要求10所述的装置,其特征在于,所述网络平台为PaaS平台。 The apparatus according to claim 10, wherein said network platform is a PaaS platform.
PCT/CN2016/093494 2015-08-14 2016-08-05 Method and device for recovering resource contents under network platform Ceased WO2017028689A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510502876.0A CN106470218B (en) 2015-08-14 2015-08-14 Method and device for resource content recovery under network platform
CN201510502876.0 2015-08-14

Publications (1)

Publication Number Publication Date
WO2017028689A1 true WO2017028689A1 (en) 2017-02-23

Family

ID=58051993

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093494 Ceased WO2017028689A1 (en) 2015-08-14 2016-08-05 Method and device for recovering resource contents under network platform

Country Status (2)

Country Link
CN (1) CN106470218B (en)
WO (1) WO2017028689A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764607A (en) * 2018-04-09 2018-11-06 中国平安人寿保险股份有限公司 User month data reinspection method, apparatus, equipment and storage medium
CN114090264A (en) * 2021-11-30 2022-02-25 中国建设银行股份有限公司 A method, device and computer program product for cloud service resource control

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489241A (en) * 2019-08-26 2019-11-22 北京首都在线科技股份有限公司 Recovery method as resource, device, equipment and computer readable storage medium
CN110991981A (en) * 2019-10-25 2020-04-10 中国通信服务股份有限公司 Application method of research and development cloud platform
CN111698287B (en) * 2020-05-08 2023-06-27 广州微算互联信息技术有限公司 Cloud mobile phone active application acquisition method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080086473A1 (en) * 2006-10-06 2008-04-10 Prodigen, Llc Computerized management of grouping access rights
CN101510156A (en) * 2009-03-30 2009-08-19 阿里巴巴集团控股有限公司 Information system resource recovery method and device
CN103581336A (en) * 2013-11-20 2014-02-12 中国联合网络通信集团有限公司 Service flow scheduling method and system based on cloud computing platform
CN103853616A (en) * 2014-02-20 2014-06-11 福建升腾资讯有限公司 Method for realizing automatic closing and hardware resource release of cloud computing virtual desktop

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8800007B1 (en) * 2011-06-24 2014-08-05 Juniper Networks, Inc. VPN session migration across clients
CN103533063A (en) * 2013-10-18 2014-01-22 北京华胜天成科技股份有限公司 Method and device capable of realizing dynamic expansion of WEB (World Wide Web) application resource

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080086473A1 (en) * 2006-10-06 2008-04-10 Prodigen, Llc Computerized management of grouping access rights
CN101510156A (en) * 2009-03-30 2009-08-19 阿里巴巴集团控股有限公司 Information system resource recovery method and device
CN103581336A (en) * 2013-11-20 2014-02-12 中国联合网络通信集团有限公司 Service flow scheduling method and system based on cloud computing platform
CN103853616A (en) * 2014-02-20 2014-06-11 福建升腾资讯有限公司 Method for realizing automatic closing and hardware resource release of cloud computing virtual desktop

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108764607A (en) * 2018-04-09 2018-11-06 中国平安人寿保险股份有限公司 User month data reinspection method, apparatus, equipment and storage medium
CN108764607B (en) * 2018-04-09 2022-04-15 中国平安人寿保险股份有限公司 User monthly data review method, device, equipment and storage medium
CN114090264A (en) * 2021-11-30 2022-02-25 中国建设银行股份有限公司 A method, device and computer program product for cloud service resource control

Also Published As

Publication number Publication date
CN106470218B (en) 2020-01-14
CN106470218A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
US20230333942A1 (en) Tiered cloud storage for different availability and performance requirements
US11467755B2 (en) Method and system for enabling agentless backup and restore operations on a container orchestration platform
CN102307206B (en) Caching method of caching system for quickly accessing virtual machine mirror image based on cloud storage
CN101986285B (en) Virtual machine storage space management method, system and physical host
WO2017028689A1 (en) Method and device for recovering resource contents under network platform
WO2019137320A1 (en) Resource scheduling method, apparatus, device and system
CN104461744A (en) Resource allocation method and device
CN109254958B (en) Distributed data reading and writing method, device and system
CN103118073B (en) Virtual machine data persistence storage system and method in cloud environment
CN106790744B (en) IP scheduling method and system
CN104020961A (en) Distributed data storage method, device and system
CN106302640A (en) Data request processing method and device
WO2015149514A1 (en) Virtual machine deploying method and apparatus
CN102971698A (en) Snapshot data-processing method and system, storage system and snapshot agency
CN111309259A (en) Data migration method, system, storage medium and data migration terminal
CN114296891A (en) Task scheduling method, system, computing device, storage medium and program product
CN113065034A (en) Distributed system number generation method and system
CN106936882A (en) A kind of electronic article transaction system
CN103116475B (en) Method of automatic simplifying allocation expansion
CN104715044A (en) Distributed system and data manipulation method thereof
CN109033365B (en) Data processing method and related equipment
US9160705B2 (en) Identifier management
CN111522689B (en) Global snapshot method, device, electronic equipment and computer-readable storage medium
CN108023920B (en) Data packet transmission method, equipment and application interface
CN103064793B (en) Simplify configuration capacity recovery method and system

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: 16836553

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: 16836553

Country of ref document: EP

Kind code of ref document: A1