CN111698131B - Information processing method, information processing apparatus, electronic device, and medium - Google Patents

Information processing method, information processing apparatus, electronic device, and medium Download PDF

Info

Publication number
CN111698131B
CN111698131B CN202010526056.6A CN202010526056A CN111698131B CN 111698131 B CN111698131 B CN 111698131B CN 202010526056 A CN202010526056 A CN 202010526056A CN 111698131 B CN111698131 B CN 111698131B
Authority
CN
China
Prior art keywords
virtual server
abnormal
virtual
response
present disclosure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010526056.6A
Other languages
Chinese (zh)
Other versions
CN111698131A (en
Inventor
宋童瑶
成理嘉
张严诺
王亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010526056.6A priority Critical patent/CN111698131B/en
Publication of CN111698131A publication Critical patent/CN111698131A/en
Application granted granted Critical
Publication of CN111698131B publication Critical patent/CN111698131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure provides an information processing method including: sending a detection request to a virtual server every other first preset time period; acquiring running information of the virtual server under the condition that a response from the virtual server indicates that the virtual server is abnormal, wherein the response is generated by the virtual server in response to the detection request; determining an abnormal reason causing the virtual server to be abnormal based on the operation information; and processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server. The present disclosure also provides an information processing apparatus, an electronic device, and a medium.

Description

Information processing method, information processing apparatus, electronic device, and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method, apparatus, electronic device, and medium.
Background
In the cloud computing era, managers are faced with thousands or even tens of thousands of virtual servers. However, when the degree of abnormality of the virtual server reaches a certain threshold, the virtual server is often destroyed automatically, and the operation information thereof disappears. The manager is difficult to find the virtual server abnormality in advance, determine the cause of the abnormality of the virtual server and process the abnormal virtual server in time so as to reduce the abnormal degree of the virtual server.
Disclosure of Invention
In view of the above, the present disclosure provides an information processing method, apparatus, electronic device, and medium.
One aspect of the present disclosure provides an information processing method, including: sending a detection request to a virtual server every other first preset time period; acquiring running information of the virtual server under the condition that a response from the virtual server indicates that the virtual server is abnormal, wherein the response is generated by the virtual server in response to the detection request; determining an abnormal reason causing the virtual server to be abnormal based on the operation information; and processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server.
According to an embodiment of the present disclosure, the obtaining of the operation information of the virtual server includes at least one of: calling a log downloading interface of the virtual server to acquire a log of the virtual server; acquiring a system file generated in the process of running a computer program by the virtual server from the virtual server; and calling a monitoring interface and a management interface of the virtual server to acquire the current running state of the virtual server from the monitoring interface and the management interface.
According to an embodiment of the present disclosure, determining, based on the operation information, a cause of an abnormality causing the virtual server to be abnormal includes at least one of: determining an abnormal reason according to the key characters recorded in the log; analyzing the execution stack of the thread in the system file and the use condition of the object in the stack of the Java virtual machine to determine the abnormal reason; and comparing the current running state with the historical running state to determine the reason of the abnormality.
According to an embodiment of the present disclosure, processing the virtual server based on the abnormality cause includes: determining the total number of other virtual servers which cannot provide services in a preset area where the virtual server is located; and deleting the load balancing address of the predetermined area under the condition that the total number is greater than a preset threshold value.
According to an embodiment of the present disclosure, processing the virtual server based on the abnormality cause includes: acquiring the current access amount and the access waiting time of the virtual server; generating a degradation request for degrading the service level of the virtual server and sending the degradation request to the electronic device under the condition that the current access amount is larger than a preset amount and the access waiting time is larger than a preset time; and in response to receiving the determination information of the electronic device for the degradation request, degrading the service level of the virtual server.
According to an embodiment of the disclosure, the method further comprises: after the virtual server is subjected to degradation operation, the running information of the virtual server is obtained again every second preset time period; and restoring the service level of the virtual server under the condition that the operation information of the virtual server acquired again is determined not to meet the degradation condition.
Another aspect of the present disclosure provides an information processing apparatus including: the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending detection requests to a virtual server every other first preset time period; a first obtaining module, configured to obtain operation information of the virtual server when a response from the virtual server indicates that the virtual server is abnormal, where the response is generated by the virtual server in response to the probe request; the first determining module is used for determining an abnormal reason causing the abnormal virtual server based on the running information; and the processing module is used for processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server.
According to an embodiment of the present disclosure, the first obtaining module is configured to perform at least one of the following operations: calling a log downloading interface of the virtual server to acquire a log of the virtual server; acquiring a system file generated in the process of running a computer program by the virtual server from the virtual server; and calling a monitoring interface and a management interface of the virtual server to acquire the current running state of the virtual server from the monitoring interface and the management interface.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates a system architecture suitable for implementing an information processing method according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method for processing a virtual server based on a cause of an anomaly according to an embodiment of the present disclosure;
FIG. 4 is a flow diagram that schematically illustrates a method for handling virtual servers based on a cause of an anomaly, in accordance with another embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram of a method for processing a virtual server based on a cause of an anomaly, according to another embodiment of the present disclosure;
FIG. 6 schematically shows a flow diagram of an information processing method according to another embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure; and
FIG. 8 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
An embodiment of the present disclosure provides an information processing method, including: sending a detection request to a virtual server every other first preset time period; acquiring running information of the virtual server under the condition that a response from the virtual server indicates that the virtual server is abnormal, wherein the response is generated by the virtual server in response to the detection request; determining an abnormal reason causing the virtual server to be abnormal based on the operation information; and processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server.
Fig. 1 schematically illustrates a system architecture 100 suitable for implementing an information processing method according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture includes a cloud platform 110 and a bastion machine 120.
The cloud platform 110 may include a plurality of virtual servers, and the bastion machine 120 may, for example, execute the information processing method according to the embodiment of the present disclosure to monitor the plurality of virtual servers in the cloud platform 110 and to schedule an abnormal virtual server in the plurality of virtual servers to process the abnormal virtual server.
An information processing method according to an embodiment of the present disclosure is described below with reference to fig. 2 to 6.
Fig. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the information processing method may include operations S201 to S204.
In operation S201, a probe request is transmitted to a virtual server every first preset time period.
According to embodiments of the present disclosure, the task of periodically sending probe requests may be set using the crontab command, for example, in a Unix or Linux operating system. The first preset time period may be, for example, a time period for sending a probe request, which is set by a person skilled in the art when writing a task script including a crottab command.
According to embodiments of the present disclosure, a virtual server may be, for example, a container.
In operation S202, in a case that a response from the virtual server indicates that the virtual server is abnormal, the operation information of the virtual server is acquired, wherein the response is generated by the virtual server in response to the probe request.
According to the embodiment of the disclosure, for example, after the container receives the probe request, the operation condition of the container can be detected to obtain the response to the probe request, and the response can be sent to the bastion machine.
In the event that the response from the container indicates that the container is abnormal, the fort machine may, for example, obtain operational information for the container.
According to an embodiment of the present disclosure, acquiring the operation information of the virtual server may include, for example, acquiring a log of the virtual server from a log download interface by calling the log download interface of the virtual server. Invoking the log download interface can obtain the application log, the system log, and the associated core file, and can download those logs to the bastion machine local. Alternatively, acquiring the operation information of the virtual server may include, for example, acquiring a system file generated during the operation of the computer program by the virtual server from the virtual server. The system files may include javacore files, heappump files, and the like, for example. For example, the bastion machine may simulate logging onto a cloud platform to capture javacore files and heappump files for a container. Alternatively, the obtaining of the operation information of the virtual server may include, for example, obtaining a current operation state of the virtual server from a monitoring interface and a management interface by calling the monitoring interface and the management interface of the virtual server. For example, a cloud platform cluster monitoring interface may be called to check CPU usage and memory usage in container details, and a middleware detail interface may be called to check real-time data source link pool usage, thread pool, JVM mcpu, JVM memory, JVM heap size, JVM GcCount, JVM GcTime, and JVM UpTime information. And calling the ETCD management interface to record the current service quantity and the quantity of service providers.
According to an embodiment of the disclosure, in the event that the reply response from the container indicates that the container is abnormal, the bastion machine may also send an http request to the container to verify whether the container can respond to the http request to determine whether the container can provide service to the user.
According to the embodiment of the disclosure, in the case that the response from the container indicates that the container is abnormal, the bastion machine can also send a probe request to the container again to determine whether the container is abnormal again, so that the error response caused by network jitter and other accidental events can be at least partially avoided.
In operation S203, an abnormality cause causing an abnormality of the virtual server is determined based on the operation information.
According to the embodiment of the present disclosure, the abnormality cause may be determined from a key character recorded in a log, for example. For example, the application log, the system log and the related core file stored locally in the bastion machine can be subjected to key character search, and when the key character is searched in the log, the abnormal reason can be determined according to the log record. For example, whether key characters representing container abnormality, such as 404, 403, error, etc., are included in the log may be searched, and the cause of abnormality may be determined according to the correspondence relationship between 404, 403 and the cause of abnormality. Or the abnormal reason can be determined according to the description corresponding to the error character in the log.
According to the embodiment of the disclosure, the execution stack of the thread in the system file and the use condition of the object in the stack of the Java virtual machine can be analyzed to determine the abnormal reason. For example, whether a system crash problem caused by database query but no response for a long time exists can be analyzed through information such as the execution stacks of threads in the java core file and the heappdump file and the use condition of objects in the stacks of the java virtual machine, and whether system errors such as memory address errors, illegal instructions, bus errors and process exceptions exist is judged.
According to the embodiment of the present disclosure, for example, the current operation state may be compared with the historical operation state to determine the cause of the abnormality, for example, the current usage of the CPU and the memory of the container may be compared with the historical usage of the CPU and the memory of the container, so as to determine whether there is a sudden increase in the usage of the CPU and the memory. In order to make the comparison result more accurate, the time period of the container abnormal time can be determined, and the use condition of the CPU and the memory in the time period in the historical data can be determined. For example, the current distributed service quantity and the service provider quantity may be compared with the historical distributed service quantity and the historical service provider quantity of the same period, respectively, to determine whether the current distributed service quantity and the historical service provider quantity have a sharp decrease problem. The distributed service quantity may refer to the quantity of interfaces of different interfaces providing services to the outside, and the service providing quantity may refer to the quantity of containers providing services to the outside.
According to the embodiment of the disclosure, for example, the configuration management interface may be called to read that the environment variable, the storage mount, the resource setting, the port setting, and the load balancing setting of the configuration center are incorrect, and whether the configuration is modified compared with the historical configuration is determined.
According to the embodiment of the disclosure, for example, when the connection timeout, the service response time being too long, the network not responding for a long time, and the like are monitored, the problem that whether the access amount is increased rapidly or not can be judged by combining the application log.
According to the embodiment of the disclosure, whether the cause of the container abnormality is an operating system problem, a program running problem, network jitter or an access volume surge can be located by analyzing the running information, for example.
In operation S204, the virtual server is processed to reduce the degree of abnormality of the virtual server based on the abnormality cause.
According to the embodiment of the disclosure, after the abnormal reason is determined, the abnormal virtual server may be isolated, so that other devices do not access the abnormal virtual server. And then, processing the abnormal virtual server according to the abnormal reason so as to reduce the abnormal degree of the virtual server.
According to the embodiment of the disclosure, the information processing method can send the probe request to the virtual server in a timing manner, and can acquire the running information in time when the response to the probe request indicates that the virtual server is abnormal, so that the reason of the abnormality can be determined, and the abnormal virtual server can be processed in time. The information processing method at least partially solves the problems of dependence on manual operation, overlong emergency timeliness and difficulty in positioning reasons, achieves automatic log file downloading device for the abnormal virtual server, autonomously monitors and accurately positions whether the problem is an operating system, a program problem or network jitter and the like, reduces emergency timeliness, can isolate a problem container at the first time, processes the abnormal virtual server according to actual conditions, greatly improves operation and maintenance work efficiency, and effectively reduces operation and maintenance cost.
FIG. 3 is a flow chart of a method for processing a virtual server based on an exception cause according to an embodiment of the present disclosure.
As shown in fig. 3, the method may include operations based on the foregoing embodiment, and may further include operations S214 to S224.
In operation S214, the total number of other virtual servers that cannot provide a service in a predetermined area in which the virtual server is located is determined.
For example, the total number of virtual servers that cannot provide service in the campus where the virtual server is located may be determined. For example, the predetermined area where the abnormal virtual server is located is a beijing campus, and the total number of the virtual servers which cannot provide services in the beijing campus is determined.
According to the embodiment of the present disclosure, the total number may be set by a person skilled in the art according to actual situations, and the total number may be 1/3 of the number of virtual servers of the campus, for example.
In operation S224, in case that the total number is greater than the preset threshold, the load balancing address of the predetermined area is deleted.
According to an embodiment of the present disclosure, the load balancing address of the predetermined area is deleted, so that access to the virtual server in the predetermined area is switched to access to the virtual server in the other area.
For example, when there is an abnormality in the number of 1/3 virtual servers in the beijing campus, the load balancing address in the beijing campus may be deleted so that the access to the virtual servers in the beijing campus is switched to be handled by another campus such as the shanghai campus and the tianjin campus.
Fig. 4 schematically shows a flowchart of a method for processing a virtual server based on an exception cause according to another embodiment of the present disclosure.
As shown in fig. 4, the method may include operations S234 to S254.
In operation S234, a current access amount and access latency of the virtual server are acquired.
According to the embodiment of the disclosure, the current access amount may be, for example, an access amount of the external device to the virtual server within one calculation period at the time when the virtual server abnormality is detected by the bastion machine. The calculation period may be a time period set by a person skilled in the art to calculate the access amount, and may be, for example, one minute.
The access latency may be a latency for an access request to access the virtual server to wait for a virtual server response.
According to the embodiment of the disclosure, downgraders may be provided in the bastion machine, for example, each downgrader may maintain M (M is an integer greater than 0) function packages, and function interface information of each function interface of N (N is an integer greater than 0) function interfaces may be recorded in each function package. That is, the feature pack may record the results of the feature interface response request (e.g., response success, response failure, timeout, access denied). The downgrader can access the M function packages to obtain the result of each function interface responding to the request, so that the current access amount and access waiting time can be determined according to the result of responding to the request.
In operation S244, in case that the current access amount is greater than the preset amount and the access waiting time is greater than the preset time, a degradation request for degrading the service level of the virtual server is generated and transmitted to the electronic device.
The preset number and the preset time may be set empirically by a person skilled in the art according to an embodiment of the present disclosure.
For example, in a case where the bastion machine determines that the current access amount is greater than the preset amount and the access waiting time is greater than the preset time, the bastion machine may generate a degradation request for degrading the service level of the virtual server, and the bastion machine may transmit the degradation request to the terminal device of the administrator so that the administrator decides whether to perform a degradation operation on the service level of the virtual server.
In operation S254, in response to receiving the determination information of the electronic device for the degradation request, the service level of the virtual server is degraded.
According to an embodiment of the present disclosure, for example, the service level of the virtual server may be degraded in response to receiving determination information from the terminal device of the administrator.
According to embodiments of the present disclosure, downgrading the service level of a virtual server may be, for example, shutting down certain functions provided by the virtual server. For example, the virtual server may provide an interaction page for the application, which may include at least a search control and a recommendation window. The user can search for products meeting the requirements by using the search control, and the recommendation window can recommend the products to the user. The downgrading of the service level of the virtual server may be, for example, a function of closing a recommendation window to recommend a product to the user.
Fig. 5 schematically shows a flowchart of a method for processing a virtual server based on an exception cause according to another embodiment of the present disclosure.
As shown in fig. 5, the method may further include operations S501 to S502 based on the foregoing embodiment.
In operation S501, after the virtual server is degraded, the operation information of the virtual server is obtained again every second preset time period.
For example, the current access amount of a virtual server and the wait time of an access for which the virtual server has not responded may be obtained.
The second preset time period may be set by a person skilled in the art, and may be, for example, 10 seconds.
For example, it may be determined whether the current access amount is greater than a preset amount and the waiting time is greater than a preset time.
In operation S502, in the case that it is determined that the newly acquired operation information of the virtual server does not satisfy the degradation condition, the service level of the virtual server is restored.
The downgrade condition may be, for example, that the current access amount is greater than a preset amount and the access latency is greater than a preset time.
Restoring the service level of the virtual server may be, for example, increasing the current service level of the virtual server such that the service level of the virtual server is consistent with the level before the downgrade. The service level of the virtual service can be increased, for example, by adding functions provided by the virtual server.
According to the embodiment of the disclosure, in the system of the distributed service architecture, a calling link is formed by services into a whole, and the whole body is driven by the calling link. When a certain service provider (i.e., virtual server) is unavailable for various reasons, the service caller is then unavailable due to a large number of timeout waits and conducts throughout the link, which may cause an overall system shutdown. Therefore, according to the embodiment of the disclosure, in the case that most service providers cannot provide normal service, the manager can be sent with alarm information, so that the manager can timely inform the service provider on the calling link of the upstream and downstream. Upstream of the service provider may be a virtual server that invokes the service provider, and downstream of the service provider may be a virtual server that is invoked by the service provider.
Fig. 6 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure.
As shown in fig. 6, the information processing method may include operations S601 to S612.
In operation S601, the bastion machine monitors the cloud platform in real time according to the planned task. For example, it may be that the operation S201 described above with reference to fig. 2 is performed, and the probe request is transmitted to the virtual server every first preset time period.
In operation S602, it is determined whether there is a container exception according to a response of the container to the probe request. If it is determined that there is a container abnormality, operation S603 may be performed. If there is no container exception, operation S601 may be executed, that is, the cloud platform continues to be monitored.
In operation S603, the log collection module of the bastion machine actively acquires javacore and heappdump files.
In operation S604, the application log, the system log and the associated core file are downloaded to the bastion machine locally.
In operation S605, the bastion machine may call the monitoring interface and the management interface to check the operation state of the container.
In operation S606, the analysis decision module of the bastion machine locates the cause of the problem in combination with the application log, the system log and the related core file and the running status.
In operation S607, the emergency processing module of the fort machine calls the cloud platform interface to automatically isolate the abnormal container.
In operation S608, it is determined whether there is 1/3 containers in the park where the exception container is located. For example, operation S214 described above with reference to fig. 3 may be performed. If it is determined that 1/3 containers in the campus where the abnormal container is located cannot be served, operation S609 may be performed, and if it is determined that 2/3 more containers in the campus where the abnormal container is located may be served, operation S612 may be performed.
In operation S609, the emergency processing module calls the cloud platform interface to perform traffic switching. Operation S224 described above with reference to fig. 3 may be performed, for example.
In operation S610, it is determined whether there is a surge in the amount of access and there is a phenomenon that a service does not respond for a long time or a network times out. Operation S234 described above with reference to fig. 4 may be performed, for example. If it is determined that there is a phenomenon such as a sudden increase in the access amount, a long-time unresponsive service, or a network timeout, operation S611 may be performed, and if it is determined that there is no sudden increase in the access amount, a long-time unresponsive service, or a network timeout, operation S612 may be performed.
In operation S611, the emergency processing module calls the cloud platform interface to perform service degradation. For example, operations S244 and S254 described above with reference to fig. 4 may be performed.
In operation S612, after the emergency operation is completed, the bastion machine may notify a manager through a mail or a short message.
Fig. 7 schematically shows a block diagram of an information processing apparatus 700 according to an embodiment of the present disclosure.
As shown in fig. 7, the information processing apparatus 700 may include a first transmitting module 710, a first obtaining module 720, a first determining module 730, and a processing module 740.
The first sending module 710, for example, may perform operation S201 described above with reference to fig. 2, and is configured to send the probe request to the virtual server every first preset time period.
The first obtaining module 720, for example, may execute operation S202 described above with reference to fig. 2, and is configured to obtain the operation information of the virtual server if a response from the virtual server indicates that the virtual server is abnormal, where the response is generated by the virtual server in response to the probe request.
The first determining module 730, for example, may perform operation S203, which is described with reference to fig. 2 and is used to determine an abnormality cause causing an abnormality of the virtual server, based on the operation information.
The processing module 740, for example, may execute the operation S204 described above with reference to fig. 2, and is configured to process the virtual server based on the exception reason, so as to reduce the exception degree of the virtual server.
According to an embodiment of the present disclosure, the first obtaining module 720 is configured to perform at least one of the following operations: calling a log downloading interface of the virtual server to acquire a log of the virtual server; acquiring a system file generated in the process of running a computer program by the virtual server from the virtual server; and calling the callable interface of the virtual server to acquire the current running state of the virtual server from the callable interface.
According to an embodiment of the present disclosure, the first determining module 730 is configured to perform at least one of: determining an abnormal reason according to the key characters recorded in the log; analyzing the execution stack of the thread in the system file and the use condition of the object in the stack of the Java virtual machine to determine the abnormal reason; and comparing the current running state with the historical running state to determine the reason of the abnormality.
According to an embodiment of the disclosure, the processing module 740 may perform: determining the total number of other virtual servers which cannot provide services in a preset area where the virtual server is located; and deleting the load balancing address of the area under the condition that the total number is greater than a preset threshold value.
According to an embodiment of the disclosure, the processing module 740 may perform: acquiring the current access amount and the access waiting time of the virtual server; generating a degradation request for degrading the service level of the virtual server and sending the degradation request to an electronic device when the current access amount is greater than a preset amount and the access waiting time is greater than a preset time; and in response to receiving the determined information of the electronic device for the degradation request, degrading the service level of the virtual server.
According to an embodiment of the present disclosure, the information processing apparatus 700 may further include a second obtaining module, configured to, after performing a degradation operation on the virtual server, obtain the running information of the virtual server again every second preset time period; and the second determining module is used for recovering the service level of the virtual server under the condition that the operation information of the virtual server acquired again is determined not to meet the degradation condition.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first sending module 710, the first obtaining module 720, the first determining module 730, and the processing module 740 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first sending module 710, the first obtaining module 720, the first determining module 730, and the processing module 740 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the first sending module 710, the first obtaining module 720, the first determining module 730, and the processing module 740 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
FIG. 8 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 800 may also include input/output (I/O) interface 805, input/output (I/O) interface 805 also connected to bus 804, according to an embodiment of the present disclosure. Electronic device 800 may also include one or more of the following components connected to I/O interface 805: an input portion 807 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 802 and/or RAM 803 described above and/or one or more memories other than the ROM 802 and RAM 803.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (9)

1. An information processing method comprising:
sending a detection request to a virtual server every other first preset time period;
acquiring running information of the virtual server under the condition that a response from the virtual server indicates that the virtual server is abnormal, wherein the response is generated by the virtual server in response to the detection request;
determining an abnormal reason causing the virtual server to be abnormal based on the operation information; and
processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server;
wherein the processing the virtual server based on the abnormal reason comprises:
determining the total number of other virtual servers which cannot provide services in a preset area where the virtual server is located;
and deleting the load balancing address of the predetermined area under the condition that the total number is greater than a preset threshold value.
2. The method of claim 1, wherein the obtaining the operation information of the virtual server comprises at least one of:
calling a log downloading interface of the virtual server to acquire a log of the virtual server;
acquiring a system file generated in the process of running a computer program by the virtual server from the virtual server;
and calling a monitoring interface and a management interface of the virtual server to acquire the current running state of the virtual server from the monitoring interface and the management interface.
3. The method of claim 2, wherein the determining, based on the operational information, a cause of the anomaly that caused the virtual server anomaly comprises at least one of:
determining an abnormal reason according to the key characters recorded in the log;
analyzing the execution stack of the thread in the system file and the use condition of the object in the stack of the Java virtual machine to determine the abnormal reason;
and comparing the current running state with the historical running state to determine the reason of the abnormality.
4. The method of claim 1, wherein the processing the virtual server based on the cause of the anomaly further comprises:
acquiring the current access amount and the access waiting time of the virtual server;
generating a degradation request for degrading the service level of the virtual server and transmitting the degradation request to an electronic device, in the case that the current access amount is greater than a preset amount and the access waiting time is greater than a preset time; and
in response to receiving the determination information of the electronic device for the degradation request, degrading the service level of the virtual server.
5. The method of claim 4, further comprising:
after the virtual server is subjected to degradation operation, the running information of the virtual server is obtained again every second preset time period; and
and under the condition that the operation information of the virtual server acquired again is determined not to meet the degradation condition, restoring the service level of the virtual server.
6. An information processing apparatus comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending detection requests to a virtual server every other first preset time period;
a first obtaining module, configured to obtain operation information of the virtual server when a response from the virtual server indicates that the virtual server is abnormal, where the response is generated by the virtual server in response to the probe request;
the first determining module is used for determining an abnormal reason causing the abnormal virtual server based on the running information; and
the processing module is used for processing the virtual server based on the abnormal reason so as to reduce the abnormal degree of the virtual server;
wherein the processing the virtual server based on the abnormal reason comprises:
determining the total number of other virtual servers which cannot provide services in a preset area where the virtual server is located;
and deleting the load balancing address of the predetermined area under the condition that the total number is greater than a preset threshold value.
7. The apparatus of claim 6, wherein the first obtaining means is configured to perform at least one of:
calling a log downloading interface of the virtual server to acquire a log of the virtual server;
acquiring a system file generated in the process of running a computer program by the virtual server from the virtual server;
and calling a monitoring interface and a management interface of the virtual server to acquire the current running state of the virtual server from the monitoring interface and the management interface.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-5.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 5.
CN202010526056.6A 2020-06-10 2020-06-10 Information processing method, information processing apparatus, electronic device, and medium Active CN111698131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010526056.6A CN111698131B (en) 2020-06-10 2020-06-10 Information processing method, information processing apparatus, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010526056.6A CN111698131B (en) 2020-06-10 2020-06-10 Information processing method, information processing apparatus, electronic device, and medium

Publications (2)

Publication Number Publication Date
CN111698131A CN111698131A (en) 2020-09-22
CN111698131B true CN111698131B (en) 2021-10-08

Family

ID=72480337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010526056.6A Active CN111698131B (en) 2020-06-10 2020-06-10 Information processing method, information processing apparatus, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN111698131B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113327334B (en) * 2021-04-08 2023-04-28 厦门路桥信息股份有限公司 Disaster recovery management method and system for parking lot cloud platform
CN113849330A (en) * 2021-09-22 2021-12-28 北京基调网络股份有限公司 Method, equipment and storage medium for monitoring and analyzing application fault reasons
CN114143114A (en) * 2022-01-12 2022-03-04 福建省海峡信息技术有限公司 Network security communication method based on intelligent terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060436A (en) * 2007-06-05 2007-10-24 杭州华三通信技术有限公司 A fault analyzing method and device for communication equipment
CN102662821A (en) * 2012-03-22 2012-09-12 华为技术有限公司 Method, device and system for auxiliary diagnosis of virtual machine failure
CN102693177A (en) * 2011-03-23 2012-09-26 中国移动通信集团公司 Fault diagnosing and processing methods of virtual machine as well as device and system thereof
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN107888437A (en) * 2016-09-29 2018-04-06 阿里巴巴集团控股有限公司 Cloud monitoring method and equipment
CN108255576A (en) * 2017-12-08 2018-07-06 上海陆家嘴国际金融资产交易市场股份有限公司 Live migration of virtual machine abnormality eliminating method, device and storage medium
US10263832B1 (en) * 2016-12-29 2019-04-16 Juniper Networks, Inc. Physical interface to virtual interface fault propagation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10868742B2 (en) * 2017-03-29 2020-12-15 Juniper Networks, Inc. Multi-cluster dashboard for distributed virtualization infrastructure element monitoring and policy control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060436A (en) * 2007-06-05 2007-10-24 杭州华三通信技术有限公司 A fault analyzing method and device for communication equipment
CN102693177A (en) * 2011-03-23 2012-09-26 中国移动通信集团公司 Fault diagnosing and processing methods of virtual machine as well as device and system thereof
CN102662821A (en) * 2012-03-22 2012-09-12 华为技术有限公司 Method, device and system for auxiliary diagnosis of virtual machine failure
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN107888437A (en) * 2016-09-29 2018-04-06 阿里巴巴集团控股有限公司 Cloud monitoring method and equipment
US10263832B1 (en) * 2016-12-29 2019-04-16 Juniper Networks, Inc. Physical interface to virtual interface fault propagation
CN108255576A (en) * 2017-12-08 2018-07-06 上海陆家嘴国际金融资产交易市场股份有限公司 Live migration of virtual machine abnormality eliminating method, device and storage medium

Also Published As

Publication number Publication date
CN111698131A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111698131B (en) Information processing method, information processing apparatus, electronic device, and medium
US7426661B2 (en) Method and system for minimizing loss in a computer application
US7577731B2 (en) System and method for monitoring program code
TWI544328B (en) Method and system for probe insertion via background virtual machine
US10489232B1 (en) Data center diagnostic information
US20130061095A1 (en) Software failure detection
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
US11563657B2 (en) On-demand outages notification in a cloud environment
CN114884796B (en) Fault processing method and device, electronic equipment and storage medium
US11888717B2 (en) Detecting outages in a multiple availability zone cloud environment
US9766995B2 (en) Self-spawning probe in a distributed computing environment
CN114760233B (en) Service processing method, device, electronic equipment and storage medium
US11838194B2 (en) Detecting outages in a cloud environment
US11151020B1 (en) Method and system for managing deployment of software application components in a continuous development pipeline
CN111611086A (en) Information processing method, information processing apparatus, electronic device, and medium
CN112988433A (en) Method, apparatus and computer program product for fault management
CN112953769B (en) Data transmission method, device, computer system and readable storage medium
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN113296911B (en) Cluster calling method, cluster calling device, electronic equipment and readable storage medium
US20180329734A1 (en) Migration-adjusted problem ticket analysis and consolidation
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN114257632A (en) Disconnection reconnection method and device, electronic equipment and readable storage medium
US10970152B2 (en) Notification of network connection errors between connected software systems
US11886283B2 (en) Automatic node crash detection and remediation in distributed computing systems
CN114024867B (en) Network anomaly detection method and device

Legal Events

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