CN116450915A - Application degradation method, device, electronic equipment and storage medium - Google Patents

Application degradation method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116450915A
CN116450915A CN202310370104.0A CN202310370104A CN116450915A CN 116450915 A CN116450915 A CN 116450915A CN 202310370104 A CN202310370104 A CN 202310370104A CN 116450915 A CN116450915 A CN 116450915A
Authority
CN
China
Prior art keywords
application
interface
server
service
log data
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
CN202310370104.0A
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.)
Shanghai Juhuotong E Commerce Co ltd
Original Assignee
Shanghai Juhuotong E Commerce 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 Shanghai Juhuotong E Commerce Co ltd filed Critical Shanghai Juhuotong E Commerce Co ltd
Priority to CN202310370104.0A priority Critical patent/CN116450915A/en
Publication of CN116450915A publication Critical patent/CN116450915A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application degrading method, device, electronic equipment and storage medium are disclosed. The method specifically comprises the following steps: acquiring a webpage request of a client; determining interface log data of a server according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request; and degrading the target application of the server side according to the interface log data, and returning a service degradation prompt to the client side. According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.

Description

Application degradation method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application degradation method, an apparatus, an electronic device, and a storage medium.
Background
With the development of internet and computer technology, more and more users begin to upgrade industry by adopting internet and computer technology, so as to improve the efficiency and quality of production and life. Meanwhile, due to the large number of computers and the Internet, demands for software and hardware are also rising.
Resource redemption or occupation can easily occur during the interaction process of the server and the client and the running process of the application. Therefore, in the use process of the server and the client, a fault tolerance mechanism needs to be made to cope with the situation of resource shortage.
Disclosure of Invention
The application degradation method, device, electronic equipment and storage medium are provided to improve service robustness and ensure normal operation of a server and a client.
According to a first aspect of the present application, there is provided an application downgrading method, applied to a server, the method comprising:
acquiring a webpage request of a client;
determining interface log data of a server according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request;
and degrading the target application of the server side according to the interface log data, and returning a service degradation prompt to the client side.
According to a second aspect of the present application, there is provided an application downgrading method, applied to a client, the method comprising:
sending a webpage request to a server side; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; degrading the target application of the server according to the interface log data;
and receiving a service degradation prompt returned by the server side.
According to a third aspect of the present application, there is provided an application downgrading apparatus, applied to a server side, including:
the request acquisition module is used for acquiring a webpage request of the client;
the log determining module is used for determining interface log data of the server side according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request;
and the application degradation module is used for degrading the target application of the server according to the interface log data and returning a service degradation prompt to the client.
According to a fourth aspect of the present application, there is provided an application downgrading apparatus, applied to a client, including:
the request sending module is used for sending a webpage request to the server side; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; degrading the target application of the server according to the interface log data;
and the prompt receiving module is used for receiving the service degradation prompt returned by the server side.
According to a fifth aspect of the present application, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the application downgrading method according to embodiments of the first and/or second aspect of the present application.
According to a sixth aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform an application downgrading method according to an embodiment of the first and/or second aspect of the present application.
According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an application downgrading method provided in accordance with an embodiment of the present application;
FIG. 2 is a flow chart of an application downgrading method provided in accordance with a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an application degradation device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an application downgrading apparatus according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device implementing an application downgrading method according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures 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 implemented in sequences other than those illustrated or otherwise described herein. 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.
Example 1
Fig. 1 is a flowchart of an application downgrading method provided in an embodiment of the present application, where the embodiment may be suitable for application limitation when server resources are intense, and the method may be performed by an application downgrading device, which may be implemented in hardware and/or software, and may be applied to a server, where the application downgrading device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, acquiring a webpage request of the client.
The client may be an application of a terminal used by a user (not only a hardware layer but also software), for example, may be a terminal device such as a mobile phone or a computer, or may be an application program on the terminal device. The web page request may be a service request sent by the client through an application program or a browser, etc., so as to request the server to give a corresponding service response.
It should be noted that, with the widespread use of networks, more and more applications are changed from CS framework (Client/Server) to BS framework (Browser/Server), which reduces the complexity of user usage, but requires higher application requirements, and requires running maintenance Server resources, and in case of shortage of Server resources, some applications are properly selected to be downgraded or limited.
S120, determining interface log data of the server according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request.
The interface service of the web page request may be a web page service of each interface that the server may provide. Query-per-second (QPS) is a measure of how much traffic a particular query server handles in a specified time. The CPU usage information may be a usage condition of the CPU, and may include, for example, a CPU occupancy rate, an occupancy time, and the like; similarly, the memory usage information may be a memory usage, and may include, for example, a memory occupancy rate.
And judging according to the data to determine whether normal service can be provided, whether server resources can be operated normally, and recording interface log data when the interface provides service according to the follow-up action of the server. The interface log data is the log data recorded when each interface of the server provides service.
In an optional implementation manner, the determining the interface log data of the server according to the query rate per second, the CPU usage information and the memory usage information of the interface service in the web page request may include: when the query rate per second, the CPU use information and the memory use information all accord with preset service conditions, determining that the service corresponding to the webpage request is normal service; and storing at least one of calling interface data, service access parameters, calling time points and calling time consumption corresponding to the normal service as interface log data.
The query rate, the CPU usage information and the memory usage information all need to be controlled, and the server can provide the service corresponding to the request under a certain preset service condition. Of course, each of the above data may have its corresponding preset service condition. For example, a threshold (e.g., 500 queries per second) may be set for the query rate per second by the relevant technician according to actual conditions and/or human experience, and when the threshold is exceeded, it may be determined that the current interface resources are heavily crowded and normal service cannot be provided. It should be noted that, when verifying the query rate QPS per second of the interface, if the QPS is found to exceed the preset limit, an information prompt (for example, a manner of sending a short message or the like) can be directly provided to an administrator at the server end, so that the administrator is timely reminded of paying attention to the state of the server end, and timely processing is performed.
Similarly, the occupation time threshold value, the occupation rate threshold value and the like of the CPU can be preset according to the CPU use information, for example, when the occupation time of the CPU exceeds 3 minutes or the occupation rate of the CPU exceeds 60%, the current interface resource occupation can be judged to be serious, and normal service can not be provided. For another example, a memory occupation threshold may be preset for the memory usage information, for example, when the memory occupation exceeds 80%, it is determined that the current interface resource occupation is serious, and normal service cannot be provided. That is, when the above data meets the preset service condition, it can be considered that the request corresponding to the web page application can be provided by the server side at present with normal service. Then, when the interface is called in the normal service state, the data record of the interface is needed, and the recorded data is stored as interface log data (which may be local or cloud, and the embodiment of the application is not limited). The recorded data comprise at least one of call interface data, service access parameters, call time points and call time consumption corresponding to the normal service.
It should be noted that, when the server end provides the service normally and the interface call returns normally, the service normal request technology may be added one cumulatively, so as to verify the interface condition when other subsequent requests call.
The query rate, the CPU use information and the memory use information in each second are used for judging whether the service corresponding to the webpage request is normal or not, and the occupation condition of the server side can be intuitively judged in an auxiliary mode, so that the state identification of the server side is facilitated, the accuracy of application degradation is further improved, and the stability of the server side is guaranteed.
And S130, degrading the target application of the server side according to the interface log data, and returning a service degradation prompt to the client side.
Wherein the target application may be an application that needs to be downgraded or current limited. It will be appreciated that the interface log data has been obtained in the foregoing steps, and from these interface log data, the situation that each application on the server side is invoked can be analyzed. Different call cases illustrate different importance levels for different applications. The screening of the target application may be sequentially performed, at least one application with weak importance is taken as the target application, and service degradation or current limiting is performed, where any degradation and/or current limiting method in the related art may be used, and the embodiments of the present application are not limited again. And simultaneously, feeding back prompt information of service degradation or service throttling for the client.
In an optional implementation manner, the degrading, according to the interface log data, the target application at the server side may include: determining the calling priority of each application at the server side according to the interface log data; determining a target application according to the calling priority; and degrading the target application.
The call priority may be a priority of reserving services for each application at the server interface, that is, an application with a high call priority will be more easily reserved, and an application with a low call priority will be more easily downgraded or limited. The recorded interface log data (i.e. history record) is counted and analyzed to determine different conditions of each application at each server end to be called, which applications are easy to call or frequently call can be intuitively reflected, so that the applications which are easier to call can be directly given higher call priority. And taking the application with lower call priority as a target application, and degrading the target application under the condition that server-side resource is squeezed. It can be appreciated that at least one target application can be multiple, and multiple target applications with lower call priority can be subjected to current limiting when the application is subjected to degradation and current limiting, so that other applications with higher call priority which are more important can normally provide services.
In an optional embodiment, the determining the call priority of each application at the server side according to the interface log data may include: determining the use frequency and the call quantity of each application at a server side according to the interface log data; and determining call priority according to the use frequency and the call quantity.
The frequency of use may be the frequency at which each application is invoked; the amount of call may be the number of times an application is called or executed. And analyzing various contents in the interface log data, and obtaining the called frequency corresponding to different applications. Of course, the interface log data may include at least one of call interface data, service access parameters, call time points, and call time consumption. . According to the called frequency of each application, the service interfaces corresponding to each application can be ordered, and the applications with more called frequencies are given higher call priority, and similarly, the applications with less called frequencies are given lower call priority. According to the different calling conditions of different applications, calling priorities are given to the applications, and the applications are demoted or limited according to the priority conditions, so that the availability of main applications (applications with high calling priorities) can be ensured under the conditions of server-side resource shortage or network attack and the like, and the stability of the server-side is ensured to a certain extent due to the fact that the demotion, the limiting or the offline parts are unimportant applications.
According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.
Example two
Fig. 2 is a flowchart of an application downgrading method provided in a second embodiment of the present application, where the method may be performed by an application downgrading device, and may be applied to a client, and the application downgrading device may be implemented in hardware and/or software, and the application downgrading device may be configured in an electronic device. As shown in fig. 2, the method includes:
s210, sending a webpage request to a server side; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; and degrading the target application of the server side according to the interface log data.
The interface service of the web page request may be a web page service of each interface that the server may provide. The rate of queries per second is a measure of how much traffic a particular query server is handling in a specified time. The CPU usage information may be a usage condition of the CPU, and may include, for example, a CPU occupancy rate, an occupancy time, and the like; similarly, the memory usage information may be a memory usage, and may include, for example, a memory occupancy rate. The interface log data may be log data recorded when each interface of the server provides a service.
The web page request sent by the client to the server triggers the server to perform a series of operations. And determining whether normal service can be provided, whether server resources can be operated normally, and the like, and recording interface log data when the interface provides service according to the follow-up action of the server. The server side can screen each application according to the interface log data to determine target applications which can be degraded and/or limited in current, the applications do not belong to main applications, and in order to prevent the server resources of the main applications from being crowded, the operations of degradation, current limiting or offline are performed.
S220, receiving a service degradation prompt returned by the server side.
After service degradation is performed on each target application, the server side feeds the information back to the client side for performing the webpage service application, so that a user at the client side can be prompted.
According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.
Example III
Fig. 3 is a schematic structural diagram of an application degradation device according to a third embodiment of the present application. The apparatus may be applied to a server side, as shown in fig. 3, the apparatus 300 includes:
a request acquisition module 310, configured to acquire a web page request of a client;
the log determining module 320 is configured to determine interface log data of the server according to the query rate per second, the CPU usage information, and the memory usage information of the interface service in the web page request;
and the application downgrade module 330 is used for downgrade the target application at the server side according to the interface log data and returning a service downgrade prompt to the client side.
According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.
In an alternative embodiment, the application downgrade module 330 may include:
the priority determining unit is used for determining the calling priority of each application at the server side according to the interface log data;
the application determining unit is used for determining a target application according to the calling priority;
and the application degradation unit is used for degrading the target application.
In an alternative embodiment, the priority determining unit may include:
the call data determining subunit is used for determining the use frequency and the call quantity of each application at the server side according to the interface log data;
and the call priority determining subunit is used for determining the call priority according to the use frequency and the call quantity.
In an alternative embodiment, the interface log data includes at least one of call interface data, service access parameters, call time points, and call time consumption.
In an alternative embodiment, the log determining module 320 may include:
the normal service determining unit is used for determining that the service corresponding to the webpage request is normal service when the query rate per second, the CPU use information and the memory use information all accord with preset service conditions;
the log data storage unit is used for storing at least one of calling interface data, service access parameters, calling time points and calling time consumption corresponding to the normal service as interface log data.
The application degradation device provided by the embodiment of the application can execute the application degradation method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the application degradation methods.
Example IV
Fig. 4 is a schematic structural diagram of an application degradation device according to a third embodiment of the present application. The apparatus may be applied to a client, as shown in fig. 4, the apparatus 400 includes:
a request sending module 410, configured to send a web page request to a server; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; degrading the target application of the server according to the interface log data;
the prompt receiving module 420 is configured to receive a service degradation prompt returned by the server.
According to the technical scheme, the target applications which can be degraded under the condition of the shortage of server-side resources are screened through determining the interface log data of the interface service corresponding to the webpage request, and the usability of main applications can be effectively ensured, the stability of the service provided by the server side is improved, and the user experience is ensured through degrading and/or limiting the target applications.
The application degradation device provided by the embodiment of the application can execute the application degradation method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the application degradation methods.
Example five
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as applying a downgrade method.
In some embodiments, the application downgrading method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the application downgrading method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the application downgrading method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solutions of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. An application degradation method, applied to a server, comprising:
acquiring a webpage request of a client;
determining interface log data of the server according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request;
and degrading the target application of the server according to the interface log data, and returning a service degradation prompt to the client.
2. The method according to claim 1, wherein the degrading the target application at the server according to the interface log data includes:
determining the calling priority of each application of the server according to the interface log data;
determining the target application according to the call priority;
and degrading the target application.
3. The method according to claim 2, wherein determining the call priority of each application at the server side according to the interface log data comprises:
determining the use frequency and the call quantity of each application of the server according to the interface log data;
and determining the calling priority according to the using frequency and the calling quantity.
4. The method of claim 3, wherein the interface log data includes at least one of call interface data, service access parameters, call time points, and call time elapsed.
5. The method according to claim 4, wherein the determining the interface log data of the server according to the query rate per second, the CPU usage information, and the memory usage information of the interface service in the web page request includes:
when the query rate per second, the CPU usage information and the memory usage information all accord with preset service conditions, determining that the service corresponding to the webpage request is normal service;
and storing at least one of calling interface data, service access parameters, calling time points and calling time consumption corresponding to the normal service as the interface log data.
6. An application downgrading method, applied to a client, the method comprising:
sending a webpage request to a server side; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; degrading the target application of the server according to the interface log data;
and receiving a service degradation prompt returned by the server side.
7. An application downgrading device applied to a server side, comprising:
the request acquisition module is used for acquiring a webpage request of the client;
the log determining module is used for determining interface log data of the server side according to the query rate per second, CPU use information and memory use information of the interface service in the webpage request;
and the application degradation module is used for degrading the target application of the server side according to the interface log data and returning a service degradation prompt to the client side.
8. An application downgrading apparatus, for application to a client, comprising:
the request sending module is used for sending a webpage request to the server side; the server determines interface log data of the server according to at least one of the query rate per second, CPU use information and memory use information of the interface service in the webpage request; degrading the target application of the server according to the interface log data;
and the prompt receiving module is used for receiving the service degradation prompt returned by the server side.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the application downgrading method according to any of claims 1-5 and/or to perform the application downgrading method according to claim 6.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the application downgrading method according to any of claims 1-5 and/or the application downgrading method according to claim 6 when executed.
CN202310370104.0A 2023-04-06 2023-04-06 Application degradation method, device, electronic equipment and storage medium Pending CN116450915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310370104.0A CN116450915A (en) 2023-04-06 2023-04-06 Application degradation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310370104.0A CN116450915A (en) 2023-04-06 2023-04-06 Application degradation method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116450915A true CN116450915A (en) 2023-07-18

