CN114090324A - Virtual desktop performance detection method and device, electronic equipment and storage medium - Google Patents

Virtual desktop performance detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114090324A
CN114090324A CN202111438017.1A CN202111438017A CN114090324A CN 114090324 A CN114090324 A CN 114090324A CN 202111438017 A CN202111438017 A CN 202111438017A CN 114090324 A CN114090324 A CN 114090324A
Authority
CN
China
Prior art keywords
virtual desktop
detection
resource information
target virtual
performance
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
CN202111438017.1A
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202111438017.1A priority Critical patent/CN114090324A/en
Publication of CN114090324A publication Critical patent/CN114090324A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a performance detection method and device of a virtual desktop, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: determining a target virtual desktop to be detected; acquiring resource information of a virtual machine or a host corresponding to a target virtual desktop; wherein the resource information includes detection values of a plurality of detection items; performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop; and determining the process associated with the abnormal detection item according to the resource information. According to the performance detection method of the virtual desktop, the multiple detection items of the target virtual desktop are comprehensively analyzed to obtain the performance detection result, if the abnormal detection item exists, the process associated with the abnormal detection item is located, deep positioning of the abnormal detection item is achieved, and the alarm evidence-taking capability of the virtual desktop is improved.

Description

Virtual desktop performance detection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for detecting performance of a virtual desktop, an electronic device, and a computer-readable storage medium.
Background
VDI (Virtual desktop infrastructure) is a technology based on server virtualization birth, which stores all operating system software, application software and user data required by all desktop PCs (Personal computers) in a backend server, and gives a specific user through a special management system, the user is connected to desktop resources allocated by a backend server through a dedicated network transport protocol, and after connection, the user can directly use a desktop system running in a backend in connection with a local terminal, and the use experience is basically consistent with that of a physical PC.
In the related art, in the process of performing performance detection on the virtual desktop, a corresponding threshold value is set for each performance index, and if the detected performance index exceeds the corresponding threshold value, an alarm is triggered. Therefore, in the related art, only a single performance index can be detected respectively, correlation analysis cannot be performed on a plurality of performance indexes, and further, the reason of the alarm cannot be deeply located, and the alarm proof capability is weak.
Therefore, how to improve the alarm proof capability of the virtual desktop performance detection is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a performance detection method and device of a virtual desktop, an electronic device and a computer readable storage medium, and the alarm proof capability of the performance detection of the virtual desktop is improved.
In order to achieve the above object, the present application provides a performance detection method for a virtual desktop, including:
determining a target virtual desktop to be detected;
acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
and determining the process associated with the abnormal detection item according to the resource information.
After the resource information of the virtual machine or the host corresponding to the target virtual desktop is obtained, the method further includes:
storing the resource information into a time sequence database;
correspondingly, the performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop includes:
and acquiring resource information from the time sequence database, and performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop.
After the resource information of the virtual machine or the host corresponding to the target virtual desktop is obtained, the method further includes:
and detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item.
The detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item includes:
determining a threshold range corresponding to each detection item;
and respectively comparing the detection value of each detection item in the resource information with the corresponding threshold range by using Prometheus to obtain the detection result corresponding to each detection item.
The obtaining resource information of the virtual machine or the host corresponding to the target virtual desktop includes:
deploying a data acquisition probe in a virtual machine or a host corresponding to the target virtual desktop, and acquiring resource information in the virtual machine or the host by using the data acquisition probe.
Performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop, including:
performing performance detection on the target virtual desktop based on the resource information to obtain a performance score corresponding to the target virtual desktop;
and determining the detection item with the deduction larger than the preset value as an abnormal detection item.
After determining the process associated with the abnormal detection item according to the resource information, the method further comprises the following steps:
and determining an abnormal process by comparing the processes associated with all the abnormal detection items.
In order to achieve the above object, the present application provides a performance detection apparatus for a virtual desktop, including:
the first determining module is used for determining a target virtual desktop to be detected;
the acquisition module is used for acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
the first detection module is used for performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
and the second determining module is used for determining the process associated with the abnormal detection item according to the resource information.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the performance detection method of the virtual desktop when executing the computer program.
To achieve the above object, the present application provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the performance detection method of the virtual desktop.
According to the scheme, the performance detection method of the virtual desktop comprises the following steps: determining a target virtual desktop to be detected; acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items; performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop; and determining the process associated with the abnormal detection item according to the resource information.
According to the performance detection method of the virtual desktop, the multiple detection items of the target virtual desktop are comprehensively analyzed to obtain the performance detection result, if the abnormal detection item exists, the process associated with the abnormal detection item is located, deep positioning of the abnormal detection item is achieved, and the alarm evidence-taking capability of the virtual desktop is improved. The application also discloses a performance detection device of the virtual desktop, an electronic device and a computer readable storage medium, which can also achieve the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method for performance detection of a virtual desktop in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method for performance detection of a virtual desktop in accordance with an illustrative embodiment;
FIG. 3 is a block diagram illustrating an apparatus for performance detection of a virtual desktop in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
The embodiment of the application discloses a performance detection method of a virtual desktop, which improves the alarm proof capability of performance detection of the virtual desktop.
Referring to fig. 1, a flowchart of a performance detection method for a virtual desktop according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: determining a target virtual desktop to be detected;
the embodiment is applied to a cloud computing scene, the execution main body is a server, the purpose is to perform performance detection on the virtual desktop connected to the server, and a user can configure a target virtual desktop needing to be detected. It should be noted that a single target virtual desktop may be configured, or multiple target virtual desktops may be configured to perform simultaneous detection, so as to improve detection efficiency.
S102: acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
in this step, resource information is collected in the virtual machine or host corresponding to the target virtual desktop, where the resource information includes detection values of a plurality of detection items, and the detection items may include a CPU utilization rate, a memory utilization rate, a disk occupancy rate, a network transmission rate, and the like.
As a possible implementation, the step may include: deploying a data acquisition probe in a virtual machine or a host corresponding to the target virtual desktop, and acquiring resource information in the virtual machine or the host by using the data acquisition probe. In specific implementation, the data acquisition probe is a plug-in intelligent probe in a cloud computing scene, and is used for acquiring resource information in a virtual machine or a host, and the acquired resource information may be stored in a time sequence database, for example, infiluxdb. The time sequence database is used for storing resource information in a period of time and is used for backtracking historical problems.
S103: performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
in this step, the resource information corresponding to the target virtual desktop is extracted from the time sequence database, and the detection items are comprehensively analyzed to obtain the performance detection result corresponding to the target virtual desktop.
As a possible implementation, the present step includes: performing performance detection on the target virtual desktop based on the resource information to obtain a performance score corresponding to the target virtual desktop; and determining the detection item with the deduction larger than the preset value as an abnormal detection item. For example, the full score of the performance score is 100, the specific detection value of each detection item is analyzed, if an abnormality occurs, the corresponding score is deducted according to the abnormal condition, the final performance score of the target virtual desktop is obtained, and the detection item with the deduction larger than a preset value is determined as the abnormal detection item.
S104: and determining the process associated with the abnormal detection item according to the resource information.
In this embodiment, for an exception detection item, the process associated with it is located. For example, if the CPU utilization is too high, the relevant processes occupying the CPU are output, and the processes are sorted from large to small according to the size occupied by the CPU.
As a preferred embodiment, after this step, the method further comprises: and determining an abnormal process by comparing the processes associated with all the abnormal detection items. In a specific implementation, if a plurality of abnormal detection items exist, the abnormal process can be located by comparing the processes associated with all the abnormal detection items. For example, the detection result of the target virtual desktop is: the process occupying the larger amount of the CPU is process 1, process 2 and process 3, the process occupying the larger amount of the memory is process 1, process 2 and process 4, and the process occupying the larger amount of the IO is process 1, process 2 and process 5, and at this time, process 1 and process 2 may be determined as abnormal processes.
According to the performance detection method of the virtual desktop, provided by the embodiment of the application, a plurality of detection items of the target virtual desktop are comprehensively analyzed to obtain a performance detection result, and if the abnormal detection item exists, the abnormal detection item is positioned to the process associated with the abnormal detection item, so that deep positioning of the abnormal detection item is realized, and the alarm evidence-taking capability of the virtual desktop is improved.
The embodiment of the application discloses a performance detection method of a virtual desktop, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 2, a flowchart of another method for detecting performance of a virtual desktop according to an exemplary embodiment is shown, as shown in fig. 2, including:
s201: determining a target virtual desktop to be detected;
s202: acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
s203: storing the resource information into a time sequence database;
s204: acquiring resource information from the time sequence database, and performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
s205: determining a process associated with an abnormal detection item according to the resource information;
s206: and detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item.
In this embodiment, the collected resource data is output to Prometheus on one hand, and stored in a time-series database on the other hand. On one hand, threshold analysis of single detection items is realized through a Prometheus system, and on the other hand, comprehensive analysis is carried out on resource data in a time sequence database so as to locate processes related to abnormal detection items.
The Prometheus system has alarm diagnosis capability and is configured with a special PromQL statement which is a functional expression language provided by Prometheus and can enable a user to search and aggregate time series data in real time. The expression calculation result can be shown in a chart, can also be shown in a tabular form in a Prometous expression browser, or can be used as a data source and provided for an external system in an HTTP API mode. And (3) analyzing the Prometheus to the PromQL statement, so that quasi-real-time alarm can be realized.
As a possible implementation manner, the detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item includes: determining a threshold range corresponding to each detection item; and respectively comparing the detection value of each detection item in the resource information with the corresponding threshold range by using Prometheus to obtain the detection result corresponding to each detection item. In specific implementation, a corresponding threshold range is set for each detection item, and if the detection value of a certain detection item in the resource information exceeds the corresponding threshold range, the detection item is determined to be an abnormal detection item, and an alarm is triggered.
Therefore, the technical problem that the alarm demonstration capability of the Prometous system is weak is solved, the Prometous native alarm system is compatible, deep positioning of the abnormal detection item is realized, and the alarm demonstration capability of the virtual desktop is improved.
In the following, a performance detection apparatus of a virtual desktop provided in an embodiment of the present application is introduced, and a performance detection apparatus of a virtual desktop described below and a performance detection method of a virtual desktop described above may refer to each other.
Referring to fig. 3, a block diagram of an apparatus for detecting performance of a virtual desktop according to an exemplary embodiment is shown, as shown in fig. 3, including:
a first determining module 301, configured to determine a target virtual desktop to be detected;
an obtaining module 302, configured to obtain resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
a first detection module 303, configured to perform performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
a second determining module 304, configured to determine, according to the resource information, a process associated with the anomaly detection item.
The performance detection device of the virtual desktop provided by the embodiment of the application carries out comprehensive analysis on a plurality of detection items of the target virtual desktop to obtain a performance detection result, and if the abnormal detection items exist, the abnormal detection items are positioned to the processes associated with the abnormal detection items, so that deep positioning of the abnormal detection items is realized, and the alarm evidence-taking capability of the virtual desktop is improved.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the storage module is used for storing the resource information into a time sequence database;
correspondingly, the first detecting module 303 is specifically a module that acquires resource information from the time sequence database, and performs performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the second detection module is used for respectively detecting each detection item by utilizing Prometheus to obtain a detection result corresponding to each detection item.
On the basis of the foregoing embodiment, as a preferred implementation, the second detection module includes:
the first determining unit is used for determining a threshold range corresponding to each detection item;
and the first detection unit is used for respectively comparing the detection value of each detection item in the resource information with the corresponding threshold value range by using Prometheus to obtain the detection result corresponding to each detection item.
On the basis of the foregoing embodiment, as a preferred implementation manner, the obtaining module 302 is specifically a module that deploys a data acquisition probe in a virtual machine or a host corresponding to the target virtual desktop, and obtains resource information in the virtual machine or the host by using the data acquisition probe.
On the basis of the above embodiment, as a preferred implementation, the first detecting module 303 includes:
the second detection unit is used for performing performance detection on the target virtual desktop based on the resource information to obtain a performance score corresponding to the target virtual desktop;
and the second determining unit is used for determining the detection item with the deduction larger than the preset value as an abnormal detection item.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the comparison module is used for determining the abnormal process by comparing the processes associated with all the abnormal detection items.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 4 is a structural diagram of an electronic device according to an exemplary embodiment, as shown in fig. 4, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the performance detection method of the virtual desktop provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 4.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A performance detection method of a virtual desktop is characterized by comprising the following steps:
determining a target virtual desktop to be detected;
acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
and determining the process associated with the abnormal detection item according to the resource information.
2. The method for detecting performance of a virtual desktop according to claim 1, wherein after the obtaining the resource information of the virtual machine or the host corresponding to the target virtual desktop, the method further comprises:
storing the resource information into a time sequence database;
correspondingly, the performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop includes:
and acquiring resource information from the time sequence database, and performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop.
3. The method for detecting performance of a virtual desktop according to claim 1, wherein after the obtaining the resource information of the virtual machine or the host corresponding to the target virtual desktop, the method further comprises:
and detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item.
4. The method for detecting performance of a virtual desktop according to claim 3, wherein the detecting each detection item by using Prometheus to obtain a detection result corresponding to each detection item comprises:
determining a threshold range corresponding to each detection item;
and respectively comparing the detection value of each detection item in the resource information with the corresponding threshold range by using Prometheus to obtain the detection result corresponding to each detection item.
5. The method for detecting performance of a virtual desktop according to claim 1, wherein the obtaining resource information of a virtual machine or a host corresponding to the target virtual desktop includes:
deploying a data acquisition probe in a virtual machine or a host corresponding to the target virtual desktop, and acquiring resource information in the virtual machine or the host by using the data acquisition probe.
6. The method for detecting performance of a virtual desktop according to claim 1, wherein the performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop includes:
performing performance detection on the target virtual desktop based on the resource information to obtain a performance score corresponding to the target virtual desktop;
and determining the detection item with the deduction larger than the preset value as an abnormal detection item.
7. The method for detecting the performance of the virtual desktop according to any one of claims 1 to 6, wherein after determining the process associated with the abnormal detection item according to the resource information, the method further comprises:
and determining an abnormal process by comparing the processes associated with all the abnormal detection items.
8. An apparatus for detecting performance of a virtual desktop, comprising:
the first determining module is used for determining a target virtual desktop to be detected;
the acquisition module is used for acquiring resource information of a virtual machine or a host corresponding to the target virtual desktop; wherein the resource information includes detection values of a plurality of detection items;
the first detection module is used for performing performance detection on the target virtual desktop based on the resource information to obtain a performance detection result corresponding to the target virtual desktop;
and the second determining module is used for determining the process associated with the abnormal detection item according to the resource information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for detecting the performance of a virtual desktop according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for detecting the performance of a virtual desktop according to any one of claims 1 to 7.
CN202111438017.1A 2021-11-29 2021-11-29 Virtual desktop performance detection method and device, electronic equipment and storage medium Pending CN114090324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111438017.1A CN114090324A (en) 2021-11-29 2021-11-29 Virtual desktop performance detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111438017.1A CN114090324A (en) 2021-11-29 2021-11-29 Virtual desktop performance detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114090324A true CN114090324A (en) 2022-02-25

