Virtual equipment adjusting method and device, equipment and storage medium
By obtaining the resources required for business data in the storage process and the storage capacity of virtual devices, determining the adjustment strategy of virtual devices, solving the problems of inefficient and low resource utilization in traditional device management methods, and dynamically adjusting the number of virtual devices to improve resource utilization and system performance.
Patent Information
- Application Number
- CN202411962326.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
The traditional device management method lacks a unified collaboration mechanism, which leads to manual configuration and scheduling when creating and managing virtual devices, which is inefficient and error-prone, and cannot dynamically adjust resource allocation according to real-time business needs, resulting in low resource waste and low utilization.
By acquiring the first resource required for the business data in the storage process and determining the storage capacity of the virtual device as the second resource, based on the relationship, the adjustment strategy of the virtual device includes increasing or decreasing the number of virtual devices to dynamically adjust the number of virtual devices.
It realizes dynamic adjustment of the number of virtual devices according to business data needs, improve system resource utilization, avoid resource waste, and optimize system performance and stability.
Smart Images

Figure CN119759502A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for adjusting a virtual device. Background Art
[0002] With the continuous advancement of information technology, the number of physical and virtual devices in information systems is increasing, and their collaborative work in the network environment has become the key to ensuring efficient and stable operation of the system. However, traditional device control and management methods have gradually exposed various shortcomings, especially in the face of complex and changing network requirements and business scenarios. These problems are particularly prominent.
[0003] Currently, although physical devices and virtual devices each have their own dedicated control platforms, these platforms often lack a unified coordination mechanism. This results in managers having to manually configure and schedule between different platforms when creating and managing virtual devices, which is not only inefficient but also prone to errors. In addition, traditional device management methods are often based on static resource allocation strategies and cannot be dynamically adjusted according to real-time changes in business data in the network, thus limiting the effective use of system resources. Summary of the invention
[0004] The present application provides a method, apparatus, device and storage medium for adjusting virtual devices, which can dynamically adjust the number of virtual devices according to the needs of business data, effectively improving the utilization rate of system resources.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for adjusting a virtual device, the method comprising: obtaining a first resource required for the storage of business data; determining a second resource of the virtual device in the network; the second resource comprises the storage capacity of the virtual device; based on the first resource and the second resource, determining an adjustment strategy for the virtual device in the network; the adjustment strategy comprises increasing or decreasing the number of virtual devices.
[0007] According to the above technical means, the first resource required by the business data in the storage process and the second resource of the virtual device in the network can be obtained, wherein the second resource includes the storage capacity of the virtual device. Then, based on the first resource and the second resource, the adjustment strategy of the virtual device in the network is determined, and the adjustment strategy includes increasing or decreasing the number of virtual devices. Therefore, based on the relationship between the first resource required by the business data in the network and the second resource of the virtual device, the number of virtual devices can be dynamically adjusted to avoid waste of resources.
[0008] In one possible implementation, the above-mentioned “determining the adjustment strategy of the virtual device in the network based on the first resource and the second resource” includes: determining the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; determining the adjustment strategy of the virtual device in the network based on the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource.
[0009] According to the above technical means, the storage capacity of the first resource and the second resource can be accurately determined, and the adjustment strategy of the virtual device in the network can be determined according to the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource, which can effectively improve the utilization efficiency of resources and optimize system performance.
[0010] In a possible implementation, the above-mentioned "determining the adjustment strategy of virtual devices in the network based on the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource" includes: comparing the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; when the storage capacity corresponding to the first resource is greater than or equal to the storage capacity corresponding to the second resource, the adjustment strategy is to increase the number of virtual devices; when the storage capacity corresponding to the first resource is less than the storage capacity corresponding to the second resource, the adjustment strategy is to reduce the number of virtual devices.
[0011] According to the above technical means, the storage capacity of the first resource and the second resource can be compared, and the number of virtual devices can be dynamically adjusted according to the size of the storage capacity. This strategy can ensure that resources are used efficiently while maintaining the stability and performance of the system and effectively avoiding waste of resources.
[0012] In one possible implementation, the above-mentioned "determining the second resource of the virtual device in the network" includes: determining the number of virtual devices in the network and the storage capacity corresponding to each virtual device; and determining the second resource of the virtual device in the network based on the sum of the storage capacity corresponding to each virtual device.
[0013] According to the above-mentioned technical means, the number of virtual devices in the network and their corresponding storage capacity can be accurately determined, and the second resources of the virtual devices in the network can be determined according to the sum of the storage capacity corresponding to each virtual device, which can ensure the scientificity and rationality of resource allocation, maximize the utilization of resources, meet the operation requirements of each virtual device, and improve the performance and stability of the overall network.
[0014] In a possible implementation, the above-mentioned obtaining the first resource required for the business data during the storage process includes: collecting business data in the network and determining the capacity of the business data; and determining the first resource required for the business data during the storage process according to the capacity of the business data.
[0015] According to the above-mentioned technical means, the capacity of the business data can be determined by collecting and analyzing the business data in the network, and then the first resource required in the storage process can be accurately determined, which can ensure the efficiency and security of data storage, effectively avoid over-allocation or insufficient resources, optimize resource utilization, and improve business data processing and response speed.
[0016] In a possible implementation, the method further includes: establishing a life cycle of a virtual device; the life cycle of a virtual device includes registration of the virtual device, configuration of the virtual device, management of the virtual device, and deregistration of the virtual device; and monitoring the operating status of the virtual device based on the life cycle of the virtual device.
[0017] Based on the above-mentioned technical means, a complete virtual device lifecycle management system can be built, which can realize comprehensive monitoring and management of the operating status of virtual devices from the registration, configuration, management to cancellation of virtual devices, ensure the efficient operation of equipment and optimal allocation of resources, and at the same time improve the reliability and flexibility of the system, providing solid guarantee for business continuity and stability.
[0018] In one possible implementation, the registration of the virtual device includes the registration of the virtual device information; the virtual device information includes one or more of the name, model and network address of the virtual device; the configuration of the virtual device includes the configuration of resources and the configuration of the access network address; the management of the virtual device includes performance monitoring and fault monitoring; the deregistration of the virtual device means removing the virtual device information from the network.
[0019] According to the above-mentioned technical means, it is possible to register by recording in detail the name, model, network address and other information of the virtual device, reasonably allocate resources and network access addresses, continuously perform performance monitoring and fault monitoring to manage the virtual device, and remove the device information from the network to complete the cancellation. This series of processes ensures the standardization, efficiency and security of virtual device management, and provides a solid foundation for the stable operation of the network environment and the optimal use of resources.
[0020] In a second aspect, the present application provides a virtual device adjustment device, the device comprising: an acquisition unit, used to acquire a first resource required for the storage process of business data; a determination unit, used to determine a second resource of a virtual device in a network; the second resource includes the storage capacity of the virtual device. The determination unit is also used to determine an adjustment strategy for the virtual device in the network based on the first resource and the second resource; the adjustment strategy includes increasing or decreasing the number of virtual devices.
[0021] In a possible implementation, the determination unit is specifically used to determine the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; and determine the adjustment strategy of the virtual device in the network according to the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource.
[0022] In a possible implementation, the determination unit is also specifically used to determine an adjustment strategy by comparing the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; when the storage capacity corresponding to the first resource is greater than or equal to the storage capacity corresponding to the second resource, the adjustment strategy is to increase the number of virtual devices; when the storage capacity corresponding to the first resource is less than the storage capacity corresponding to the second resource, the adjustment strategy is to reduce the number of virtual devices.
[0023] In a possible implementation, the determination unit is further configured to determine the number of virtual devices in the network and a storage capacity corresponding to each virtual device; and determine the second resource of the virtual device in the network according to the sum of the storage capacity corresponding to each virtual device.
[0024] In a possible implementation manner, the determination unit is further configured to collect service data in the network and determine the capacity of the service data; and determine the first resource required for the service data during storage according to the capacity of the service data.
[0025] In a possible implementation, the determination unit is also specifically used to establish a life cycle of the virtual device; the life cycle of the virtual device includes registration of the virtual device, configuration of the virtual device, management of the virtual device and deregistration of the virtual device; and the operating status of the virtual device is monitored based on the life cycle of the virtual device.
[0026] In a possible implementation, the determination unit is further used to determine various processes of the life cycle of the virtual device. The registration of the virtual device includes the registration of the information of the virtual device; the information of the virtual device includes one or more of the name, model and network address of the virtual device; the configuration of the virtual device includes the configuration of resources and the configuration of the access network address; the management of the virtual device includes performance monitoring and fault monitoring; the deregistration of the virtual device indicates the removal of the information of the virtual device in the network.
[0027] In a third aspect, the present application provides an electronic device comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0028] In a fourth aspect, the present application provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0029] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a communication device, enables the communication device to execute the method in the above-mentioned first aspect and any possible implementation manner thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a framework of a virtual device adjustment system provided in an embodiment of the present application;
[0031] Figure 2 A flowchart of a method for adjusting a virtual device provided in an embodiment of the present application;
[0032] Figure 3 A flowchart of a life cycle of a virtual device provided in an embodiment of the present application;
[0033] Figure 4 A flowchart of a method for managing physical devices and virtual devices on a network collaboration platform provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a virtual device adjustment device provided in an embodiment of the present application;
[0035] Figure 6 A block diagram of an electronic device of an adjustment apparatus for a virtual device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following is a detailed description of a virtual device adjustment method, apparatus, device and storage medium provided in an embodiment of the present application in conjunction with the accompanying drawings.
[0037] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0038] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0039] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0040] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0041] With the rapid development of information technology, enterprises' demands for data processing and business operations are becoming increasingly complex and changeable. Although the unified and fixed management method adopted by traditional equipment has guaranteed the stability and reliability of the system to a certain extent, its inherent static configuration and single service model can no longer meet the current rapidly changing market environment and diversified business needs.
[0042] In traditional architectures, the configuration and management of physical devices often rely on preset, fixed templates that are difficult to flexibly adjust according to real-time business needs. Once business needs change, physical devices need to be tediously adjusted or reconfigured manually, which is not only time-consuming and labor-intensive, but may also cause system instability or performance degradation due to improper configuration. In addition, static configuration methods are prone to idle and wasteful resources because resource allocation cannot be dynamically adjusted according to actual needs, leaving some resources underutilized for a long time.
[0043] In order to effectively improve the utilization rate of system resources, the present application provides a method for adjusting virtual devices. The method includes: obtaining a first resource required for the storage of business data; determining a second resource of a virtual device in the network; the second resource includes the storage capacity of the virtual device; based on the first resource and the second resource, determining an adjustment strategy for the virtual device in the network; the adjustment strategy includes increasing or decreasing the number of virtual devices.
[0044] It should be noted that the virtual device adjustment method provided in the embodiment of the present application can be executed by the network collaboration platform or by the server. The following takes the network collaboration platform as an example to describe in detail the virtual device adjustment method provided in the embodiment of the present application.
[0045] For ease of understanding, the virtual device adjustment method provided by the present application is specifically introduced below with reference to the accompanying drawings.
[0046] Figure 1 A schematic diagram of a framework of a virtual device adjustment system provided in an embodiment of the present application, such as Figure 1 As shown, the framework diagram includes a network collaboration platform 101 , a physical device controller 102 , a virtual device controller 103 , a physical device 104 and a virtual device 105 .
[0047] It should be noted that the physical device controller 102 in the present application may be connected to multiple physical devices 104. The physical device controller 102 may manage multiple physical devices 104 according to the identifier corresponding to each physical device 104. The virtual device controller 103 in the present application may be connected to multiple virtual devices 105. The virtual device controller 103 may manage multiple virtual devices 105 according to the identifier corresponding to each virtual device 105.
[0048] In the embodiment of the present application, the network collaboration platform 101 includes a resource management module, an interface function module, an authentication module, a log module, a data statistics module and a system proxy module.
[0049] The resource management module is responsible for the overall scheduling and management of network resources in the network collaboration platform, realizing the rational allocation and efficient use of resources. Through intelligent algorithms and strategies, it ensures that resources can be allocated on demand, avoids resource waste, and improves overall operational efficiency.
[0050] The interface function module is used to provide a standardized application program interface (API) interface to support docking and interaction with external business systems and ensure data flow and operation consistency between systems.
[0051] The authentication module is used to ensure the legality and security of all access and operations, and to prevent illegal access and potential security risks through authentication and authorization mechanisms.
[0052] The log module is used to record system operations and events, and provides complete log tracing functions to facilitate staff to conduct troubleshooting and system optimization.
[0053] The data statistics module is used to monitor the operating status of network devices and resources in real time, collect statistics on system operation data, provide data analysis support, and help the platform optimize performance.
[0054] The system proxy module serves as an intermediary layer between systems and is responsible for coordinating the interactions between different business systems and network devices to ensure smooth information transmission and collaborative work.
[0055] Figure 2A flowchart of a method for adjusting a virtual device provided in an embodiment of the present application, the method includes the following S201-S203.
[0056] S201. Acquire a first resource required in a storage process of business data.
[0057] The first resource includes the storage capacity required for the business data during storage. Storage capacity refers to the size of the physical or logical space that can store business data, usually expressed in kilobytes (KB), megabytes (MB), gigabytes (GB), and terabytes (TB).
[0058] In one possible implementation, the network collaboration platform can collect business data in the network in real time through data interfaces, API calls or data capture, and preprocess the collected business data, including data cleaning and format conversion. The network collaboration platform determines the capacity required for business data storage based on the preprocessed business data. The capacity required for business data storage can also be called the first resource required for business data storage.
[0059] In the embodiment of the present application, the network collaboration platform determines the capacity required for storing the business data based on the pre-processed business data by analyzing the type and structural characteristics of the business data.
[0060] The business data may include multiple different types of data structures. The capacities required for storing the multiple different types of data structures are summed to determine the capacity required for storing the business data.
[0061] For example, assume that the business data in a certain enterprise's network includes the following three different types of data structures:
[0062] (1) Structured data: such as a server database, which contains multiple business records. Assume that each business record occupies an average of 1KB of storage space and there are a total of 1 million records in the database.
[0063] Then, the storage capacity required for structured data is equal to 1 million records multiplied by 1KB, which is equal to 1,000,000KB, or 976.56MB (where 1MB is equal to 1024KB).
[0064] (2) Semi-structured data: such as XML (eXtensible Markup Language) files, which are used to store product catalog information. Assume that each XML file takes up an average of 5MB of storage space, and there are 100 XML files in total.
[0065] Then, the storage capacity required for semi-structured data is equal to 100 files multiplied by 5MB, which equals 500MB.
[0066] (3) Unstructured data: such as high-definition pictures, used for product display. Assume that each picture takes up an average of 10MB of storage space and there are 500 pictures in total.
[0067] Then, the storage capacity required for unstructured data is equal to 500 images multiplied by 10MB, which equals 5,000MB, which equals 4.88GB (where 1GB equals 1024MB).
[0068] Then sum up the storage capacity required for these three different types of data structures to determine the capacity required for business data storage. The capacity required for business data storage is equal to the sum of the storage capacity required for structured data, the storage capacity required for semi-structured data, and the storage capacity required for unstructured data. That is, 976.56MB+500MB+4.88GB=1.48GB+4.88GB=6.36GB. Therefore, the capacity required for business data storage is approximately 6.36GB. That is, the first resource required for the storage of business data collected by the network collaboration platform is 6.36GB.
[0069] S202: Determine a second resource of a virtual device in the network.
[0070] The second resource includes the storage capacity of the virtual device. The storage capacity refers to the size of the physical or logical space in which the virtual device can store data.
[0071] In a possible implementation, the network collaboration platform may first determine the number of virtual devices in the network and the storage capacity corresponding to each virtual device, and then determine the second resource of the virtual devices in the network according to the sum of the storage capacity corresponding to each virtual device.
[0072] In an embodiment of the present application, the network collaboration platform can obtain the number of virtual devices running in the current network according to the API interface. For each virtual device, the network collaboration platform needs to obtain its configured storage capacity. The storage capacity may include the size of the hard disk of the virtual device, etc.
[0073] The network collaboration platform adds up the storage capacity of each virtual device to obtain the total storage capacity of all virtual devices in the network. The total storage capacity of the virtual device is also the second resource of the virtual device.
[0074] For example, assuming that there are 10 virtual devices in the network collaboration platform, and the storage capacity of each device is 9 GB, the second resource of the virtual device determined by the network collaboration platform is 90 GB.
[0075] S203: Determine an adjustment strategy for a virtual device in the network based on the first resource and the second resource.
[0076] The adjustment strategy includes increasing or decreasing the number of virtual devices.
[0077] In one possible implementation, the network collaboration platform can determine the storage capacity corresponding to the first resource according to step S201 and determine the storage capacity corresponding to the second resource according to step S202, and determine the adjustment strategy of the virtual device in the network based on the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource.
[0078] In the embodiment of the present application, the network collaboration platform compares the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource. When the storage capacity corresponding to the first resource is greater than or equal to the storage capacity corresponding to the second resource, the adjustment strategy is to reduce the number of virtual devices; when the storage capacity corresponding to the first resource is less than the storage capacity corresponding to the second resource, the adjustment strategy is to increase the number of virtual devices.
[0079] For example, assume that the storage capacity corresponding to the first resource is S1, and the storage capacity corresponding to the second resource is S2. Assume that S1 is 100TB and S2 is 80TB. At this time, S1 is greater than S2, and the network coordination platform can increase the number of virtual devices to provide more storage capacity to meet business needs. Assume that S1 is 60TB and S2 is 80TB. At this time, S1 is less than S2, and the network coordination platform can reduce virtual devices to release unnecessary resources.
[0080] In some embodiments, Figure 3 As shown, the network collaboration platform can also establish a life cycle of a virtual device and monitor the operating status of the virtual device based on the life cycle of the virtual device. The life cycle of the virtual device includes registration of the virtual device, configuration of the virtual device, management of the virtual device and deregistration of the virtual device.
[0081] In the embodiment of the present application, the registration of the virtual device includes the registration of the information of the virtual device; the information of the virtual device includes one or more of the name, model and network address of the virtual device.
[0082] The configuration of the virtual device includes the configuration of resources and the configuration of the access network address.
[0083] The management of virtual devices includes performance monitoring and fault monitoring.
[0084] Unregistering a virtual device means removing information about the virtual device from the network.
[0085] In an embodiment of the present application, the network collaboration platform can record the initial state of the virtual device during the registration phase of the virtual device to provide benchmark data for subsequent operating status monitoring. During the configuration phase of the virtual device, the collected data is analyzed in real time according to preset thresholds or rules to promptly identify potential performance bottlenecks or hidden faults. During the management phase of the virtual device, the maintenance history and upgrade records of the virtual device are recorded to provide a reference for subsequent troubleshooting and performance tuning. During the deregistration phase of the virtual device, the network collaboration platform can perform a destruction operation to release the resources it occupies. During the destruction process, the network collaboration platform can ensure the integrity and security of the data to avoid data leakage or loss.
[0086] based on Figure 2 According to the technical solution shown, in the embodiment of the present application, the network collaboration platform can obtain the first resource required by the business data in the storage process and determine the second resource of the virtual device in the network. According to the first resource and the second resource, the adjustment strategy of the virtual device in the network is determined, and the adjustment strategy includes increasing or decreasing the number of virtual devices. Therefore, according to the relationship between the first resource required by the business data in the network and the second resource of the virtual device, the number of virtual devices can be dynamically adjusted to avoid waste of resources.
[0087] In the embodiment of the present application, the network collaboration platform can also realize the unified management of physical devices and virtual devices. Figure 4 A flowchart of a method for managing physical devices and virtual devices on a network collaboration platform provided in an embodiment of the present application, the method includes the following S401-S403.
[0088] S401: In response to a user inputting a device identification and indication information, the network collaboration platform determines a device to be matched.
[0089] The device identification may be a unique number, name or other identifiable information of the device. The indication information may include one or more of the operations of adding, deleting, modifying and searching the device.
[0090] In one possible implementation, in response to a user inputting a device identification and indication information on an input interface of the network collaboration platform, the network collaboration platform obtains the device identification and indication information to be matched.
[0091] S402: The network collaboration platform determines a device controller corresponding to the device to be matched according to the device to be matched.
[0092] The device controller includes a virtual device controller and a physical device controller. The virtual device controller is used to manage virtual devices. The physical device controller is used to manage physical devices.
[0093] In the embodiment of the present application, the network collaboration platform determines the device controller corresponding to the device to be matched according to the virtual device controller and the corresponding device identifier under the physical device controller stored in the database.
[0094] For example, in the embodiment of the present application, the storage form of the virtual device controller and the corresponding device identifier under the physical device controller stored in the database is not limited, and can be stored in the form of text or in the form of a table. For example, Table 1 shows a storage method in the form of a table.
[0095] Table 1 shows the corresponding device identifiers of the virtual device controllers and physical device controllers stored in the network collaboration platform.
[0096] Table 1
[0097]
[0098] S403: The network collaboration platform operates the to-be-matched device through the corresponding device controller according to the instruction information.
[0099] In one possible implementation, the network collaboration platform parses the received instruction information, extracts the operation type and operation parameters, and operates the device through the corresponding device controller.
[0100] In an embodiment of the present application, when the indication information is an operation of adding a device, the network collaboration platform can add the configuration information and status information of the new device to the corresponding database, initialize the device, and complete the operation of adding the device.
[0101] When the instruction information is an operation to delete a device, the network collaboration platform may delete the information of the corresponding device from the database to release the resources of the device.
[0102] When the instruction information is an operation to modify a device, the network collaboration platform updates the configuration information or status information of the corresponding device.
[0103] When the instruction information is an operation to search for a device, the network collaboration platform retrieves the current status, configuration information or history records of the specified device from the database according to the query conditions.
[0104] based on Figure 4 According to the technical solution shown in the embodiment of the present application, the network collaboration platform can be responsible for the management and control of physical devices and virtual devices respectively through different controllers, thereby realizing unified management of physical devices and virtual devices, and the controller interacts with the network collaboration platform through standardized interfaces and protocols, thereby ensuring compatibility and collaborative scheduling capabilities between different types of devices.
[0105] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the adjustment device of the virtual device or the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0106] The embodiment of the present application can divide the functional modules of the adjustment device or electronic device of the virtual device according to the above method. For example, the adjustment device or electronic device of the virtual device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0107] Figure 5 A schematic diagram of a virtual device adjustment device provided in an embodiment of the present application, the device comprising:
[0108] The acquisition unit 501 is used to acquire the first resource required in the storage process of the business data.
[0109] The determining unit 502 is configured to determine a second resource of a virtual device in the network; the second resource includes a storage capacity of the virtual device.
[0110] The determining unit 502 is further configured to determine an adjustment strategy for virtual devices in the network based on the first resource and the second resource; the adjustment strategy includes increasing or decreasing the number of virtual devices.
[0111] In a possible implementation, the determination unit 502 is specifically used to determine the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; and determine the adjustment strategy of the virtual device in the network according to the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource.
[0112] In a possible implementation, the determination unit 502 is also specifically used to determine an adjustment strategy by comparing the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource; when the storage capacity corresponding to the first resource is greater than or equal to the storage capacity corresponding to the second resource, the adjustment strategy is to increase the number of virtual devices; when the storage capacity corresponding to the first resource is less than the storage capacity corresponding to the second resource, the adjustment strategy is to reduce the number of virtual devices.
[0113] In a possible implementation, the determination unit 502 is further specifically configured to determine the number of virtual devices in the network and the storage capacity corresponding to each virtual device; and determine the second resource of the virtual device in the network according to the sum of the storage capacity corresponding to each virtual device.
[0114] In a possible implementation manner, the determination unit 502 is further specifically configured to collect service data in the network and determine the capacity of the service data; and determine the first resource required for the service data during storage according to the capacity of the service data.
[0115] In a possible implementation, the determination unit 502 is further specifically used to establish a life cycle of a virtual device; the life cycle of a virtual device includes registration of the virtual device, configuration of the virtual device, management of the virtual device, and deregistration of the virtual device; and monitor the operating status of the virtual device based on the life cycle of the virtual device.
[0116] In a possible implementation, the determination unit 502 is further specifically used to determine various processes of the life cycle of the virtual device, wherein registration of the virtual device includes registration of information of the virtual device; the information of the virtual device includes one or more of the name, model and network address of the virtual device; configuration of the virtual device includes configuration of resources and configuration of the access network address; management of the virtual device includes performance monitoring and fault monitoring; and deregistration of the virtual device indicates removal of information of the virtual device from the network.
[0117] Figure 6 A block diagram of an electronic device of an adjustment device for a virtual device involved in the above-mentioned embodiment is shown. The adjustment device for the virtual device includes: a processor 601 and a communication interface 602. The processor 601 is used to determine the adjustment strategy of the virtual device according to the resources of the virtual device and the resources of the business data, and the communication interface 602 is used for communication between the network collaboration platform and the virtual device and the physical device. The adjustment system of the virtual device may also include a memory 603 and a bus 604, and the memory 603 is used to store the storage capacity of the virtual device and the physical device.
[0118] Among them, the memory 603 can be a memory in the adjustment device of the virtual device, etc. The memory may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.
[0119] The processor 601 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0120] The bus 604 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0122] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the virtual device adjustment method in the above method embodiment.
[0123] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the virtual device adjustment method in the method flow shown in the above method embodiment.
[0124] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read products from the storage medium and can write products to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0125] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer executes the virtual device adjustment method of the embodiment of the present application.
[0126] Since the adjustment device of the virtual device, the computer-readable storage medium, and the computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.
[0127] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0130] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting a virtual device, characterized in that: The method comprises: Obtain the first resource required for business data storage; Determining a second resource of a virtual device in a network; the second resource comprising a storage capacity of the virtual device; Based on the first resource and the second resource, an adjustment strategy for the virtual devices in the network is determined; the adjustment strategy includes increasing or decreasing the number of the virtual devices.
2. The method according to claim 1, characterized in that The determining, based on the first resource and the second resource, an adjustment strategy for the virtual device in the network includes: Determining a storage capacity corresponding to the first resource and a storage capacity corresponding to the second resource; An adjustment strategy for the virtual device in the network is determined according to a storage capacity corresponding to the first resource and a storage capacity corresponding to the second resource.
3. The method according to claim 2, characterized in that The determining, according to the storage capacity corresponding to the first resource and the storage capacity corresponding to the second resource, an adjustment strategy of the virtual device in the network includes: comparing a storage capacity corresponding to the first resource and a storage capacity corresponding to the second resource; In a case where the storage capacity corresponding to the first resource is greater than or equal to the storage capacity corresponding to the second resource, the adjustment strategy is to increase the number of the virtual devices; In a case where the storage capacity corresponding to the first resource is smaller than the storage capacity corresponding to the second resource, the adjustment strategy is to reduce the number of the virtual devices.
4. The method according to claim 1, characterized in that: The determining of the second resource of the virtual device in the network includes: Determine the number of virtual devices in the network and the storage capacity corresponding to each virtual device; The second resource of the virtual device in the network is determined according to the sum of the storage capacity corresponding to each of the virtual devices.
5. The method according to claim 1, characterized in that The obtaining of the first resource required by the business data in the storage process includes: Collecting service data in the network and determining the capacity of the service data; The first resource required by the business data in a storage process is determined according to the capacity of the business data.
6. The method according to claim 1, characterized in that The method further comprises: Establishing the life cycle of the virtual device; the life cycle of the virtual device includes registration of the virtual device, configuration of the virtual device, management of the virtual device and deregistration of the virtual device; The operating status of the virtual device is monitored based on the life cycle of the virtual device.
7. The method according to claim 6, characterized in that The registration of the virtual device includes registration of information of the virtual device; the information of the virtual device includes one or more of the name, model and network address of the virtual device; The configuration of the virtual device includes configuration of resources and configuration of access network addresses; The management of the virtual device includes performance monitoring and fault monitoring; The deregistration of the virtual device indicates removing the information of the virtual device from the network.
8. A virtual device adjustment device, characterized in that: The device comprises: An acquisition unit, used for acquiring a first resource required in a storage process of business data; A determining unit, configured to determine a second resource of a virtual device in a network; the second resource includes a storage capacity of the virtual device; The determining unit is further used to determine an adjustment strategy for the virtual devices in the network based on the first resource and the second resource; the adjustment strategy includes increasing or decreasing the number of the virtual devices.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory configured to store instructions executable by the processor; The processor is configured to execute the instructions to implement the virtual device adjustment method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: Instructions are stored on the computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is enabled to execute the virtual device adjustment method as described in any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product includes computer instructions; when part or all of the computer instructions are run on a computer, the method for adjusting a virtual device according to any one of claims 1 to 7 is executed.