CN112035174B - Method, apparatus and computer storage medium for running web service - Google Patents

Method, apparatus and computer storage medium for running web service Download PDF

Info

Publication number
CN112035174B
CN112035174B CN201910411165.0A CN201910411165A CN112035174B CN 112035174 B CN112035174 B CN 112035174B CN 201910411165 A CN201910411165 A CN 201910411165A CN 112035174 B CN112035174 B CN 112035174B
Authority
CN
China
Prior art keywords
resource
resources
dynamic
web service
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910411165.0A
Other languages
Chinese (zh)
Other versions
CN112035174A (en
Inventor
张泉锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910411165.0A priority Critical patent/CN112035174B/en
Publication of CN112035174A publication Critical patent/CN112035174A/en
Application granted granted Critical
Publication of CN112035174B publication Critical patent/CN112035174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The application discloses a method and a device for running web services and a computer storage medium, and belongs to the technical field of the Internet. In the application, since dynamic resources are generally changed during running of different web services, a resource set is configured in advance, and the resource set includes dynamic resources of each of a plurality of web services. Therefore, when the first web service is required to be switched to, the dynamic resources of the first web service can be directly loaded according to the resource set, and the switched web service is provided to the outside through the reverse proxy.

Description

Method, apparatus and computer storage medium for running web service
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for operating a web (chinese name: web) service, and a computer storage medium.
Background
With the development of distributed technology, a network system may include servers distributed at different locations, and the servers operate in conjunction via the internet. Each server corresponds to a web service, and each server enables the network system to realize a complex function by running the corresponding web service. Among other things, a web service is an online application.
In the related art, for any server in a network system, a developer configures a web service corresponding to the server in advance. During the operation of the network system, the server can realize corresponding functions according to the pre-configured web service. Because the web service corresponding to the server is pre-configured by the developer, the server can only realize the function corresponding to the corresponding web service in the running process of the network system, and the flexibility of running the web service is reduced.
Disclosure of Invention
The embodiment of the application provides a method and a device for running web services and a computer storage medium, which can improve the flexibility of running the web services. The technical scheme is as follows:
in one aspect, a method for running a web service is provided, where the method includes:
when a service switching instruction carrying an identifier of a first web service is received, acquiring dynamic resources of the first web service from a resource set according to the identifier of the first web service, wherein the dynamic resources refer to resources which can be modified and deleted, and the resource set comprises dynamic resources of each web service in a plurality of web services;
loading the dynamic resources of the first web service, and adding the loaded dynamic resources to a first web container;
and establishing an association relation between the first web container and a reverse proxy, wherein the reverse proxy is used for providing an external access port.
Optionally, the method further comprises:
in an initialization state, acquiring a resource set, wherein the resource set comprises a dynamic resource list and a fixed resource list, and the fixed resources of the fixed resource list refer to resources which cannot be modified or deleted;
loading all fixed resources in the fixed resource list;
selecting dynamic resources of a second web service from the dynamic resource list, loading the dynamic resources of the second web service, and adding the loaded dynamic resources to a second web container, wherein the second web service is a web service which needs to be operated in an initialization state;
and establishing an association relation between the second web container and the reverse proxy.
Optionally, before the establishing an association relationship between the first web container and a reverse proxy, the method further includes:
disassociating the second web container from the reverse-proxy.
Optionally, the acquiring the resource set includes:
obtaining all resources for the plurality of web services;
acquiring the configuration type of each resource in all the resources, wherein the configuration types comprise code internal dynamic specification, external configuration file specification and code internal annotation;
and according to the configuration type of each resource in all the resources, carrying out duplicate removal processing on all the resources to obtain the resource set.
Optionally, the obtaining the configuration type of each resource in all the resources includes:
acquiring an externally specified configuration file, a program internally specified configuration file and a dynamic configuration file in an initialization process;
and determining the configuration type of each resource in all the resources according to the externally specified configuration file, the internally specified configuration file of the program and the dynamic configuration file in the initialization process.
Optionally, the performing, according to the configuration type of each resource in all the resources, a deduplication process on all the resources includes:
for any two resources in all the resources, if the two resources are resources with repeated functions, deleting the resources corresponding to the configuration type with lower priority;
wherein, the priority of each configuration type is: the dynamically assigned priority in the code is greater than the priority assigned by the external configuration file, and the priority assigned by the external configuration file is greater than the priority assigned by the annotation in the code.
Optionally, before the loading all the fixed resources in the fixed resource list, the method further includes:
triggering an exception alert if one of the dynamic resources in the dynamic resource list conflicts with one of the fixed resources in the fixed resource list;
and acquiring resources after the developers correct according to the abnormal warning, and updating the resource set.
Optionally, the resource set further includes a default resource list, where a default resource in the default resource list refers to a resource without specified usage right;
after the updating the resource set, the method further includes:
if a dynamic resource in the list of dynamic resources conflicts with a default resource in the list of default resources, marking the conflict in the list of dynamic resources and the list of default resources;
correspondingly, after the loading all the fixed resources in the fixed resource list, the method further includes:
loading all or part of the default resources in the default resource list;
accordingly, the loading the dynamic resource of the second web service includes:
loading the dynamic resource of the second web service if the dynamic resource of the second web service is marked as conflicting with one default resource already loaded;
the downline has a conflicting default resource with a dynamic resource of the second web service.
Optionally, the acquiring, according to the identifier of the first web service, a dynamic resource required for running the first web service from a resource set includes:
generating a configuration file according to the identification of the first web service, wherein the configuration file comprises a resource marker;
and acquiring the dynamic resource of the first web service from the resource set according to the resource marker.
Optionally, the loading the dynamic resource of the first web service includes:
acquiring a resource tree of dynamic resources of the first web service, wherein the resource tree is used for indicating loading information on running resource dependence;
and creating a code loading thread according to the resource tree so as to load the dynamic resource of the first web service.
In another aspect, an apparatus for running a web service is provided, where the apparatus includes:
a first obtaining module, configured to, when a service switching instruction carrying an identifier of a first web service is received, obtain, according to the identifier of the first web service, a dynamic resource of the first web service from a resource set, where the dynamic resource refers to a resource that can be modified and deleted, and the resource set includes a dynamic resource of each web service in multiple web services;
the first loading module is used for loading the dynamic resources of the first web service and adding the loaded dynamic resources to the first web container;
the first establishing module is used for establishing an association relation between the first web container and a reverse proxy, and the reverse proxy is used for providing an external access port.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a resource set in an initialization state, where the resource set includes a dynamic resource list and a fixed resource list, and a fixed resource of the fixed resource list refers to a resource that cannot be modified or deleted;
the second loading module is used for loading all the fixed resources in the fixed resource list;
the third loading module is used for selecting the dynamic resource of the second web service from the dynamic resource list, loading the dynamic resource of the second web service, and adding the loaded dynamic resource to a second web container, wherein the second web service is the web service which needs to be operated in the initialization state;
and the second establishing module is used for establishing the association relationship between the second web container and the reverse proxy.
Optionally, the apparatus further comprises:
and the releasing module is used for releasing the association relationship between the second web container and the reverse proxy.
Optionally, the second obtaining module is specifically configured to:
obtaining all resources for the plurality of web services;
acquiring the configuration type of each resource in all the resources, wherein the configuration types comprise code internal dynamic specification, external configuration file specification and code internal annotation;
and performing deduplication processing on all resources according to the configuration type of each resource in all resources to obtain the resource set.
Optionally, the second obtaining module is specifically configured to:
acquiring an externally specified configuration file, a program internally specified configuration file and a dynamic configuration file in an initialization process;
and determining the configuration type of each resource in all the resources according to the externally specified configuration file, the internally specified configuration file of the program and the dynamic configuration file in the initialization process.
Optionally, the second obtaining module is specifically configured to:
for any two resources in all the resources, if the two resources are resources with repeated functions, deleting the resources corresponding to the configuration type with lower priority;
wherein, the priority of each configuration type is as follows: the dynamically assigned priority in the code is greater than the priority assigned by the external configuration file, and the priority assigned by the external configuration file is greater than the priority assigned by the annotation in the code.
Optionally, the apparatus further comprises:
a triggering module for triggering an exception warning if one dynamic resource in the dynamic resource list conflicts with one fixed resource in the fixed resource list;
and the updating module is used for acquiring the resources corrected by the developer according to the abnormal warning and updating the resource set.
Optionally, the resource set further includes a default resource list, where a default resource in the default resource list refers to a resource without specified usage right;
the device further comprises:
a marking module for marking a dynamic resource list and a default resource list if a dynamic resource in the dynamic resource list conflicts with a default resource in the default resource list;
correspondingly, the second loading module is further configured to load all or part of the default resources in the default resource list;
correspondingly, the third loading module is specifically configured to:
loading the dynamic resource of the second web service if the dynamic resource of the second web service is marked as conflicting with one default resource already loaded;
the downline has a conflicting default resource with a dynamic resource of the second web service.
Optionally, the first obtaining module is specifically configured to:
generating a configuration file according to the identification of the first web service, wherein the configuration file comprises a resource marker;
and acquiring the dynamic resource of the first web service from the resource set according to the resource marker.
Optionally, the first loading module is specifically configured to:
acquiring a resource tree of dynamic resources of the first web service, wherein the resource tree is used for indicating loading information on which running resources depend;
and creating a code loading thread according to the resource tree so as to load the dynamic resource of the first web service.
In another aspect, an apparatus for running a web service is provided, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any of the above methods of running a web service.
In another aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions thereon, and the instructions, when executed by a processor, implement the steps of the method of any one of the above methods of running a web service.
In another aspect, a computer program product is provided comprising instructions which, when run on a computer, cause the computer to perform the steps of any one of the above described methods of running a web service.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in the embodiment of the application, since dynamic resources are generally changed during running of different web services, a resource set is configured in advance, and the resource set includes dynamic resources of each of a plurality of web services. Therefore, when the first web service is required to be switched to, the dynamic resources of the first web service can be directly loaded according to the resource set, and the switched web service is provided to the outside through the reverse proxy.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic architecture diagram of a server according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for running a web service according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for running a web service provided by an embodiment of the present application;
FIG. 4 is a block diagram of an apparatus for running web services according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of another apparatus for running web services provided by embodiments of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 1, the server 100 includes a resource collection module 101, a resource processing engine 102, a resource queue module 103, and a reverse proxy module 104.
The resource collection module 101 is connected with the resource processing engine 102 in a wireless or wired manner for communication, the resource processing engine 102 is connected with the reverse proxy module 104 in a wireless or wired manner for communication, and the source processing engine 102 is connected with the resource queue module 103 in a wireless or wired manner for communication.
For convenience of description later, the resources related to the embodiments of the present application are explained in detail herein. The resource in the embodiment of the present application is substantially a piece of code for implementing a specific function. In addition, the resources can be divided into fixed resources, dynamic resources, default resources, monitoring resources and the like according to the use condition of the resources. Fixed resources refer to resources that cannot be modified or deleted after generation. For example, some of the resources that must be used by the server initialization process are typically fixed resources. Dynamic resources refer to resources that are allowed to be modified or deleted after generation. The default resource refers to a resource for which no usage rights are specified. The monitoring resource is used for monitoring the running state of the web service, has no influence on the function realized by the web service and can be modified in a later period.
The resource collection module 101 in fig. 1 is used to implement operations of collecting and classifying all resources related to web services. The resource processing engine 102 is used for implementing operations of loading various resources, coordinating relationships among various resources, loading resources into containers, placing resources in resource queues, and the like. The resource queue module 103 is used for managing various resources in the resource queue. The reverse proxy module 104 is used for associating different web services and providing a unified external access port.
As shown in FIG. 1, the resource collection module 101 further includes a configuration loading module 1011, a configuration classification module 1012, a resource analysis module 1013, and a resource logging module 1014. The configuration loading module 1011 is used to load various configuration files, and the configuration files are used to indicate some resources. The configuration classification module 1012 is used to determine the configuration type of all resources according to the configuration file. The resource analysis module 1013 is configured to analyze and integrate the resources according to the configuration types of all the resources, and generate a resource set. The resource logging module 1014 is configured to manage the resource collection to record changes of the resource collection.
The resource processing engine 102 includes an underlying service lookup module 1021, a service loading module 1022, and a load mode control module 1023. The underlying service lookup module 1021 is used to determine the loading information that each resource needs to rely on. The loading information that the resource needs to depend on refers to all relevant information that the resource needs to be successfully loaded, for example, other services or underlying codes that the resource depends on in the loading process may be used. The service loading module 1022 is configured to generate a loading thread according to loading information that the resource needs to depend on, and load the resource through the loading thread. The loading mode control module 1023 is used to manage the respective resources after loading.
The names of the modules shown in fig. 1 are only named according to the corresponding functions, and do not constitute a limitation on the architecture of the server provided by the embodiment of the present application. When the server is applied, names of the modules may also be flexibly configured according to functions of the modules, and embodiments of the present application are not specifically limited herein.
In addition, each module shown in fig. 1 is only a partial architecture in the server provided in the embodiment of the present application, and the server may configure other modules according to an application scenario, and the embodiment of the present application is also not specifically limited herein.
Fig. 2 is a flowchart of a method for running a web service according to an embodiment of the present application, and is applied to the server shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
step 201: when a service switching instruction carrying the identifier of the first web service is received, the dynamic resource of the first web service is obtained from a resource set according to the identifier of the first web service, the dynamic resource refers to a resource capable of being modified and deleted, and the resource set comprises the dynamic resource of each web service in a plurality of web services.
In the embodiment of the application, in order to enable the server to switch the web services by itself, a resource set may be configured in the server in advance, where the resource set includes dynamic resources of each web service in the multiple web services. Therefore, when the service switching instruction is received, the dynamic resource of the first web service corresponding to the service switching instruction can be obtained from the resource combination.
The dynamic resource of the web service refers to a dynamic resource required in the process of running the web service. Since the fixed resources required during the running of different web services are substantially the same. Therefore, when the web service needs to be switched, only the dynamic resource needs to be switched.
Step 202: and loading the dynamic resource of the first web service, and adding the loaded dynamic resource to the first web container.
In web services, all dynamic resources need to be accessed by external clients through web containers by adding them to the web containers. Thus, after loading the dynamic resource, the dynamic resource needs to be added to the first web container.
Step 203: and establishing an association relation between the first web container and a reverse proxy, wherein the reverse proxy is used for providing an external access port.
Since the dynamic resources of different web services are different, in the embodiment of the present application, the web containers are in one-to-one correspondence with the web services. But the server provides only one outward access port. Therefore, in the embodiment of the present application, a reverse proxy is configured in the server, and the reverse proxy is used for providing an external access port. When the first web service is switched to, the switched web service can be continuously provided to the outside only by establishing the association relationship between the first web container and the reverse proxy.
In the embodiment of the application, since dynamic resources are generally changed during running of different web services, a resource set is configured in advance, and the resource set includes dynamic resources of each of a plurality of web services. Therefore, when the first web service is required to be switched to, the dynamic resources of the first web service can be directly loaded according to the resource set, and the switched web service is provided to the outside through the reverse proxy.
The embodiment shown in fig. 2 is further explained below. Fig. 3 is a flowchart of a method for running a web service according to an embodiment of the present application, and is applied to the server shown in fig. 1. As shown in fig. 3, the method comprises the steps of:
step 301: in an initialization state, a resource set is obtained, the resource set comprises a dynamic resource list and a fixed resource list, and fixed resources of the fixed resource list refer to resources which cannot be modified or deleted.
Since switching between different web services needs to be realized according to the resource sets subsequently, when the server initializes the state, the resource sets need to be configured for the server. Wherein step 301 may be implemented by the resource collection module shown in fig. 1.
For example, the implementation manner of the server obtaining the resource set may be: the method comprises the steps of obtaining all resources aiming at a plurality of web services, obtaining the configuration type of each resource in all the resources, wherein the configuration type comprises code internal dynamic designation, external configuration file designation and code internal annotation, and performing deduplication processing on all the resources according to the configuration type of each resource in all the resources to obtain a resource set.
The dynamic assignment in the code refers to the assigned resource in the configuration file dynamically configured in the running process of the server. The external profile designation refers to a designated resource in a profile set by a user other than the server. The in-code annotation refers to a resource specified in a configuration file fixedly set in the program during the operation of the server.
Thus, in some embodiments, the implementation of obtaining the configuration type of each resource in all resources may be: the method comprises the steps of obtaining an externally specified configuration file, a program internally specified configuration file and a dynamic configuration file in an initialization process, and determining the configuration type of each resource in all resources according to the externally specified configuration file, the program internally specified configuration file and the dynamic configuration file in the initialization process.
The specific implementation manner of obtaining the externally specified configuration file may be: after the server is started, a path of an externally specified configuration file is obtained first, the externally specified configuration file is read according to the obtained path, and a line-by-line reading mode is adopted when the externally specified configuration file is read. And if the read content is the configuration file, storing the configuration file. And if the read content is a file path or a directory, continuously searching the file according to the file path or the directory, and reading the content in the searched file until the content in the searched file is a configuration file.
After the configuration file specified externally and the configuration file specified internally in the program are acquired, the initialization program in the server is executed to acquire the configuration file of the dynamic configuration in the initialization.
In addition, since the dynamically configured configuration file is a configuration file necessary for implementing a web service, and the externally specified configuration file is a configuration file for implementing a user's requirement, in the embodiment of the present application, the following priorities may be given for each configuration type: the dynamically assigned priority within the code is greater than the priority assigned by the external configuration file, which is greater than the priority of the annotations within the code.
Based on the priority order, according to the configuration type of each resource in all the resources, the implementation manner of performing deduplication processing on all the resources may be: and for any two resources in all the resources, if the two resources are the resources with repeated functions, deleting the resources corresponding to the configuration type with lower priority.
For example, if one resource with the configuration type dynamically specified in the code and one resource with the configuration type annotated in the code are resources with repeated functions, the resource with the configuration type annotated in the code is deleted, and the resource with the configuration type dynamically specified in the code is reserved.
In addition, after the resources in the resource set are subjected to deduplication processing, the resources in the resource set can be classified according to the dynamic resources, the fixed resources and the default resources, so as to obtain a dynamic resource list, a fixed resource list and a default resource list.
Because conflicts can exist among different types of resources, after the resources in the resource set are classified, conflict detection can be carried out on the classified resources, so that the success rate of subsequent resource loading is improved. Wherein, two resources with conflict refer to two resources that cannot be loaded simultaneously.
Because the fixed resource refers to a resource which cannot be modified or deleted at a later stage, when conflict detection is performed on various resources in the resource set, whether conflicts exist between the resources in the fixed resource list and the resources in the dynamic resource list can be detected firstly. An exception alert is triggered if one of the dynamic resources in the dynamic resource list conflicts with one of the fixed resources in the fixed resource list. Therefore, after triggering the exception warning, the server may obtain the resource corrected by the developer according to the exception warning, and then update the resource set according to the corrected resource, that is, update the fixed resource list and/or the dynamic resource list. And returning to execute the step of detecting whether the resources in the fixed resource list and the resources in the dynamic resource list conflict or not until the resources in the fixed resource list and the resources in the dynamic resource list do not conflict.
If any dynamic resource in the dynamic resource list does not conflict with any fixed resource in the fixed resource list, whether the dynamic resource conflicts with the default resource can be continuously detected. Therefore, if one dynamic resource in the dynamic resource list conflicts with one default resource in the default resource list, the conflict is marked in the dynamic resource list and the default resource list, so that the dynamic resource and the default resource can be loaded subsequently according to the marked conflict.
That is, in the embodiment of the present application, the server adopts two processing manners for the conflict between the dynamic resource and the fixed resource and the conflict between the dynamic resource and the default resource.
In addition, the above-mentioned process of collision detection is for the case where a default resource exists in the resource set. For example, the default resource list may not be included in the resource set, and in this case, the operation related to the default resource may not be executed.
In addition, after the server determines the resource collection, in order to facilitate a developer to view the resources in the resource collection in time, the resource logging module may be configured for the resource collection. The resource logging module is to log a resource collection. For example, logs may be recorded for resources added to a resource collection, logs may be recorded for resources modified in the resource collection, logs may be recorded for resources deleted from the resource collection, and the like.
In addition, the dynamic resource list may further record a resource identifier of each dynamic resource, so that a subsequent server may search for a corresponding dynamic resource according to the resource identifier. The resource identifier may be a unique name of the dynamic resource or may be a tag of the dynamic resource.
Wherein the unique name is used to uniquely identify the dynamic resource, but the tag does not uniquely identify the dynamic resource. That is, a unique name can only belong to one dynamic resource, but different dynamic resources may correspond to the same tag.
Step 302: and loading all the fixed resources in the fixed resource list.
After performing deduplication processing and collision detection on the resources in the resource set, the server may load all the fixed resources according to step 302, so that only dynamic resources need to be loaded in a switching manner in the subsequent switching of web services.
For example, the specific implementation manner of the step 302 may be: and collecting the resource tree of the fixed resources, creating a fixed resource thread according to the resource tree of the fixed resources, and operating the fixed resources according to the fixed resource thread. Wherein the resource tree is used to indicate loading information on which the running resource depends, and the loading information may include other services or underlying code.
In addition, if the resource set further includes a default resource list, the server may further determine whether the default resource needs to be loaded after all the fixed resources in the fixed resource list are loaded, and if not, no operation is performed. If so, all or a portion of the default resources in the default resource list are loaded.
For example, the implementation manner of loading all or part of the default resources in the default resource list may be: and collecting a resource tree of default resources to be loaded, creating default resource threads according to the resource tree of the default resources, and operating the default resources according to the default resource threads.
Step 303: and selecting the dynamic resource of the second web service from the dynamic resource list, loading the dynamic resource of the second web service, and adding the loaded dynamic resource to a second web container, wherein the second web service is the web service which needs to be operated when in an initialization state.
At server initialization, after loading the full dynamic resource, the dynamic resource of the second web service which needs to be run currently can be continuously loaded.
For example, the implementation manner of loading the dynamic resource of the second web service may be: collecting a resource tree of the dynamic resource of the second web service, creating a dynamic resource thread of the second web service according to the resource tree of the dynamic resource of the second web service, and operating the dynamic resource of the second web service according to the dynamic resource thread of the second web service
Additionally, if the server has also documented default resources after loading the fixed resources, at which point the server continues to attempt to load the dynamic resources of the second web service before loading the dynamic resources of the second web service if the dynamic resources of the second web service are marked as conflicting with one of the default resources already loaded. After loading the dynamic resource of the second web service is successful, a default resource that conflicts with the dynamic resource of the second web service may be dropped.
In the implementation of the application, in order to facilitate a developer to check the currently running resources in time, a resource queue may be configured in the server. Therefore, after any resource is loaded, such as a fixed resource, a default resource, or a dynamic resource, the resource that is successfully loaded may be added to the resource queue. Accordingly, if a resource needs to be taken offline, the resource may be removed from the resource queue.
In addition, in order to facilitate a developer to search a fault reason according to history related information when a server fails, the server can also record the up-line and the down-line of each resource through the loading mode control module. For example, it may record that a dynamic resource is online or offline at a certain time, and it may also record that a default resource is online or offline at a certain time.
In addition, each resource loading thread created as described above may also be referred to as a class loader, which is not specifically limited in this embodiment of the present application.
Step 304: and establishing an association relationship between the second web container and a reverse proxy, wherein the reverse proxy is used for providing an external access port.
Since the embodiment of the present application provides a uniform access port to the outside through the reverse proxy, after the loaded dynamic resource is added to the second web container, the second web service can be provided to the outside by establishing the association relationship between the second web container and the reverse proxy through step 304.
Additionally, the reverse-proxy may be turned on at any time prior to step 304. For example, the reverse proxy may be turned on after the fixed and default resources have been loaded. The time for starting the reverse proxy is not specifically limited in the embodiment of the present application, and it is only necessary to ensure that the reverse proxy is started before step 304.
The initialization starting process of the server is completed through steps 301 to 304, and the subsequent server can provide the second web service to the outside according to the loaded dynamic resource.
Step 305: when a service switching instruction carrying the identifier of the first web service is received, the dynamic resource of the first web service is obtained from a resource set according to the identifier of the first web service, the dynamic resource refers to a resource capable of being modified and deleted, and the resource set comprises the dynamic resource of each web service in a plurality of web services.
The service switching instruction may be triggered by a developer, or may be actively triggered by the server itself, and is not specifically limited herein. For example, in the process of running the server, a developer may trigger a service switching instruction through a preset operation, where the preset operation may be a click operation, a slide operation, a voice operation, or the like. For example, a developer may configure a switching trigger condition in advance, and in the process of running the server, if the server detects that the current condition meets the switching trigger condition, a service switching instruction is automatically triggered. The handover trigger condition may be a time condition or the like.
As known from step 301, the dynamic resource of each web service is included in the resource set, so in step 304, the server can directly obtain the dynamic resource of the first web service from the resource set.
For example, the implementation manner of the server acquiring the dynamic resource required for running the first web service from the resource set according to the identifier of the first web service may be: generating a configuration file according to the identification of the first web service, wherein the configuration file comprises a resource marker; and acquiring the dynamic resource of the first web service from the resource set according to the resource marker.
The resource identifier may be a unique name or label for the dynamic resource. If the resource identifier is a unique name, only one dynamic resource can be obtained based on one unique name. If the resource identifier is a tag, then a type of dynamic resource can be obtained based on the tag.
In addition, when the server receives a service switching instruction carrying the identifier of the first web service, there may be a case where the configuration file or the resource is changed, at this time, the server may update the resource set according to the changed configuration file or resource in the manner in step 301, and then acquire the dynamic resource of the first web service from the updated resource set.
Step 306: and loading the dynamic resource of the first web service, and adding the loaded dynamic resource to the first web container.
For example, the implementation of the server loading the dynamic resource of the first web service may be: acquiring a resource tree of dynamic resources of a first web service; a code loading thread is created from the resource tree to load dynamic resources of the first web service.
In addition, as can be seen from step 303, a resource queue may be configured in the server. At this time, the server may also add the dynamic resource of the first web service to the resource queue after loading the dynamic resource of the first web service. And recording the loaded dynamic resources of the first web service in real time through the loading mode control module.
Step 307: an association between the first web container and the reverse-proxy is established.
The server may also disassociate the second web container from the reverse-proxy before step 308 because the association between the reverse-proxy and the second web container has been previously established.
The server may also retain the request being processed by the second web service after switching to run the first web service via step 308, and then drop the second web service after the request processing is completed. The second web service is taken offline, i.e., the dynamic resource of the second web service is unloaded. After the dynamic resource of the second web service is unloaded, the unloaded dynamic resource of the second web service can be recorded in real time by the loading mode control module.
An application scenario for running a web service provided in the embodiment of the present application is described below as an example. For example, in the network system a, it is assumed that the network system a includes a first server, a second server, a third server, and a fourth server. The servers typically play different roles, assuming that the first server is the master and the second to fourth servers are slaves. When the first server fails, any one of the second server to the fourth server can be started to switch to the web service where the main node is located by the method provided by the embodiment of the application, and at this time, the first server does not need to be configured with a standby server, so that the operation cost of the network system is reduced. Of course, the application scenario described above is merely for illustration and does not constitute a limitation to the application scenario of the method for running the web service provided in the embodiment of the present application. That is, the method for running the web service provided by the embodiment of the present application is applied to any scene needing to switch the web service.
In the embodiment of the application, since dynamic resources are generally changed during running of different web services, a resource set is configured in advance, and the resource set includes dynamic resources of each of a plurality of web services. Therefore, when the first web service is required to be switched to, the dynamic resources of the first web service can be directly loaded according to the resource set, and the switched web service is provided to the outside through the reverse proxy.
Fig. 4 is a block diagram of an apparatus for running a web service according to an embodiment of the present disclosure, and the server shown in fig. 1 may be implemented by the apparatus shown in fig. 4. As shown in fig. 4, the apparatus 400 includes:
a first obtaining module 401, configured to, when receiving a service switching instruction carrying an identifier of a first web service, obtain, according to the identifier of the first web service, a dynamic resource of the first web service from a resource set, where the dynamic resource refers to a resource that can be modified and deleted, and the resource set includes a dynamic resource of each web service in a plurality of web services;
a first loading module 402, configured to load a dynamic resource of a first web service, and add the loaded dynamic resource to a first web container;
a first establishing module 403, configured to establish an association relationship between the first web container and a reverse proxy, where the reverse proxy is configured to provide an external access port.
Optionally, as shown in fig. 5, the apparatus 400 further includes:
a second obtaining module 404, configured to obtain a resource set in an initialization state, where the resource set includes a dynamic resource list and a fixed resource list, and a fixed resource of the fixed resource list refers to a resource that cannot be modified or deleted;
a second loading module 405, configured to load all fixed resources in the fixed resource list;
a third loading module 406, configured to select a dynamic resource of the second web service from the dynamic resource list, load the dynamic resource of the second web service, and add the loaded dynamic resource to the second web container, where the second web service is a web service that needs to be run when the second web service is in an initialization state;
a second establishing module 407, configured to establish an association relationship between the second web container and the reverse-proxy.
Optionally, the apparatus 400 further comprises:
and the releasing module is used for releasing the association relationship between the second web container and the reverse proxy.
Optionally, the second obtaining module 404 is specifically configured to:
acquiring all resources for a plurality of web services;
acquiring the configuration type of each resource in all the resources, wherein the configuration type comprises code internal dynamic designation, external configuration file designation and code internal annotation;
and performing deduplication processing on all resources according to the configuration type of each resource in all resources to obtain a resource set.
Optionally, the second obtaining module 404 is specifically configured to:
acquiring an externally specified configuration file, a program internally specified configuration file and a dynamic configuration file in an initialization process;
and determining the configuration type of each resource in all the resources according to the configuration file specified from the outside, the configuration file specified from the inside of the program and the dynamic configuration file in the initialization process.
Optionally, the second obtaining module 404 is specifically configured to:
for any two resources in all the resources, if the two resources are resources with repeated functions, deleting the resources corresponding to the configuration type with lower priority;
wherein, the priority of each configuration type is as follows: the dynamically assigned priority within the code is greater than the priority assigned by the external configuration file, which is greater than the priority assigned by the annotations within the code.
Optionally, the apparatus 400 further comprises:
the triggering module is used for triggering an abnormal warning if one dynamic resource in the dynamic resource list conflicts with one fixed resource in the fixed resource list;
and the updating module is used for acquiring the resources corrected by the developer according to the abnormal warning and updating the resource set.
Optionally, the resource set further includes a default resource list, where a default resource in the default resource list refers to a resource without specified usage permission;
the device still includes:
the marking module is used for marking conflict in the dynamic resource list and the default resource list if one dynamic resource in the dynamic resource list conflicts with one default resource in the default resource list;
correspondingly, the second loading module is further configured to load all or part of the default resources in the default resource list;
correspondingly, the third loading module is specifically configured to:
loading the dynamic resource of the second web service if the dynamic resource of the second web service is marked as conflicting with one of the default resources already loaded;
the downline has a conflicting default resource with the dynamic resource of the second web service.
Optionally, the first obtaining module is specifically configured to:
generating a configuration file according to the identification of the first web service, wherein the configuration file comprises a resource marker;
and acquiring the dynamic resource of the first web service from the resource set according to the resource marker.
Optionally, the first loading module is specifically configured to:
acquiring a resource tree of dynamic resources of a first web service, wherein the resource tree is used for indicating loading information on which running resources depend;
a code loading thread is created from the resource tree to load dynamic resources of the first web service.
In the embodiment of the application, since dynamic resources are generally changed during running of different web services, a resource set is configured in advance, and the resource set includes dynamic resources of each of a plurality of web services. Therefore, when the first web service is required to be switched to, the dynamic resources of the first web service can be directly loaded according to the resource set, and the switched web service is provided to the outside through the reverse proxy.
It should be noted that: in the device for running a web service according to the above embodiment, when running the web service, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the apparatus for running web services and the method embodiment for running web services provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application. The servers involved in the embodiments of the present application may be implemented by a hardware structure shown in fig. 6. The server may be a server in a cluster of background servers. Specifically, the method comprises the following steps:
the server 600 includes a Central Processing Unit (CPU) 601, a system memory 604 including a Random Access Memory (RAM) 602 and a Read Only Memory (ROM) 603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The server 600 also includes a basic input/output system (I/O system) 606, which facilitates the transfer of information between devices within the computer, and a mass storage device 607, which stores an operating system 613, application programs 614, and other program modules 615.
The basic input/output system 606 includes a display 608 for displaying information and an input device 609 such as a mouse, keyboard, etc. for user input of information. Wherein a display 608 and an input device 609 are connected to the central processing unit 601 via an input output controller 610 connected to the system bus 605. The basic input/output system 606 may also include an input/output controller 610 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 610 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 607 is connected to the central processing unit 601 through a mass storage controller (not shown) connected to the system bus 605. The mass storage device 607 and its associated computer-readable media provide non-volatile storage for the server 600. That is, mass storage device 607 may include a computer-readable medium (not shown), such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 604 and mass storage device 607 described above may be collectively referred to as memory.
According to various embodiments of the present application, the server 600 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 600 may be connected to the network 612 through the network interface unit 611 connected to the system bus 605, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 611.
The memory also includes one or more programs, which are stored in the memory and configured to be executed by the CPU. The one or more programs include instructions for performing the method of running a web service as described below, provided by an embodiment of the application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, and when instructions in the storage medium are executed by a processor of a server, the server is enabled to execute the method for running a web service provided by the foregoing embodiments.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for running a web service provided by the above embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (14)

1. A method of operating a web service, wherein the method is applied to the same server, the method comprising:
when the server is in an initialization state, loading fixed resources which cannot be modified or deleted in a plurality of web services;
when a service switching instruction carrying an identifier of a first web service is received, the server acquires dynamic resources of the first web service from a resource set according to the identifier of the first web service, wherein the dynamic resources refer to resources which can be modified and deleted, the resource set comprises dynamic resources of each web service in the plurality of web services, and the dynamic resources of different web services are different;
the server loads the dynamic resources of the first web service and adds the loaded dynamic resources to a first web container;
and the server establishes an incidence relation between the first web container and a reverse proxy, and the reverse proxy is used for providing an external access port.
2. The method of claim 1, wherein the server, in an initialization state, loads a fixed resource of the plurality of web services that cannot be modified or deleted, comprising:
when the server is in an initialization state, acquiring the resource set, wherein the resource set comprises a dynamic resource list and a fixed resource list;
the server loads all fixed resources in the fixed resource list;
the method further comprises the following steps:
the server selects dynamic resources of a second web service from the dynamic resource list, loads the dynamic resources of the second web service, and adds the loaded dynamic resources to a second web container, wherein the second web service is a web service which needs to be operated when in an initialization state;
the server establishes an association between the second web container and the reverse-proxy.
3. The method of claim 2, wherein prior to the server establishing the association between the first web container and the reverse-proxy, further comprising:
the server disassociates the second web container from the reverse-proxy.
4. The method of claim 2, wherein the server obtaining the set of resources comprises:
the server acquiring all resources for the plurality of web services;
the server acquires the configuration type of each resource in all the resources, wherein the configuration type comprises code internal dynamic specification, external configuration file specification and code internal annotation;
and the server performs duplicate removal processing on all the resources according to the configuration type of each resource in all the resources to obtain the resource set.
5. The method of claim 4, wherein the server obtaining the configuration type of each of the all resources comprises:
the server acquires an externally specified configuration file, a program internally specified configuration file and a dynamic configuration file in an initialization process;
and the server determines the configuration type of each resource in all the resources according to the externally specified configuration file, the internally specified configuration file of the program and the dynamic configuration file in the initialization process.
6. The method of claim 4, wherein the server performs deduplication processing on all resources according to the configuration type of each resource in the all resources, and the deduplication processing comprises:
for any two resources in all the resources, if the two resources are resources with repeated functions, the server deletes the resource corresponding to the configuration type with lower priority;
wherein, the priority of each configuration type is as follows: the priority dynamically assigned in the code is greater than the priority assigned by the external configuration file, and the priority assigned by the external configuration file is greater than the priority of the annotation in the code.
7. The method of claim 2, wherein before the server loads all fixed resources in the list of fixed resources, further comprising:
if one dynamic resource in the dynamic resource list conflicts with one fixed resource in the fixed resource list, the server triggers an exception warning;
and the server acquires the resources after the developers correct according to the abnormal warning, and updates the resource set.
8. The method of claim 7, wherein the resource set further comprises a default resource list, and the default resource in the default resource list refers to a resource without specified usage rights;
after the server updates the resource set, the method further includes:
if a dynamic resource in said list of dynamic resources conflicts with a default resource in said list of default resources, said server marking said conflict in said list of dynamic resources and said list of default resources;
correspondingly, after the server loads all the fixed resources in the fixed resource list, the method further includes:
the server loads all or part of default resources in the default resource list;
accordingly, the server loads the dynamic resource of the second web service, including:
loading, by the server, the dynamic resource of the second web service if the dynamic resource of the second web service is marked as conflicting with a default resource already loaded;
the server rolls off the line and has a conflicting default resource with the dynamic resource of the second web service.
9. The method of any of claims 1 to 8, wherein the server obtaining dynamic resources required to run the first web service from a set of resources based on the identity of the first web service comprises:
the server generates a configuration file according to the identification of the first web service, wherein the configuration file comprises a resource marker;
and the server acquires the dynamic resource of the first web service from the resource set according to the resource marker.
10. The method of any of claims 1 to 8, wherein the server loading dynamic resources of the first web service comprises:
the server acquires a resource tree of dynamic resources of the first web service, wherein the resource tree is used for indicating loading information on which running resources depend;
and the server creates a code loading thread according to the resource tree so as to load the dynamic resource of the first web service.
11. An apparatus for running a web service, wherein the apparatus is applied to a same server, the apparatus comprising:
the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring dynamic resources of a first web service from a resource set according to an identifier of the first web service when receiving a service switching instruction carrying the identifier of the first web service, the dynamic resources refer to resources capable of being modified and deleted, the resource set comprises the dynamic resources of each web service in a plurality of web services, the dynamic resources of different web services are different, and the server loads fixed resources which cannot be modified or deleted in the plurality of web services in an initialization state;
the first loading module is used for loading the dynamic resources of the first web service and adding the loaded dynamic resources to the first web container;
the first establishing module is used for establishing an association relation between the first web container and a reverse proxy, and the reverse proxy is used for providing an external access port.
12. The apparatus of claim 11, wherein the apparatus further comprises:
a second obtaining module, configured to obtain the resource set in an initialization state, where the resource set includes a dynamic resource list and a fixed resource list;
a second loading module, configured to load all fixed resources in the fixed resource list;
the third loading module is used for selecting the dynamic resource of the second web service from the dynamic resource list, loading the dynamic resource of the second web service, and adding the loaded dynamic resource to a second web container, wherein the second web service is the web service which needs to be operated in the initialization state;
and the second establishing module is used for establishing the association relationship between the second web container and the reverse proxy.
13. An apparatus for running a web service, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any of the above claims 1 to 10.
14. A computer-readable storage medium having stored thereon instructions which, when executed by a processor, carry out the steps of the method of any of claims 1 to 10.
CN201910411165.0A 2019-05-16 2019-05-16 Method, apparatus and computer storage medium for running web service Active CN112035174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910411165.0A CN112035174B (en) 2019-05-16 2019-05-16 Method, apparatus and computer storage medium for running web service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910411165.0A CN112035174B (en) 2019-05-16 2019-05-16 Method, apparatus and computer storage medium for running web service

Publications (2)

Publication Number Publication Date
CN112035174A CN112035174A (en) 2020-12-04
CN112035174B true CN112035174B (en) 2022-10-21

Family

ID=73575850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910411165.0A Active CN112035174B (en) 2019-05-16 2019-05-16 Method, apparatus and computer storage medium for running web service

Country Status (1)

Country Link
CN (1) CN112035174B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063470A (en) * 2011-12-29 2014-09-24 北京奇虎科技有限公司 Method for browsing pages
WO2018107751A1 (en) * 2016-12-13 2018-06-21 郑州云海信息技术有限公司 Resource scheduling device, system, and method

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523453B2 (en) * 2003-07-31 2009-04-21 International Business Machines Corporation System, method and program product for maintaining session information during dynamic resource additions or updates
CN101192937B (en) * 2006-11-24 2010-05-12 华为技术有限公司 A hot deployable method and its system
CN102323884B (en) * 2011-09-07 2014-07-09 山东中创软件工程股份有限公司 Web service container and method for issuing multiple Web services
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
US9398069B2 (en) * 2013-11-08 2016-07-19 Elastic Path Software, Inc. Stateless microkernel web server architecture
CN105956030A (en) * 2016-04-25 2016-09-21 浪潮电子信息产业股份有限公司 WEB system and WEB request processing method
CN106357432B (en) * 2016-08-30 2019-06-11 厦门鑫点击网络科技股份有限公司 Hybrid fictitious host computer based on web server manages platform
CN106406943A (en) * 2016-09-06 2017-02-15 厦门蓝斯通信股份有限公司 Customized upgrading method and system for clients of different versions
CN106598663B (en) * 2016-12-09 2020-07-24 北京恒华伟业科技股份有限公司 Web application updating method and web server
CN106713469B (en) * 2016-12-29 2019-12-13 上海智臻智能网络科技股份有限公司 Dynamic loading method, device and system for distributed container
CN111885082B (en) * 2017-09-06 2023-08-01 创新先进技术有限公司 Web application package processing method, device and equipment
CN108111586A (en) * 2017-12-14 2018-06-01 重庆邮电大学 The web cluster system and method that a kind of high concurrent is supported
CN108334562A (en) * 2018-01-09 2018-07-27 阿里巴巴集团控股有限公司 A kind of page display method and device
CN109542402A (en) * 2018-10-12 2019-03-29 杭州工跃机械制造有限公司 A method of adaptive is used for more portal website's seamless switchings

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063470A (en) * 2011-12-29 2014-09-24 北京奇虎科技有限公司 Method for browsing pages
WO2018107751A1 (en) * 2016-12-13 2018-06-21 郑州云海信息技术有限公司 Resource scheduling device, system, and method

Also Published As

Publication number Publication date
CN112035174A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN106982236B (en) Information processing method, device and system
CN106874281B (en) Method and device for realizing database read-write separation
CN110738389A (en) Workflow processing method and device, computer equipment and storage medium
CN110569298B (en) Data docking and visualization method and system
CN111399764B (en) Data storage method, data reading device, data storage equipment and data storage medium
CN113157315A (en) Method, device, equipment and medium for identifying difference information of different versions of software
WO2016116013A1 (en) Software upgrade method and system
CN111506358A (en) Method and device for updating container configuration
CN110830759B (en) Intelligent application deployment method, device and system
CN114356521A (en) Task scheduling method and device, electronic equipment and storage medium
CN112860412B (en) Service data processing method and device, electronic equipment and storage medium
CN110958138B (en) Container expansion method and device
CN111147226B (en) Data storage method, device and storage medium
CN112035174B (en) Method, apparatus and computer storage medium for running web service
CN116303320A (en) Real-time task management method, device, equipment and medium based on log file
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN114328130B (en) Server monitoring method, system, equipment and computer readable storage medium
CN111694724A (en) Testing method and device of distributed table system, electronic equipment and storage medium
CN114205354A (en) Event management system, event management method, server, and storage medium
CN112667512A (en) Data drive test method, device, equipment and computer readable storage medium
CN115964061A (en) Plug-in updating method and device, electronic equipment and computer readable storage medium
CN112395119A (en) Abnormal data processing method, abnormal data processing device, server and storage medium
CN111126604A (en) Model training method, device, server and storage medium
CN111338752B (en) Container adjusting method and device
CN115004662A (en) Data synchronization method, data synchronization device, data storage system and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant