WO2022199204A1 - Method and apparatus for determining resources - Google Patents

Method and apparatus for determining resources Download PDF

Info

Publication number
WO2022199204A1
WO2022199204A1 PCT/CN2022/070247 CN2022070247W WO2022199204A1 WO 2022199204 A1 WO2022199204 A1 WO 2022199204A1 CN 2022070247 W CN2022070247 W CN 2022070247W WO 2022199204 A1 WO2022199204 A1 WO 2022199204A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset service
resource
preset
resource level
running
Prior art date
Application number
PCT/CN2022/070247
Other languages
French (fr)
Chinese (zh)
Inventor
白石
Original Assignee
北京汇钧科技有限公司
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 北京汇钧科技有限公司 filed Critical 北京汇钧科技有限公司
Publication of WO2022199204A1 publication Critical patent/WO2022199204A1/en

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a method and apparatus for determining resources.
  • redundant resources By allocating redundant resources to services, when the basic resources for running the services fail, the services can continue to be run based on the redundant resources, so as to ensure that the services are processed normally.
  • redundant resources are pre-allocated for the business before the business goes online/runs.
  • the present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining resources.
  • a method for determining resources including: acquiring a resource set, where the resource set includes a resource level and resources belonging to the resource level; acquiring a running state of a preset service, and determining The target resource level that matches the running state; uses the resources in the resource set that belong to the target resource level to run the preset service.
  • the preset service is currently running on a first resource matching the first resource level
  • determining a target resource level matching the running state includes: in response to determining that the running state of the preset service is lower than the first state threshold , determining that the second resource level is the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, in response to determining the running state of the preset service Above the second state threshold, the third resource level is determined as the target resource level, wherein the performance of the resources belonging to the third resource level for running the preset service is higher than the performance of the first resource for running the preset service.
  • the running state of the preset service includes: running parameters of current resources used to run the preset service.
  • the running state of the preset service includes: a requirement for continuity of the preset service when running.
  • the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
  • using the resources in the resource set that belong to the target resource level to run the preset service includes: in response to determining that the preset service has a reference operating state, using the resources in the resource set that belong to the first target resource level Resource, running the preset service; wherein, the reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
  • the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
  • an apparatus for determining resources comprising: an acquiring unit configured to acquire a resource set, wherein the resource set includes a resource level and resources belonging to the resource level; a determining unit, which is The processing unit is configured to obtain the running status of the preset service and determine the target resource level matching the running status; the processing unit is configured to use the resources in the resource set that belong to the target resource level to run the preset service.
  • the preset service is currently running on a first resource matching the first resource level
  • the determining unit includes: a first determining module configured to respond to determining that the running state of the preset service is lower than the first state threshold, determining the second resource level as the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, the second determining module, configured as In response to determining that the running state of the preset service is higher than the second state threshold, determining that the third resource level is the target resource level, wherein the performance of the resources belonging to the third resource level running the preset service is higher than that of the first resource running the preset service business performance.
  • the running state of the preset service includes: running parameters of current resources used to run the preset service.
  • the running state of the preset service includes: a requirement for continuity of the preset service when running.
  • the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
  • the processing unit includes: a processing module configured to, in response to determining that the preset service exists in a reference operating state, use the resources in the resource set that belong to the first target resource level to run the preset service; wherein, The reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
  • the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
  • an embodiment of the present disclosure provides an electronic device, comprising: one or more processors: a storage device for storing one or more programs, when the one or more programs are stored by one or more A plurality of processors execute such that one or more processors implement the method for determining resources as provided by the first aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein, when the program is executed by a processor, the method for determining resources provided in the first aspect is implemented .
  • FIG. 1 is an exemplary system architecture diagram to which embodiments of the present disclosure may be applied;
  • Figure 2 is a flowchart of one embodiment of a method for determining resources according to the present disclosure
  • FIG. 3 is a flowchart of another embodiment of a method for determining resources according to the present disclosure.
  • FIG. 4 is a schematic diagram of a resource collection of an example of a method for determining resources according to the present disclosure
  • FIG. 5 is a schematic diagram of an application scenario of the method for determining resources according to the present disclosure.
  • FIG. 6 is a schematic structural diagram of an embodiment of an apparatus for determining resources according to the present disclosure.
  • FIG. 7 is a block diagram of an electronic device used to implement the method for determining resources of an embodiment of the present disclosure.
  • FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of a method for determining a resource or an apparatus for determining a resource of the present disclosure may be applied.
  • the system architecture 100 may include a device 101 , a network 102 and a server 103 .
  • Network 102 is the medium used to provide a communication link between device 101 and server 103 .
  • the network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
  • a user may use the device 101 to interact with the server 103 through the network 102 to receive or send messages and the like.
  • Various programs may be installed on the device 101, such as information input programs, information processing programs, and the like.
  • Device 101 may be a variety of electronic devices having a display screen and capable of receiving server messages, including but not limited to smartphones, tablets, e-book readers, electronic players, laptop and desktop computers, servers, and the like.
  • the device 101 may be hardware or software. When the device 101 is hardware, it can be various electronic devices, and when the device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (e.g. multiple software modules for providing distributed services), or as a single software or software module. There is no specific limitation here.
  • the server 103 can obtain a resource set through the device 101 or local storage, where the resource set includes a resource level and resources belonging to the resource level, obtain the running state of the preset service, determine the target resource level matching the running state, and then use The resources in the resource set that belong to the target resource level run the preset service.
  • the method for determining resources provided by the embodiments of the present disclosure is generally performed by the server 105 , and accordingly, the apparatus for determining resources is generally provided in the server 105 .
  • terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
  • a flow 200 of one embodiment of a method for determining resources according to the present disclosure is shown, including the following steps:
  • Step 201 Obtain a resource set, where the resource set includes a resource level and resources belonging to the resource level.
  • the execution body of the method for determining resources can obtain the resource set by receiving information sent by the user using other devices, or by reading local storage or cloud storage.
  • the resource set includes each resource level, and resources belonging to each resource level of each resource level.
  • the resources may include various resources for processing services, for example, computing resources, storage resources, communication resources, power resources, and the like.
  • the resource level is used to characterize the processing type or processing efficiency of the resource processing business.
  • solid-state disk storage resources have high storage efficiency and high security during data storage, while disk storage resources have lower storage efficiency than solid-state disk storage resources during data storage.
  • the resource level of the storage resources of the solid state disk can be determined as the first level, and the resource level of the disk storage resources can be determined as the second level.
  • the resource level of the mobile network resources can be determined as the first level, and the resource level of the wireless network resources can be determined as the second level.
  • step 202 the running state of the preset service is acquired, and the target resource level matching the running state is determined.
  • the running state of the preset service can be acquired, and a target resource level matching the acquired running state can be determined.
  • the preset service can be any service specified by the user.
  • the running state of the preset service may be the current working state of the software running the preset service, the current working state of the hardware running the preset service, or the running environment required for normal operation of the preset service.
  • the execution body can obtain the mapping relationship information between the predetermined running state and the target resource level, and read the information corresponding to the obtained running state of the preset service from the mapping relationship information.
  • the target resource level is determined, and the read target resource level is determined as the target resource level matching the obtained running state of the preset service.
  • the preset service is currently running on basic resources
  • the resource set includes a first preset resource level and resources belonging to the first preset resource level, a second preset resource level, and resources belonging to the first preset resource level.
  • the predetermined mapping relationship information between the running state of the preset service and the target resource level may be: the running state corresponding to the first preset resource level is the utilization rate of the CPU (central processing unit, central processing unit) that processes the preset service, Two or more monitoring indicators such as data read/write throughput rate and transmission network read/write throughput rate are consistently higher than the set basic operating threshold; the operating state corresponding to the second preset resource level is that of the CPU processing the preset service. At most one of the monitoring indicators, such as utilization rate, data read and write throughput rate, and transmission network read and write throughput rate, is higher than the set basic operating threshold; the operating state corresponding to the third preset resource level is that of the CPU processing the preset service. Monitoring indicators such as utilization rate, data read and write throughput rate, and transmission network read and write throughput rate are lower than the basic operating threshold for a long time.
  • Step 203 using the resources in the resource set that belong to the target resource level to run the preset service.
  • part or all of the preset services may be migrated to resources belonging to the target resource level in the resource set, so as to use the resources belonging to the target resource level to run the preset services.
  • the method for determining resources includes acquiring a resource set and acquiring the running state of a preset service, determining a target resource level matching the running state, and using the resources belonging to the target resource level in the resource set to run the preset Services, the resources for running the preset services can be determined based on the running status of the preset services, so as to determine the resources for running the preset services on demand, and avoid the inability to process the preset services caused by insufficient redundant resources set for the preset services in advance. problem, or can avoid the problem of resource waste caused by excess redundant resources set in advance for preset services.
  • the preset service is currently running on a first resource matching the first resource level
  • determining a target resource level matching the running state includes: in response to determining that the running state of the preset service is lower than the first state threshold, determining The second resource level is the target resource level, wherein the performance of the resources belonging to the second resource level to run the preset service is lower than the performance of the first resource to run the preset service; or, in response to determining that the running state of the preset service is higher than The second state threshold is to determine the third resource level as the target resource level, wherein the performance of the resources belonging to the third resource level to run the preset service is higher than the performance of the first resource to run the preset service.
  • the preset service is currently running on the first resource matching the first resource level, and if it is determined that the current running state of the preset service is lower than the first state threshold, the second resource level may be determined as the target resource level , the performance of the resource corresponding to the second resource level and running the preset service is lower than that of the first resource.
  • the second resource level may be determined as the target resource level , the performance of the resource corresponding to the second resource level and running the preset service is lower than that of the first resource.
  • a third resource level may be determined as the target resource level, and the resource corresponding to the third resource level and the performance of running the preset service are higher than the first resource . It can be understood that for the same operating state, the first state threshold is lower than the second state threshold.
  • the running state of the preset service is a fault state
  • the target resource level that matches the fault state is the backup level, that is, it is determined that the resources in the resource set that belong to the backup level are used to run the preset service, and the resources of the backup level can be another one that is the same as the above-mentioned basic resources.
  • the basic resources for backup, and the preset business is migrated from the current basic resources to the basic resources for backup to continue to run. It can be understood that the migration operation can migrate the running preset service to the backup resource for normal operation when a resource failure occurs, so as not to affect the normal processing of the service. This process can be understood as standby resource startup based on equipment failure.
  • the second resource level can be determined as the target resource level, and the resources belonging to the second resource level are run in the preset It is assumed that the performance of the service is lower than the performance of the first resource running the preset service.
  • This process can be understood as a resource downgrade operation based on low resource utilization and/or can be understood as a resource release operation based on low resource utilization.
  • the basic resource used to store the data of the preset service is the storage resources of the solid-state hard disk. After confirming that the utilization rate of the storage space is lower than 30%, the resources for storing the data of the preset service can be downgraded to release more storage space. High-quality storage resources can improve the utilization efficiency of resources and avoid waste of resources.
  • the second resource level is determined as the target resource level, and the disk storage resources belonging to the second resource level in the resource set are used to store preset services. data.
  • the workload of the software or hardware running the preset service is higher than the load threshold (for example, the utilization rate of the storage space of the storage resource for storing the data of the preset service is high is higher than 95%, or the bandwidth occupancy rate of the communication resources used to transmit the data of the preset service is higher than 99%, or the continuity requirement of the preset service during operation is that the interruption time is less than 0.1 seconds, etc.), you can use
  • the third resource level is determined as the target resource level, and the performance of the resources belonging to the third resource level for running the preset service is higher than the performance of the first resource for running the preset service.
  • This process can be understood as a resource upgrade operation based on the resource running state at full load/or can be understood as assigning more or better quality resources to the preset business in order to avoid the resource running under the high load state for a long time to prevent it from downtime operation.
  • the basic resource for transmitting the data of the preset service is the 4G ( 4th generation, fourth generation mobile communication technology) mobile network.
  • the communication resources can be /
  • the transmission network is upgraded, so as to use a network with higher quality/better transmission performance than the current communication resources to transmit data to make up for the lack of currently available resources and improve the transmission efficiency of data, for example, determine the third resource level as the target resource level , so as to use the 5G ( 5th generation, fifth generation mobile communication technology) mobile network belonging to the third resource level in the resource set to transmit the data of the preset service.
  • the demand for continuity is that the interruption time is less than 0.5 seconds. Later, higher requirements are set for the operation of the preset service, and the demand for continuity of the preset service is increased to the point of interruption.
  • the time is less than 0.1 second, the resources for running the preset service can be upgraded, so that the preset service can be run with higher-quality resources, and the continuity of the preset service operation can be improved.
  • a downgrade or upgrade operation may be performed on the resources running the preset service based on the running state of the preset service, so that the performance of the resources running the preset service matches the running state of the preset service, and high-performance resources are prevented from being used for
  • active state such as data storage or large transmission volume
  • the running state of the preset service includes: running parameters of the current resource used to run the preset service.
  • the running state of the preset service includes running parameters of the current resources used to run the preset service
  • the running parameters may be hardware parameters, for example, CPU utilization of the current server processing the preset service, storage preset Set the utilization rate of the storage space of the service, the data read/write throughput rate of the storage space, the data read/write rate or bandwidth utilization rate of the communication link transmitting the preset service, etc.
  • the operation parameter may also be a software parameter, for example, the operation The initialization duration of the program of the preset service, the configuration parameters of the program for running the preset service, and the like.
  • This embodiment adopts the running parameters of the current resources of the preset service as the running state of the preset service, which can make the performance of the resource corresponding to the determined target resource level conform to the running parameters of the preset service, and can ensure that the preset service is migrated from the current resource After reaching the resource corresponding to the target resource level, it can run normally.
  • a flow 300 of one embodiment of a method for determining resources according to the present disclosure is shown, including the following steps:
  • Step 301 Acquire a resource set, where the resource set includes a resource level and resources belonging to the resource level.
  • Step 302 Acquire a requirement for continuity of a preset service during operation, and determine a target resource level matching the requirement for continuity of the preset service during operation.
  • the requirement for continuity of the preset service during operation is acquired, and a target resource level that matches the requirement for continuity of the preset service during operation is determined.
  • the execution body can obtain the mapping relationship information between the predetermined business continuity requirement and the target resource level, and read and obtain the information from the mapping relationship information. Preset the target resource level corresponding to the demand for continuity of the service at runtime, and determine the read target resource level as the target resource level that matches the obtained demand for continuity of the preset service at runtime.
  • the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of preset service to service interruption time, tolerance of preset service to communication rate, preset service Tolerance for data storage rate.
  • the requirement for continuity of the preset service during operation may be at least one of the following: tolerance of preset service to service interruption time, tolerance of preset service to communication rate, preset service The tolerance of the business to the data storage rate.
  • the tolerance of the preset service to the service interruption time refers to: the longest time that the service can tolerate the interruption of data reading and writing, or the longest time that the data transmission is interrupted during the running process.
  • the tolerance of the preset service to the communication rate refers to: to ensure the continuity of service data or to ensure the timeliness of the service data being processed, the minimum communication rate required by the service during operation.
  • the tolerance of the preset service to the data storage rate refers to the minimum data read/write rate required by the service during operation.
  • the preset service is currently running on basic resources
  • the resource set includes a first preset resource level and resources belonging to the first preset resource level, a second preset resource level, and resources belonging to the first preset resource level.
  • the predetermined mapping relationship information between the operating state of the preset service and the target resource level may include: the operating state corresponding to the first preset resource level is that the tolerance of the preset service to the service interruption time is the first duration, and the second preset The operating state corresponding to the resource level is that the preset service has a tolerance for service interruption time of the second duration, the operating state corresponding to the third preset resource level is that the preset service has a tolerance to service interruption time of the third duration, and the third preset resource level corresponds to the operating state.
  • the first duration is shorter than the second duration
  • the second duration is shorter than the third duration, for example, the first duration is 20 minutes/month, the second duration is 40 minutes/month, the third duration is 400 minutes/month, etc.
  • Step 303 Use the resources in the resource set that belong to the target resource level to run the preset service.
  • step 301 and step 303 in this embodiment are the same as those of step 201 and step 203, and are not repeated here.
  • the method for determining resources includes acquiring a resource set and acquiring the continuity requirement of a preset service at runtime, and determining a target resource level that matches the continuity requirement of the preset service during runtime , and use the resources belonging to the target resource level in the resource set to run the preset service, the resources for running the preset service can be determined based on the continuity requirements of the preset service when running, so that the preset service can be run from its current location. After the running resources are migrated to the resources belonging to the target resource level in the resource set, it is ensured that the running continuity of the preset service meets the requirements, so as to ensure the normal operation of the preset service.
  • using the resources in the resource set that belong to the target resource level to run the preset service includes: in response to determining that the preset service exists benchmark operation state, using the resources in the resource set that belong to the first target resource level to run the preset service; wherein, the benchmark operation state includes at least one of the following: the threshold value of the operation parameters of the resource running the preset service, the preset service running the threshold for the need for continuity.
  • the preset service may be run by using the resources in the resource set that belong to the first target resource level.
  • the benchmark operating state refers to: the threshold value of the operating parameter of the resource running the preset service, that is, the minimum operating parameter of the resource running the preset service, for example, the data read/write rate of the storage module that stores the data of the service A needs to reach 500 megabytes/second, the transmission rate of the communication resources for transmitting the data of service B needs to reach 100 megabits/second, or the computing power of the processor processing service C needs to reach 1TOPS (Tera Operations Per Second, Tera Operations Per Second, Tera Operations Per Second )Wait.
  • the reference operating state may also refer to: the threshold value of the continuity requirement of the preset service during operation, that is, the maximum value of the service interruption time tolerated by the preset service during operation, and the minimum value of the tolerated service data communication transmission rate , or the minimum tolerated data storage rate.
  • the first target resource level may include one or more target resource levels, and the resources belonging to the first target resource level in the resource set are in the running state when running the preset service and satisfy the benchmark running state resource.
  • the preset service has a reference state, using the resources belonging to the first target resource level to run the preset service can ensure that the operation or processing efficiency of the preset service meets the basic needs of the user.
  • the resource set includes at least one of the following: a first preset resource level, and multi-active devices belonging to the first preset resource level and /or hot standby, wherein the multi-active device includes multiple devices running simultaneously and providing services; a second preset resource level, and a cold standby belonging to the second preset resource level.
  • the resource set may include: a first preset resource level, and multi-active devices and/or hot backups belonging to the first preset resource level.
  • the multi-active device includes multiple devices, and the multiple devices run at the same time and can provide services such as data processing, data storage, or data transmission at the same time.
  • Hot standby refers to a physical device/virtual machine that is in running state and temporarily does not provide services, and only starts to provide services and take over the preset services when the basic equipment running the preset service fails.
  • the resource set may include: a second preset resource level, and cold standby belonging to the second preset resource level.
  • the cold standby refers to a physical device/virtual machine that is in an inactive/non-operating state and starts to run only when the basic device running the preset service fails to provide services and take over the preset service.
  • the resource set may also include: a third preset resource level, and cold standby belonging to the third preset resource level.
  • the performance of the cold backup belonging to the third preset resource level is lower than that of the cold backup belonging to the second preset resource level.
  • the resource set may also include other resource levels, and devices belonging to each of the other resource levels.
  • the performance of the devices belonging to each resource level can be gradually decreased, so that when the running state of the preset task changes gradually, the target resource level can be matched according to the gradually changing running state, that is, the running state can be adjusted according to the gradually changing running state.
  • the resources of the preset service are upgraded or downgraded.
  • FIG. 4( a ) shows the resources for running the preset service
  • the basic resource set 400 includes the basic devices N1 , N2 and N3 that run the preset service
  • the acquired resource set includes
  • the first preset resource level 401 is the multi-active virtual machine A1, the multi-active virtual machine A2, and the hot-standby virtual machine A3 belonging to the first preset resource level
  • the second preset resource level 402 is the cold storage device belonging to the second device resource level.
  • the performance of multi-active virtual machine A1, multi-active virtual machine A2, and hot standby virtual machine A3 is higher than that of cold standby B1, cold standby B2, and cold standby B3, and the performance of cold standby B1, cold standby B2, and cold standby B3 is higher than that of cold standby B1, cold standby B2, and cold standby B3.
  • multi-active virtual machine A1 can be a virtual machine that provides 5G communication services
  • cold standby B1 can be a virtual machine that provides 4G communication services
  • cold standby C1 can provide 3G ( 3th generation, third-generation mobile communication technology) virtual machine for communication services
  • multi-active virtual machine A2 can be a solid-state disk that provides storage services
  • cold standby B2 can be a disk that provides storage services
  • cold standby C2 can provide storage services.
  • Optical storage media eg optical discs).
  • Fig. 4(b) shows the resource leveling process for running the preset service.
  • the preset service can be migrated to run on the resources belonging to the first preset resource level, and released Basic resources, this process is the high availability (High Availability) configuration operation for the preset business operating system.
  • the preset service can be migrated to run on the resources belonging to the second preset resource level, and the resources belonging to the first preset resource level are released.
  • the preset service can be migrated to run on the resources belonging to the third preset resource level again, and the resources belonging to the second preset resource level are released, and this process is the process of running the preset service. Downgrade operations for resources.
  • the preset services can be migrated from resources belonging to the third preset resource level to resources belonging to the second preset resource level/first preset resource level. resources, and this process is an upgrade operation for resources running preset services.
  • the above-mentioned upgrade/downgrade operation may be a cross-level operation.
  • the preset service may be migrated from the resources belonging to the third preset resource level to the resources belonging to the first preset resource level, or the preset services may be migrated.
  • the preset services are migrated from the basic resources to the resources belonging to the third preset resource level.
  • Applying the method of determining resources can improve the availability of business systems, thereby reducing business downtime, maintaining high availability of services provided by preset businesses, and at the same time reducing the waste of redundant resources or avoiding the problem of insufficient architecture of redundant resources
  • FIG. 5 shows a specific process 500 of the method for determining resources, including:
  • the user may acquire or establish a basic resource set.
  • the interruption tolerance for the preset service is set, and the operation parameters of the current resource for running the preset service, the interruption tolerance of the preset service (ie, the running state of the preset service), and the mapping relationship with the resource level are established.
  • the basic resource set for running the preset service may include the basic resources required for running the preset service.
  • the preset service is stateless (not running)
  • the number of resources in the acquired or established resource set may be allocated to the basic resources.
  • the number of virtual machines or virtual machine images in the acquired or established resource set is the same as the number of running virtual machines in the basic resource set, so as to ensure that in any running virtual machine , When the virtual machine in the basic resource set goes down, the business can quickly recover.
  • Step 502 monitor the running state of the preset service, and perform smooth processing on the operation parameters obtained by monitoring, so as to avoid the interference of accidental events on judging the running state of the preset service.
  • Step 503 determine the target resource level that matches the running state, for example, determine whether the resources running the preset service need to be downgraded (step 5031) or upgraded (step 5032) based on the running state of the preset service at regular intervals (for example, 1 hour). ). If it is necessary to downgrade or upgrade, the resources running the preset service are migrated to the resources belonging to the target resource level according to the migration operation of the preset service shown in FIG. 4(b), and the preset service before the migration is The resources occupied by the service are recovered to release the resources (step 5033) for reuse.
  • the present disclosure provides an embodiment of an apparatus for determining resources, which is similar to the method embodiment shown in FIG. 2 or FIG. 3 .
  • the apparatus can be specifically applied to various electronic devices.
  • the apparatus 600 for determining resources in this embodiment includes: an acquiring unit 601 , a determining unit 602 , and a processing unit 603 .
  • the acquiring unit is configured to acquire a resource set, wherein the resource set includes resource levels and resources belonging to the resource level;
  • the determining unit is configured to acquire the running state of the preset service, and determine the target resource matching the running state level;
  • the processing unit is configured to use the resources in the resource set that belong to the target resource level to run the preset service.
  • the preset service is currently running on a first resource matching the first resource level
  • the determining unit includes: a first determining module configured to respond to determining that the running state of the preset service is lower than the first state threshold, determining the second resource level as the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, the second determining module, configured as In response to determining that the running state of the preset service is higher than the second state threshold, determining that the third resource level is the target resource level, wherein the performance of the resources belonging to the third resource level running the preset service is higher than that of the first resource running the preset service business performance.
  • the running state of the preset service includes: running parameters of current resources used to run the preset service.
  • the running state of the preset service includes: a requirement for continuity of the preset service when running.
  • the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
  • the processing unit includes: a processing module configured to, in response to determining that the preset service exists in a reference operating state, use the resources in the resource set that belong to the first target resource level to run the preset service; wherein, The reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
  • the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
  • Each unit in the above-mentioned apparatus 600 corresponds to the steps in the method described with reference to FIG. 2 or FIG. 3 . Therefore, the operations, features, and achievable technical effects described above with respect to the method for determining resources are also applicable to the apparatus 600 and the units included therein, and details are not described herein again.
  • the present disclosure also provides an electronic device and a readable storage medium.
  • FIG. 7 it is a block diagram of an electronic device 700 for a method for determining resources according to an embodiment of the present disclosure.
  • Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
  • the electronic device includes: one or more processors 701 , a memory 702 , and interfaces for connecting various components, including a high-speed interface and a low-speed interface.
  • the various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired.
  • the processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface.
  • multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired.
  • multiple electronic devices may be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system).
  • a processor 701 is taken as an example in FIG. 7 .
  • the memory 702 is the non-transitory computer-readable storage medium provided by the present disclosure.
  • the memory stores instructions executable by at least one processor, so that the at least one processor executes the method for determining resources provided by the present disclosure.
  • the non-transitory computer-readable storage medium of the present disclosure stores computer instructions for causing a computer to perform the methods for determining resources provided by the present disclosure.
  • the memory 702 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules ( For example, the acquisition unit 601, the determination unit 602, and the processing unit 603 shown in FIG. 6).
  • the processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 702, ie, implements the method for determining resources in the above method embodiments.
  • the memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of an electronic device for extracting video clips data etc. Additionally, memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701 that may be connected via a network to an electronic device for extracting video clips. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the electronic device for the method of determining resources may further include: an input device 703 , an output device 704 and a bus 705 .
  • the processor 701 , the memory 702 , the input device 703 and the output device 704 may be connected through a bus 705 or other means, and the connection through the bus 705 is taken as an example in FIG. 7 .
  • the input device 703 can receive input numerical or character information, and generate key signal input related to user settings and function control of the electronic device for extracting video clips, such as touch screen, keypad, mouse, trackpad, touchpad, pointer A stick, one or more mouse buttons, a trackball, a joystick, and other input devices.
  • Output devices 704 may include display devices, auxiliary lighting devices (e.g., LEDs), haptic feedback devices (e.g., vibration motors), and the like.
  • the display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
  • Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
  • the processor which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
  • machine-readable medium and “computer-readable medium” refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals.
  • machine-readable signal refers to any signal used to provide machine instructions and/or data to a programmable processor.
  • the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer.
  • a display device eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
  • the systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
  • a computer system can include clients and servers.
  • Clients and servers are generally remote from each other and usually interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

