Equipment and service self-starting method and device, storage medium and electronic equipment
By installing a remote management module on the service device, and obtaining and automatically starting unstarted devices and services according to the dependency, the problem of a large amount of manpower required to check the startup situation after the computer room is powered off, improving efficiency and automation.
Patent Information
- Application Number
- CN202310780440.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
When the computer room is powered off and then powered on, a lot of manpower is needed to check the startup of the server and services, resulting in waste of resources and inefficiency.
By installing a remote management module on the service device, the startup status of the device and service is obtained, and the unstarted devices and services are automatically started according to the device dependency and service dependency, including the acquisition module, the first startup module and the second startup module, Determine the dependencies and start them one by one until all dependencies are empty.
It realizes automatic acquisition of equipment and services after power outage in the computer room, and automatically starts according to dependencies, reducing the need for manual inspection, improving efficiency, and avoiding waste of resources.
Smart Images

Figure CN119225498A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of servers, and in particular to a method, apparatus, storage medium and electronic device for self-starting a device and a service. Background Art
[0002] In the prior art, servers can be deployed in a computer room, and the servers can provide services. If the computer room is powered on after a power outage, the servers in the computer room and the services on the servers need to be manually checked to see if they have been successfully started. As a result, a large amount of manpower is required to start the servers and the services on the servers after the computer room is powered on again after a power outage. Summary of the invention
[0003] The present application provides a method, apparatus, storage medium and electronic device for self-starting a device and a service, so as to solve the technical problem that a large amount of manpower is required to check the startup status of a server and a service.
[0004] In a first aspect, the present application provides a method for self-starting a device and a service, comprising: when the power of the service device is switched from a power-off state to a power-on state, obtaining the device startup state of the service device and the service startup state of the service on the service device; starting the service devices whose device startup state is not started in sequence according to the device dependency relationship between the service devices; after the service device is started, starting the services whose service startup state is not started in sequence according to the service dependency relationship between the services.
[0005] In the second aspect, the present application provides a self-starting device for equipment and services, including: an acquisition module, which is used to obtain the equipment startup status of the above-mentioned service equipment and the service startup status of the service on the above-mentioned service equipment when the power of the service equipment is switched from a power-off state to a power-on state; a first startup module, which is used to start the service equipment whose equipment startup status is not started in sequence according to the equipment dependency relationship between the service equipment; and a second startup module, which is used to start the services whose service startup status is not started in sequence according to the service dependency relationship between the services after the above-mentioned service equipment is started.
[0006] As an optional example, the acquisition module includes: an acquisition unit, used to obtain the device startup status and the service startup status from a remote management module installed on the service device, wherein the remote management module is used to scan the device startup status of the service device and the service startup status of the service on the service device when the power supply of the service device starts to supply power, and the remote management module and the service device have different power supplies.
[0007] As an optional example, the first startup module includes: a first startup unit, used to determine the service dependency as the service dependency of the first round, and determine the first service that does not depend on any service in the first round based on the service dependency of the first round; start the first service in the first round, and delete the first service in the service dependency of the first round; in each round after the first round, determine the second service that does not depend on any service based on the service dependency of each round; start the second service and delete the second service in the service dependency of each round until the service dependency is empty.
[0008] As an optional example, the second startup module includes: a second startup unit, used to determine the device dependency as the device dependency of the first round, and determine the first device that does not depend on any service device in the first round according to the device dependency of the first round; start the first device in the first round and delete the first device in the device dependency of the first round; in each round after the first round, determine the second device that does not depend on any service device according to the device dependency of each round; start the second device and delete the second device in the device dependency of each round until the device dependency is empty.
[0009] As an optional example, the second startup module further includes: a determination unit, for determining the service device where each service in the service dependency relationship is located before starting the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices; and determining the service device where the previous service on which the current service depends in the service dependency relationship is located as the service device on which the service device where the current service is located depends, so as to obtain the device dependency relationship.
[0010] As an optional example, the above-mentioned device also includes: a power supply module, which is used to determine the estimated power consumption time and estimated power consumption of the above-mentioned service equipment when the power supply of the service equipment is in a power-off state; determine the backup power supply for powering the above-mentioned service equipment based on the above-mentioned estimated power consumption time and the above-mentioned estimated power consumption; and use the above-mentioned backup power supply to power the above-mentioned service equipment.
[0011] As an optional example, the power supply module includes: an estimation unit, used to determine the average service duration of the service provided by the service device in the historical records; and determine the estimated power consumption duration by multiplying the average service duration by a predetermined threshold, wherein the predetermined threshold is used to represent the number of times the service can be provided.
[0012] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement any one of the above-mentioned self-starting methods for the above-mentioned devices and services when executing the above-mentioned computer program.
[0013] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the self-starting method of any of the above-mentioned devices and services of the present application.
[0014] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application can obtain the device startup status of the service equipment in the computer room and the service startup status of the services on the equipment after the computer room is powered off and powered on again, and start the unstarted devices and services according to the device dependency and service dependency, thus solving the technical problem of requiring a large amount of manpower to check the startup status of servers and services. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 A flowchart of a method for self-starting a device and a service provided in an embodiment of the present application;
[0019] Figure 2 A dependency diagram of a self-starting method for a device and service provided in an embodiment of the present application;
[0020] Figure 3 A flowchart of another method for self-starting a device and a service provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of another method for self-starting a device and a service provided in an embodiment of the present application;
[0022] Figure 5 A flowchart of another method for self-starting a device and a service provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the structure of a self-starting device for a device and service provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0026] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0027] Figure 1 A flowchart of a method for self-starting a device and a service provided in an embodiment of the present application. Figure 1 As shown, the self-starting method of the above-mentioned device and service includes:
[0028] S102, when the power of the service device is switched from a power-off state to a power-on state, obtaining a device startup state of the service device and a service startup state of the service on the service device;
[0029] S104, starting the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices;
[0030] S106: After the service device is started, services whose service start status is not started are started in sequence according to the service dependency relationship between the services.
[0031] Optionally, the service device in this embodiment may be a server in a computer room. The power supply of the service device may be cut off or powered on due to the power supply. If the power is cut off, all the service devices in the computer room are shut down. If the power is restored after the power is cut off, the service device can start and run the services on the service device. However, not all service devices can start automatically when the power is cut off and then powered on. In order to avoid wasting manpower to check the startup status, a remote management module can be installed on each service device. The remote management module has its own independent power supply system. After the service device is powered off and powered on, the remote management module can scan the device startup status of the service device. The device startup status is successfully started or not started. The service device with a successfully started device startup status needs to scan the service startup status of the service on it. If the service device is not successfully started, the service startup status of the service on it is not started.
[0032] The startup status of the service device and the service is obtained from the remote management module, and the service device and the service that have not been started can be started according to the startup status. When starting the service device and the service, they are started according to their respective dependencies.
[0033] The service of this embodiment may be an application, or a function provided by an application.
[0034] Dependency can indicate whether service devices or services are dependent on each other. For example, if the startup of service A depends on service B, a dependency relationship between service A and service B is generated. When starting the service, service B must be started first, and then service A.
[0035] A dependency can be one or more dependency networks, for example Figure 2 This is a schematic diagram of an exemplary service dependency relationship between services, where the arrow direction is the dependency direction. Service B and service D depend on service A, and service C and service E indirectly depend on service A.
[0036] The method provided by the embodiment of the present application can obtain the device startup status of the service equipment in the computer room and the service startup status of the services on the equipment after the computer room is powered off and then powered on again, and start the unstarted devices and services according to the device dependencies and service dependencies, thereby solving the technical problem of requiring a large amount of manpower to check the startup status of servers and services.
[0037] As an alternative example, Figure 3 As shown, after the service device is started, the services whose service startup status is not started are started in sequence according to the service dependency relationship between the services:
[0038] S302, determining the service dependency as the service dependency of the first round, and determining the first service in the first round that does not depend on any service according to the service dependency of the first round;
[0039] S304, starting the first service in the first round, and deleting the first service in the service dependency relationship of the first round;
[0040] S306, in each round after the first round, determining a second service that does not depend on any service according to the service dependency relationship of each round;
[0041] S308, start the second service and delete the second service in each round of service dependencies until the service dependencies are empty.
[0042] In this embodiment, when starting a service according to the service dependency, it is first necessary to determine whether the service device where the service is located is in the startup state. If the service device is not in the startup state, the service cannot be started. For services whose service devices are in the startup state, the service can be started according to the dependency.
[0043] The service is started in rounds. In the first round, the service dependencies are traversed first, and there are no services that depend on other services, such as Figure 2 In the first round, start the service and then delete it from the service dependency. In the second round, traverse the service dependency of the second round again, determine the service that does not depend on any other service, start the service and delete it from the service dependency, and perform multiple rounds until no service is included in the service dependency.
[0044] After multiple rounds of startup, all services have been started.
[0045] In this embodiment, the startup scope of the service can be controlled, that is, which services are started and which services are not started. Services that are not allowed to be started will not be started even if the service device is started.
[0046] In the process of starting services according to service dependencies, if a service device is started from never started, and the service on the service device is also the service to be started, check whether the dependency is affected. If it is affected, re-traverse the services to be started, regenerate the dependency, and start the services according to the above multiple rounds method. Services that have already been started do not need to be started again.
[0047] As an alternative example, Figure 4 As shown, the service devices whose device startup status is not started include:
[0048] S402, determining the device dependency as the device dependency of the first round, and determining the first device in the first round that does not depend on any service device according to the device dependency of the first round;
[0049] S404, starting the first device in the first round, and deleting the first device in the device dependency relationship of the first round;
[0050] S406, in each round after the first round, determining a second device that does not depend on any service device according to the device dependency relationship of each round;
[0051] S408, start the second device and delete the second device in each round of device dependency until the device dependency is empty.
[0052] The service devices are started in rounds. In the first round, the device dependency relationship is traversed first, and the service devices that do not depend on other service devices are started in the first round, and then the service devices are deleted from the device dependency relationship. In the second round, the device dependency relationship of the second round is traversed again, and the service devices that do not depend on any other service devices are determined, and the service devices are started, and the service devices are deleted from the device dependency relationship. Multiple rounds are performed until no service devices are included in the device dependency relationship.
[0053] In this embodiment, the startup range of the service devices can be controlled, that is, which service devices are started and which are not started. Service devices that are not allowed to be started will not be started even if they are powered on.
[0054] If a new service device is powered off from the powered-on state, check whether the service device is the service device to be started. If it is the service device to be started, redetermine the device dependency and start the service device in the above multiple rounds according to the new device dependency. The service device that has been started does not need to be started again if there is no power outage.
[0055] As an alternative example, Figure 5 As shown, before starting the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices, the method further includes:
[0056] S502, determining the service device where each service in the service dependency relationship is located;
[0057] S504: In the service dependency relationship, determine the service device where the previous service that the current service depends on is located as the service device where the service device where the current service is located depends on, so as to obtain the device dependency relationship.
[0058] In this embodiment, the dependency relationship between services can be determined based on whether there is a sequential relationship between the services. For example, if the service of service A requires support from service B, then the dependency relationship between service A and service B can be determined. The dependency relationship between service devices is determined by the services. The dependency relationship between services determines the dependency relationship between the service devices where the services are located. If the above service A depends on service B, then the service device where service A is located depends on the service device where service B is located.
[0059] As an optional example, when the power supply of the service device is in a power-off state, the above method also includes: determining the estimated power consumption time and estimated power consumption of the service device; determining a backup power supply to power the service device based on the estimated power consumption time and the estimated power consumption; and using the backup power supply to power the service device.
[0060] In this embodiment, there are many types of power outages in the service equipment. One is a planned power outage, such as turning off the power supply of the computer room on weekends and turning it on again on weekdays. In this case, there is no need to start the backup power supply. Another situation is unplanned, such as a temporary power outage, in which case the backup power supply needs to be started. The backup power supply has different power supply capacities. First, determine the estimated power consumption time and estimated power consumption required by the service equipment, and then select a suitable backup power supply based on the estimated power consumption time and estimated power consumption. First, the power supply of the backup power supply must be greater than the estimated power consumption of the service equipment. Secondly, under the power of the service equipment, the power supply time of the backup power supply must exceed the estimated power consumption time.
[0061] As an optional example, determining the estimated power usage time of the service device includes: determining the average service time of the service provided by the service device in the historical records; and determining the estimated power usage time by multiplying the average service time by a predetermined threshold, wherein the predetermined threshold is used to represent the number of times the service can be provided.
[0062] In this embodiment, the estimated power consumption time of the service device is an estimated value. It can be determined based on the average service time of the services provided by the service device. If the service device provides 10 services, the average service time of each service is first determined, and then the total average service time of the 10 services is determined, and finally the total average service time is multiplied by a predetermined threshold value. The predetermined threshold value is a positive integer, such as 10, and the estimated power consumption time is the total average service time * 10, indicating that the backup power supply can provide about 10 services in terms of time length.
[0063] In this embodiment, the computer room uninterruptible power supply (UPS) and generator: UPS can supply power to key service equipment during power outages to ensure their normal operation. The generator can be started in the event of a long power outage to supply power to the computer room. In this embodiment, the estimated power consumption of key service equipment in the computer room can be evaluated to select UPS and generators with appropriate capacities.
[0064] Deploy remote management modules, such as remote management cards, on servers, network devices and other intelligent devices in the computer room, such as Dell iDRAC, HP iLO, etc. This can remotely monitor the power status of the server, remotely start the server after a power outage, and reduce manual operations. This requires ensuring that the management card is continuously powered or has an independent battery, and turning on the remote management function.
[0065] The service in this embodiment can perform active-active business or remote disaster recovery: by configuring active-active business systems or deploying backup systems in remote computer rooms, business interruptions caused by power outages in single computer rooms can be avoided. This requires evaluating the availability requirements of the business and selecting the appropriate system architecture deployment mode. For example, active-active is only suitable for scenarios where the distance between remote locations is relatively short.
[0066] Monitoring and alarm system: Deploy a power environment monitoring system to promptly alarm when a power outage occurs, so that the equipment room management personnel can handle it quickly. Typical solutions include deploying environmental monitoring probes, connecting to the monitoring platform, and setting alarm rules for power outage events. This can minimize the business impact time caused by power outages.
[0067] Computer room physical security: strictly control physical access to the computer room to avoid turning on the power supply to the computer room outside of normal working days, which will cause the equipment to fail to start normally after power-on. This requires the formulation of a complete computer room access control process and the deployment of an access control system to strictly control physical access during non-working hours.
[0068] Automation tools: Formulate the power-on and startup sequence and scripts for the computer room, use the remote management system to execute in batches, and automatically complete the sequential power-on and startup of the equipment in the computer room. This can avoid human operation errors and greatly speed up the power-on speed.
[0069] The following is part of the code for service device / service startup
[0070]
[0071]
[0072]
[0073]
[0074] Figure 6 This is a schematic diagram of the structure of a self-starting device for a device and service provided in an embodiment of the present application. Figure 6 As shown, the self-starting device of the above equipment and services includes:
[0075] An acquisition module 602 is used to acquire a device startup state of the service device and a service startup state of the service on the service device when the power of the service device is switched from a power-off state to a power-on state;
[0076] A first starting module 604 is used to start the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices;
[0077] The second starting module 606 is used to start the services whose service starting status is not started in sequence according to the service dependency relationship between the services after the service device is started.
[0078] Optionally, the service device in this embodiment may be a server in a computer room. The power supply of the service device may be cut off or powered on due to the power supply. If the power is cut off, all the service devices in the computer room are shut down. If the power is restored after the power is cut off, the service device can start and run the services on the service device. However, not all service devices can start automatically when the power is cut off and then powered on. In order to avoid wasting manpower to check the startup status, a remote management module can be installed on each service device. The remote management module has its own independent power supply system. After the service device is powered off and powered on, the remote management module can scan the device startup status of the service device. The device startup status is successfully started or not started. The service device with a successfully started device startup status needs to scan the service startup status of the service on it. If the service device is not successfully started, the service startup status of the service on it is not started.
[0079] The startup status of the service device and the service is obtained from the remote management module, and the service device and the service that have not been started can be started according to the startup status. When starting the service device and the service, they are started according to their respective dependencies.
[0080] Dependency can indicate whether service devices or services are dependent on each other. For example, if the startup of service A depends on service B, a dependency relationship between service A and service B is generated. When starting the service, service B must be started first, and then service A.
[0081] A dependency can be one or more dependency networks, for example Figure 2 This is a schematic diagram of an exemplary service dependency relationship between services, where the direction of the arrow is the dependency direction.
[0082] The method provided by the embodiment of the present application can obtain the device startup status of the service equipment in the computer room and the service startup status of the services on the equipment after the computer room is powered off and then powered on again, and start the unstarted devices and services according to the device dependencies and service dependencies, thereby solving the technical problem of requiring a large amount of manpower to check the startup status of servers and services.
[0083] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.
[0084] like Figure 7 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0085] Memory 113, used for storing computer programs;
[0086] In one embodiment of the present application, the processor 111 is used to implement the self-starting method of the device and service provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113, including:
[0087] When the power of the service device is switched from a power-off state to a power-on state, obtaining a device startup state of the service device and a service startup state of the service on the service device;
[0088] Start the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices;
[0089] After the service device is started, the services whose service start status is not started are started in sequence according to the service dependency relationship between the services.
[0090] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the self-starting method for providing devices and services as in any of the aforementioned method embodiments are implemented.
[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0093] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0094] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for self-starting a device and a service, characterized in that: include: When the power of the service device is switched from a power-off state to a power-on state, obtaining a device startup state of the service device and a service startup state of the service on the service device; Starting the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices; After the service device is started, the services whose service startup status is not started are started in sequence according to the service dependency relationship between the services.
2. The method according to claim 1, characterized in that When the power of the service device is switched from a power-off state to a power-on state, acquiring the device startup state of the service device and the service startup state of the service on the service device includes: The device startup status and the service startup status are obtained from a remote management module installed on the service device, wherein the remote management module is used to scan the device startup status of the service device and the service startup status of the service on the service device when the power supply of the service device starts to supply power, and the remote management module and the service device have different power supplies.
3. The method according to claim 1, characterized in that After the service device is started, starting the services whose service startup status is not started in sequence according to the service dependency relationship between the services includes: Determine the service dependency as the service dependency of the first round, and determine the first service in the first round that does not depend on any service according to the service dependency of the first round; Starting the first service in the first round, and deleting the first service in the service dependency relationship of the first round; In each round after the first round, a second service that does not depend on any service is determined according to the service dependency relationship of each round; The second service is started and the second service is deleted in the service dependency relationship of each round until the service dependency relationship is empty.
4. The method according to claim 1, characterized in that: The step of sequentially starting the service devices whose device startup status is not started according to the device dependency relationship between the service devices comprises: Determine the device dependency as the device dependency of the first round, and determine the first device in the first round that does not depend on any service device according to the device dependency of the first round; Starting the first device in the first round, and deleting the first device in the device dependency relationship of the first round; In each round after the first round, determining a second device that does not depend on any service device according to the device dependency relationship of each round; The second device is started and the second device is deleted in the device dependency relationship of each round until the device dependency relationship is empty.
5. The method according to claim 4, characterized in that Before sequentially starting the service devices whose device startup status is not started according to the device dependency relationship between the service devices, the method further includes: Determine the service device where each service in the service dependency relationship is located; In the service dependency relationship, the service device where the previous service that the current service depends on is located is determined as the service device that the service device where the current service is located depends on, so as to obtain the device dependency relationship.
6. The method according to claim 1, characterized in that When the power of the service device is in a power-off state, the method further includes: Determine the estimated duration and amount of electricity used by the service equipment; Determining a backup power source for supplying power to the service equipment according to the estimated power consumption duration and the estimated power consumption; The service equipment is powered using the backup power supply.
7. The method according to claim 6, characterized in that Determining the estimated power usage duration of the service equipment includes: Determine the average length of service for the service provided by the service on the service device described in the history record; The product of the average service duration and a predetermined threshold is determined as the estimated power usage duration, wherein the predetermined threshold is used to represent the number of times the service can be provided.
8. A self-starting device for equipment and services, characterized in that: include: An acquisition module, configured to acquire a device startup state of the service device and a service startup state of the service on the service device when the power of the service device is switched from a power-off state to a power-on state; A first startup module, used for starting the service devices whose device startup status is not started in sequence according to the device dependency relationship between the service devices; The second starting module is used to start the services whose service starting status is not started in sequence according to the service dependency relationship between the services after the service device is started.
9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method described in any one of claims 1 to 7 of the present application.
