CN112631766B - Dynamic adjustment method and device for project environment resources - Google Patents

Dynamic adjustment method and device for project environment resources Download PDF

Info

Publication number
CN112631766B
CN112631766B CN201910950905.8A CN201910950905A CN112631766B CN 112631766 B CN112631766 B CN 112631766B CN 201910950905 A CN201910950905 A CN 201910950905A CN 112631766 B CN112631766 B CN 112631766B
Authority
CN
China
Prior art keywords
resources
storage
demand information
resource demand
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910950905.8A
Other languages
Chinese (zh)
Other versions
CN112631766A (en
Inventor
陈琪
郭岳
钟储建
陈挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910950905.8A priority Critical patent/CN112631766B/en
Publication of CN112631766A publication Critical patent/CN112631766A/en
Application granted granted Critical
Publication of CN112631766B publication Critical patent/CN112631766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a dynamic adjustment method and a device for project environment resources, wherein the method comprises the following steps: receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; the resource demand information comprises computing resource demand information, network resource demand information and storage resource demand information; distributing computing resources matched with the computing resource demand information; distributing flow resources matched with the network resource demand information; and allocating storage resources matched with the storage resource demand information; and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources. According to the scheme, the computing resources, the flow resources and the storage resources for production, pre-release and/or test are dynamically scheduled in a uniform resource scheduling mode, so that the flexibility of resource adjustment is improved, and meanwhile, the utilization rate of the resources is improved.

Description

Dynamic adjustment method and device for project environment resources
Technical Field
The invention relates to the technical field of computer virtualization resource scheduling, in particular to a dynamic adjustment method and device for project environment resources.
Background
Generally, project environments are generally divided into test environments, pre-release environments, and production environments.
The test environment is an environment in which corresponding codes are issued after the function development is completed; when all tests in the environment pass, the code of the environment will be released to the pre-release environment for release.
The pre-release environment refers to a set of environments established to avoid defects due to the difference between the test environment and the on-line environment. The pre-release environment has two functions: a) The system configuration and code configuration need to be completely consistent with the production environment to ensure that configuration environment problems are discovered in time before being released to the production environment. b) Problems with the production environment can be tested in-line with emergency through the pre-release environment.
And, the production environment refers to an on-line formal environment.
The prior art method for separating the three environments is basically to separate by isolating physical resources. The test environment, the pre-release environment and the production environment are independently deployed with a set of respective environments without any influence.
However, the existing physical separation method has at least the following disadvantages: first, the resource utilization rate is low, and resources in different environments cannot be fully reused, so that the resource utilization rate is low. Secondly, the resource change integration cost is high, and when part of equipment is old as test equipment, a large amount of physical resource adjustment (including but not limited to re-wiring, construction and the like) is needed, and the resource adjustment greatly increases the re-integration cost. Thirdly, the temporary adjustment of resources is high in complexity, and when the physical resources need to be temporarily adjusted (for example, part of the resources are temporarily used as pre-release environment resources and part of the resources are temporarily used as test resources), the cutting-over implementation period is generally longer, and the temporary adjustment complexity is relatively high.
Disclosure of Invention
In view of the foregoing, the present invention has been made to provide a method and apparatus for dynamically adjusting project environment resources that overcomes or at least partially solves the foregoing problems.
According to one aspect of the present invention, there is provided a dynamic adjustment method for project environment resources, including:
receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
distributing computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
Optionally, the allocating the computing resource matched with the computing resource requirement information according to the service attribute and the occupation data of the physical machine further includes:
judging whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists according to the service attribute and the occupied data of the physical machine;
if not, the occupied physical machine is subjected to resource adjustment according to the environment type and the resource quantity in the computing resource demand information, and the computing resource matched with the computing resource demand information is obtained.
Optionally, the adjusting the occupied physical machine according to the environment type and the resource quantity in the computing resource requirement information further includes:
judging whether the running sum of the occupied physical machines with the service attribute consistent with the environment type is lower than the calculation resources of the occupied physical machines, if so, distributing the calculation resources on the occupied physical machines with the service attribute consistent with the environment type; if not, the project environment is adjusted to the physical machine with inconsistent service attribute and environment type so as to allocate the computing resource.
Optionally, the adjusting the project environment for the physical machine with inconsistent service attribute and environment type to allocate the computing resource specifically includes:
and performing live hot migration on the resource service running on the physical machine with inconsistent service attributes and environment types and running sum lower than the computing resources of the physical machine, and performing project environment adjustment after migration is completed so as to allocate the computing resources.
Optionally, the service attribute includes a test attribute, a pre-release attribute, and/or a production attribute.
Optionally, before the traffic resource matching the network resource requirement information is allocated to the computing resource according to the trend of decreasing the production, pre-release and test traffic proportion, the method further includes:
multiple networks in the network resource requirement information are forwarded using multiple different virtual routes.
Optionally, the allocating the storage resource matched with the storage resource requirement information according to the stored actual usage data and the preset storage limit information further includes:
judging whether the storage resources matched with the storage types in the storage resource demand information meet the storage demands or not according to the stored actual use data;
if not, distributing the storage resources matched with the storage resource demand information according to the preset storage limit information.
According to another aspect of the present invention, there is provided a dynamic adjustment device for project environment resources, including:
the determining module is suitable for receiving an opening request of project environment resources initiated by a user and determining resource demand information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
the distribution module is suitable for distributing the computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
and the opening module is suitable for opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
According to yet another aspect of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the dynamic adjustment method of the project environment resource.
According to still another aspect of the present invention, there is provided a computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the dynamic adjustment method of project environment resources as described above.
According to the dynamic adjustment method and device for project environment resources, the resource scheduling control center determines the resource demand information according to the received opening request, and distributes the computing resources, the flow resources and the storage resources matched with the resource demand information in combination with the actual resource use condition, so that the project environment can be dynamically adjusted in a uniform resource scheduling mode, the resource adjustment flexibility is improved, the resource re-integration cost is reduced, and the resource utilization rate is improved; and moreover, a resource scheduling control center is used for carrying out production safety isolation in dynamic scheduling of project environment resources, so that production safety is considered, and production resources are ensured not to be influenced by testing and quasi-release.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of an embodiment of a method for dynamically adjusting environmental resources of an item of the present invention;
FIG. 2 is a flow chart illustrating another embodiment of a method for dynamically adjusting project environment resources according to the present invention;
FIG. 3 illustrates a dynamic scheduling architecture for project environment resources in one embodiment of the invention;
FIG. 4 illustrates a specific scheduling architecture diagram for computing, networking, and storing three aspects in accordance with a specific embodiment of the present invention;
FIG. 5 is a schematic diagram of an embodiment of a dynamic adjustment device for project environment resources according to the present invention;
FIG. 6 illustrates a schematic diagram of a computing device embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
FIG. 1 is a flow chart of an embodiment of a method for dynamically adjusting environmental resources of an item of the present invention. The method is performed by a resource scheduling center. As shown in fig. 1, the method comprises the steps of:
step S110: receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; the resource requirement information comprises computing resource requirement information, network resource requirement information and storage resource requirement information.
The user refers to a tenant applying for using the resource.
Specifically, the user applies for opening resources used as production, pre-release and/or test environments according to service requirements, namely, initiates an opening request of project environment resources. Resource information required by the user can be determined from the opening request, including computing resource information, storage resource information and network resource information. Wherein, the computing resource information refers to information of a physical machine, a virtual machine and/or a container required, for example, 10 virtual machines are required, 2 of which are used for testing and 8 of which are used for production; storage resource requirement information refers to a storage pattern of requirements, such as production storage, pre-release storage, and/or test storage; network resource requirement information refers to a network pattern of requirements, such as a production network, a pre-release network, and/or a test network.
Step S120: the method comprises the steps of allocating computing resources matched with computing resource demand information, traffic resources matched with network resource demand information, and storage resources matched with storage resource demand information.
Specifically, after the resource demand information is determined according to the opening request, according to the actual use conditions of the current computing resource, the network and the storage, a quality of service (Quality of Service, QOS for short) strategy is scheduled, matched computing resources are allocated for the current opening request, the network and the storage are limited, so that production safety is considered when the resources are adjusted, and the production resources are not influenced by testing and pre-release.
Further, according to the service attribute and the occupied data of the physical machine, the computing resources matched with the computing resource demand information are distributed. The service attribute refers to a preset environmental attribute, for example, 1-70 physical machines in 100 physical machines are production hosts, and the service attribute of the 70 physical machines is a production attribute. And occupying data is data used by each physical machine. According to the service attribute and the occupation data of the physical machine, whether the physical machine with various environment attributes is free or occupied specifically can be determined, and accordingly, the computing resources matched with the computing resource demand information can be allocated. For example, when the computing resource demand information indicates that computing resources for the test environment are needed, and the business attributes and occupancy data of the physical machine indicate that the test host has been fully occupied, then the production host may be adapted for the currently requested test business.
And allocating the flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing the production, pre-release and test flow rate occupation ratio. In the process of opening the resources, corresponding network flow limit is set for the computing resources, so that the test and/or pre-release cannot influence the production even if the maximum network flow is used, and the production safety is further ensured. Wherein the most traffic is allocated for computing resources used for production, typically no more than 25% of the traffic is allocated for computing resources used for testing and pre-release.
And distributing the storage resources matched with the storage resource demand information according to the stored actual use data and the preset storage limit information. The preset storage limit information is an upper limit set for the storage used for testing and/or pre-release, and the storage IO related limit corresponding to the resource set in the opening process ensures that even if the largest stored IO is used, the production cannot be influenced. For example, for a common 2G storage, the storage set for testing and/or pre-release cannot exceed 500M.
In the invention, the generated, pre-issued and tested resources are not physically isolated, but are distributed through the resource scheduling control center, the network and the storage resources, thereby realizing production safety isolation.
Step S130: and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
After the computing resource, the flow resource and the storage resource are obtained, the project environment resource corresponding to the current opening request can be opened for the production, pre-release and/or test service of the user.
According to the dynamic adjustment method for project environment resources, the resource scheduling control center determines resource demand information according to the received opening request, and distributes computing resources, flow resources and storage resources matched with the resource demand information in combination with actual resource use conditions, so that project environments can be dynamically adjusted in a uniform resource scheduling mode, resource adjustment flexibility is improved, resource re-integration cost is reduced, and resource utilization rate is improved; and moreover, a resource scheduling control center is used for carrying out production safety isolation in dynamic scheduling of project environment resources, so that production safety is considered, and production resources are ensured not to be influenced by testing and quasi-release.
FIG. 2 is a flow chart illustrating another embodiment of a method for dynamically adjusting project environment resources according to the present invention. As shown in fig. 2, the method comprises the steps of:
step S210: receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; the resource requirement information comprises computing resource requirement information, network resource requirement information and storage resource requirement information.
And the tenant applies for opening production, pre-release and testing environment resources according to the service requirements. And the resource scheduling control center judges a proper resource network mode and a proper storage mode according to the applied physical machine, virtual machine, container resource query network and storage resource.
In the opening process from step S220 to step S240 described below, the judgment is made according to the service quality information, and the service quality setting is performed, including but not limited to network limitation, storage IO limitation, calculation resource limitation, and the like.
Step S220: and distributing computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine.
Wherein the business attributes include test attributes, pre-release attributes, and/or production attributes.
Specifically, whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists is judged according to the service attribute and the occupation data of the physical machine, wherein the environment type is the type of the environment for which the computing resource is to be used, for example, a user applies for opening the resource for production, and the environment type is the production environment. When computing resources are allocated, firstly, physical machines with service attributes consistent with environment types are considered, so that project environment adjustment can be reduced, if physical machines consistent with the environment types and free are available, virtual machines or container services can be directly deployed on the free physical machines, and the method can be realized by dividing logic areas; if the physical machine consistent with the environment type does not have an idle physical machine, the occupied physical machine is subjected to resource adjustment according to the environment type and the resource quantity in the computing resource demand information, and computing resources matched with the computing resource demand information are obtained. Judging whether the running sum of occupied physical machines with service attributes consistent with the environment types is lower than the calculation resources of the occupied physical machines, if the running sum is lower than the calculation resources of the occupied physical machines, indicating that the physical machines consistent with the environment types are not fully occupied, distributing the calculation resources on the occupied physical machines with service attributes consistent with the environment types, namely performing service migration among the occupied physical machines consistent with the environment types, and distributing the calculation resources which are not fully occupied to the current opening request.
Or if the running sum of the occupied physical machines with the service attribute consistent with the environment type is higher than or equal to the calculation resource, the physical machines with the service attribute inconsistent with the environment type are indicated to be fully occupied, at the moment, only the physical machines with the service attribute inconsistent with the environment type can be temporarily called, namely, the resource multiplexing of the physical machines is needed, the condition of resource multiplexing means that a single physical machine can be used as at least two resources in production resources, pre-release resources and/or test resources, but can only be used as one resource at the same moment, and meanwhile, the virtual machines and container services deployed on the physical machines are used as one resource at the same moment. In this case, project environment adjustment is performed on physical machines whose service attributes are inconsistent with the environment type to allocate computing resources, wherein among the physical machines whose service attributes are inconsistent with the environment type, physical machines whose running sum is lower than that of the computing resources are determined, and project environment adjustment is performed on these physical machines, for example, project environment adjustment of a production host is used for testing. Before the scheduling of the computing resources such as the virtual machine and/or the container is performed, the physical machine with inconsistent service attribute and environment type and running sum lower than the computing resources is required to perform live thermal migration on the resource service running on the physical machine, and project environment adjustment is performed after the migration is completed to allocate the computing resources.
Step S230: and allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing the production, pre-release and test flow rate.
After the computing resources are allocated, corresponding network resources are allocated for the computing resources. The allocation of network resources includes two aspects, one that logically isolates the network and the other that restricts traffic.
Specifically, firstly, a network is logically isolated, a plurality of networks in network resource demand information are forwarded by using a plurality of different virtual routes, wherein the network is mainly realized by different tenants in a software defined Storage (SDN) network, the different tenants use different VRF routes, and the production, pre-release and test of the network are ensured to be safely isolated from each other, namely, the networks are virtualized into a plurality of VRFs (Virtual Routing Forwarding, also called virtual route forwarding) (or in a plurality of tenant planes), the networks of the different tenants of the SDN are selected when the networks are opened, so that the logical isolation is realized, and in addition, equipment such as a firewall and the like can be deployed on the periphery to be physically isolated.
Then, flow restriction is performed. The network security further comprises traffic security, and traffic among different tenants is achieved through QOS of the network: including but not limited to QOS for virtual machines, QOS for network hardware ports. According to different flow requirements on the production environment, corresponding flow restrictions are set for the computing resources for testing and/or pre-release in the process of opening the resources, so that the computing resources for testing and/or pre-release cannot influence production even if the maximum network flow is used. In practical implementation, the highest service level of the production environment, the second service level of the pre-release environment and the lowest service level of the test environment are required to be guaranteed in service quality, and accordingly, when the flow rate is limited, the flow rate of the test environment is limited to be lower than that of the pre-release environment, the flow rate of the test environment is limited to be lower than that of the production environment, and preferably, the flow rate of the test environment is limited to be not more than 25% of the total flow rate. For example, if each physical machine can run m virtual machine services and/or container services, and the total flow of each physical machine is xG, if a user applies that p virtual machines and/or containers for production and q virtual machines and/or containers for testing multiplex the same physical machine, the flow of the q virtual machines and/or container services for testing needs to be limited, if the flow is limited to 25%, the flow should not exceed 25% xG, and it needs to be stated here that if the virtual machines and/or container services of other users are deployed on the physical machine, the flow ratio of all virtual machines and/or container services for testing on the physical machine needs to be ensured to be lower than the corresponding flow limit, such as 25%.
Step S240: and distributing the storage resources matched with the storage resource demand information according to the stored actual use data and the preset storage limit information.
When the resource allocation is performed, storage security is also considered, namely, the storage resource is allocated. Storage security is also divided into two cases, one is a case where storage resources are sufficient, and the other is a case where storage resources are multiplexed.
Specifically, when the storage resources are sufficient, the storage of each environment is used independently and is not affected by each other, namely, the production storage is used for production and the test storage is used for test. When the storage resources are multiplexed, the same storage in one mode distinguishes different storage pools, wherein the different storage pools are used for storing data in different environments, and mutual influence is avoided. The other way is to further set storage IO limit on the basis of dividing the storage pool, and the way can enable data of various environments to occupy storage resources of other environments while avoiding influence on data storage of the other environments under the condition that the divided storage pool is insufficient, and especially when testing and/or pre-release occupies storage of production, even if the testing and/or pre-release occupies the maximum storage IO, the influence on production can not be caused.
Further, based on the above two cases of sufficiency and multiplexing, when the allocation of the storage resources is performed, it is determined whether the storage resources matching the storage types in the storage resource demand information satisfy the storage demands according to the stored actual usage data. The storage type is consistent with the environment type for which the computing resource is to be used, for example, the user applies to open the resource for testing, and the storage type is the test storage. If the storage resources matched with the storage types meet the storage requirements, namely the storage resources are sufficient, the data of each environment can be stored independently. If the storage resources matched with the storage types do not meet the storage requirements, namely the storage resources need to be multiplexed, the storage resources matched with the storage resource requirement information are distributed according to preset storage limit information, wherein the preset storage limit information comprises storage pools of all divided environments and/or storage IO limits of all environments, when the storage is actually implemented, whether the storage resources of the storage pools consistent with the storage types are recombined is firstly judged, and if the storage resources are sufficient, the remaining storage resources in the corresponding storage pools are distributed; if insufficient, further occupying the storage pools of other storage types, and distributing the residual storage resources in the storage pools of other storage types according to the storage IO limit of each environment, so that the storage resources occupied by the data of each environment cannot exceed the corresponding storage online.
Step S250: and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
After the computing resource, the flow resource and the storage resource are obtained, the project environment resource corresponding to the current opening request can be opened for the production, pre-release and/or test service of the user.
FIG. 3 illustrates a dynamic scheduling architecture for project environment resources in one embodiment of the invention. As shown in fig. 3, dynamically adjusting project environment resources first starts from tenant demand application, performs project resource type matching, quality of service (Qos) matching, and generates a project resource environment after matching is completed, and in the process of dynamically adjusting project environment resources, two views are involved: the resource view and the QOS view are used for acquiring the requirements of the environment resources of the opening project of each tenant, including but not limited to resource numbers, resource types, required quantity, network modes and storage modes; and the QOS view is used to schedule current QOS policies, including but not limited to network limitations, storage IO limitations, according to current network, storage actual usage.
FIG. 4 illustrates a specific scheduling architecture diagram for computing, networking, and storing three aspects in one specific embodiment of the invention. As shown in fig. 4, in terms of computing resources, computing resources of a test environment, a pre-release environment, and/or a production environment that are opened for a user application are allocated, including allocation of physical machines (i.e., host 1, host 2, host 3), virtual machines, and/or containers; logically isolating the network of each environment in terms of network resources, and restricting the flow of computing resources for each environment; in terms of storage resources, storage allocation is performed.
According to the dynamic adjustment method for project environment resources, provided by the embodiment, the resource adjustment flexibility is improved on the premise of considering production safety; by dynamically adjusting project environment resources, the cost of resource change can be saved in a large-scale production environment, and the overall utilization rate of the resources is improved; from the actual production demand, the project resources are uniformly scheduled by combining with the actual production technologies such as SDN network scheduling, storage scheduling and the like, and the method has strong practicability and expansibility under a large-scale data center.
FIG. 5 is a schematic structural diagram of an embodiment of a dynamic adjustment device for environmental resources of an item according to the present invention. As shown in fig. 5, the apparatus includes:
a determining module 510, adapted to receive an opening request of a project environment resource initiated by a user, and determine resource requirement information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
the allocation module 520 is adapted to allocate the computing resources matched with the computing resource requirement information according to the service attribute and the occupation data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
an opening module 530, adapted to open the project environment resources corresponding to the computing resources, the traffic resources and the storage resources.
In an alternative embodiment, the dispensing module is further adapted to: judging whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists according to the service attribute and the occupied data of the physical machine;
if not, the occupied physical machine is subjected to resource adjustment according to the environment type and the resource quantity in the computing resource demand information, and the computing resource matched with the computing resource demand information is obtained.
In an alternative embodiment, the dispensing module is further adapted to: judging whether the running sum of the occupied physical machines with the service attribute consistent with the environment type is lower than the calculation resources of the occupied physical machines, if so, distributing the calculation resources on the occupied physical machines with the service attribute consistent with the environment type; if not, the project environment is adjusted to the physical machine with inconsistent service attribute and environment type so as to allocate the computing resource.
In an alternative embodiment, the dispensing module is further adapted to: and performing live hot migration on the resource service running on the physical machine with inconsistent service attributes and environment types and running sum lower than the computing resources of the physical machine, and performing project environment adjustment after migration is completed so as to allocate the computing resources.
Wherein the business attributes include test attributes, pre-release attributes, and/or production attributes.
In an alternative embodiment, the dispensing module is further adapted to: multiple networks in the network resource requirement information are forwarded using multiple different virtual routes.
In an alternative embodiment, the dispensing module is further adapted to: judging whether the storage resources matched with the storage types in the storage resource demand information meet the storage demands or not according to the stored actual use data;
if not, distributing the storage resources matched with the storage resource demand information according to the preset storage limit information.
The embodiment of the invention provides a non-volatile computer storage medium, which stores at least one executable instruction, and the computer executable instruction can execute the dynamic adjustment method of project environment resources in any of the method embodiments.
FIG. 6 illustrates a schematic diagram of an embodiment of a computing device of the present invention, and the embodiments of the present invention are not limited to a particular implementation of the computing device.
As shown in fig. 6, the computing device may include: a processor 602, a communication interface (Communications Interface), a memory 606, and a communication bus 608.
Wherein: processor 602, communication interface 604, and memory 606 perform communication with each other via communication bus 608. Communication interface 604 is used to communicate with network elements of other devices, such as clients or other servers. The processor 602 is configured to execute the program 610, and may specifically perform relevant steps in the above-described embodiments of a method for dynamically adjusting project environment resources for a computing device.
In particular, program 610 may include program code including computer-operating instructions.
The processor 602 may be a central processing unit CPU or a specific integrated circuit ASIC (Application Specific Integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 606 for storing a program 610. The memory 606 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may be specifically operable to cause the processor 602 to:
receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
distributing computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
In an alternative, the program 610 causes the processor to:
judging whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists according to the service attribute and the occupied data of the physical machine;
if not, the occupied physical machine is subjected to resource adjustment according to the environment type and the resource quantity in the computing resource demand information, and the computing resource matched with the computing resource demand information is obtained.
In an alternative, the program 610 causes the processor to:
judging whether the running sum of the occupied physical machines with the service attribute consistent with the environment type is lower than the calculation resources of the occupied physical machines, if so, distributing the calculation resources on the occupied physical machines with the service attribute consistent with the environment type; if not, the project environment is adjusted to the physical machine with inconsistent service attribute and environment type so as to allocate the computing resource.
In an alternative, the program 610 causes the processor to:
and performing live hot migration on the resource service running on the physical machine with inconsistent service attributes and environment types and running sum lower than the computing resources of the physical machine, and performing project environment adjustment after migration is completed so as to allocate the computing resources.
Wherein the business attributes include test attributes, pre-release attributes, and/or production attributes.
In an alternative, the program 610 causes the processor to:
multiple networks in the network resource requirement information are forwarded using multiple different virtual routes.
In an alternative, the program 610 causes the processor to:
judging whether the storage resources matched with the storage types in the storage resource demand information meet the storage demands or not according to the stored actual use data;
if not, distributing the storage resources matched with the storage resource demand information according to the preset storage limit information.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (6)

1. A method for dynamically adjusting project environment resources, comprising:
receiving an opening request of project environment resources initiated by a user, and determining resource demand information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
distributing computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
opening project environment resources corresponding to the computing resources, the flow resources and the storage resources;
the allocating the computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine further comprises:
judging whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists according to the service attribute and the occupied data of the physical machine;
if not, judging whether the running sum is lower than the calculation resources of the occupied physical machines with the service attribute being consistent with the environment type, if so, distributing the calculation resources on the occupied physical machines with the service attribute being consistent with the environment type; if not, carrying out project environment adjustment on the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource, so as to obtain the computing resource matched with the computing resource demand information, wherein the service attribute comprises a test attribute, a pre-release attribute and/or a production attribute;
the allocating the storage resources matched with the storage resource demand information according to the stored actual usage data and the preset storage limit information further comprises:
judging whether the storage resources matched with the storage types in the storage resource demand information meet the storage demands or not according to the stored actual use data;
if not, distributing storage resources matched with the storage resource demand information according to preset storage limit information, wherein the preset storage limit information comprises a storage pool of each divided environment and/or storage IO limit of each environment.
2. The method according to claim 1, wherein the project environment adjustment is performed on the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource specifically comprises:
and performing live hot migration on the resource service running on the physical machine with inconsistent service attributes and environment types and running sum lower than the computing resources of the physical machine, and performing project environment adjustment after migration is completed so as to allocate the computing resources.
3. The method of claim 1, wherein prior to allocating traffic resources to the computing resources that match the network resource demand information in accordance with the trend of decreasing production, pre-release, test traffic duty cycle, the method further comprises:
multiple networks in the network resource requirement information are forwarded using multiple different virtual routes.
4. A dynamic adjustment device for project environment resources, comprising:
the determining module is suitable for receiving an opening request of project environment resources initiated by a user and determining resource demand information according to the opening request; wherein the resource demand information includes computing resource demand information, network resource demand information, and storage resource demand information;
the distribution module is suitable for distributing the computing resources matched with the computing resource demand information according to the service attribute and the occupied data of the physical machine; according to the trend of decreasing the production, pre-release and test flow rate occupation ratio, allocating flow rate resources matched with the network resource demand information for the computing resources; according to the stored actual use data and preset storage limit information, distributing storage resources matched with the storage resource demand information;
the opening module is suitable for opening project environment resources corresponding to the computing resources, the flow resources and the storage resources;
the distribution module is further adapted to: judging whether an idle physical machine with the service attribute consistent with the environment type in the computing resource demand information exists according to the service attribute and the occupied data of the physical machine;
if not, judging whether the running sum is lower than the calculation resources of the occupied physical machines with the service attribute being consistent with the environment type, if so, distributing the calculation resources on the occupied physical machines with the service attribute being consistent with the environment type; if not, carrying out project environment adjustment on the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource, so as to obtain the computing resource matched with the computing resource demand information, wherein the service attribute comprises a test attribute, a pre-release attribute and/or a production attribute;
the distribution module is further adapted to: judging whether the storage resources matched with the storage types in the storage resource demand information meet the storage demands or not according to the stored actual use data;
if not, distributing storage resources matched with the storage resource demand information according to preset storage limit information, wherein the preset storage limit information comprises a storage pool of each divided environment and/or storage IO limit of each environment.
5. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the method for dynamically adjusting project environment resources according to any one of claims 1-3.
6. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method for dynamically adjusting project environment resources of any one of claims 1-3.
CN201910950905.8A 2019-10-08 2019-10-08 Dynamic adjustment method and device for project environment resources Active CN112631766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950905.8A CN112631766B (en) 2019-10-08 2019-10-08 Dynamic adjustment method and device for project environment resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950905.8A CN112631766B (en) 2019-10-08 2019-10-08 Dynamic adjustment method and device for project environment resources

Publications (2)

Publication Number Publication Date
CN112631766A CN112631766A (en) 2021-04-09
CN112631766B true CN112631766B (en) 2023-09-19

Family

ID=75283459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950905.8A Active CN112631766B (en) 2019-10-08 2019-10-08 Dynamic adjustment method and device for project environment resources

Country Status (1)

Country Link
CN (1) CN112631766B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395220B (en) * 2021-06-10 2022-12-27 中国建设银行股份有限公司 Network resource allocation method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958166A (en) * 2011-08-29 2013-03-06 华为技术有限公司 Resource allocation method and resource management platform
CN103548324A (en) * 2012-02-22 2014-01-29 华为技术有限公司 Method for virtual machine assignment and device for virtual machine assignment
CN104298537A (en) * 2014-10-10 2015-01-21 国家电网公司 Electric power information communication virtual environment resource model
WO2015021629A1 (en) * 2013-08-15 2015-02-19 华为技术有限公司 Resource allocation method
CN105323099A (en) * 2014-07-31 2016-02-10 中国移动通信集团公司 Business network traffic modeling method, network resource scheduling method and network element
CN107239337A (en) * 2016-03-28 2017-10-10 北京智梵网络科技有限公司 The distribution of virtual resources and dispatching method and system
CN108763090A (en) * 2018-05-31 2018-11-06 上海陆家嘴国际金融资产交易市场股份有限公司 Test environment dispositions method, device, computer equipment and storage medium
CN109714395A (en) * 2018-12-10 2019-05-03 平安科技(深圳)有限公司 Cloud platform resource uses prediction technique and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106548262B (en) * 2015-09-21 2020-11-06 阿里巴巴集团控股有限公司 Scheduling method, device and system for resources for processing tasks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958166A (en) * 2011-08-29 2013-03-06 华为技术有限公司 Resource allocation method and resource management platform
CN103548324A (en) * 2012-02-22 2014-01-29 华为技术有限公司 Method for virtual machine assignment and device for virtual machine assignment
WO2015021629A1 (en) * 2013-08-15 2015-02-19 华为技术有限公司 Resource allocation method
CN105323099A (en) * 2014-07-31 2016-02-10 中国移动通信集团公司 Business network traffic modeling method, network resource scheduling method and network element
CN104298537A (en) * 2014-10-10 2015-01-21 国家电网公司 Electric power information communication virtual environment resource model
CN107239337A (en) * 2016-03-28 2017-10-10 北京智梵网络科技有限公司 The distribution of virtual resources and dispatching method and system
CN108763090A (en) * 2018-05-31 2018-11-06 上海陆家嘴国际金融资产交易市场股份有限公司 Test environment dispositions method, device, computer equipment and storage medium
CN109714395A (en) * 2018-12-10 2019-05-03 平安科技(深圳)有限公司 Cloud platform resource uses prediction technique and terminal device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Energy-aware resource allocation heuristics for efficient management of data centers for Cloud computing;Anton Beloglazov 等;《Future Generation Computer Systems》;第28卷(第5期);755-768 *
网络、存储和计算一体化关键技术研究;陈清霞;《中国博士学位论文全文数据库信息科技辑》(第9期);I139-4 *

Also Published As

Publication number Publication date
CN112631766A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US11960915B2 (en) Method and apparatus for creating virtual machine based on parameter information of a virtual network interface card
EP3313023B1 (en) Life cycle management method and apparatus
CN107342895B (en) Multi-tenant network optimization method, system, computing device and storage medium
US9052932B2 (en) Hybrid virtual machine configuration management
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
CN105335229B (en) Scheduling method and device of service resources
CN108702316B (en) VNF resource allocation method and device
US20160269318A1 (en) Network bandwidth reservations for system traffic and virtual computing instances
CN106354544A (en) Virtual machine creating method and system and host
CN110647394A (en) Resource allocation method, device and equipment
CN112181585A (en) Resource allocation method and device for virtual machine
CN105490910B (en) Network communication method and client
CN109522090B (en) Resource scheduling method and device
US20230261950A1 (en) Method of container cluster management and system thereof
CN112099913A (en) Method for realizing safety isolation of virtual machine based on OpenStack
CN109213567B (en) Method and equipment for managing VNF instantiation
CN111736957A (en) Multi-type service mixed deployment method, device, equipment and storage medium
CN108829510A (en) Thread binds treating method and apparatus
CN112631766B (en) Dynamic adjustment method and device for project environment resources
CN113626173B (en) Scheduling method, scheduling device and storage medium
CN111953503A (en) NFV resource deployment arrangement method and network function virtualization orchestrator
WO2022047621A1 (en) Systems and methods of hybrid centralized distributive scheduling on shared physical hosts
US20220278944A1 (en) Method for allocating resources of a network infrastructure
CN116680078A (en) Cloud computing resource scheduling method, device, equipment and computer storage medium
WO2021002961A1 (en) Harvest virtual machine for utilizing cloud-computing resources

Legal Events

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