Family

ID=87125052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310370104.0A Pending CN116450915A (en) 2023-04-06 2023-04-06 Application degradation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116450915A (en)

Similar Documents

Publication Publication Date Title
CN112559182B (en) Resource allocation method, device, equipment and storage medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN115426287B (en) System monitoring and optimizing method and device, electronic equipment and medium
CN114327918B (en) Method and device for adjusting resource amount, electronic equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN113676531B (en) E-commerce flow peak clipping method and device, electronic equipment and readable storage medium
CN116450915A (en) Application degradation method, device, electronic equipment and storage medium
CN115081413A (en) Report generation method, device, system, equipment and medium
CN116719621B (en) Data write-back method, device, equipment and medium for mass tasks
CN115442432B (en) Control method, device, equipment and storage medium
CN114461963A (en) Interface access method and device, electronic equipment and storage medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium
CN116028228A (en) Bitmap memory occupation detection method, device, equipment and storage medium
CN116633881A (en) Bandwidth control method, device, equipment and medium
CN115801763A (en) File transmission method and device, electronic equipment and storage medium
CN117785403A (en) Heartbeat task execution device for equipment, electronic equipment and storage medium
CN117539719A (en) Application operation monitoring method, device, equipment and medium
CN115129478A (en) Session creation method, device, server and storage medium
CN115965276A (en) Index set determination method and device, electronic equipment and storage medium
CN115907779A (en) Transaction proposal verification method, device, server and storage medium
CN116594737A (en) Processor resource allocation method and device, storage medium and electronic equipment
CN115967677A (en) Flow control method, device and equipment for service call and storage medium
CN118132799A (en) Video stream storage method, device, network video recording equipment and medium
CN117573267A (en) Application program data display method, system, electronic equipment and storage medium
CN116360717A (en) Management method, device, equipment and medium of line printer

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