Abstract

The present disclosure relates to the technical field of computers. Disclosed are a method and apparatus for determining resources. The method comprises: acquiring a resource set; acquiring a running state of a preset service, and determining a target resource level matching the running state; and using resources in the resource set that belong to the target resource level to run the preset service.

Description

用于确定资源的方法和装置Method and apparatus for determining resources
交叉引用cross reference
本专利申请要求于2021年3月26日提交的、申请号为202110330817.5、发明名称为“用于确定资源的方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims the priority of the Chinese patent application with the application number 202110330817.5 and the invention title "Method and Apparatus for Determining Resources", filed on March 26, 2021, the full text of which is incorporated by reference in this application.
技术领域technical field
本公开涉及计算机技术领域,具体涉及用于确定资源的方法和装置。The present disclosure relates to the field of computer technology, and in particular, to a method and apparatus for determining resources.
背景技术Background technique
为业务分配冗余的资源,可以在运行业务的基础资源发生故障时,基于冗余资源继续运行业务,以确保业务被正常处理。通常是在业务上线/运行前即为业务预先分配冗余的资源。By allocating redundant resources to services, when the basic resources for running the services fail, the services can continue to be run based on the redundant resources, so as to ensure that the services are processed normally. Usually, redundant resources are pre-allocated for the business before the business goes online/runs.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种用于确定资源的方法、装置、电子设备以及计算机可读存储介质。The present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining resources.
根据本公开的第一方面,提供了一种用于确定资源的方法,包括:获取资源集合,其中,资源集合包括资源级别、以及属于资源级别的资源;获取预设业务的运行状态,并确定与运行状态匹配的目标资源级别;采用资源集合中的、属于目标资源级别的资源,运行预设业务。According to a first aspect of the present disclosure, a method for determining resources is provided, including: acquiring a resource set, where the resource set includes a resource level and resources belonging to the resource level; acquiring a running state of a preset service, and determining The target resource level that matches the running state; uses the resources in the resource set that belong to the target resource level to run the preset service.
在一些实施例中,预设业务当前运行于与第一资源级别匹配的第一资源,确定与运行状态匹配的目标资源级别,包括:响应于确定预设业务的运行状态低于第一状态阈值,确定第二资源级别为目标资源级别,其中,属于第二资源级别的资源运行预设业务的性能,低于第一资源运行预设业务的性能;或者,响应于确定预设业务的运行状态高于第二状态阈值,确定第三资源级别为目标资源级别,其中,属于第三资源级别的资源运行预 设业务的性能,高于第一资源运行预设业务的性能。In some embodiments, the preset service is currently running on a first resource matching the first resource level, and determining a target resource level matching the running state includes: in response to determining that the running state of the preset service is lower than the first state threshold , determining that the second resource level is the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, in response to determining the running state of the preset service Above the second state threshold, the third resource level is determined as the target resource level, wherein the performance of the resources belonging to the third resource level for running the preset service is higher than the performance of the first resource for running the preset service.
在一些实施例中,预设业务的运行状态包括:用于运行预设业务的当前资源的运行参数。In some embodiments, the running state of the preset service includes: running parameters of current resources used to run the preset service.
在一些实施例中,预设业务的运行状态包括:预设业务在运行时对连续性的需求。In some embodiments, the running state of the preset service includes: a requirement for continuity of the preset service when running.
在一些实施例中,预设业务在运行时对连续性的需求包括以下至少一项:预设业务对业务中断时间的容忍度、预设业务对通信速率的容忍度、预设业务对数据存储速率的容忍度。In some embodiments, the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
在一些实施例中,采用资源集合中的、属于目标资源级别的资源,运行预设业务,包括:响应于确定预设业务存在基准运行状态,采用资源集合中的、属于第一目标资源级别的资源,运行预设业务;其中,基准运行状态包括以下至少一项:运行预设业务的资源的运行参数的阈值、预设业务在运行时对连续性的需求的阈值。In some embodiments, using the resources in the resource set that belong to the target resource level to run the preset service includes: in response to determining that the preset service has a reference operating state, using the resources in the resource set that belong to the first target resource level Resource, running the preset service; wherein, the reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
在一些实施例中,资源集合中包括以下至少一项:第一预设资源级别、以及属于第一预设资源级别的多活设备和/或热备,其中,多活设备包括同时运行并提供服务的多个设备;第二预设资源级别、以及属于第二预设资源级别的冷备。In some embodiments, the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
根据本公开的第二方面,提供了一种用于确定资源的装置,包括:获取单元,被配置为获取资源集合,其中,资源集合包括资源级别、以及属于资源级别的资源;确定单元,被配置为获取预设业务的运行状态,并确定与运行状态匹配的目标资源级别;处理单元,被配置为采用资源集合中的、属于目标资源级别的资源,运行预设业务。According to a second aspect of the present disclosure, there is provided an apparatus for determining resources, comprising: an acquiring unit configured to acquire a resource set, wherein the resource set includes a resource level and resources belonging to the resource level; a determining unit, which is The processing unit is configured to obtain the running status of the preset service and determine the target resource level matching the running status; the processing unit is configured to use the resources in the resource set that belong to the target resource level to run the preset service.
在一些实施例中,预设业务当前运行于与第一资源级别匹配的第一资源,确定单元,包括:第一确定模块,被配置为响应于确定预设业务的运行状态低于第一状态阈值,确定第二资源级别为目标资源级别,其中,属于第二资源级别的资源运行预设业务的性能,低于第一资源运行预设业务的性能;或者,第二确定模块,被配置为响应于确定预设业务的运行状态高于第二状态阈值,确定第三资源级别为目标资源级别,其中,属于第三资源级别的资源运行预设业务的性能,高于第一资源运行预设业务的性能。In some embodiments, the preset service is currently running on a first resource matching the first resource level, and the determining unit includes: a first determining module configured to respond to determining that the running state of the preset service is lower than the first state threshold, determining the second resource level as the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, the second determining module, configured as In response to determining that the running state of the preset service is higher than the second state threshold, determining that the third resource level is the target resource level, wherein the performance of the resources belonging to the third resource level running the preset service is higher than that of the first resource running the preset service business performance.
在一些实施例中,预设业务的运行状态包括:用于运行预设业务的当前资源的运行参数。In some embodiments, the running state of the preset service includes: running parameters of current resources used to run the preset service.
在一些实施例中,预设业务的运行状态包括:预设业务在运行时对连续性的需求。In some embodiments, the running state of the preset service includes: a requirement for continuity of the preset service when running.
在一些实施例中,预设业务在运行时对连续性的需求包括以下至少一项:预设业务对业务中断时间的容忍度、预设业务对通信速率的容忍度、预设业务对数据存储速率的容忍度。In some embodiments, the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
在一些实施例中,处理单元,包括:处理模块,被配置为响应于确定预设业务存在基准运行状态,采用资源集合中的、属于第一目标资源级别的资源,运行预设业务;其中,基准运行状态包括以下至少一项:运行预设业务的资源的运行参数的阈值、预设业务在运行时对连续性的需求的阈值。In some embodiments, the processing unit includes: a processing module configured to, in response to determining that the preset service exists in a reference operating state, use the resources in the resource set that belong to the first target resource level to run the preset service; wherein, The reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
在一些实施例中,资源集合中包括以下至少一项:第一预设资源级别、以及属于第一预设资源级别的多活设备和/或热备,其中,多活设备包括同时运行并提供服务的多个设备;第二预设资源级别、以及属于第二预设资源级别的冷备。In some embodiments, the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
根据本公开的第三方面,本公开的实施例提供了一种电子设备,包括:一个或多个处理器:存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面提供的用于确定资源的方法。According to a third aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors: a storage device for storing one or more programs, when the one or more programs are stored by one or more A plurality of processors execute such that one or more processors implement the method for determining resources as provided by the first aspect.
根据本公开的第四方面,本公开的实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其中,程序被处理器执行时实现第一方面提供的用于确定资源的方法。According to a fourth aspect of the present disclosure, an embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein, when the program is executed by a processor, the method for determining resources provided in the first aspect is implemented .
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:
图1是本公开的实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which embodiments of the present disclosure may be applied;
图2是根据本公开的用于确定资源的方法的一个实施例的流程图;Figure 2 is a flowchart of one embodiment of a method for determining resources according to the present disclosure;
图3是根据本公开的用于确定资源的方法的另一个实施例的流程图;3 is a flowchart of another embodiment of a method for determining resources according to the present disclosure;
图4是根据本公开的用于确定资源的方法的一个示例的资源集合示意图;4 is a schematic diagram of a resource collection of an example of a method for determining resources according to the present disclosure;
图5是根据本公开的用于确定资源的方法的一个应用场景的示意图;5 is a schematic diagram of an application scenario of the method for determining resources according to the present disclosure;
图6是根据本公开的用于确定资源的装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for determining resources according to the present disclosure;
图7是用来实现本公开实施例的用于确定资源的方法的电子设备的框图。7 is a block diagram of an electronic device used to implement the method for determining resources of an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
图1示出了可以应用本公开的用于确定资源的方法或用于确定资源的装置的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of a method for determining a resource or an apparatus for determining a resource of the present disclosure may be applied.
如图1所示,系统架构100可以包括设备101,网络102和服务器103。网络102用以在设备101和服务器103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include a device 101 , a network 102 and a server 103 . Network 102 is the medium used to provide a communication link between device 101 and server 103 . The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
用户可以使用设备101通过网络102与服务器103交互,以接收或发送消息等。设备101上可以安装有各种程序,例如信息输入类程序、信息处理类程序等。A user may use the device 101 to interact with the server 103 through the network 102 to receive or send messages and the like. Various programs may be installed on the device 101, such as information input programs, information processing programs, and the like.
设备101可以是具有显示屏并且支持接收服务器消息的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、电子播放器、膝上型便携计算机和台式计算机、服务器等等。 Device 101 may be a variety of electronic devices having a display screen and capable of receiving server messages, including but not limited to smartphones, tablets, e-book readers, electronic players, laptop and desktop computers, servers, and the like.
设备101可以是硬件,也可以是软件。当设备101为硬件时,可以是各种电子设备,当设备101为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个 软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The device 101 may be hardware or software. When the device 101 is hardware, it can be various electronic devices, and when the device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (e.g. multiple software modules for providing distributed services), or as a single software or software module. There is no specific limitation here.
服务器103可以通过设备101或者本地存储获取资源集合,其中,资源集合包括资源级别、以及属于该资源级别的资源,获取预设业务的运行状态,并确定与运行状态匹配的目标资源级别,之后采用资源集合中的、属于目标资源级别的资源运行该预设业务。The server 103 can obtain a resource set through the device 101 or local storage, where the resource set includes a resource level and resources belonging to the resource level, obtain the running state of the preset service, determine the target resource level matching the running state, and then use The resources in the resource set that belong to the target resource level run the preset service.
需要说明的是,本公开的实施例所提供的用于确定资源的方法一般由服务器105执行,相应地,用于确定资源的装置一般设置于服务器105中。It should be noted that the method for determining resources provided by the embodiments of the present disclosure is generally performed by the server 105 , and accordingly, the apparatus for determining resources is generally provided in the server 105 .
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.
继续参考图2,示出了根据本公开的用于确定资源的方法的一个实施例的流程200,包括以下步骤:Continuing to refer to FIG. 2, a flow 200 of one embodiment of a method for determining resources according to the present disclosure is shown, including the following steps:
步骤201,获取资源集合,其中,资源集合包括资源级别、以及属于资源级别的资源。Step 201: Obtain a resource set, where the resource set includes a resource level and resources belonging to the resource level.
在本实施例中,用于确定资源的方法的执行主体(例如图1所示的服务器103)可以通过接收用户利用其他设备发送的信息、或者通过读取本地存储或云存储获取资源集合。资源集合中包括各个资源级别,以及属于各个资源级别中的每一个资源级别的资源。In this embodiment, the execution body of the method for determining resources (for example, the server 103 shown in FIG. 1 ) can obtain the resource set by receiving information sent by the user using other devices, or by reading local storage or cloud storage. The resource set includes each resource level, and resources belonging to each resource level of each resource level.
在本实施例中,资源可以包括用于处理业务的各种资源,例如,计算资源、存储资源、通信资源、电力资源等等。资源级别用于表征资源处理业务的处理类型或者处理效率,In this embodiment, the resources may include various resources for processing services, for example, computing resources, storage resources, communication resources, power resources, and the like. The resource level is used to characterize the processing type or processing efficiency of the resource processing business.
例如,针对存储资源,固态硬盘存储资源在进行数据存储时的存储效率高,安全性高,磁盘存储资源在进行数据存储时的存储效率低于固态硬盘存储资源。由此可以将固态硬盘存储资源的资源级别确定为第一级,将磁盘存储资源的资源级别确定为第二级。For example, for storage resources, solid-state disk storage resources have high storage efficiency and high security during data storage, while disk storage resources have lower storage efficiency than solid-state disk storage resources during data storage. Thereby, the resource level of the storage resources of the solid state disk can be determined as the first level, and the resource level of the disk storage resources can be determined as the second level.
再如,针对通信资源,由于移动网络的覆盖范围相比于单个的无线网络的覆盖范围广,采用移动网络进行数据传输的传输稳定性、高于采用无线网络进行数据传输的稳定性。由此可以将移动网络资源的资源级别确定为第一级,将无线网络资源的资源级别确定为第二级。For another example, for communication resources, since the coverage of a mobile network is wider than that of a single wireless network, the transmission stability of data transmission using a mobile network is higher than that of using a wireless network for data transmission. Thereby, the resource level of the mobile network resources can be determined as the first level, and the resource level of the wireless network resources can be determined as the second level.
步骤202,获取预设业务的运行状态,并确定与运行状态匹配的目标资源级别。In step 202, the running state of the preset service is acquired, and the target resource level matching the running state is determined.
在本实施例中,可以获取预设业务的运行状态,并确定与获取到的运行状态匹配的目标资源级别。预设业务可以是用户指定的任何业务。预设业务的运行状态可以是运行预设业务的软件的当前工作状态、可以是运行预设业务的硬件的当前工作状态、也可以是预设业务正常运行所需的运行环境。执行主体在获取到预设业务的运行状态后,可以获取预先确定的运行状态与目标资源级别的映射关系信息,并从该映射关系信息中、读取与所获取的预设业务的运行状态对应的目标资源级别,将该读取到的目标资源级别确定为与所获取的预设业务的运行状态匹配的目标资源级别。In this embodiment, the running state of the preset service can be acquired, and a target resource level matching the acquired running state can be determined. The preset service can be any service specified by the user. The running state of the preset service may be the current working state of the software running the preset service, the current working state of the hardware running the preset service, or the running environment required for normal operation of the preset service. After obtaining the running state of the preset service, the execution body can obtain the mapping relationship information between the predetermined running state and the target resource level, and read the information corresponding to the obtained running state of the preset service from the mapping relationship information. The target resource level is determined, and the read target resource level is determined as the target resource level matching the obtained running state of the preset service.
在一些可选地实施例中,预设业务当前运行在基础资源上,资源集合中包括第一预设资源级别、以及属于第一预设资源级别的资源,第二预设资源级别、以及属于第二预设资源级别的资源,第三预设资源级别、以及属于第三预设资源级别的资源。预先确定的预设业务的运行状态与目标资源级别的映射关系信息可以是:第一预设资源级别对应的运行状态为处理预设业务的CPU(central processing unit,中央处理器)的利用率、数据读写吞吐率、传输网络读写吞吐率等监控指标有两个或两个以上持续高于设定的基本运行阈值;第二预设资源级别对应的运行状态为处理预设业务的CPU的利用率、数据读写的吞吐率、传输网络的读写吞吐率等监控指标中至多一个高于设定的基本运行阈值;第三预设资源级别对应的运行状态为处理预设业务的CPU的利用率、数据读写吞吐率、传输网络读写吞吐率等监控指标长时间低于基本运行阈值。In some optional embodiments, the preset service is currently running on basic resources, and the resource set includes a first preset resource level and resources belonging to the first preset resource level, a second preset resource level, and resources belonging to the first preset resource level. The resources of the second preset resource level, the third preset resource level, and the resources belonging to the third preset resource level. The predetermined mapping relationship information between the running state of the preset service and the target resource level may be: the running state corresponding to the first preset resource level is the utilization rate of the CPU (central processing unit, central processing unit) that processes the preset service, Two or more monitoring indicators such as data read/write throughput rate and transmission network read/write throughput rate are consistently higher than the set basic operating threshold; the operating state corresponding to the second preset resource level is that of the CPU processing the preset service. At most one of the monitoring indicators, such as utilization rate, data read and write throughput rate, and transmission network read and write throughput rate, is higher than the set basic operating threshold; the operating state corresponding to the third preset resource level is that of the CPU processing the preset service. Monitoring indicators such as utilization rate, data read and write throughput rate, and transmission network read and write throughput rate are lower than the basic operating threshold for a long time.
步骤203,采用资源集合中的、属于目标资源级别的资源,运行预设业务。 Step 203, using the resources in the resource set that belong to the target resource level to run the preset service.
在本实施例中,可以将预设业务的部分或者全部迁移至资源集合中的、属于目标资源级别的资源,以采用该属于目标资源级别的资源运行预设业务。In this embodiment, part or all of the preset services may be migrated to resources belonging to the target resource level in the resource set, so as to use the resources belonging to the target resource level to run the preset services.
本实施例提供的用于确定资源的方法,获取资源集合、以及获取预设业务的运行状态,确定与运行状态匹配的目标资源级别,并采用资源集合中属于目标资源级别的资源运行该预设业务,可以基于预设业务的运行状态确定运行该预设业务的资源,从而实现按需确定运行预设业务的资源,避免预先为预设业务设置的冗余资源不足产生的无法处理预设业务的问 题,或者可以避免预先为预设业务设置的冗余资源过剩造成的资源浪费的问题。The method for determining resources provided by this embodiment includes acquiring a resource set and acquiring the running state of a preset service, determining a target resource level matching the running state, and using the resources belonging to the target resource level in the resource set to run the preset Services, the resources for running the preset services can be determined based on the running status of the preset services, so as to determine the resources for running the preset services on demand, and avoid the inability to process the preset services caused by insufficient redundant resources set for the preset services in advance. problem, or can avoid the problem of resource waste caused by excess redundant resources set in advance for preset services.
可选地,预设业务当前运行于与第一资源级别匹配的第一资源,确定与运行状态匹配的目标资源级别,包括:响应于确定预设业务的运行状态低于第一状态阈值,确定第二资源级别为目标资源级别,其中,属于第二资源级别的资源运行预设业务的性能,低于第一资源运行预设业务的性能;或者,响应于确定预设业务的运行状态高于第二状态阈值,确定第三资源级别为目标资源级别,其中,属于第三资源级别的资源运行预设业务的性能,高于第一资源运行预设业务的性能。Optionally, the preset service is currently running on a first resource matching the first resource level, and determining a target resource level matching the running state includes: in response to determining that the running state of the preset service is lower than the first state threshold, determining The second resource level is the target resource level, wherein the performance of the resources belonging to the second resource level to run the preset service is lower than the performance of the first resource to run the preset service; or, in response to determining that the running state of the preset service is higher than The second state threshold is to determine the third resource level as the target resource level, wherein the performance of the resources belonging to the third resource level to run the preset service is higher than the performance of the first resource to run the preset service.
在本实施例中,预设业务当前运行于与第一资源级别匹配的第一资源,若确定预设业务当前的运行状态低于第一状态阈值,可以将第二资源级别确定为目标资源级别,该第二资源级别对应的资源、运行预设业务的性能低于第一资源。或者,若确定预设业务当前的运行状态高于第二状态阈值,可以将第三资源级别确定为目标资源级别,该第三资源级别对应的资源、运行预设业务的性能高于第一资源。可以理解,针对同一种运行状态而言,第一状态阈值低于第二状态阈值。In this embodiment, the preset service is currently running on the first resource matching the first resource level, and if it is determined that the current running state of the preset service is lower than the first state threshold, the second resource level may be determined as the target resource level , the performance of the resource corresponding to the second resource level and running the preset service is lower than that of the first resource. Alternatively, if it is determined that the current running state of the preset service is higher than the second state threshold, a third resource level may be determined as the target resource level, and the resource corresponding to the third resource level and the performance of running the preset service are higher than the first resource . It can be understood that for the same operating state, the first state threshold is lower than the second state threshold.
具体地,若预设业务当前运行于基础资源上(即,预设业务运行前为该预设业务设定的、能够满足业务应用的最少运行资源),预设业务的运行状态为故障状态,则确定出与故障状态匹配的目标资源级别为备份级别,即,确定出采用资源集合中的、属于备份级别的资源运行预设业务,该备份级别的资源可以是与上述基础资源相同的另一个备份用的基础资源,并将预设业务从当前基础资源迁移至备份用的基础资源上继续运行。可以理解,该迁移操作可以在资源发生故障时,将正在运行的预设业务迁移至备份资源正常运行,以不影响业务的正常处理。该过程可以理解为基于设备故障的备用资源启动。Specifically, if the preset service is currently running on basic resources (that is, the preset service is set for the preset service before running and can satisfy the minimum operating resources for the service application), the running state of the preset service is a fault state, Then it is determined that the target resource level that matches the fault state is the backup level, that is, it is determined that the resources in the resource set that belong to the backup level are used to run the preset service, and the resources of the backup level can be another one that is the same as the above-mentioned basic resources. The basic resources for backup, and the preset business is migrated from the current basic resources to the basic resources for backup to continue to run. It can be understood that the migration operation can migrate the running preset service to the backup resource for normal operation when a resource failure occurs, so as not to affect the normal processing of the service. This process can be understood as standby resource startup based on equipment failure.
具体地,若预设业务当前运行于基础资源上,运行预设业务的软件或者硬件的工作负荷低于负荷阈值(例如,用于存储预设业务的数据的存储资源的存储空间的利用率低于30%,或者用于传输预设业务的数据的通信资源的带宽占用率低于50%等等),可以将第二资源级别确定为目标资源级别,属于该第二资源级别的资源运行预设业务的性能,低于第一资源运 行该预设业务的性能。该过程可以理解为基于资源利用率低的资源降级操作/或者可以理解为基于资源利用率低的资源释放操作。Specifically, if the preset service is currently running on the basic resources, the workload of the software or hardware running the preset service is lower than the load threshold (for example, the utilization rate of the storage space of the storage resource for storing the data of the preset service is low is lower than 30%, or the bandwidth occupancy rate of the communication resources used to transmit the data of the preset service is lower than 50%, etc.), the second resource level can be determined as the target resource level, and the resources belonging to the second resource level are run in the preset It is assumed that the performance of the service is lower than the performance of the first resource running the preset service. This process can be understood as a resource downgrade operation based on low resource utilization and/or can be understood as a resource release operation based on low resource utilization.
例如,用于存储预设业务的数据的基础资源为固态硬盘存储资源,在确认存储空间的利用率低于30%后,可以对存储预设业务的数据的资源进行降级处理,以释放出较优质的存储资源从而提高资源的利用效率,避免资源的浪费,如,将第二资源级别确定为目标资源级别,以采用资源集合中的属于第二资源级别的、磁盘存储资源存储预设业务的数据。For example, the basic resource used to store the data of the preset service is the storage resources of the solid-state hard disk. After confirming that the utilization rate of the storage space is lower than 30%, the resources for storing the data of the preset service can be downgraded to release more storage space. High-quality storage resources can improve the utilization efficiency of resources and avoid waste of resources. For example, the second resource level is determined as the target resource level, and the disk storage resources belonging to the second resource level in the resource set are used to store preset services. data.
具体地,若预设业务当前运行于基础资源上,运行预设业务的软件或者硬件的工作负荷高于负荷阈值(例如,用于存储预设业务的数据的存储资源的存储空间的利用率高于95%,或者用于传输预设业务的数据的通信资源的带宽占用率高于99%,或者预设业务在运行时对连续性的需求是中断时间少于0.1秒等等),可以将第三资源级别确定为目标资源级别,属于该第三资源级别的资源运行预设业务的性能,高于第一资源运行该预设业务的性能。该过程可以理解为基于资源满负荷运行状态下的资源升级操作/或者可以理解为为了避免资源长期运行于高负荷状态下,为预设业务分配更多或者更优质的资源以防止其发生宕机的操作。Specifically, if the preset service is currently running on the basic resources, the workload of the software or hardware running the preset service is higher than the load threshold (for example, the utilization rate of the storage space of the storage resource for storing the data of the preset service is high is higher than 95%, or the bandwidth occupancy rate of the communication resources used to transmit the data of the preset service is higher than 99%, or the continuity requirement of the preset service during operation is that the interruption time is less than 0.1 seconds, etc.), you can use The third resource level is determined as the target resource level, and the performance of the resources belonging to the third resource level for running the preset service is higher than the performance of the first resource for running the preset service. This process can be understood as a resource upgrade operation based on the resource running state at full load/or can be understood as assigning more or better quality resources to the preset business in order to avoid the resource running under the high load state for a long time to prevent it from downtime operation.
例如,用于传输预设业务的数据的基础资源为4G(4 th generation,第四代移动通信技术)移动网络,在确认该4G移动网络的带宽利用率已经超过99%后,可以对通信资源/传输网络进行升级处理,以采用更为优质/传输性能比当前通信资源好的网络传输数据,弥补当前可用资源的不足从而提高数据的传输效率,如,将第三资源级别确定为目标资源级别,以采用资源集合中的属于第三资源级别的5G(5 th generation,第五代移动通信技术)移动网络传输预设业务的数据。 For example, the basic resource for transmitting the data of the preset service is the 4G ( 4th generation, fourth generation mobile communication technology) mobile network. After confirming that the bandwidth utilization rate of the 4G mobile network has exceeded 99%, the communication resources can be / The transmission network is upgraded, so as to use a network with higher quality/better transmission performance than the current communication resources to transmit data to make up for the lack of currently available resources and improve the transmission efficiency of data, for example, determine the third resource level as the target resource level , so as to use the 5G ( 5th generation, fifth generation mobile communication technology) mobile network belonging to the third resource level in the resource set to transmit the data of the preset service.
又如,预设业务在运行的初期对连续性的需求是中断时间少于0.5秒,后期对预设业务的运行设定了更高的要求,将预设业务对连续性的需求提高到中断时间少于0.1秒,可以对运行预设业务的资源进行升级处理,以采用更为优质资源运行预设业务,提升预设业务运行的连续性。For another example, in the initial stage of operation of the preset service, the demand for continuity is that the interruption time is less than 0.5 seconds. Later, higher requirements are set for the operation of the preset service, and the demand for continuity of the preset service is increased to the point of interruption. When the time is less than 0.1 second, the resources for running the preset service can be upgraded, so that the preset service can be run with higher-quality resources, and the continuity of the preset service operation can be improved.
本实施例可以基于预设业务的运行状态对运行预设业务的资源进行降级或者升级操作,以使运行预设业务的资源的性能与预设业务的运行状态匹配,避免高性能资源被用于运行低运行状态(数据存储或者传输量小 等不活跃状态)的业务造成的优质资源的浪费的问题,或者低性能资源被用于运行高运行状态(数据存储或者传输量大等活跃状态)的业务造成的无法正常处理业务的问题。In this embodiment, a downgrade or upgrade operation may be performed on the resources running the preset service based on the running state of the preset service, so that the performance of the resources running the preset service matches the running state of the preset service, and high-performance resources are prevented from being used for The problem of waste of high-quality resources caused by running a business in a low running state (inactive state such as data storage or small transmission volume), or low-performance resources are used to run a high running state (active state such as data storage or large transmission volume) The problem caused by the business that the business cannot be processed normally.
可选地,预设业务的运行状态包括:用于运行预设业务的当前资源的运行参数。Optionally, the running state of the preset service includes: running parameters of the current resource used to run the preset service.
在本实施例中,预设业务的运行状态包括用于运行预设业务的当前资源的运行参数,该运行参数可以是硬件参数,例如,处理预设业务的当前服务器的CPU利用率、存储预设业务的存储空间的利用率、存储空间的数据读写吞吐率、传输预设业务的通信链路的数据读写率或者带宽利用率等等;该运行参数也可以是软件参数,例如,运行预设业务的程序的初始化时长、运行预设业务的程序配置参数等等。In this embodiment, the running state of the preset service includes running parameters of the current resources used to run the preset service, and the running parameters may be hardware parameters, for example, CPU utilization of the current server processing the preset service, storage preset Set the utilization rate of the storage space of the service, the data read/write throughput rate of the storage space, the data read/write rate or bandwidth utilization rate of the communication link transmitting the preset service, etc.; the operation parameter may also be a software parameter, for example, the operation The initialization duration of the program of the preset service, the configuration parameters of the program for running the preset service, and the like.
本实施例采用预设业务的当前资源的运行参数作为预设业务的运行状态,可以使确定的目标资源级别对应的资源的性能符合预设业务的运行参数,可以确保预设业务从当前资源迁移至与目标资源级别对应的资源后、能够正常运行。This embodiment adopts the running parameters of the current resources of the preset service as the running state of the preset service, which can make the performance of the resource corresponding to the determined target resource level conform to the running parameters of the preset service, and can ensure that the preset service is migrated from the current resource After reaching the resource corresponding to the target resource level, it can run normally.
继续参考图3,示出了根据本公开的用于确定资源的方法的一个实施例的流程300,包括以下步骤:Continuing to refer to FIG. 3, a flow 300 of one embodiment of a method for determining resources according to the present disclosure is shown, including the following steps:
步骤301,获取资源集合,其中,资源集合包括资源级别、以及属于资源级别的资源。Step 301: Acquire a resource set, where the resource set includes a resource level and resources belonging to the resource level.
步骤302,获取预设业务在运行时对连续性的需求,并确定与该预设业务在运行时对连续性的需求匹配的目标资源级别。Step 302: Acquire a requirement for continuity of a preset service during operation, and determine a target resource level matching the requirement for continuity of the preset service during operation.
在本实施例中,获取预设业务在运行时对连续性的需求,并确定与预设业务在运行时对连续性的需求相匹配的目标资源级别。执行主体在获取到预设业务在运行时对连续性的需求后,可以获取预先确定的业务连续性需求与目标资源级别的映射关系信息,并从该映射关系信息中、读取与所获取的预设业务在运行时对连续性的需求对应的目标资源级别,将该读取到的目标资源级别确定为与所获取的预设业务在运行时对连续性的需求匹配的目标资源级别。In this embodiment, the requirement for continuity of the preset service during operation is acquired, and a target resource level that matches the requirement for continuity of the preset service during operation is determined. After obtaining the continuity requirement of the preset business at runtime, the execution body can obtain the mapping relationship information between the predetermined business continuity requirement and the target resource level, and read and obtain the information from the mapping relationship information. Preset the target resource level corresponding to the demand for continuity of the service at runtime, and determine the read target resource level as the target resource level that matches the obtained demand for continuity of the preset service at runtime.
在一些可选地实施例中,预设业务在运行时对连续性的需求包括以下至少一项:预设业务对业务中断时间的容忍度、预设业务对通信速率的容 忍度、预设业务对数据存储速率的容忍度。In some optional embodiments, the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of preset service to service interruption time, tolerance of preset service to communication rate, preset service Tolerance for data storage rate.
在该可选地实施例中,预设业务在运行时对连续性的需求可以是以下至少一项:预设业务对业务中断时间的容忍度、预设业务对通信速率的容忍度、预设业务对数据存储速率的容忍度。其中,预设业务对业务中断时间的容忍度是指:业务在运行过程中可以容忍数据读写中断的最长时间、或者数据传输中断的最长时间。预设业务对通信速率的容忍度是指:为确保业务数据的连续性或者为确保业务数据被处理的时效性,业务在运行时所需的最低通信速率。预设业务对数据存储速率的容忍度是指:业务在运行时所需的最低数据读写速率。In this optional embodiment, the requirement for continuity of the preset service during operation may be at least one of the following: tolerance of preset service to service interruption time, tolerance of preset service to communication rate, preset service The tolerance of the business to the data storage rate. The tolerance of the preset service to the service interruption time refers to: the longest time that the service can tolerate the interruption of data reading and writing, or the longest time that the data transmission is interrupted during the running process. The tolerance of the preset service to the communication rate refers to: to ensure the continuity of service data or to ensure the timeliness of the service data being processed, the minimum communication rate required by the service during operation. The tolerance of the preset service to the data storage rate refers to the minimum data read/write rate required by the service during operation.
在一些可选地实施例中,预设业务当前运行在基础资源上,资源集合中包括第一预设资源级别、以及属于第一预设资源级别的资源,第二预设资源级别、以及属于第二预设资源级别的资源,第三预设资源级别、以及属于第三预设资源级别的资源。预先确定的预设业务的运行状态与目标资源级别的映射关系信息可以包括:第一预设资源级别对应的运行状态为预设业务对业务中断时间的容忍度为第一时长,第二预设资源级别对应的运行状态为预设业务对业务中断时间的容忍度为第二时长,第三预设资源级别对应的运行状态为预设业务对业务中断时间的容忍度为第三时长,并且第一时长小于第二时长,第二时长小于第三时长,如,第一时长是20分钟/月、第二时长是40分钟/月、第三时长是400分钟/月等。In some optional embodiments, the preset service is currently running on basic resources, and the resource set includes a first preset resource level and resources belonging to the first preset resource level, a second preset resource level, and resources belonging to the first preset resource level. The resources of the second preset resource level, the third preset resource level, and the resources belonging to the third preset resource level. The predetermined mapping relationship information between the operating state of the preset service and the target resource level may include: the operating state corresponding to the first preset resource level is that the tolerance of the preset service to the service interruption time is the first duration, and the second preset The operating state corresponding to the resource level is that the preset service has a tolerance for service interruption time of the second duration, the operating state corresponding to the third preset resource level is that the preset service has a tolerance to service interruption time of the third duration, and the third preset resource level corresponds to the operating state. The first duration is shorter than the second duration, and the second duration is shorter than the third duration, for example, the first duration is 20 minutes/month, the second duration is 40 minutes/month, the third duration is 400 minutes/month, etc.
步骤303,采用资源集合中的、属于目标资源级别的资源,运行预设业务。Step 303: Use the resources in the resource set that belong to the target resource level to run the preset service.
本实施例中对步骤301、步骤303的描述与步骤201、步骤203的描述一致,此处不再赘述。The descriptions of step 301 and step 303 in this embodiment are the same as those of step 201 and step 203, and are not repeated here.
本实施例提供的用于确定资源的方法,获取资源集合、以及获取预设业务在运行时对连续性的需求,并确定与该预设业务在运行时对连续性的需求匹配的目标资源级别,并采用资源集合中属于目标资源级别的资源运行该预设业务,可以基于预设业务在运行时对连续性的需求确定运行该预设业务的资源,从而可以使预设业务从当前其所运行的资源迁移至资源集合中属于目标资源级别的资源后,确保预设业务的运行连续性满足需求,以保障预设业务的正常运行。The method for determining resources provided in this embodiment includes acquiring a resource set and acquiring the continuity requirement of a preset service at runtime, and determining a target resource level that matches the continuity requirement of the preset service during runtime , and use the resources belonging to the target resource level in the resource set to run the preset service, the resources for running the preset service can be determined based on the continuity requirements of the preset service when running, so that the preset service can be run from its current location. After the running resources are migrated to the resources belonging to the target resource level in the resource set, it is ensured that the running continuity of the preset service meets the requirements, so as to ensure the normal operation of the preset service.
在上述结合图2和图3描述的实施例的一些可选的实现方式中,采用资源集合中的、属于目标资源级别的资源,运行预设业务,包括:响应于确定预设业务存在基准运行状态,采用资源集合中的、属于第一目标资源级别的资源,运行预设业务;其中,基准运行状态包括以下至少一项:运行预设业务的资源的运行参数的阈值、预设业务在运行时对连续性的需求的阈值。In some optional implementations of the embodiments described above in conjunction with FIG. 2 and FIG. 3 , using the resources in the resource set that belong to the target resource level to run the preset service includes: in response to determining that the preset service exists benchmark operation state, using the resources in the resource set that belong to the first target resource level to run the preset service; wherein, the benchmark operation state includes at least one of the following: the threshold value of the operation parameters of the resource running the preset service, the preset service running the threshold for the need for continuity.
在本实施例中,若确定预设业务存在基准运行状态,则可以采用资源集合中的、属于第一目标资源级别的资源运行预设业务。其中,基准运行状态是指:运行预设业务的资源的运行参数的阈值,即,运行预设业务的资源的最低运行参数,例如,存储业务A的数据的存储模块的数据读写速率需要达到500兆字节/秒,传输业务B的数据的通信资源的传输速率需要达到100兆比特/秒,或者处理业务C的处理器的运算能力需要达到1TOPS(Tera Operations Per Second,万亿次每秒)等。基准运行状态还可以指:预设业务在运行时对连续性的需求的阈值,即,预设业务在运行时所容忍的业务中断时间的最大值,所容忍的业务数据通信传输速率的最低值、或者所容忍的数据存储速率的最低值。In this embodiment, if it is determined that the preset service has a reference running state, the preset service may be run by using the resources in the resource set that belong to the first target resource level. The benchmark operating state refers to: the threshold value of the operating parameter of the resource running the preset service, that is, the minimum operating parameter of the resource running the preset service, for example, the data read/write rate of the storage module that stores the data of the service A needs to reach 500 megabytes/second, the transmission rate of the communication resources for transmitting the data of service B needs to reach 100 megabits/second, or the computing power of the processor processing service C needs to reach 1TOPS (Tera Operations Per Second, Tera Operations Per Second, Tera Operations Per Second )Wait. The reference operating state may also refer to: the threshold value of the continuity requirement of the preset service during operation, that is, the maximum value of the service interruption time tolerated by the preset service during operation, and the minimum value of the tolerated service data communication transmission rate , or the minimum tolerated data storage rate.
在本实施例中,第一目标资源级别中可以包含一个或者多个目标资源级别,资源集合中属于第一目标资源级别的资源是在运行预设业务时的运行状态、满足该基准运行状态的资源。当预设业务存在基准状态时,采用属于第一目标资源级别的资源运行该预设业务,可以确保预设业务的运行或者处理效率满足用户的基本需求。In this embodiment, the first target resource level may include one or more target resource levels, and the resources belonging to the first target resource level in the resource set are in the running state when running the preset service and satisfy the benchmark running state resource. When the preset service has a reference state, using the resources belonging to the first target resource level to run the preset service can ensure that the operation or processing efficiency of the preset service meets the basic needs of the user.
在上述结合图2和图3描述的实施例的一些可选的实现方式中,资源集合中包括以下至少一项:第一预设资源级别、以及属于第一预设资源级别的多活设备和/或热备,其中,多活设备包括同时运行并提供服务的多个设备;第二预设资源级别、以及属于第二预设资源级别的冷备。In some optional implementations of the embodiments described above in conjunction with FIG. 2 and FIG. 3 , the resource set includes at least one of the following: a first preset resource level, and multi-active devices belonging to the first preset resource level and /or hot standby, wherein the multi-active device includes multiple devices running simultaneously and providing services; a second preset resource level, and a cold standby belonging to the second preset resource level.
在本实施例中,资源集合可以包括:第一预设资源级别、以及属于第一预设资源级别的多活设备和/或热备。其中,多活设备包括多个设备,并且该多个设备同时运行,并可以同时提供数据处理、数据存储或者数据传输等服务。热备是指处于运行状态,暂时未提供服务、在运行预设业务的基础设备备发生故障时才开始提供服务并接管预设业务的物理设备/虚拟 机。In this embodiment, the resource set may include: a first preset resource level, and multi-active devices and/or hot backups belonging to the first preset resource level. The multi-active device includes multiple devices, and the multiple devices run at the same time and can provide services such as data processing, data storage, or data transmission at the same time. Hot standby refers to a physical device/virtual machine that is in running state and temporarily does not provide services, and only starts to provide services and take over the preset services when the basic equipment running the preset service fails.
资源集合可以包括:第二预设资源级别、以及属于第二预设资源级别的冷备。其中,冷备是指处于未启动/未运行状态、在运行预设业务的基础设备发生故障时才开始运行,以提供服务并接管预设业务的物理设备/虚拟机。The resource set may include: a second preset resource level, and cold standby belonging to the second preset resource level. The cold standby refers to a physical device/virtual machine that is in an inactive/non-operating state and starts to run only when the basic device running the preset service fails to provide services and take over the preset service.
资源集合也还可以包括:第三预设资源级别、以及属于第三预设资源级别的冷备。其中,属于第三预设资源级别的冷备的性能低于属于第二预设资源级别的冷备。The resource set may also include: a third preset resource level, and cold standby belonging to the third preset resource level. The performance of the cold backup belonging to the third preset resource level is lower than that of the cold backup belonging to the second preset resource level.
资源集合还可以包括其他资源级别、以及属于其他资源级别中的每一个资源级别的设备。属于各个资源级别的设备的性能可以逐级递减,以在预设任务的运行状态发生逐步变化时,可以根据逐步变化的运行状态匹配目标资源级别,也即,可以根据逐步变化的运行状态对运行预设业务的资源进行升级操作或者降级操作。The resource set may also include other resource levels, and devices belonging to each of the other resource levels. The performance of the devices belonging to each resource level can be gradually decreased, so that when the running state of the preset task changes gradually, the target resource level can be matched according to the gradually changing running state, that is, the running state can be adjusted according to the gradually changing running state. The resources of the preset service are upgraded or downgraded.
例如,如图4所示,图4(a)示出了运行预设业务的资源,其中,基础资源集合400中包含运行预设业务的基础设备N1、N2以及N3,获取的资源集合中包括第一预设资源级别401、属于第一预设资源级别的多活虚拟机A1、多活虚拟机A2、热备虚拟机A3,第二预设资源级别402、属于第二设备资源级别的冷备B1、冷备B2、冷备B3,第三预设资源级别、属于第三预设资源级别的冷备C1、冷备C2、冷备C3。其中,多活虚拟机A1、多活虚拟机A2、热备虚拟机A3的性能高于冷备B1、冷备B2、冷备B3,冷备B1、冷备B2、冷备B3的性能高于冷备C1、冷备C2、冷备C3,如,多活虚拟机A1可以是提供5G通信服务的虚拟机、冷备B1可以是提供4G通信服务的虚拟机、冷备C1可以是提供3G(3th generation,第三代移动通信技术)通信服务的虚拟机,多活虚拟机A2可以是提供存储服务的固态硬盘、冷备B2可以是提供存储服务的磁盘、冷备C2可以是提供存储服务的光存储介质(如光盘)。For example, as shown in FIG. 4 , FIG. 4( a ) shows the resources for running the preset service, wherein the basic resource set 400 includes the basic devices N1 , N2 and N3 that run the preset service, and the acquired resource set includes The first preset resource level 401 is the multi-active virtual machine A1, the multi-active virtual machine A2, and the hot-standby virtual machine A3 belonging to the first preset resource level, and the second preset resource level 402 is the cold storage device belonging to the second device resource level. Standby B1, cold standby B2, cold standby B3, the third preset resource level, cold standby C1, cold standby C2, and cold standby C3 belonging to the third preset resource level. Among them, the performance of multi-active virtual machine A1, multi-active virtual machine A2, and hot standby virtual machine A3 is higher than that of cold standby B1, cold standby B2, and cold standby B3, and the performance of cold standby B1, cold standby B2, and cold standby B3 is higher than that of cold standby B1, cold standby B2, and cold standby B3. Cold standby C1, cold standby C2, and cold standby C3, for example, multi-active virtual machine A1 can be a virtual machine that provides 5G communication services, cold standby B1 can be a virtual machine that provides 4G communication services, and cold standby C1 can provide 3G ( 3th generation, third-generation mobile communication technology) virtual machine for communication services, multi-active virtual machine A2 can be a solid-state disk that provides storage services, cold standby B2 can be a disk that provides storage services, and cold standby C2 can provide storage services. Optical storage media (eg optical discs).
如图4(b)示出了运行预设业务的资源的调级过程。当基础资源集合中的当前运行预设业务的基础设备N1、N2或者N3中的全部或者部分设备发生故障时,可以将预设业务迁移至属于第一预设资源级别的资源上运行,并且释放基础资源,该过程即为对预设业务运行系统的高可用性(High  Availability)配置操作。Fig. 4(b) shows the resource leveling process for running the preset service. When all or part of the basic equipment N1, N2 or N3 currently running the preset service in the basic resource set fails, the preset service can be migrated to run on the resources belonging to the first preset resource level, and released Basic resources, this process is the high availability (High Availability) configuration operation for the preset business operating system.
在需要降低处理预设业务的效率时,可以将预设业务迁移至属于第二预设资源级别的资源上运行,并且释放属于第一预设资源级别的资源,此时,在需要又一次降低处理预设业务的效率时,可以再次将预设业务迁移至属于第三预设资源级别的资源上运行,并且释放属于第二预设资源级别的资源,该过程即为对运行预设业务的资源的降级操作。反之,当需要提升处理预设业务的效率或者性能时,可以将预设业务从属于第三预设资源级别的资源上迁移至属于第二预设资源级别的资源/第一预设资源级别的资源,该过程即为对运行预设业务的资源的升级操作。需要说明的是,上述升级/降级操作可以是跨级别的操作,例如,可以将预设业务从属于第三预设资源级别的资源上迁移至属于第一预设资源级别的资源,或者可以将预设业务从基础资源迁移至属于第三预设资源级别的资源上。When the efficiency of processing the preset service needs to be reduced, the preset service can be migrated to run on the resources belonging to the second preset resource level, and the resources belonging to the first preset resource level are released. When processing the efficiency of the preset service, the preset service can be migrated to run on the resources belonging to the third preset resource level again, and the resources belonging to the second preset resource level are released, and this process is the process of running the preset service. Downgrade operations for resources. Conversely, when the efficiency or performance of processing preset services needs to be improved, the preset services can be migrated from resources belonging to the third preset resource level to resources belonging to the second preset resource level/first preset resource level. resources, and this process is an upgrade operation for resources running preset services. It should be noted that the above-mentioned upgrade/downgrade operation may be a cross-level operation. For example, the preset service may be migrated from the resources belonging to the third preset resource level to the resources belonging to the first preset resource level, or the preset services may be migrated. The preset services are migrated from the basic resources to the resources belonging to the third preset resource level.
应用确定资源的方法可以提高业务系统的可用性,从而减少业务停工时间,保持预设业务所提供的服务的高可用性,并且同时减少冗余资源的浪费、或者避免冗余资源的架构不足的问题Applying the method of determining resources can improve the availability of business systems, thereby reducing business downtime, maintaining high availability of services provided by preset businesses, and at the same time reducing the waste of redundant resources or avoiding the problem of insufficient architecture of redundant resources
在一些应用场景中,如图5所示,图5示出了用于确定资源的方法的一个具体的流程500,包括:In some application scenarios, as shown in FIG. 5 , FIG. 5 shows a specific process 500 of the method for determining resources, including:
步骤501,用户可以获取或者建立基础资源集合。设定对预设业务的中断容忍度,并建立用于运行预设业务的当前资源的运行参数以及预设业务的中断容忍度(即预设业务的运行状态)、与资源级别的映射关系。In step 501, the user may acquire or establish a basic resource set. The interruption tolerance for the preset service is set, and the operation parameters of the current resource for running the preset service, the interruption tolerance of the preset service (ie, the running state of the preset service), and the mapping relationship with the resource level are established.
运行预设业务的基础资源集合中可以包括运行预设业务所需的基础资源,当预设业务无状态(未运行)时,获取或者建立的资源集合中的资源的数量可以是分配到基础资源集合中的、每一个物理设备上的虚拟机的数量中的最大值,以确保在任何一台物理设备故障都能确保业务快速恢复。例如,若基础资源集合中的物理设备1上分配了6个虚拟机、物理设备2上分配了12个虚拟机,则获取或者建立的资源集合中的资源的虚拟机或者虚拟镜像个数为12。当预设业务为有状态(正在运行)时,获取或者建立的资源集合中的虚拟机或虚拟机镜像数量与基础资源集合中的运行的虚拟机的数量相同,以确保在任何一个正在运行的、基础资源集合中的虚拟机宕机时,业务能够迅速恢复。The basic resource set for running the preset service may include the basic resources required for running the preset service. When the preset service is stateless (not running), the number of resources in the acquired or established resource set may be allocated to the basic resources. The maximum value of the number of virtual machines on each physical device in the set, to ensure that the business can recover quickly if any physical device fails. For example, if 6 virtual machines are allocated to physical device 1 and 12 virtual machines are allocated to physical device 2 in the basic resource set, the number of virtual machines or virtual images of the resources in the acquired or created resource set is 12 . When the preset service is stateful (running), the number of virtual machines or virtual machine images in the acquired or established resource set is the same as the number of running virtual machines in the basic resource set, so as to ensure that in any running virtual machine , When the virtual machine in the basic resource set goes down, the business can quickly recover.
步骤502,监控预设业务的运行状态,对监控所得的运行参数进行平滑处理,以避免偶然事件对判断预设业务的运行状态的干扰。 Step 502 , monitor the running state of the preset service, and perform smooth processing on the operation parameters obtained by monitoring, so as to avoid the interference of accidental events on judging the running state of the preset service.
步骤503,确定与运行状态匹配的目标资源级别,例如,每隔一段时间(例如1小时)基于预设业务的运行状态确定运行预设业务的资源是否需要降级(步骤5031)或升级(步骤5032)。若需要进行降级或者升级,则将运行预设业务的资源依照图4(b)所示的预设业务的迁移操作将预设业务迁移至属于目标资源级别的资源上,并将迁移前预设业务所占用的资源进行回收以释放资源(步骤5033)以备重新利用。 Step 503, determine the target resource level that matches the running state, for example, determine whether the resources running the preset service need to be downgraded (step 5031) or upgraded (step 5032) based on the running state of the preset service at regular intervals (for example, 1 hour). ). If it is necessary to downgrade or upgrade, the resources running the preset service are migrated to the resources belonging to the target resource level according to the migration operation of the preset service shown in FIG. 4(b), and the preset service before the migration is The resources occupied by the service are recovered to release the resources (step 5033) for reuse.
进一步参考图6,作为对上述各图所示方法的实现,本公开提供了一种用于确定资源的装置的一个实施例,该装置实施例与图2或图3所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 6 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for determining resources, which is similar to the method embodiment shown in FIG. 2 or FIG. 3 . Correspondingly, the apparatus can be specifically applied to various electronic devices.
如图6所示,本实施例的用于确定资源的装置600,包括:获取单元601、确定单元602、处理单元603。其中,获取单元,被配置为获取资源集合,其中,资源集合包括资源级别、以及属于资源级别的资源;确定单元,被配置为获取预设业务的运行状态,并确定与运行状态匹配的目标资源级别;处理单元,被配置为采用资源集合中的、属于目标资源级别的资源,运行预设业务。As shown in FIG. 6 , the apparatus 600 for determining resources in this embodiment includes: an acquiring unit 601 , a determining unit 602 , and a processing unit 603 . The acquiring unit is configured to acquire a resource set, wherein the resource set includes resource levels and resources belonging to the resource level; the determining unit is configured to acquire the running state of the preset service, and determine the target resource matching the running state level; the processing unit is configured to use the resources in the resource set that belong to the target resource level to run the preset service.
在一些实施例中,预设业务当前运行于与第一资源级别匹配的第一资源,确定单元,包括:第一确定模块,被配置为响应于确定预设业务的运行状态低于第一状态阈值,确定第二资源级别为目标资源级别,其中,属于第二资源级别的资源运行预设业务的性能,低于第一资源运行预设业务的性能;或者,第二确定模块,被配置为响应于确定预设业务的运行状态高于第二状态阈值,确定第三资源级别为目标资源级别,其中,属于第三资源级别的资源运行预设业务的性能,高于第一资源运行预设业务的性能。In some embodiments, the preset service is currently running on a first resource matching the first resource level, and the determining unit includes: a first determining module configured to respond to determining that the running state of the preset service is lower than the first state threshold, determining the second resource level as the target resource level, wherein the performance of the resources belonging to the second resource level for running the preset service is lower than the performance of the first resource running the preset service; or, the second determining module, configured as In response to determining that the running state of the preset service is higher than the second state threshold, determining that the third resource level is the target resource level, wherein the performance of the resources belonging to the third resource level running the preset service is higher than that of the first resource running the preset service business performance.
在一些实施例中,预设业务的运行状态包括:用于运行预设业务的当前资源的运行参数。In some embodiments, the running state of the preset service includes: running parameters of current resources used to run the preset service.
在一些实施例中,预设业务的运行状态包括:预设业务在运行时对连续性的需求。In some embodiments, the running state of the preset service includes: a requirement for continuity of the preset service when running.
在一些实施例中,预设业务在运行时对连续性的需求包括以下至少一 项:预设业务对业务中断时间的容忍度、预设业务对通信速率的容忍度、预设业务对数据存储速率的容忍度。In some embodiments, the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, tolerance of the preset service to communication rate, preset service to data storage rate tolerance.
在一些实施例中,处理单元,包括:处理模块,被配置为响应于确定预设业务存在基准运行状态,采用资源集合中的、属于第一目标资源级别的资源,运行预设业务;其中,基准运行状态包括以下至少一项:运行预设业务的资源的运行参数的阈值、预设业务在运行时对连续性的需求的阈值。In some embodiments, the processing unit includes: a processing module configured to, in response to determining that the preset service exists in a reference operating state, use the resources in the resource set that belong to the first target resource level to run the preset service; wherein, The reference running state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during running.
在一些实施例中,资源集合中包括以下至少一项:第一预设资源级别、以及属于第一预设资源级别的多活设备和/或热备,其中,多活设备包括同时运行并提供服务的多个设备;第二预设资源级别、以及属于第二预设资源级别的冷备。In some embodiments, the resource set includes at least one of the following: a first preset resource level, and multi-active devices and/or hot standby belonging to the first preset resource level, wherein the multi-active devices include running simultaneously and providing A plurality of devices served; a second preset resource level, and a cold standby belonging to the second preset resource level.
上述装置600中的各单元与参考图2或图3描述的方法中的步骤相对应。由此上文针对用于确定资源的方法描述的操作、特征及所能达到的技术效果同样适用于装置600及其中包含的单元,在此不再赘述。Each unit in the above-mentioned apparatus 600 corresponds to the steps in the method described with reference to FIG. 2 or FIG. 3 . Therefore, the operations, features, and achievable technical effects described above with respect to the method for determining resources are also applicable to the apparatus 600 and the units included therein, and details are not described herein again.
根据本公开的实施例,本公开还提供了一种电子设备和一种可读存储介质。According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
如图7所示,是根据本公开实施例的用于确定资源的方法的电子设备700的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。As shown in FIG. 7 , it is a block diagram of an electronic device 700 for a method for determining resources according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图7所示,该电子设备包括:一个或多个处理器701、存储器702,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可 以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图7中以一个处理器701为例。As shown in FIG. 7 , the electronic device includes: one or more processors 701 , a memory 702 , and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). A processor 701 is taken as an example in FIG. 7 .
存储器702即为本公开所提供的非瞬时计算机可读存储介质。其中,该存储器存储有可由至少一个处理器执行的指令,以使该至少一个处理器执行本公开所提供的用于确定资源的方法。本公开的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本公开所提供的用于确定资源的方法。The memory 702 is the non-transitory computer-readable storage medium provided by the present disclosure. Wherein, the memory stores instructions executable by at least one processor, so that the at least one processor executes the method for determining resources provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions for causing a computer to perform the methods for determining resources provided by the present disclosure.
存储器702作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本公开实施例中的用于确定资源的方法对应的程序指令/模块(例如,附图6所示的获取单元601、确定单元602、处理单元603)。处理器701通过运行存储在存储器702中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的用于确定资源的方法。As a non-transitory computer-readable storage medium, the memory 702 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules ( For example, the acquisition unit 601, the determination unit 602, and the processing unit 603 shown in FIG. 6). The processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 702, ie, implements the method for determining resources in the above method embodiments.
存储器702可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据用于提取视频片段的电子设备的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器702可选包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至用于提取视频片段的电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of an electronic device for extracting video clips data etc. Additionally, memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701 that may be connected via a network to an electronic device for extracting video clips. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
用于确定资源的方法的电子设备还可以包括:输入装置703、输出装置704以及总线705。处理器701、存储器702、输入装置703和输出装置704可以通过总线705或者其他方式连接,图7中以通过总线705连接为例。The electronic device for the method of determining resources may further include: an input device 703 , an output device 704 and a bus 705 . The processor 701 , the memory 702 , the input device 703 and the output device 704 may be connected through a bus 705 or other means, and the connection through the bus 705 is taken as an example in FIG. 7 .
输入装置703可接收输入的数字或字符信息,以及产生与用于提取视频片段的电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置704可以包括显示设备、辅助照明 装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 703 can receive input numerical or character information, and generate key signal input related to user settings and function control of the electronic device for extracting video clips, such as touch screen, keypad, mouse, trackpad, touchpad, pointer A stick, one or more mouse buttons, a trackball, a joystick, and other input devices. Output devices 704 may include display devices, auxiliary lighting devices (e.g., LEDs), haptic feedback devices (e.g., vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网 络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.

Claims (16)

  1. 一种用于确定资源的方法,包括:A method for determining resources, including:
    获取资源集合,其中,所述资源集合包括资源级别、以及属于所述资源级别的资源;acquiring a resource set, wherein the resource set includes a resource level and resources belonging to the resource level;
    获取预设业务的运行状态,并确定与所述运行状态匹配的目标资源级别;Obtain the running status of the preset service, and determine the target resource level matching the running status;
    采用所述资源集合中的、属于所述目标资源级别的资源,运行所述预设业务。The preset service is run by using the resources in the resource set that belong to the target resource level.
  2. 根据权利要求1所述的方法,其中,所述预设业务当前运行于与第一资源级别匹配的第一资源,所述确定与所述运行状态匹配的目标资源级别,包括:The method according to claim 1, wherein the preset service is currently running on a first resource matching a first resource level, and the determining a target resource level matching the running state comprises:
    响应于确定所述预设业务的运行状态低于第一状态阈值,确定第二资源级别为所述目标资源级别,其中,属于所述第二资源级别的资源运行所述预设业务的性能,低于所述第一资源运行所述预设业务的性能;或者,In response to determining that the running state of the preset service is lower than the first state threshold, determining that a second resource level is the target resource level, wherein the resources belonging to the second resource level run the performance of the preset service, is lower than the performance of the first resource for running the preset service; or,
    响应于确定所述预设业务的运行状态高于第二状态阈值,确定第三资源级别为所述目标资源级别,其中,属于所述第三资源级别的资源运行所述预设业务的性能,高于所述第一资源运行所述预设业务的性能。In response to determining that the running state of the preset service is higher than the second state threshold, determining that a third resource level is the target resource level, wherein the resources belonging to the third resource level run the performance of the preset service, The performance of running the preset service is higher than that of the first resource.
  3. 根据权利要求1-2任一项所述的方法,其中,所述预设业务的运行状态包括:用于运行所述预设业务的当前资源的运行参数。The method according to any one of claims 1-2, wherein the running state of the preset service includes: running parameters of current resources for running the preset service.
  4. 根据权利要求1-3任一项所述的方法,其中,所述预设业务的运行状态包括:所述预设业务在运行时对连续性的需求。The method according to any one of claims 1-3, wherein the running state of the preset service includes: a requirement for continuity of the preset service during operation.
  5. 根据权利要求4所述的方法,其中,所述预设业务在运行时对连续性的需求包括以下至少一项:所述预设业务对业务中断时间的容忍度、所述预设业务对通信速率的容忍度、所述预设业务对数据存储速率的容忍度。The method according to claim 4, wherein the requirement for continuity of the preset service during operation includes at least one of the following: tolerance of the preset service to service interruption time, and the preset service to communication Rate tolerance, the preset service's tolerance to the data storage rate.
  6. 根据权利要求1-5任一项所述的方法,其中,所述采用所述资源集合中的、属于所述目标资源级别的资源,运行所述预设业务,包括:The method according to any one of claims 1-5, wherein the using the resources in the resource set that belong to the target resource level to run the preset service comprises:
    响应于确定所述预设业务存在基准运行状态,采用所述资源集合中的、属于第一目标资源级别的资源,运行所述预设业务;In response to determining that the preset service has a reference running state, use the resources in the resource set that belong to the first target resource level to run the preset service;
    其中,所述基准运行状态包括以下至少一项:运行所述预设业务的资源的运行参数的阈值、所述预设业务在运行时对连续性的需求的阈值。Wherein, the reference operation state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during operation.
  7. 根据权利要求1-6任一项所述的方法,其中,所述资源集合中包括以下至少一项:The method according to any one of claims 1-6, wherein the resource set includes at least one of the following:
    第一预设资源级别、以及属于所述第一预设资源级别的多活设备和/或热备,其中,所述多活设备包括同时运行并提供服务的多个设备;a first preset resource level, and a multi-active device and/or a hot backup belonging to the first preset resource level, wherein the multi-active device includes multiple devices that run simultaneously and provide services;
    第二预设资源级别、以及属于所述第二预设资源级别的冷备。A second preset resource level, and a cold standby belonging to the second preset resource level.
  8. 一种用于确定资源的装置,包括:An apparatus for determining resources, comprising:
    获取单元,被配置为获取资源集合,其中,所述资源集合包括资源级别、以及属于所述资源级别的资源;an obtaining unit configured to obtain a resource set, wherein the resource set includes a resource level and resources belonging to the resource level;
    确定单元,被配置为获取预设业务的运行状态,并确定与所述运行状态匹配的目标资源级别;a determining unit, configured to acquire the running state of the preset service, and determine a target resource level matching the running state;
    处理单元,被配置为采用所述资源集合中的、属于所述目标资源级别的资源,运行所述预设业务。The processing unit is configured to use the resources in the resource set that belong to the target resource level to run the preset service.
  9. 根据权利要求8所述的装置,其中,所述预设业务当前运行于与第一资源级别匹配的第一资源,所述确定单元,包括:The apparatus according to claim 8, wherein the preset service is currently running on a first resource matching a first resource level, and the determining unit comprises:
    第一确定模块,被配置为响应于确定所述预设业务的运行状态低于第一状态阈值,确定第二资源级别为所述目标资源级别,其中,属于所述第二资源级别的资源运行所述预设业务的性能,低于所述第一资源运行所述预设业务的性能;或者,a first determining module, configured to, in response to determining that the running state of the preset service is lower than a first state threshold, determine a second resource level as the target resource level, wherein the resources belonging to the second resource level run The performance of the preset service is lower than the performance of the first resource running the preset service; or,
    第二确定模块,被配置为响应于确定所述预设业务的运行状态高于第二状态阈值,确定第三资源级别为所述目标资源级别,其中,属于所述第 三资源级别的资源运行所述预设业务的性能,高于所述第一资源运行所述预设业务的性能。The second determining module is configured to, in response to determining that the running state of the preset service is higher than the second state threshold, determine a third resource level as the target resource level, wherein the resources belonging to the third resource level are running The performance of the preset service is higher than the performance of the first resource running the preset service.
  10. 根据权利要求8-9任一项所述的装置,其中,所述预设业务的运行状态包括:用于运行所述预设业务的当前资源的运行参数。The apparatus according to any one of claims 8-9, wherein the running state of the preset service includes: running parameters of current resources used to run the preset service.
  11. 根据权利要求8-10任一项所述的装置,其中,所述预设业务的运行状态包括:所述预设业务在运行时对连续性的需求。The apparatus according to any one of claims 8-10, wherein the running state of the preset service includes: a requirement for continuity of the preset service during operation.
  12. 根据权利要求11所述的装置,其中,所述预设业务在运行时对连续性的需求包括以下至少一项:所述预设业务对业务中断时间的容忍度、所述预设业务对通信速率的容忍度、所述预设业务对数据存储速率的容忍度。The device according to claim 11, wherein the requirement for continuity of the preset service during operation comprises at least one of the following: tolerance of the preset service to service interruption time, and the preset service to communication Rate tolerance, the preset service's tolerance to the data storage rate.
  13. 根据权利要求8-12任一项所述的装置,其中,所述处理单元,包括:The apparatus according to any one of claims 8-12, wherein the processing unit comprises:
    处理模块,被配置为响应于确定所述预设业务存在基准运行状态,采用所述资源集合中的、属于第一目标资源级别的资源,运行所述预设业务;a processing module, configured to, in response to determining that the preset service has a reference running state, use the resources in the resource set that belong to the first target resource level to run the preset service;
    其中,所述基准运行状态包括以下至少一项:运行所述预设业务的资源的运行参数的阈值、所述预设业务在运行时对连续性的需求的阈值。Wherein, the reference operation state includes at least one of the following: a threshold value of an operation parameter of the resource running the preset service, and a threshold value of the continuity requirement of the preset service during operation.
  14. 根据权利要求8-13任一项所述的装置,其中,所述资源集合中包括以下至少一项:The apparatus according to any one of claims 8-13, wherein the resource set includes at least one of the following:
    第一预设资源级别、以及属于所述第一预设资源级别的多活设备和/或热备,其中,所述多活设备包括同时运行并提供服务的多个设备;a first preset resource level, and a multi-active device and/or a hot backup belonging to the first preset resource level, wherein the multi-active device includes multiple devices that run simultaneously and provide services;
    第二预设资源级别、以及属于所述第二预设资源级别的冷备。A second preset resource level, and a cold standby belonging to the second preset resource level.
  15. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-7 Methods.
  16. 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行权利要求1-7中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
PCT/CN2022/070247 2021-03-26 2022-01-05 Method and apparatus for determining resources WO2022199204A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110330817.5 2021-03-26
CN202110330817.5A CN112965806B (en) 2021-03-26 2021-03-26 Method and device for determining resources

Publications (1)

Publication Number Publication Date
WO2022199204A1 true WO2022199204A1 (en) 2022-09-29

Family

ID=76278745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070247 WO2022199204A1 (en) 2021-03-26 2022-01-05 Method and apparatus for determining resources

Country Status (2)

Country Link
CN (1) CN112965806B (en)
WO (1) WO2022199204A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965806B (en) * 2021-03-26 2023-08-04 北京汇钧科技有限公司 Method and device for determining resources
CN113535328B (en) * 2021-07-22 2024-03-19 华云数据控股集团有限公司 Application instance control method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130041999A1 (en) * 2011-08-09 2013-02-14 Adrian Cowham Determining information about a computing system
CN103595815A (en) * 2013-11-25 2014-02-19 广东电网公司汕头供电局 Method for distributing storage resources based on cloud computing
CN108519917A (en) * 2018-02-24 2018-09-11 国家计算机网络与信息安全管理中心 A kind of resource pool distribution method and device
CN109995677A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Resource allocation methods, device and storage medium
CN110389710A (en) * 2018-04-20 2019-10-29 华为技术有限公司 The method and apparatus for distributing storage resource
CN112316437A (en) * 2020-11-23 2021-02-05 上海米哈游天命科技有限公司 Resource switching method and device, electronic equipment and storage medium
CN112965806A (en) * 2021-03-26 2021-06-15 北京汇钧科技有限公司 Method and apparatus for determining resources

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7783294B2 (en) * 2005-06-30 2010-08-24 Alcatel-Lucent Usa Inc. Application load level determination
CN108696935A (en) * 2017-04-11 2018-10-23 中国移动通信有限公司研究院 A kind of V2X resource allocation methods, device and relevant device
CN111464616A (en) * 2020-03-30 2020-07-28 招商局金融科技有限公司 Method, server and storage medium for automatically adjusting number of application load services

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130041999A1 (en) * 2011-08-09 2013-02-14 Adrian Cowham Determining information about a computing system
CN103595815A (en) * 2013-11-25 2014-02-19 广东电网公司汕头供电局 Method for distributing storage resources based on cloud computing
CN109995677A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Resource allocation methods, device and storage medium
CN108519917A (en) * 2018-02-24 2018-09-11 国家计算机网络与信息安全管理中心 A kind of resource pool distribution method and device
CN110389710A (en) * 2018-04-20 2019-10-29 华为技术有限公司 The method and apparatus for distributing storage resource
CN112316437A (en) * 2020-11-23 2021-02-05 上海米哈游天命科技有限公司 Resource switching method and device, electronic equipment and storage medium
CN112965806A (en) * 2021-03-26 2021-06-15 北京汇钧科技有限公司 Method and apparatus for determining resources

Also Published As

Publication number Publication date
CN112965806B (en) 2023-08-04
CN112965806A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US10078563B2 (en) Preventing split-brain scenario in a high-availability cluster
US10216592B2 (en) Storage system and a method used by the storage system
US9934098B2 (en) Automatic serial order starting of resource groups on failover systems based on resource group usage prediction
US10609159B2 (en) Providing higher workload resiliency in clustered systems based on health heuristics
US9942353B2 (en) Management of connections within a messaging environment based on the statistical analysis of server responsiveness
CN111694646B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
WO2022199204A1 (en) Method and apparatus for determining resources
US8898520B1 (en) Method of assessing restart approach to minimize recovery time
US9223673B1 (en) Custom host errors definition service
CN113364877B (en) Data processing method, device, electronic equipment and medium
CN111880914A (en) Resource scheduling method, resource scheduling apparatus, electronic device, and storage medium
WO2023093127A1 (en) Method and apparatus for monitoring a cluster, and electronic device
CN111625195B (en) Method and device for server capacity expansion
US20170149864A1 (en) Distributed applications management with dependent resilient distributed services
US8621260B1 (en) Site-level sub-cluster dependencies
US10657122B2 (en) Optimizing standby database memory for post failover operation
CN114647363A (en) Method, electronic device and computer program product for data processing
CN111767169A (en) Data processing method and device, electronic equipment and storage medium
US9836342B1 (en) Application alerting system and method for a computing infrastructure
CN111782357A (en) Label control method and device, electronic equipment and readable storage medium
WO2022199206A1 (en) Memory sharing method and device for virtual machines
US11321205B2 (en) Enterprise-scale time series graphite backend infrastructure
US11070654B2 (en) Sockets for shared link applications
KR20210091075A (en) Traffic adjustment method and apparatus
CN111510480A (en) Request sending method and device and first server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22773869

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE