CN112631766A - 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
CN112631766A
CN112631766A CN201910950905.8A CN201910950905A CN112631766A CN 112631766 A CN112631766 A CN 112631766A CN 201910950905 A CN201910950905 A CN 201910950905A CN 112631766 A CN112631766 A CN 112631766A
Authority
CN
China
Prior art keywords
resources
demand information
storage
computing
resource demand
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.)
Granted
Application number
CN201910950905.8A
Other languages
Chinese (zh)
Other versions
CN112631766B (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

Images

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 method and a device for dynamically adjusting 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; allocating computing resources matched with the computing resource demand information; allocating flow resources matched with the network resource demand information; 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 unified resource scheduling mode, so that the resource adjustment flexibility is improved, and the resource utilization rate 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 method and a device for dynamically adjusting project environment resources.
Background
Generally, project environments are generally divided into test environments, pre-release environments, and production environments.
The test environment refers to an environment where corresponding codes are issued after function development is completed; when all tests in the environment pass, the code of the environment is issued to the pre-release environment for release.
The pre-release environment refers to a set of environments established to avoid defects due to differences between the test environment and the online 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 urgently tested on-line through a pre-release environment.
And, the production environment refers to an online 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 in a set of respective environments without any influence on each other.
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, resulting in low resource utilization rate. Secondly, the cost of resource change integration is high, and when part of the equipment is old as test equipment, a large amount of physical resource adjustment (including but not limited to rewiring, construction and the like) is required, and the resource adjustment greatly increases the cost of re-integration. Thirdly, the complexity of temporary resource adjustment is high, and when the physical resources need to be adjusted temporarily (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 implementing period of the cutting-over is usually longer, and the complexity of the temporary adjustment is relatively high.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method and apparatus for dynamically adjusting project environment resources that overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided a method for dynamically adjusting 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; 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 according to the service attributes and occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information;
and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
Optionally, the allocating, according to the service attribute and the occupied data of the physical machine, the computing resource matched with the computing resource demand information 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, adjusting the resources of the occupied physical machine according to the environment type and the resource quantity in the computing resource demand information to obtain the computing resources matched with the computing resource demand information.
Optionally, the adjusting the occupied physical machine according to the environment type and the resource quantity in the computing resource demand information further includes:
judging whether the running sum of the occupied physical machine with the service attribute consistent with the environment type is lower than the computing resource of the occupied physical machine, if so, distributing the computing resource on the occupied physical machine with the service attribute consistent with the environment type; if not, adjusting the project environment of the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource.
Optionally, the adjusting the project environment of the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource specifically includes:
and performing real-time live migration on the resource service operated on the physical machine with the service attribute inconsistent with the environment type and the operation sum lower than the computing resource of the physical machine, and adjusting the project environment after the migration is completed to distribute the computing resource.
Optionally, the service attribute includes a test attribute, a pre-release attribute, and/or a production attribute.
Optionally, before allocating traffic resources matched with the network resource demand information to the computing resources according to the trend of decreasing the production, pre-release, and test traffic ratios, the method further includes:
and forwarding the plurality of networks in the network resource demand information by using a plurality of different virtual routes.
Optionally, the allocating, according to the stored actual usage data and preset storage limitation information, a storage resource matched with the storage resource requirement 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;
and if not, allocating the storage resources matched with the storage resource demand information according to preset storage limit information.
According to another aspect of the present invention, there is provided an apparatus for dynamically adjusting 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; the resource demand information comprises 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 attributes and the occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit 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 system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication 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, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform operations corresponding to the above project environment resource dynamic adjustment method.
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 unified resource scheduling mode, the resource adjustment flexibility is improved, the resource reintegration cost is reduced, and the resource utilization rate is improved; and moreover, a resource scheduling control center is used for production safety isolation in the project environment resource dynamic scheduling, production safety is considered, and production resources are not influenced by testing and accurate release.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method embodiment of the present invention for dynamically adjusting project environment resources;
FIG. 2 is a flow chart illustrating another embodiment of a method for dynamically adjusting project environment resources in accordance with the present invention;
FIG. 3 is a diagram illustrating a project environment resource dynamic scheduling architecture in accordance with an embodiment of the present invention;
FIG. 4 illustrates a specific scheduling architecture diagram for three aspects of computing, networking, and storage in a specific embodiment of the invention;
FIG. 5 is a schematic structural diagram of an embodiment of the apparatus for dynamically adjusting project environment resources according to the present invention;
FIG. 6 shows a schematic block diagram of an embodiment of a computing device 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 invention are shown in the drawings, it should be understood that the invention can 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 project environment resources 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 demand information comprises computing resource demand information, network resource demand information and storage resource demand information.
The user refers to a tenant applying for using the resource.
Specifically, the user applies for provisioning resources used as production, pre-release, and/or test environments according to the service requirements, that is, initiates a provisioning request of project environment resources. From the provisioning request, resource information required by the user, including computing resource information, storage resource information, and network resource information, may be determined. The computing resource information refers to information of required physical machines, virtual machines and/or containers, for example, 10 virtual machines are required, of which 2 are used for testing and 8 are used for production; storage resource requirement information refers to a required storage mode, such as production storage, pre-release storage, and/or test storage; network resource requirement information refers to a network model of a requirement, such as a production network, a pre-release network, and/or a test network.
Step S120: and allocating the computing resources matched with the computing resource demand information, the traffic resources matched with the network resource demand information and the storage resources matched with the storage resource demand information.
Specifically, after resource demand information is determined according to an opening request, a Quality of Service (QOS) strategy is scheduled according to actual use conditions of current computing resources, networks and storage, matched computing resources are distributed for the current opening request, and the networks and the storage are limited, so that production safety is considered when resources are adjusted, and production resources are not affected by testing and pre-release.
Furthermore, the computing resources matched with the computing resource demand information are distributed according to the service attributes and the occupied data of the physical machine. The service attribute refers to a preset environment attribute, for example, if 1 to 70 of 100 physical machines are production hosts, the service attribute of the 70 physical machines is a production attribute. And the occupation data is used data of each physical machine. Whether the physical machines with various environment attributes are idle or are occupied specifically can be determined according to the service attributes and the occupation data of the physical machines, and accordingly, the computing resources matched with the computing resource demand information can be distributed. For example, when the computing resource requirement information indicates that computing resources are required for the test environment and the service attributes and occupancy data of the physical machine indicate that the test host is fully occupied, the production host may be adjusted for the currently requested test service.
And allocating the flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio. In the process of resource opening, corresponding network flow limitation is set for computing resources, and the fact that even if the maximum network flow is used in testing and/or pre-release is guaranteed, production cannot be affected, and therefore production safety is guaranteed. Where 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 allocating the storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information. The preset storage limit information refers to an upper limit set for storage used for testing and/or pre-releasing, and the corresponding storage IO related limit is set in the process of opening resources, so that even the IO with the largest storage is used, the production cannot be affected. For example, for a total of 2G stores, the stores 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 calculation, network and storage resource allocation are carried out through the resource scheduling control center, 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 resources, the flow resources and the storage resources are obtained, the project environment resources corresponding to the current opening request can be opened for the production, pre-release and/or test services of the user.
According to the dynamic adjustment method for project environment resources provided by the embodiment, the resource scheduling control center determines resource demand information according to the received opening request, and allocates computing resources, flow resources and 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 unified resource scheduling manner, the resource adjustment flexibility is improved, the resource reintegration cost is reduced, and the resource utilization rate is improved; and moreover, a resource scheduling control center is used for production safety isolation in the project environment resource dynamic scheduling, production safety is considered, and production resources are not influenced by testing and accurate release.
FIG. 2 is a flow chart of another embodiment of the method for dynamically adjusting project environment resources of 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 demand information comprises computing resource demand information, network resource demand information and storage resource demand information.
And the tenant applies for opening production, pre-release and testing environment resources according to the service requirement. 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 and container resource query network and storage resource.
In the following step S220 to step S240, in the provisioning process, the determination is performed 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 the computing resources matched with the computing resource demand information according to the service attributes and the occupied data of the physical machine.
Wherein the service attribute comprises a test attribute, a pre-release attribute and/or a production attribute.
Specifically, it is determined whether there is an idle physical machine whose service attribute is consistent with the environment type in the computing resource demand information according to the service attribute and the occupancy data of the physical machine, where the environment type is the type of the environment in which the computing resource is to be used, for example, if the user applies for the resource for production, the environment type is the production environment. When the allocation of the computing resources is carried out, firstly, the physical machine with the service attribute consistent with the environment type is considered, so that the project environment adjustment can be reduced, if an idle physical machine with the service attribute consistent with the environment type exists, a virtual machine or a container service can be directly deployed on the idle physical machine, and the allocation can be realized by a way of dividing a logic area; and if no idle physical machine exists in the physical machines consistent with the environment type, performing resource adjustment on the occupied physical machines according to the environment type and the resource quantity in the computing resource demand information to obtain computing resources matched with the computing resource demand information. The method comprises the steps of judging whether the running sum of occupied physical machines with the service attributes consistent with the environment types is lower than the computing resources of the occupied physical machines, if the running sum is lower than the computing resources of the occupied physical machines, indicating that the physical machines consistent with the environment types are not completely occupied, distributing the computing resources on the occupied physical machines with the service attributes consistent with the environment types, namely carrying out service migration between the occupied physical machines consistent with the environment types, and then distributing the computing resources which are not completely occupied to a current opening request.
Or, if the running sum of occupied physical machines with the service attribute consistent with the environment type is higher than or equal to the computing resource of the physical machine, it indicates that the physical machine consistent with the environment type is completely occupied, at this time, only the physical machine with the service attribute inconsistent with the environment type can be called temporarily, that is, resource multiplexing of the physical machine is required, where the resource multiplexing refers to that a single physical machine can be used as at least two resources among a production resource, a pre-release resource, and/or a test resource, but can only be used as one resource at the same time, and meanwhile, virtual machines and container services deployed on the physical machine should be used as one resource at the same time. In this case, project environment adjustment is performed on physical machines whose business attributes are inconsistent with the environment type to allocate the computing resources, wherein, from among the physical machines whose business attributes are inconsistent with the environment type, physical machines whose running sums are lower than their computing resources are determined, and the project environment adjustment is performed on these physical machines, for example, the project environment adjustment of the production host is used for testing. Before scheduling computing resources such as virtual machines and/or containers, the physical machines with service attributes inconsistent with the environment types and running sums lower than the computing resources need to be subjected to real-time live migration on the running resource services, and project environment adjustment is performed after 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 production, pre-distribution and test flow ratio.
And after the computing resources are distributed, distributing corresponding network resources for the computing resources. The allocation of network resources includes two aspects, one is to logically isolate the network and the other is to perform traffic restriction.
Specifically, firstly, the network is logically isolated, and multiple networks in the network resource demand information are forwarded by using multiple different Virtual routes, wherein the network is mainly implemented by different tenants in a software defined Storage (SDN) network, and the different tenants use different VRF routes, so as to ensure that the networks are safely isolated from each other during production, pre-release and test, that is, the multiple networks are virtualized into multiple VRFs (Virtual Routing Forwarding, also called Virtual Routing Forwarding) (or in multiple tenant planes), and the networks of different tenants of the SDN are selected when the network is opened, so as to implement the logical isolation, and in addition, the periphery can also be deployed with devices such as a firewall for physical isolation.
Then, flow rate restriction is performed. The network security also comprises flow security, and the flow between different tenants is realized through the QOS of the network: including but not limited to QOS of virtual machines, QOS of network hardware ports. According to different flow requirements on production environments, corresponding flow limitation is set on the computing resources for testing and/or pre-release in the process of opening the resources, and the computing resources for testing and/or pre-release are guaranteed to have no influence on production even if the computing resources for testing and/or pre-release use the maximum network flow. In practical implementation, the service quality needs to ensure that the service level of the production environment is highest, the service level of the pre-release environment is second, and the service level of the test environment is lowest, and accordingly, when performing traffic limitation, the traffic proportion of the test environment is limited to be lower than that of the pre-release environment, and preferably, the traffic proportion of the test environment is limited to be not more than 25% of the total traffic. 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 for p virtual machines and/or containers for production that are opened, and q virtual machines and/or containers for testing reuse the same physical machine, the flow of the q virtual machines and/or containers for testing needs to be limited, e.g., the limit is 25%, the flow should not exceed 25% xG, and it needs to be described herein that, if virtual machines and/or containers of other users are deployed on the physical machine, it needs to be ensured that the flow rate of all virtual machines and/or containers for testing on the physical machine accounts for less than the corresponding flow limit, e.g., the limit of 25%.
Step S240: and allocating the storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information.
When resource allocation is performed, storage security needs to be considered, that is, storage resources are allocated. The storage security is also divided into two cases, one is the case of sufficient storage resources, and the other is the case of multiplexing storage resources.
Specifically, when the storage resources are sufficient, the storage of each environment is used independently without mutual influence, namely production storage and test storage are used in production and test. When the storage resources are multiplexed, in one mode, the same storage distinguishes different storage pools, wherein the different storage pools are used for storing data in different environments, and mutual influence is avoided. The other mode is to further set storage IO limit on the basis of the divided storage pool, so that under the condition that the divided storage pool is not enough, the data of various environments can occupy the storage resources of other environments, meanwhile, the influence on the data storage of other environments can be avoided, and particularly, when the test and/or pre-release occupy the storage of production, the test and/or pre-release can not influence the production even if the test and/or pre-release occupies the maximum storage IO.
Further, based on the above two situations of sufficiency and reuse, when the storage resources are allocated, whether the storage resources matched with the storage type in the storage resource demand information meet the storage demand is judged 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, if the user applies for opening a resource for testing, the storage type is 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 reused, 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 the divided storage pools of each environment and/or storage IO (input/output) limits of each environment, and during actual implementation, whether the storage resources of the storage pools consistent with the storage types are recombined or not is judged at first, and if the storage resources are sufficient, the residual storage resources in the corresponding storage pools are distributed; and if the storage resources occupied by the data of each environment cannot exceed the corresponding storage lines, further occupying storage pools of other storage types, and allocating the residual storage resources in the storage pools of other storage types according to the storage IO limit of each environment.
Step S250: and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
After the computing resources, the flow resources and the storage resources are obtained, the project environment resources corresponding to the current opening request can be opened for the production, pre-release and/or test services of the user.
FIG. 3 is a diagram illustrating a project environment resource dynamic scheduling architecture in an embodiment of the present invention. As shown in fig. 3, the dynamic adjustment of project environment resources starts with a tenant demand application, performs project resource type matching and quality of service (Qos) matching, and generates a project resource environment after completing the matching, and in the process of dynamically adjusting project environment resources, two views are involved: the method comprises the steps that a resource view and a QOS view are used, wherein the resource view is used for acquiring the requirements of each tenant for opening project environment resources at this time, and the requirements include but are not limited to resource numbers, resource types, required quantity, network modes and storage modes; and the QOS view is used for scheduling the current QOS strategy according to the current network and storage actual use condition, including but not limited to network limitation and storage IO limitation.
FIG. 4 shows a specific scheduling architecture diagram for three aspects of computing, networking, and storage in a specific embodiment of the invention. As shown in fig. 4, in terms of computing resources, the computing resources of the test environment, the pre-release environment and/or the production environment opened for the user application are allocated, including allocating physical machines (i.e., host 1, host 2, host 3), virtual machines and/or containers; in terms of network resources, logically isolating the networks of each environment and traffic-limiting the 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 flexibility of resource adjustment 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 resources is improved; project resources are uniformly scheduled by combining actual production technologies such as SDN network scheduling and storage scheduling from actual production requirements, 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 the apparatus for dynamically adjusting project environment resources 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; the resource demand information comprises 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 demand information according to the service attributes and occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information;
and the opening module 530 is adapted to open the project environment resources corresponding to the computing resources, the traffic resources and the storage resources.
In an alternative embodiment, the allocation 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, adjusting the resources of the occupied physical machine according to the environment type and the resource quantity in the computing resource demand information to obtain the computing resources matched with the computing resource demand information.
In an alternative embodiment, the allocation module is further adapted to: judging whether the running sum of the occupied physical machine with the service attribute consistent with the environment type is lower than the computing resource of the occupied physical machine, if so, distributing the computing resource on the occupied physical machine with the service attribute consistent with the environment type; if not, adjusting the project environment of the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource.
In an alternative embodiment, the allocation module is further adapted to: and performing real-time live migration on the resource service operated on the physical machine with the service attribute inconsistent with the environment type and the operation sum lower than the computing resource of the physical machine, and adjusting the project environment after the migration is completed to distribute the computing resource.
Wherein the service attribute comprises a test attribute, a pre-release attribute and/or a production attribute.
In an alternative embodiment, the allocation module is further adapted to: and forwarding the plurality of networks in the network resource demand information by using a plurality of different virtual routes.
In an alternative embodiment, the allocation 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;
and if not, allocating the storage resources matched with the storage resource demand information according to preset storage limit information.
An embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method for dynamically adjusting project environment resources in any of the above method embodiments.
Fig. 6 is a schematic structural diagram of an embodiment of a computing device according to the present invention, and a specific embodiment of the present invention does not limit a specific implementation of the computing device.
As shown in fig. 6, the computing device may include: a processor (processor)602, a communication Interface 604, a memory 606, and a communication bus 608.
Wherein: the processor 602, communication interface 604, and memory 606 communicate with one another via a communication bus 608. A communication interface 604 for communicating with network elements of other devices, such as clients or other servers. The processor 602, configured to execute the program 610, may specifically perform relevant steps in the above-described method embodiment for dynamically adjusting project environment resources of a computing device.
In particular, program 610 may include program code comprising computer operating instructions.
The processor 602 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 606 for storing a program 610. Memory 606 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
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 according to the service attributes and occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit 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, adjusting the resources of the occupied physical machine according to the environment type and the resource quantity in the computing resource demand information to obtain the computing resources matched with the computing resource demand information.
In an alternative, the program 610 causes the processor to:
judging whether the running sum of the occupied physical machine with the service attribute consistent with the environment type is lower than the computing resource of the occupied physical machine, if so, distributing the computing resource on the occupied physical machine with the service attribute consistent with the environment type; if not, adjusting the project environment of the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource.
In an alternative, the program 610 causes the processor to:
and performing real-time live migration on the resource service operated on the physical machine with the service attribute inconsistent with the environment type and the operation sum lower than the computing resource of the physical machine, and adjusting the project environment after the migration is completed to distribute the computing resource.
Wherein the service attribute comprises a test attribute, a pre-release attribute and/or a production attribute.
In an alternative, the program 610 causes the processor to:
and forwarding the plurality of networks in the network resource demand information by using a plurality of 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;
and if not, allocating the storage resources matched with the storage resource demand information according to 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 constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, 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 foregoing 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 invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed 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 device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. 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. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements 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 included in other embodiments, rather than other features, 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 may be used in any combination.
The 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 a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or 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 usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. A method for dynamically adjusting project environment resources is characterized by comprising 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 according to the service attributes and occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information;
and opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
2. The method of claim 1, wherein allocating the computing resources matched with the computing resource requirement information according to the business attributes and occupancy data of the physical machines 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, adjusting the resources of the occupied physical machine according to the environment type and the resource quantity in the computing resource demand information to obtain the computing resources matched with the computing resource demand information.
3. The method of claim 2, wherein adjusting the occupied physical machines according to the environment type and the resource amount in the computing resource demand information further comprises:
judging whether the running sum of the occupied physical machine with the service attribute consistent with the environment type is lower than the computing resource of the occupied physical machine, if so, distributing the computing resource on the occupied physical machine with the service attribute consistent with the environment type; if not, adjusting the project environment of the physical machine with the service attribute inconsistent with the environment type to allocate the computing resource.
4. The method according to claim 3, wherein the item environment adjustment for the physical machine whose service attribute is inconsistent with the environment type to allocate the computing resource is specifically:
and performing real-time live migration on the resource service operated on the physical machine with the service attribute inconsistent with the environment type and the operation sum lower than the computing resource of the physical machine, and adjusting the project environment after the migration is completed to distribute the computing resource.
5. The method according to any of claims 1-4, wherein the service attributes comprise test attributes, pre-release attributes and/or production attributes.
6. The method of claim 1, wherein prior to said assigning traffic resources matching network resource demand information to computing resources according to a trend of decreasing production, pre-release, and test traffic fractions, the method further comprises:
and forwarding the plurality of networks in the network resource demand information by using a plurality of different virtual routes.
7. The method of claim 1, wherein the allocating storage resources matching the storage resource requirement information according to the stored actual usage data and 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;
and if not, allocating the storage resources matched with the storage resource demand information according to preset storage limit information.
8. An apparatus for dynamically adjusting 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; the resource demand information comprises 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 attributes and the occupied data of the physical machine; allocating flow resources matched with the network resource demand information for the computing resources according to the trend of decreasing production, pre-distribution and test flow ratio; allocating storage resources matched with the storage resource demand information according to the stored actual use data and preset storage limit information;
and the opening module is suitable for opening project environment resources corresponding to the computing resources, the flow resources and the storage resources.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the dynamic adjustment method of the project environment resource according to any one of claims 1-7.
10. 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-7.
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 true CN112631766A (en) 2021-04-09
CN112631766B 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)

Cited By (1)

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

Citations (9)

* 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
US20170083381A1 (en) * 2015-09-21 2017-03-23 Alibaba Group Holding Limited System and method for processing task resources
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

Patent Citations (10)

* 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
US20150334696A1 (en) * 2013-08-15 2015-11-19 Huawei Technologies Co., Ltd. Resource provisioning 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
US20170083381A1 (en) * 2015-09-21 2017-03-23 Alibaba Group Holding Limited System and method for processing task resources
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
ANTON BELOGLAZOV 等: "Energy-aware resource allocation heuristics for efficient management of data centers for Cloud computing", 《FUTURE GENERATION COMPUTER SYSTEMS》, vol. 28, no. 5, pages 755 - 768, XP055876052, DOI: 10.1016/j.future.2011.04.017 *
陈清霞: "网络、存储和计算一体化关键技术研究", 《中国博士学位论文全文数据库信息科技辑》, no. 9, pages 139 - 4 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN112631766B (en) 2023-09-19

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
US11221884B2 (en) Hybrid virtual machine configuration management
US20210211391A1 (en) Automated local scaling of compute instances
CN110389843B (en) Service scheduling method, device, equipment and readable storage medium
CN112181585A (en) Resource allocation method and device for virtual machine
CN110389903B (en) Test environment deployment method and device, electronic equipment and readable storage medium
EP3442201B1 (en) Cloud platform construction method and cloud platform
US20230261950A1 (en) Method of container cluster management and system thereof
US20230037293A1 (en) Systems and methods of hybrid centralized distributive scheduling on shared physical hosts
CN109213567B (en) Method and equipment for managing VNF instantiation
CN111736957A (en) Multi-type service mixed deployment method, device, equipment and storage medium
CN108028806B (en) Method and device for allocating virtual resources in Network Function Virtualization (NFV) network
CN113626173B (en) Scheduling method, scheduling device and storage medium
CN112631766B (en) Dynamic adjustment method and device for project environment resources
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
CN108073460B (en) Global lock preemption method and device in distributed system and computing equipment
CN115686843A (en) Heterogeneous virtualization multi-tenant resource isolation scheduling method and device
CN111124593A (en) Information processing method and device, network element and storage medium
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN115086324A (en) Service chain allocation method and system, computer device and storage medium
CN115883283A (en) Deployment method and device of containerization VNF
CN108768890B (en) Multi-tenant resource multiplexing method and device in SDN network and controller

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