Family

ID=80305639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111438017.1A Pending CN114090324A (en) 2021-11-29 2021-11-29 Virtual desktop performance detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090324A (en)

Similar Documents

Publication Publication Date Title
US10423624B2 (en) Event log analysis
US20160253229A1 (en) Event log analysis
US9940479B2 (en) Identifying and tracking sensitive data
JP2019169126A (en) Artificial intelligence-based triple checking method, device, and computer program
US10114731B2 (en) Including kernel object information in a user dump
US10366236B2 (en) Software analysis system, software analysis method, and software analysis program
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
JP6266008B2 (en) Method of applying virtual machine image to computer system, information processing system, and computer program
CN113609008A (en) Test result analysis method and device and electronic equipment
CN112363814A (en) Task scheduling method and device, computer equipment and storage medium
US10372849B2 (en) Performing and communicating sheet metal simulations employing a combination of factors
CN114090324A (en) Virtual desktop performance detection method and device, electronic equipment and storage medium
WO2023138923A1 (en) Failure prediction using informational logs and golden signals
CN115757075A (en) Task abnormity detection method and device, computer equipment and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN113934595A (en) Data analysis method and system, storage medium and electronic terminal
CN114492365A (en) Method for determining similarity between binary files, computing device and storage medium
CN113656391A (en) Data detection method and device, storage medium and electronic equipment
CN116364223B (en) Feature processing method, device, computer equipment and storage medium
CN114374727B (en) Data calling method and device based on artificial intelligence, electronic equipment and medium
WO2024066622A1 (en) Cloud system testing method and apparatus
RU2713760C1 (en) Method and system for detecting emulated mobile operating system using machine learning techniques
CN116483735B (en) Method, device, storage medium and equipment for analyzing influence of code change
CN115858324A (en) IT equipment fault processing method, device, equipment and medium based on AI
CN117453536A (en) System abnormality analysis method, system abnormality analysis device, computer device and storage medium

Legal Events

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