CN116016649A - Data processing method, device, electronic equipment and storage medium - Google Patents

Data processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116016649A
CN116016649A CN202211715324.4A CN202211715324A CN116016649A CN 116016649 A CN116016649 A CN 116016649A CN 202211715324 A CN202211715324 A CN 202211715324A CN 116016649 A CN116016649 A CN 116016649A
Authority
CN
China
Prior art keywords
information
server
data
target
target service
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.)
Pending
Application number
CN202211715324.4A
Other languages
Chinese (zh)
Inventor
董浩宇
陆晓程
唐正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin Yiyuan Communication Technology Co ltd
Original Assignee
Guilin Yiyuan Communication 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 Guilin Yiyuan Communication Technology Co ltd filed Critical Guilin Yiyuan Communication Technology Co ltd
Priority to CN202211715324.4A priority Critical patent/CN116016649A/en
Publication of CN116016649A publication Critical patent/CN116016649A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a data processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving first information, the first information comprising at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions; determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by a server; closing the target service; and carrying out corresponding processing on the target service based on the first information. The method and the device can play a role in improving the efficiency of the server for providing services for other devices.

Description

Data processing method, device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a data processing method, a data processing device, electronic equipment and a storage medium.
Background
The server provides computing or application services for other devices (such as smartphones) in the network, for example, provides resources for clients, saves client data, automatically receives and transmits the data, and is commonly used in game development and internet industries. In the related art, when a problem occurs in a service in a server, related personnel need to shut down the server to repair the fault of the server, the server cannot provide computing or application services for terminal devices using the service in the server in a network, so that the terminal devices using the service of the server cannot work normally, and the efficiency of providing services for other devices by the server is low.
Disclosure of Invention
The embodiment of the application provides an implementation scheme different from the related technology, so as to solve the technical problem that the efficiency of providing services for other equipment by a server is lower when the server fault is repaired in the related technology.
In a first aspect, the present application provides a data processing method, including:
receiving first information, the first information comprising at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
closing the target service;
and carrying out corresponding processing on the target service based on the first information.
In a second aspect, the present application provides a data processing apparatus comprising:
a receiving module, configured to receive first information, where the first information includes at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
The determining module is used for determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
a closing module for closing the target service;
and the processing module is used for carrying out corresponding processing on the target service based on the first information.
In a third aspect, the present application provides an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the first aspect or any of the possible implementations of the first aspect via execution of the executable instructions.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect or any of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect or any of the possible embodiments of the first aspect.
The scheme provided by the application can receive first information, wherein the first information comprises at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions; determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server; and closing the target service, and further carrying out corresponding processing on the target service based on the first information. When the fault repair, service upgrading and corresponding function deletion are required to be carried out on the server, only the corresponding target service is closed to carry out corresponding processing on the target service, and all the services supported by the server are not required to be closed, so that the services except the target service in the server normally provide corresponding services for the terminal equipment using the services in the server, and the efficiency of the server for providing services for the terminal equipment using the services in the server is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the following description will briefly describe the drawings that are required to be used in the embodiments or the related technical descriptions, and it is obvious that, in the following description, the drawings are some embodiments of the present application, and other drawings may be obtained according to these drawings without any inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a schematic diagram of a system according to an exemplary embodiment of the present application;
FIG. 2a is a flow chart of a data processing method according to an exemplary embodiment of the present application;
FIG. 2b is a flowchart of a method for performing corresponding processing on the target service based on the first information according to an exemplary embodiment of the present application;
FIG. 2c is a flowchart of a method for processing second information according to an exemplary embodiment of the present application;
FIG. 2d is a schematic diagram of a process for analyzing first information according to an exemplary embodiment of the present application;
FIG. 2e is a schematic diagram of a process for analyzing second information according to an exemplary embodiment of the present application;
FIG. 2f is a schematic diagram of a process for providing a fault scenario simulation service according to an exemplary embodiment of the present application;
FIG. 3 is a schematic flow chart of performing fault repair on a service in a server according to an exemplary embodiment of the present application;
FIG. 4 is a flow chart of processing second information according to an exemplary embodiment of the present application;
FIG. 5 is a flow chart of a fault test provided in an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a data processing apparatus according to an exemplary embodiment of the present application;
Fig. 7 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
Embodiments of the present application, examples of which are illustrated in the accompanying drawings, are described in detail below. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The terms first and second and the like in the description, the claims and the drawings of the embodiments of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of being practiced otherwise than as specifically described or illustrated. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
Memory cavity: the compiler automatically adds unused memory space to ensure that the address of each field or element later can be reasonably aligned with respect to the starting address of the structure or array.
LoRa: the wireless local area network is a low-power-consumption and Long-distance local area network wireless standard.
LoRaWAN: long Range Wide Area Network, a remote wide area network, is a low power consumption wide area network specification.
NB-IoT: the Narrow Band-Internet of Things and the Narrow-Band Internet of things are low-power consumption wide area network technical standards.
GPRS: general packet radio service, a radio packet switching technology based on the global system for mobile communications.
TCP: transmission Control Protocol, the transmission control protocol, is a connection-oriented, reliable, byte stream based transport layer communication protocol.
UDP: user Datagram Protocol: the Internet protocol suite supports a connectionless transport protocol called the user datagram protocol.
Coap: constrained Application Protocol, a limited application protocol, is a Web-like (World Wide Web) protocol in the World of things.
MQTT: message Queuing Telemetry Transport, message queue telemetry transmission, is a message protocol based on a publish/subscribe paradigm.
LwM2M: light weight Machine to Machine, lightweight M2M, proposed by the development mobile alliance, is a lightweight, standard and general Internet of things device management protocol.
AT instruction: an Attention instruction, an instruction transmitted by a terminal device or a data circuit terminal device.
The server provides services for terminal devices using services in the server in a network, for example, provides resources for the terminal devices, saves data sent by the terminal devices, and automatically receives and transmits the data, and is commonly used in game development and internet industries. In the related art, when an emergency failure or a major vulnerability problem occurs in a server, related personnel generally need to notify users through notices and close all services of the server to perform maintenance and testing, thereby repairing the failure. In the repairing process, the server cannot provide computing or application services for other devices in the network, so that the data processing efficiency of the server is low, the user experience is poor, after all the services supported by the server are closed, the services except the target service in the server cannot normally provide corresponding services for the terminal devices using the services in the server, and the service providing efficiency of the server for the terminal devices using the services in the server is low.
The application provides a data processing method, a device, electronic equipment and a storage medium, which are used for solving the technical problem that in the process of repairing server faults in the related technology, computing or application services cannot be provided for other equipment in a network, so that the efficiency of providing services for other equipment by a server is low.
The following describes the technical solution of the present application and how the technical solution of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a system according to an exemplary embodiment of the present application. The system may include a control device 10, a server 20, and the like; the control device 10 and the server 20 are connected via a network, for example, a wired or wireless network connection or the like.
A control device 10 for:
transmitting the first information to the server 20;
the server 20 is configured to:
receiving first information, the first information comprising at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
Determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
closing the target service;
and carrying out corresponding processing on the target service based on the first information.
The control device 10 may be a smart phone, a tablet computer, or the like. The control device 10 may be used to display a graphical user interface. The control device 10 is configured to interact with a user through a graphical user interface, for example, the control device 10 downloads and installs a corresponding client and executes the corresponding client, for example, invokes a corresponding application and executes the corresponding application, for example, presents a corresponding graphical user interface through a login website, and the like.
The specific implementation principle and interaction process in the embodiment of the system can be referred to the following description of each method embodiment.
Fig. 2a is a schematic flow chart of a data processing method according to an exemplary embodiment of the present application, where the method is applicable to the foregoing server 20, and as shown in fig. 2a, the method at least includes the following steps S11-S14:
s11, receiving first information, wherein the first information comprises at least one of the following data contents: the system comprises data for instructing the server to perform fault repair, data for instructing the server to perform service upgrade and data for instructing the server to perform deletion of corresponding functions.
Alternatively, the server may be a commercial server, and be connected to one or more terminal devices in a network, so as to provide multiple services for the one or more terminal devices or programs.
The aforementioned first information may be configured in the control device by the relevant person.
In some embodiments, when the server fails, the control device sends first information including data instructing the server to perform the repair of the failure to the server, where the data instructing the server to perform the repair of the failure is required to correspond to a current failure of the server.
After the server is started, if a fault occurs in the stable operation process, the server can send fault information to the control equipment so as to inform related personnel to perform corresponding processing in time, and the fault information is used for indicating that the server fails.
Alternatively, the control device may also periodically detect the server to determine whether the server has failed.
And S12, determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server.
Alternatively, the plurality of services supported by the server may include a service for a terminal device connected to the server, and may also include a service for an application installed in the terminal device, for example, a download service, a search service, a message transmission and reception service, and the like.
Optionally, each of the plurality of services supported by the server has a unique service identification.
Optionally, in S12, determining a corresponding target service according to the first information includes:
acquiring a target identifier for indicating the target service in the first information;
and determining the target service corresponding to the target identifier according to the target identifier.
Optionally, the determining, according to the target identifier, the target service corresponding to the target identifier includes:
acquiring a plurality of service identifiers corresponding to a plurality of services supported by the server;
and determining the service corresponding to the service identifier which is the same as the target identifier in the service identifiers as the target service corresponding to the target identifier.
Alternatively, the target identifier may be configured by a person involved in determining the first information.
S13, closing the target service.
Optionally, in S13, after the target service is closed, the server stops providing the target service to the terminal device, but may normally provide the terminal device with a service other than the target service.
Optionally, the method further comprises:
determining a number of users using the target service; and when the number of the users exceeds the preset number, determining to trigger to close the target service, and when the number of the users does not exceed the preset number, closing all the services.
In some optional embodiments of the present application, in S13, the closing the target service includes:
the first information is injected into a storage space corresponding to the target service in a local memory;
and closing the target service according to the first information after the storage space is injected.
S14, carrying out corresponding processing on the target service based on the first information.
In some optional embodiments of the present application, referring to fig. 2b, in S14, the corresponding processing is performed on the target service based on the first information, including steps S141-S142:
s141, the first information is injected into a storage space corresponding to the target service in a local memory.
Optionally, the local memory is a readable and writable memory.
Optionally, the local memory of the server includes a plurality of storage spaces, and each storage space in the plurality of storage spaces corresponds to a service and is used for storing data required by the corresponding service.
S142, performing corresponding processing on the target service based on the first information after being injected into the storage space.
Optionally, in S142, the target service is correspondingly processed based on the first information after being injected into the storage space, including S1421-S1422 (not shown in the figure):
S1421, a first evaluation result corresponding to the first information is obtained, and the first evaluation result is used for determining whether the first information has feasibility.
In some embodiments, the server may further be configured to evaluate the feasibility of the first information and determine a first evaluation result, where the first evaluation result may be specifically obtained by testing the server based on the data content in the first information.
In other embodiments, the foregoing first information may alternatively be sent by the control device or the server to the standby server, where the foregoing first evaluation result may be obtained by the standby server based on the data content test operation in the first information. The configuration of the standby server may be the same as that of the server, and the standby server is used for evaluating the feasibility of the first information, determining a first evaluation result, and sending the first evaluation result to the server.
The first information has feasibility, namely the first information can enable the server to realize the function corresponding to the first information, wherein when the first information comprises data for indicating the server to repair the fault, the function corresponding to the first information is to repair the fault; when the first information comprises data for indicating the server to perform service upgrade, the function corresponding to the first information is service upgrade; when the first information comprises data for indicating the server to delete the corresponding function, the function corresponding to the first information is a deleting function.
S1422, when the first evaluation result indicates that the first information has feasibility, performing corresponding processing on the target service based on the first information after being injected into the storage space.
Optionally, when the first information after the storage space is injected includes data for instructing the server to perform fault repair, the processing the target service based on the first information after the storage space is injected includes: performing fault repair on the target service based on the data for indicating the server to perform fault repair;
optionally, when the first information after the storage space is injected includes data for instructing the server to perform service upgrade, the processing the target service based on the first information after the storage space is injected includes: service upgrading is carried out on the target service based on the data for instructing the server to carry out service upgrading;
optionally, when the first information after the storage space is injected includes data for instructing the server to perform service upgrade, the processing the target service based on the first information after the storage space is injected includes: and deleting the corresponding function of the target service based on the data for instructing the server to delete the corresponding function.
The scheme provided by the application can receive first information, wherein the first information comprises at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions; determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server; and closing the target service, and further carrying out corresponding processing on the target service based on the first information. When the fault repair, service upgrading and corresponding function deletion are required to be carried out on the server, only the corresponding target service is closed to carry out corresponding processing on the target service, and all the services supported by the server are not required to be closed, so that the services except the target service in the server normally provide corresponding services for the terminal equipment using the services in the server, and the efficiency of the server for providing services for the terminal equipment using the services in the server is improved.
In some alternative embodiments of the present application, referring to fig. 2c, the method further comprises steps S21-S23:
S21, receiving second information, wherein the second information comprises data for instructing the server to add new services;
alternatively, the data for instructing the server to add a new service may be data required for adding a new service, and may be configured by a relevant person in a control device, and sent to the server by the control device.
Optionally, the data for instructing the server to add a new service includes a service identifier corresponding to the new service, where the service identifier corresponding to the new service may be configured by a relevant person.
S22, the second information is injected into a local memory;
s23, performing corresponding processing based on the second information after being injected into the local memory.
Optionally, in S23, a corresponding process is performed based on the second information after being injected into the local memory, including:
acquiring a second evaluation result corresponding to the second information, wherein the second evaluation result is used for indicating whether the second information has feasibility or not; the second information has feasibility, namely the second information can enable the server to provide new services to be added corresponding to the second information;
and adding the new service based on the second information after being injected into the local memory under the condition that the second evaluation result indicates that the second information has feasibility.
In some embodiments, the server may further be configured to evaluate the feasibility of the second non-information and determine a second evaluation result, where the second evaluation result may be specifically obtained by the server based on the data content test operation in the second information.
In other embodiments, the aforementioned second information may also be sent by the control device or the server to the standby server, where the aforementioned second evaluation result may be obtained by the standby server based on the second information test operation. The configuration of the standby server may be the same as that of the server, and the standby server is further configured to evaluate feasibility of the second information, determine a second evaluation result, and send the second evaluation result to the server.
In some alternative embodiments of the present application, before closing the target service, the method further comprises steps S31-S32, see fig. 2 d:
s31, acquiring a first data volume of the received first information;
s32, determining whether the residual storage space corresponding to the target service is smaller than the required space corresponding to the first data volume, if yes, sending first prompt information to the control equipment, and if not, executing the closing of the target service. The first prompt information is used for prompting that the residual storage space corresponding to the target service is insufficient.
Optionally, before executing S32 to determine whether the remaining storage space corresponding to the target service is smaller than the required space corresponding to the first data amount, the received first information may be temporarily stored in a temporary storage space, so as not to occupy the storage space of the local memory.
In some optional embodiments of the present application, before injecting the second information into the local memory, as shown in fig. 2e, the method further includes steps S41-S42:
s41, acquiring a second data volume of the received second information;
s42, determining whether the residual storage space of the local memory is smaller than the required space corresponding to the second data amount, if yes, sending second prompt information to the control equipment, and if not, executing the second information injection into the local memory.
Alternatively, the remaining storage space of the local memory may be determined by searching for a memory hole.
Optionally, before determining whether the remaining storage space of the local memory is smaller than the required space corresponding to the second data amount in S42, the received second information may be temporarily stored in a temporary storage space, without occupying the storage space of the local memory.
Optionally, the second prompting message may display a word such as "the local storage space is insufficient and the data cannot be injected" so as to remind related personnel to clear or expand the storage space of the local memory of the server.
In some optional embodiments of the present application, the method further comprises: and determining whether the residual storage space of the local memory is smaller than a target preset value, if so, sending third prompt information to the control equipment, and if not, not processing, wherein the third prompt information is used for indicating that the local memory space is insufficient.
Optionally, the remaining storage space of the local memory may be queried based on a preset query period to determine whether the remaining storage space of the local memory is less than a target preset value.
Optionally, the third prompting message may be, for example, "the remaining space is insufficient", so as to ensure that the server runs smoothly, please perform the memory cleaning "and display the third prompting message in the control device, so as to remind related personnel to clean the memory, and ensure that the server runs smoothly.
In some optional embodiments of the present application, the server may provide a service for fault scenario simulation, as shown in fig. 2f, and the method further includes steps S51-S53:
S51, receiving fault simulation prompt information, wherein the fault simulation prompt information is used for indicating a server to simulate a corresponding target fault scene.
Optionally, the fault simulation prompt information may be sent by a target device, where the target device is connected to the server through a wired or wireless network. The target device may be any device based on any protocol such as TCP, UDP, COAP, LWM M, for example, may be a smart phone, a tablet computer, or other devices with an embedded internet of things communication module, where the embedded internet of things communication module may include at least one of the following: loRa module, loRaWAN module, GPRS data transmission module, NB-IoT module, etc.
Optionally, before receiving the fault simulation prompt information in S51, the method further includes:
when receiving detection information sent by target equipment, determining corresponding feedback information based on the detection information, wherein the detection information is used for detecting the network connection state between the corresponding target equipment and a server, and the feedback information is used for feeding back a detection result corresponding to the detection information.
And sending the feedback information to target equipment corresponding to the detection information.
Alternatively, the detection information may be an AT instruction for detecting a network connection state.
Optionally, determining the corresponding feedback information based on the detection information includes:
acquiring a preset first corresponding relation, wherein the preset first corresponding relation comprises detection information and corresponding feedback information;
and determining the corresponding feedback information based on the preset first corresponding relation and the detection information.
S52, simulating the target fault scene according to the fault simulation prompt information.
Optionally, the fault simulation prompt information includes a fault simulation identifier, and in S52, the target fault scenario is simulated according to the fault simulation prompt information, including S521-S523 (not shown in the figure):
s521, acquiring a preset second corresponding relation, wherein the preset second corresponding relation comprises a fault simulation identifier and a fault scene corresponding to the fault simulation identifier;
s522, determining a corresponding target fault scene based on the fault simulation identification included in the fault simulation prompt information and the preset second corresponding relation;
s523, simulating a corresponding target fault scene.
Specifically, in S522, determining the target fault scenario based on the fault simulation identifier included in the fault simulation prompt information and the preset second correspondence includes:
And determining a fault scene corresponding to the fault simulation identifier included in the fault simulation prompt information in the preset second corresponding relation as the target fault scene.
Optionally, the preset second corresponding relationship may include at least one fault simulation identifier and a corresponding fault scenario thereof.
Alternatively, the fault simulation identification may be a specific fault type.
And S53, when the situation that the test information sent by the target equipment is received under the target fault scene is detected, feeding back a target test result corresponding to the test information to the target equipment.
Optionally, in S53, when it is detected that, in the target fault scenario, test information sent by a target device is received, a target test result corresponding to the test information is fed back to the target device, where the steps include steps S531-S533 (not shown in the figure):
s531, acquiring a preset third corresponding relation corresponding to the target fault scene, wherein the preset third corresponding relation comprises test information and a test result corresponding to the test information under the target fault scene;
optionally, the preset third corresponding relationship may include at least one piece of test information and a corresponding test result thereof.
Optionally, the preset third corresponding relationship may be obtained by constructing a server fault scenario (target fault scenario) in advance and detecting reply data.
Optionally, the preset third corresponding relationship may also be configured by a related person.
S532, determining a target test result corresponding to the received test information based on the preset third corresponding relation and the received test information;
specifically, in S532, determining, based on the preset third correspondence and the received test information, a target test result corresponding to the received test information includes:
taking a test result corresponding to the test information which is the same as the received test information in the preset third corresponding relation as a target test result corresponding to the received test information;
s533, feeding back a target test result corresponding to the received test information to the target device.
Optionally, the first correspondence, the second correspondence, and the third correspondence may be injected into the readable and writable memory of the server through a control device, and the fault scene simulation is implemented through filtering, screening, and modifying, without completely encapsulating a program in the server to execute software or additionally develop a debugging plug-in of a web server, develop a configuration file function, and the like, and reproduce a fault scene of the server. The memory is injected, the reply data of the server is modified by one key, so that the target equipment can quickly obtain a plurality of test results by sending test information for a plurality of times, a tester can analyze according to the plurality of test results, the test time and the test cost are saved, the repairable modification of the fault scene is higher, and the efficiency of the fault test of the server is effectively improved.
Further, the following description of the present solution is further provided by a flow chart when performing fault repair on the server, and in particular, as shown in fig. 3, if the server determines that a fault occurs during stable operation of the server, the manager may detect the fault, or the server may send fault information to the control device, so as to notify the manager, so that the manager generates first information for the fault, where the first information may include data for instructing the server to perform fault repair. After receiving the first information, the server acquires a target identifier for indicating a target service in the first information, determines the target service according to the target identifier, acquires the data volume of the received first information, determines whether the residual storage space corresponding to the target service is smaller than the required space corresponding to the first data volume, if yes, sends first prompt information to the control equipment, if not, closes the target service, injects the first information into the storage space corresponding to the target service in the local memory, and further carries out corresponding processing based on the first information after being injected into the storage space.
Further, the following further describes the scheme by means of a flow chart for processing the second information, specifically, as shown in fig. 4, in the stable running process, if the second information is received, the server obtains the second data amount of the received second information, determines whether the remaining storage space of the local memory is smaller than the required space corresponding to the second data amount, if yes, sends the second prompt information to the control device, if not, injects the second information into the local memory, and performs corresponding processing based on the second information after the second information is injected into the storage space.
Further, the following description of the present solution by a flow chart of fault test is further provided, specifically, referring to fig. 5, the target device may send detection information to the server, and after receiving the detection information, the server obtains a preset first corresponding relationship, determines feedback information based on the preset first corresponding relationship and the detection information, and sends the feedback information to the target device. And the target equipment receives feedback information, which indicates that the network connection state between the target equipment and the server is a connected state, and data interaction can be performed. The method comprises the steps that a target device sends fault simulation prompt information to a server, the server determines and simulates a target fault scene based on the fault simulation prompt information and the acquired preset second relation, and in the target fault scene, if test information sent by the target device is received, a target test result is determined based on the test information and the acquired preset third corresponding relation and is sent to the target device for a tester to record.
In an embodiment of the present application, by receiving first information, the first information includes at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions; determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server; and closing the target service, and further carrying out corresponding processing on the target service based on the first information. When the fault repair, service upgrading and corresponding function deletion are required to be carried out on the server, only the corresponding target service is closed to carry out corresponding processing on the target service, and all the services supported by the server are not required to be closed, so that the services except the target service in the server normally provide corresponding services for the terminal equipment using the services in the server, and the efficiency of the server for providing services for the terminal equipment using the services in the server is improved.
FIG. 6 is a schematic diagram of a data processing apparatus according to an exemplary embodiment of the present application; wherein the data processing apparatus comprises:
a receiving module, configured to receive first information, where the first information includes at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
the determining module is used for determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
a closing module for closing the target service;
and the processing module is used for carrying out corresponding processing on the target service based on the first information.
In some optional embodiments of the present application, the closing module, when configured to close the target service, is specifically configured to:
the first information is injected into a storage space corresponding to the target service in a local memory;
and closing the target service according to the first information after the storage space is injected.
In some optional embodiments of the present application, the processing module is specifically configured to, when configured to perform corresponding processing on the target service based on the first information:
The first information is injected into a storage space corresponding to the target service in a local memory;
and carrying out corresponding processing on the target service based on the first information after the storage space is injected.
In some optional embodiments of the present application, the data processing apparatus is further configured to:
receiving second information, wherein the second information comprises data for instructing the server to add a new service;
injecting the second information into a local memory;
and carrying out corresponding processing based on the second information after being injected into the local memory.
In some optional embodiments of the present application, the data processing apparatus is further configured to:
acquiring a first data volume of the received first information;
and determining whether the residual storage space corresponding to the target service is smaller than the required space corresponding to the first data volume, if so, sending first prompt information to control equipment, and if not, executing the closing of the target service.
In some optional embodiments of the present application, the data processing apparatus is further configured to:
acquiring a second data amount of the received second information;
and determining whether the residual storage space of the local memory is smaller than the required space corresponding to the second data amount, if so, sending second prompt information to the control equipment, and if not, executing the second information injection into the local memory.
In some optional embodiments of the present application, the data processing apparatus is further configured to:
and determining whether the residual storage space of the local memory is smaller than a target preset value, if so, sending third prompt information to the control equipment, wherein the third prompt information is used for indicating that the local memory space is insufficient.
In some optional embodiments of the present application, the data processing apparatus is further configured to:
receiving fault simulation prompt information, wherein the fault simulation prompt information is used for indicating a server to simulate a corresponding target fault scene;
simulating the target fault scene according to the fault simulation prompt information;
when detecting that the test information sent by the target equipment is received under the target fault scene, feeding back a target test result corresponding to the test information to the target equipment.
It should be understood that apparatus embodiments and method embodiments may correspond with each other and that similar descriptions may refer to the method embodiments. To avoid repetition, no further description is provided here. Specifically, the apparatus may perform the above method embodiments, and the foregoing and other operations and/or functions of each module in the apparatus are respectively for corresponding flows in each method in the above method embodiments, which are not described herein for brevity.
The apparatus of the embodiments of the present application are described above in terms of functional modules in conjunction with the accompanying drawings. It should be understood that the functional module may be implemented in hardware, or may be implemented by instructions in software, or may be implemented by a combination of hardware and software modules. Specifically, each step of the method embodiments in the embodiments of the present application may be implemented by an integrated logic circuit of hardware in a processor and/or an instruction in software form, and the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented as a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. Alternatively, the software modules may be located in a well-established storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, and the like. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with hardware, performs the steps in the above method embodiments.
Fig. 7 is a schematic block diagram of an electronic device provided in an embodiment of the present application, which may include:
a memory 301 and a processor 302, the memory 301 being for storing a computer program and for transmitting the program code to the processor 302. In other words, the processor 302 may call and run a computer program from the memory 301 to implement the methods in the embodiments of the present application.
For example, the processor 302 may be configured to perform the above-described method embodiments according to instructions in the computer program.
In some embodiments of the present application, the processor 302 may include, but is not limited to:
a general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
In some embodiments of the present application, the memory 301 includes, but is not limited to:
volatile memory and/or nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DR RAM).
In some embodiments of the present application, the computer program may be partitioned into one or more modules that are stored in the memory 301 and executed by the processor 302 to perform the methods provided herein. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions, which are used to describe the execution of the computer program in the electronic device.
As shown in fig. 7, the electronic device may further include:
a transceiver 303, the transceiver 303 being connectable to the processor 302 or the memory 301.
The processor 302 may control the transceiver 303 to communicate with other devices, and in particular, may send information or data to other devices, or receive information or data sent by other devices. The transceiver 303 may include a transmitter and a receiver. The transceiver 303 may further include antennas, the number of which may be one or more.
It will be appreciated that the various components in the electronic device are connected by a bus system that includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a computer, enables the computer to perform the method of the above-described method embodiments. Alternatively, embodiments of the present application also provide a computer program product comprising instructions which, when executed by a computer, cause the computer to perform the method of the method embodiments described above.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. For example, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of data processing, comprising:
receiving first information, the first information comprising at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
Determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
closing the target service;
and carrying out corresponding processing on the target service based on the first information.
2. The method of claim 1, wherein the shutting down the target service comprises:
the first information is injected into a storage space corresponding to the target service in a local memory;
and closing the target service according to the first information after the storage space is injected.
3. The method of claim 1, wherein the processing the target service based on the first information comprises:
the first information is injected into a storage space corresponding to the target service in a local memory;
and carrying out corresponding processing on the target service based on the first information after being injected into the storage space.
4. The method according to claim 1, wherein the method further comprises:
receiving second information, wherein the second information comprises data for instructing the server to add a new service;
injecting the second information into a local memory;
And carrying out corresponding processing based on the second information after being injected into the local memory.
5. The method according to claim 1, wherein the method further comprises:
acquiring a first data volume of the received first information;
and determining whether the residual storage space corresponding to the target service is smaller than the required space corresponding to the first data volume, if so, sending first prompt information to control equipment, and if not, executing the closing of the target service.
6. The method according to claim 4, wherein the method further comprises:
acquiring a second data amount of the received second information;
and determining whether the residual storage space of the local memory is smaller than the required space corresponding to the second data amount, if so, sending second prompt information to the control equipment, and if not, executing the second information injection into the local memory.
7. The method according to claim 1, wherein the method further comprises:
and determining whether the residual storage space of the local memory is smaller than a target preset value, if so, sending third prompt information to the control equipment, wherein the third prompt information is used for indicating that the local memory space is insufficient.
8. The method according to claim 1, wherein the method further comprises:
receiving fault simulation prompt information, wherein the fault simulation prompt information is used for indicating a server to simulate a corresponding target fault scene;
simulating the target fault scene according to the fault simulation prompt information;
when detecting that the test information sent by the target equipment is received under the target fault scene, feeding back a target test result corresponding to the test information to the target equipment.
9. A data processing apparatus, comprising:
a receiving module, configured to receive first information, where the first information includes at least one of the following data contents: the system comprises data for indicating the server to perform fault repair, data for indicating the server to perform service upgrade and data for indicating the server to perform deletion of corresponding functions;
the determining module is used for determining a corresponding target service according to the first information, wherein the target service is at least one service in a plurality of services supported by the server;
a closing module for closing the target service;
and the processing module is used for carrying out corresponding processing on the target service based on the first information.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-8 via execution of the executable instructions.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1-8.
CN202211715324.4A 2022-12-28 2022-12-28 Data processing method, device, electronic equipment and storage medium Pending CN116016649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211715324.4A CN116016649A (en) 2022-12-28 2022-12-28 Data processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211715324.4A CN116016649A (en) 2022-12-28 2022-12-28 Data processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116016649A true CN116016649A (en) 2023-04-25

Family

ID=86026354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211715324.4A Pending CN116016649A (en) 2022-12-28 2022-12-28 Data processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116016649A (en)

Similar Documents

Publication Publication Date Title
CN105303112B (en) The detection method and device of component call loophole
US8655336B1 (en) Remote issue logging and reporting of mobile station issues and diagnostic information to manufacturer
CN105607935B (en) Application program updating method, terminal and server
EP2912863B1 (en) Cost optimization for firmware updates for globally mobile machine-to-machine devices
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
CN110955899B (en) Safety test method, device, test equipment and medium
CN105074718A (en) On-line behavioral analysis engine in mobile device with multiple analyzer model providers
US20160283356A1 (en) Event-driven automation testing for mobile devices
CN111125175B (en) Service data query method and device, storage medium and electronic device
CN104376266A (en) Determination method and device for security level of application software
EP4066441B1 (en) Management of iot devices in wireless communication networks
CN106339273A (en) Application program restoration method, terminal and server
CN110196804B (en) Service testing method and device, storage medium and electronic device
CN104580085A (en) Business data updating method, system, client side and server
CN104572318A (en) Report information obtaining method, device, equipment and system
CN103634935B (en) WPS (Wi-Fi protected setup) or QSS (quick secure setup)-based network accessing method and device
CN113778879B (en) Interface fuzzy test method and device
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
CN108345533A (en) A kind of application program adjustment method, equipment and server
CN103686821A (en) Control method for application program traffic statistics according to unique identification of mobile terminal
US8526938B1 (en) Testing mobile phone maintenance channel
CN104104701A (en) Online service configuration updating method and system
CN105528546A (en) Vulnerability mining method and device and electronic equipment
CN106293821B (en) Method and device for acquiring and transmitting application program data and running application program
CN116016649A (en) Data processing method, device, electronic equipment and storage 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