Load balancing method and device, vehicle and server
By detecting and comparing the difference in load values between vehicles and servers, load balancing between operating systems is achieved, which solves the problem of low resource utilization efficiency in the existing technology and improves the system's dynamic adjustment capability and resource utilization efficiency.
Patent Information
- Application Number
- CN202310341312.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The service deployment of the existing vehicle operation system is fixed during the development process, resulting in low resource utilization efficiency and the inability to dynamically adjust to adapt to load changes.
By detecting the difference between the load values of the running systems on the server and the vehicle, if the average value of the difference within a set period of time is greater than the threshold, load balancing is triggered and the target service is controlled to switch the running status between the two systems to achieve load balancing.
The resource utilization efficiency of the operating system deployed on the vehicle and the operating system deployed on the server is improved, and the load is adjusted in real time to adapt to changes.
Smart Images

Figure CN118733241A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a load balancing method, device, electronic device, storage medium, vehicle and server. Background Art
[0002] At present, with the continuous development of network technology, the operating system deployed on the vehicle often deploys multiple services to meet user needs, such as parking services, entertainment services, etc. However, in the related art, the services deployed by the operating system are set during the development process and cannot be changed, resulting in low resource utilization efficiency of the operating system. Summary of the invention
[0003] The present disclosure aims to solve one of the technical problems in the above-mentioned technologies at least to some extent.
[0004] To this end, the first objective of the present disclosure is to propose a load balancing method.
[0005] The second objective of the present disclosure is to propose another load balancing method.
[0006] The third objective of the present disclosure is to provide a load balancing device.
[0007] The fourth objective of the present disclosure is to provide another load balancing device.
[0008] A fifth objective of the present disclosure is to provide an electronic device.
[0009] A sixth objective of the present disclosure is to provide a computer-readable storage medium.
[0010] A seventh object of the present disclosure is to provide a vehicle.
[0011] An eighth objective of the present disclosure is to provide a server.
[0012] An embodiment of the first aspect of the present disclosure proposes a load balancing method, including: detecting second load values of a second operating system deployed on a server at multiple moments; receiving first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle; obtaining the difference between the first load value and the second load value at the same moment; if the average value of multiple differences within a set time period is greater than a set threshold, triggering load balancing to load balance the first operating system and the second operating system.
[0013] In addition, the load balancing method proposed in the above embodiment of the present disclosure may also have the following additional technical features:
[0014] In one embodiment of the present disclosure, the triggering load balancing includes: determining a target service to be balanced, wherein the target service is deployed on the first operating system and the second operating system at the same time; if the first load values at the same time within the set time period are higher than the second load values, controlling the operating state of the target service deployed by the second operating system to switch from a disabled state to a pre-balancing state; receiving first indication information sent by the vehicle, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to a pre-balancing state; controlling the operating state of the target service deployed by the second operating system to switch from a pre-balancing state to an enabled state.
[0015] In one embodiment of the present disclosure, before receiving the first indication information sent by the vehicle, it also includes: sending first control information to the vehicle, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state; after controlling the operating state of the target service deployed by the second operating system to switch from the pre-balanced state to the enabled state, it also includes: sending second indication information to the vehicle, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the enabled state.
[0016] In one embodiment of the present disclosure, the triggering load balancing includes: determining a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system; if the second load values at the same time within the set time period are higher than the first load values, controlling the operating state of the target service deployed by the second operating system to switch from an enabled state to a pre-balancing state; receiving third indication information sent by the vehicle, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state; controlling the operating state of the target service deployed by the second operating system to switch from a pre-balancing state to a disabled state.
[0017] In one embodiment of the present disclosure, before receiving the third indication information sent by the vehicle, it also includes: sending fourth indication information and second control information to the vehicle, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to a pre-balanced state, and the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from a disabled state to a pre-balanced state.
[0018] In one embodiment of the present disclosure, the first operating system is deployed with a first load balancing service, and the second operating system is deployed with a second load balancing service; the second load value at multiple moments of the second operating system deployed on the detection server includes: detecting the second load value at the multiple moments through the second load balancing service; the first load value at multiple moments of the first operating system sent by the vehicle is received, including: receiving the first load value at the multiple moments sent by the first load balancing service through the second load balancing service.
[0019] The second aspect embodiment of the present disclosure proposes another load balancing method, including: detecting first load values at multiple moments of a first operating system deployed on a vehicle; sending the first load values at multiple moments to a server, wherein the first load values at multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0020] In one embodiment of the present disclosure, the method also includes: if the first load values of the first operating system at the same time within a set time period are all higher than the second load value, controlling the operating state of the target service deployed by the first operating system to switch from an enabled state to a pre-balanced state; receiving second indication information sent by the server, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to an enabled state; controlling the operating state of the target service deployed by the first operating system to switch from a pre-balanced state to a disabled state.
[0021] In one embodiment of the present disclosure, before the control of switching the operating state of the target service deployed by the first operating system from the enabled state to the pre-balanced state, it also includes: receiving first control information sent by the server, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state; before the receiving second indication information sent by the server, it also includes: sending first indication information to the server, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balanced state.
[0022] In one embodiment of the present disclosure, the method also includes: if the second load values at the same time within a set time period are all higher than the first load value of the first operating system, controlling the operating state of the target service deployed by the first operating system to switch from a disabled state to a pre-balanced state; receiving fourth indication information sent by the server, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to a pre-balanced state; controlling the operating state of the target service deployed by the first operating system to switch from a pre-balanced state to an enabled state.
[0023] In one embodiment of the present disclosure, before the control of switching the operating state of the target service deployed by the first operating system from a disabled state to a pre-balanced state, it also includes: receiving second control information sent by the server, wherein the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from a disabled state to a pre-balanced state; after the control of switching the operating state of the target service deployed by the first operating system from a pre-balanced state to an enabled state, it also includes: sending third indication information to the server, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state.
[0024] The third aspect embodiment of the present disclosure proposes a load balancing device, including: a detection module, used to detect a second load value of a second operating system deployed on a server at multiple moments; a receiving module, used to receive a first load value of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle; an acquisition module, used to obtain the difference between the first load value and the second load value at the same moment; and a balancing module, used to trigger load balancing if an average value of multiple differences within a set time period is greater than a set threshold, so that the first operating system and the second operating system are load balanced.
[0025] The fourth aspect embodiment of the present disclosure proposes another load balancing device, including: a detection module, used to detect the first load values of a first operating system deployed on a vehicle at multiple moments; a sending module, used to send the first load values at the multiple moments to a server, wherein the first load values at the multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0026] The fifth aspect embodiment of the present disclosure proposes an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the load balancing method as described in the first to second aspects embodiments of the present disclosure is implemented.
[0027] The sixth aspect embodiment of the present application proposes a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the load balancing method described in the first to second aspect embodiments of the present disclosure is implemented.
[0028] The seventh aspect embodiment of the present application proposes a server, including the load balancing device as described in the third aspect embodiment of the present disclosure; or the electronic device as described in the fifth aspect embodiment of the present disclosure; or the computer-readable storage medium as described in the sixth aspect embodiment of the present disclosure.
[0029] The eighth aspect embodiment of the present application proposes a vehicle, comprising a load balancing device as described in the fourth aspect embodiment of the present disclosure; or an electronic device as described in the fifth aspect embodiment of the present disclosure; or a computer-readable storage medium as described in the sixth aspect embodiment of the present disclosure.
[0030] The technical solution provided by the embodiment of the present disclosure brings at least the following beneficial effects: in this solution, when the average value of multiple differences between the first load value and the second load value within a set time period is large, load balancing can be performed in real time between the first operating system deployed on the vehicle and the second operating system deployed on the server, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0033] Figure 1 A schematic diagram of a load balancing method according to an embodiment of the present disclosure;
[0034] Figure 2 is a schematic diagram of a load balancing method according to an embodiment of the present disclosure;
[0035] Figure 3 A flow chart of a load balancing method according to another embodiment of the present disclosure;
[0036] Figure 4 A flow chart of a load balancing method according to another embodiment of the present disclosure;
[0037] Figure 5 A flow chart of a load balancing method according to another embodiment of the present disclosure;
[0038] Figure 6 A flow chart of a load balancing method according to another embodiment of the present disclosure;
[0039] Figure 7 A flow chart of a load balancing method according to another embodiment of the present disclosure;
[0040] Figure 8 is a structural diagram of a load balancing device according to an embodiment of the present disclosure;
[0041] Fig. 9 is a structural schematic diagram of a load balancing device according to another embodiment of the present disclosure;
[0042] Fig.10 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0043] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0044] The load balancing method, device, vehicle, server, electronic device and storage medium of the embodiments of the present disclosure are described below in conjunction with the accompanying drawings.
[0045] Figure 1 The figure is a flow chart of a load balancing method according to an embodiment of the present disclosure.
[0046] like Figure 1 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0047] S101, detecting second load values of a second operating system deployed on a server at multiple times.
[0048] It should be noted that the load balancing method of the embodiment of the present disclosure can be executed by the load balancing device between the vehicle and the server of the embodiment of the present disclosure, and the load balancing device between the vehicle and the server of the embodiment of the present disclosure can be configured in any server to execute the load balancing method of the embodiment of the present disclosure. Among them, the server may include a cloud server.
[0049] In the embodiments of the present disclosure, the server is deployed with a second operating system, which is a virtual operating system, and there are no excessive restrictions on the second operating system, for example, it may include AAOS (Android Automotive Operating System). It is understandable that the second operating system is deployed with multiple services, and there are no excessive restrictions on the services, for example, it may include navigation services, automatic driving services, parking services, vehicle control services, multimedia services, etc.
[0050] It should be noted that there are no excessive restrictions on the second load value, for example, it may include CPU (Central Processing Unit) occupancy, memory occupancy, disk occupancy, etc.
[0051] It should be noted that there are no excessive restrictions on the multiple moments. For example, a time interval is set between two adjacent moments, where the set time interval can be 1 second.
[0052] In one embodiment, Figure 2 As shown, the second operating system is deployed with a second load balancing service, and the second load values of the second operating system deployed on the server at multiple times are detected, including detecting the second load values at multiple times through the second load balancing service.
[0053] S102, receiving first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle.
[0054] It should be noted that there are not too many restrictions on vehicles, and vehicles include fuel vehicles, electric vehicles, hybrid vehicles, etc.
[0055] In the embodiment of the present disclosure, a first operating system is deployed on the vehicle. The first operating system is a real operating system. The relevant content of the first operating system can refer to the relevant content of the second operating system, which will not be repeated here. There is at least one candidate service that overlaps between the second operating system and the first operating system. In one embodiment, Figure 2 As shown, there are overlapping candidate services 1 to 10 between the second operating system and the first operating system.
[0056] In one embodiment, Figure 2 As shown, the first operating system is deployed with a first load balancing service, and a network connection can be established between the first load balancing service and the second load balancing service, so that the first load balancing service and the second load balancing service can communicate with each other, and the specific mode of the network connection is not too limited, for example, it can include Ethernet. Receiving the first load values of the first operating system at multiple times sent by the vehicle includes receiving the first load values at multiple times sent by the first load balancing service through the second load balancing service.
[0057] In one implementation, the first load balancing service and the second load balancing service are further included in the master-slave election, and the second load balancing service is determined to be the master service of the first load balancing service, and the first load balancing service is the slave service of the second load balancing service. It should be noted that the specific method of the master-slave election is not too limited, for example, it can be any master-slave election method in the relevant technology.
[0058] It should be noted that the relevant content of the first load value can refer to the relevant content of the second load value, which will not be repeated here.
[0059] S103, obtaining a difference between the first load value and the second load value at the same time.
[0060] It should be noted that there are no excessive restrictions on the difference value. For example, the difference value may include the absolute value of the difference between the first load value and the second load value.
[0061] For example, the difference between the first load value and the second load value at time t, the difference between the first load value and the second load value at time (t+1 second), and the difference between the first load value and the second load value at time (t+2 seconds) can be obtained.
[0062] S104: If the average value of the plurality of differences within the set time period is greater than a set threshold, load balancing is triggered to perform load balancing on the first operating system and the second operating system.
[0063] It should be noted that there are no excessive restrictions on the setting time and the setting threshold. For example, the setting time may include 5 seconds, and taking the first load value and the second load value as CPU occupancy as an example, the setting threshold may include 30%.
[0064] It should be noted that multiple differences within the set time period may be continuous or discontinuous, and no excessive restrictions are imposed here.
[0065] For instance, taking the setting time length as 5 seconds, the multiple difference values within 5 seconds may include the difference between the first load value and the second load value at time t, the difference between the first load value and the second load value at time (t+1 second), and the difference between the first load value and the second load value at time (t+2 seconds).
[0066] Alternatively, the multiple differences within 5 seconds may include the difference between the first load value and the second load value at time t, the difference between the first load value and the second load value at time (t+2 seconds), and the difference between the first load value and the second load value at time (t+4 seconds).
[0067] It is understandable that if the average value of multiple differences within the set time period is greater than the set threshold, it indicates that the first load value and the second load value within the set time period differ greatly, and the first operating system and the second operating system need to be load balanced.
[0068] In one embodiment, triggering load balancing includes determining a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system, and if the first load values at the same time within a set duration are higher than the second load values, the operating state of the target service deployed by the second operating system is controlled to switch from a disabled state to an enabled state, and a third control information is sent to the vehicle, wherein the third control information is used to instruct the first operating system to switch the operating state of the deployed target service from an enabled state to a disabled state. Thus, in this method, when the first load values at the same time within a set duration are higher than the second load values, the target service deployed by the second operating system can be enabled, and the vehicle can be instructed to disable the target service deployed by the first operating system, thereby reducing the first load value of the first operating system and increasing the second load value of the second operating system.
[0069] In one embodiment, triggering load balancing includes determining a target service to be balanced, wherein the target service is deployed on a first operating system and a second operating system at the same time, and if the second load value at the same time within a set duration is higher than the first load value, sending fourth control information to the vehicle, wherein the fourth control information is used to instruct the first operating system to switch the operating state of the deployed target service from a disabled state to an enabled state, and control the operating state of the target service deployed by the second operating system to switch from an enabled state to a disabled state. Thus, in this method, when the second load values at the same time within a set duration are higher than the first load value, the vehicle can be instructed to enable the target service deployed by the first operating system and disable the target service deployed by the second operating system, thereby increasing the first load value of the first operating system and reducing the second load value of the second operating system.
[0070] It should be noted that the number of target services can be at least one, and no further limitation is given here.
[0071] In one embodiment, determining the target service to be balanced includes obtaining at least one candidate service that overlaps between the first operating system and the second operating system, and selecting the target service from the candidate services. Figure 2 For example, the target service may be screened out from the candidate services 1 to 10. For example, the candidate services 1 and 2 may be screened out from the candidate services 1 to 10 as the target services.
[0072] In summary, according to the load balancing method of the embodiment of the present disclosure, the second load value of the second operating system deployed on the server at multiple moments is detected, and the first load value of the first operating system at multiple moments sent by the vehicle is received, wherein the first operating system is deployed on the vehicle, and the difference between the first load value and the second load value at the same moment is obtained. If the average value of the multiple differences within the set time length is greater than the set threshold, load balancing is triggered to load balance the first operating system and the second operating system. Therefore, in this scheme, when the average value of the multiple differences between the first load value and the second load value within the set time length is large, the first operating system deployed on the vehicle and the second operating system deployed on the server can be load balanced in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0073] Figure 3 The figure is a flow chart of a load balancing method according to another embodiment of the present disclosure.
[0074] like Figure 3 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0075] S301, detecting second load values of a second operating system deployed on a server at multiple times.
[0076] S302, receiving first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle.
[0077] S303: Obtain a difference between the first load value and the second load value at the same time.
[0078] S304: If the average value of the plurality of differences within the set time period is greater than the set threshold, determine a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system.
[0079] For the relevant contents of steps S301 - S304 , please refer to the above embodiments and will not be described again here.
[0080] S305: If the first load value at the same time within the set time period is higher than the second load value, control the running state of the target service deployed by the second running system to switch from a disabled state to a pre-balancing state.
[0081] S306: Receive first indication information sent by the vehicle, where the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balancing state.
[0082] S307: Control the running state of the target service deployed by the second running system to switch from the pre-balancing state to the enabling state.
[0083] In one embodiment, before receiving the first indication information sent by the vehicle, the method further includes sending first control information to the vehicle, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state. Thus, before receiving the first indication information sent by the vehicle, the method may send the first control information to the vehicle to instruct the vehicle to switch the operating state of the deployed target system from the enabled state to the pre-balanced state.
[0084] In one embodiment, after controlling the operating state of the target service deployed by the second operating system to switch from the pre-balanced state to the enabled state, the method further includes sending second indication information to the vehicle, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system has been successfully switched to the enabled state. Thus, in the method, after controlling the operating state of the target service deployed by the second operating system to switch from the pre-balanced state to the enabled state, the method may send second indication information to the vehicle to indicate to the vehicle that the operating state of the target system deployed by the second operating system has been successfully switched to the enabled state.
[0085] In summary, according to the load balancing method of the embodiment of the present invention, a target service to be balanced is determined, wherein the target service is deployed on a first operating system and a second operating system at the same time. If the first load values at the same time within a set time period are higher than the second load values, the operating state of the target service deployed by the second operating system is controlled to switch from a disabled state to a pre-balancing state, and the first indication information sent by the vehicle is received, and the operating state of the target service deployed by the second operating system is controlled to switch from the pre-balancing state to an enabled state, thereby increasing the second load value of the second operating system.
[0086] Figure 4 The figure is a flow chart of a load balancing method according to another embodiment of the present disclosure.
[0087] like Figure 4 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0088] S401, detecting second load values of a second operating system deployed on a server at multiple times.
[0089] S402, receiving first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle.
[0090] S403: Obtain a difference between the first load value and the second load value at the same time.
[0091] S404: If the average value of the plurality of differences within the set time period is greater than the set threshold, determine a target service to be balanced, wherein the target service is deployed on the first operating system and the second operating system at the same time.
[0092] For the relevant contents of steps S401 - S404 , please refer to the above embodiment and will not be described again here.
[0093] S405: If the second load value at the same time within the set time period is higher than the first load value, control the running state of the target service deployed by the second running system to switch from the enabled state to the pre-balancing state.
[0094] S406, receiving third indication information sent by the vehicle, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state.
[0095] S407: Control the running state of the target service deployed by the second running system to switch from the pre-balancing state to the disabled state.
[0096] In one embodiment, before receiving the third indication information sent by the vehicle, the method further includes sending fourth indication information to the vehicle, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the pre-balanced state. Therefore, before receiving the third indication information sent by the vehicle, the method may send the fourth indication information to the vehicle to indicate to the vehicle that the operating state of the target system deployed by the second operating system is successfully switched to the pre-balanced state.
[0097] In one embodiment, before receiving the third instruction information sent by the vehicle, the method further includes sending second control information to the vehicle, wherein the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from the disabled state to the pre-balanced state. Therefore, before receiving the third instruction information sent by the vehicle, the method may send the second control information to the vehicle to instruct the vehicle to switch the operating state of the deployed target system from the disabled state to the pre-balanced state.
[0098] In summary, according to the load balancing method of the embodiment of the present invention, a target service to be balanced is determined, wherein the target service is deployed on a first operating system and a second operating system at the same time. If the second load values at the same time within a set time period are higher than the first load value, the operating state of the target service deployed by the second operating system is controlled to switch from an enabled state to a pre-balancing state, and the third indication information sent by the vehicle is received, and the operating state of the target service deployed by the second operating system is controlled to switch from the pre-balancing state to a disabled state, thereby increasing the first load value of the first operating system and reducing the second load value of the second operating system.
[0099] Figure 5 The figure is a flow chart of a load balancing method according to another embodiment of the present disclosure.
[0100] like Figure 5 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0101] S501, detecting first load values of a first operating system deployed on a vehicle at multiple moments.
[0102] It should be noted that the load balancing method of the embodiment of the present disclosure can be executed by the load balancing device between the vehicle and the server of the embodiment of the present disclosure, and the load balancing device between the vehicle and the server of the embodiment of the present disclosure can be configured in any vehicle to execute the load balancing method of the embodiment of the present disclosure.
[0103] In one embodiment, the first operating system is deployed with a first load balancing service, and detecting first load values of the first operating system deployed on the vehicle at multiple times includes detecting the first load values at multiple times through the first load balancing service.
[0104] S502, sending first load values at multiple moments to the server, wherein the first load values at multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0105] In one embodiment, the second operating system is deployed with a second load balancing service, and sends the first load values at multiple times to the server, including sending the first load values at multiple times to the second load balancing service through the first load balancing service.
[0106] In one implementation, it also includes performing a master-slave election on the first load balancing service and the second load balancing service, determining that the second load balancing service is the master service of the first load balancing service, and the first load balancing service is the slave service of the second load balancing service.
[0107] For the relevant contents of steps S501-S502, please refer to the above embodiment and will not be repeated here.
[0108] In summary, according to the load balancing method of the embodiment of the present disclosure, the first load values of the first operating system deployed on the vehicle at multiple times are detected, and the first load values at multiple times are sent to the server, wherein the first load values at multiple times are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle. Therefore, in this solution, the first load value can be detected and sent to the server in real time, so that the load balancing can be performed between the first operating system deployed on the vehicle and the second operating system deployed on the server in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0109] Figure 6 The figure is a flow chart of a load balancing method according to another embodiment of the present disclosure.
[0110] like Figure 6 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0111] S601, detecting first load values of a first operating system deployed on a vehicle at multiple moments.
[0112] S602, sending first load values at multiple moments to the server, wherein the first load values at multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0113] For the relevant contents of steps S601-S602, please refer to the above embodiment and will not be repeated here.
[0114] S603: If the first load value of the first operating system at the same time within the set time period is higher than the second load value, control the operating state of the target service deployed by the first operating system to switch from the enabled state to the pre-balancing state.
[0115] S604: Receive second indication information sent by the server, where the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to an enabled state.
[0116] S605: Control the running state of the target service deployed by the first running system to switch from a pre-balancing state to a disabled state.
[0117] In one embodiment, before controlling the operating state of the target service deployed by the first operating system to switch from the enabled state to the pre-balanced state, the method further includes receiving first control information sent by the server, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state. Thus, the method can receive the first control information sent by the server, and based on the first control information, control the operating state of the target service deployed by the first operating system to switch from the enabled state to the pre-balanced state.
[0118] In one embodiment, before receiving the second indication information sent by the server, the method further includes sending first indication information to the server, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balanced state. Therefore, before receiving the second indication information sent by the server, the method may send the first indication information to the server to indicate to the server that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balanced state.
[0119] In summary, according to the load balancing method of the embodiment of the present invention, if the first load values at the same time within the set time period are higher than the second load value, the operating state of the target service deployed by the first operating system is controlled to switch from the enabled state to the pre-balancing state, and the second indication information sent by the server is received, and the operating state of the target service deployed by the first operating system is controlled to switch from the pre-balancing state to the disabled state, thereby reducing the first load value of the first operating system and increasing the second load value of the second operating system.
[0120] Figure 7 The figure is a flow chart of a load balancing method according to another embodiment of the present disclosure.
[0121] like Figure 7 As shown, the load balancing method of the embodiment of the present disclosure includes:
[0122] S701, detecting first load values of a first operating system deployed on a vehicle at multiple moments.
[0123] S702, sending first load values at multiple moments to the server, wherein the first load values at multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0124] For the relevant contents of steps S701-S702, please refer to the above embodiment and will not be repeated here.
[0125] S703: If the second load values at the same time within the set time period are all higher than the first load value of the first operating system, control the operating state of the target service deployed by the first operating system to switch from a disabled state to a pre-balancing state.
[0126] S704: Receive fourth indication information sent by the server, where the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the pre-balancing state.
[0127] S705: Control the running state of the target service deployed by the first running system to switch from a pre-balancing state to an enabled state.
[0128] In one embodiment, before controlling the operating state of the target service deployed by the first operating system to switch from the disabled state to the pre-balanced state, the method further includes receiving second control information sent by the server, wherein the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from the disabled state to the pre-balanced state. Thus, the method can receive the second control information sent by the server, and based on the second control information, control the operating state of the target service deployed by the first operating system to switch from the disabled state to the pre-balanced state.
[0129] In one embodiment, after controlling the operating state of the target service deployed by the first operating system to switch from the pre-balanced state to the enabled state, the method further includes sending third indication information to the server, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the enabled state. Thus, in the method, after controlling the operating state of the target service deployed by the first operating system to switch from the pre-balanced state to the enabled state, the method may send third indication information to the server to indicate to the server that the operating state of the target system deployed by the first operating system is successfully switched to the enabled state.
[0130] In summary, according to the load balancing method of the embodiment of the present invention, if the second load values at the same time within the set time period are higher than the first load value, the running state of the target service deployed by the first operating system is controlled to switch from the disabled state to the pre-balancing state, and the fourth indication information sent by the server is received, and the running state of the target service deployed by the first operating system is controlled to switch from the pre-balancing state to the enabled state, thereby increasing the first load value of the first operating system.
[0131] In order to implement the above embodiment, the present disclosure also proposes a load balancing device.
[0132] Figure 8 The figure is a schematic diagram of the structure of a load balancing device according to an embodiment of the present disclosure.
[0133] like Figure 8 As shown, the load balancing device 100 of the embodiment of the present disclosure includes: a detection module 110 , a receiving module 120 , an acquisition module 130 and a balancing module 140 .
[0134] The detection module 110 is used to detect the second load value of the second operating system deployed on the server at multiple times;
[0135] The receiving module 120 is used to receive first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle;
[0136] The acquisition module 130 is used to acquire the difference between the first load value and the second load value at the same time;
[0137] The balancing module 140 is used to trigger load balancing if an average value of the plurality of differences within a set time period is greater than a set threshold, so as to load balance the first operating system and the second operating system.
[0138] In one embodiment of the present disclosure, the balancing module 140 is also used to: determine a target service to be balanced, wherein the target service is deployed on the first operating system and the second operating system at the same time; if the first load values at the same time within the set time period are higher than the second load values, control the operating state of the target service deployed by the second operating system to switch from a disabled state to a pre-balancing state; receive first indication information sent by the vehicle, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to a pre-balancing state; control the operating state of the target service deployed by the second operating system to switch from a pre-balancing state to an enabled state.
[0139] In one embodiment of the present disclosure, before receiving the first indication information sent by the vehicle, the balancing module 140 is further used to: send first control information to the vehicle, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state; after controlling the operating state of the target service deployed by the second operating system to switch from the pre-balanced state to the enabled state, the balancing module 140 is further used to: send second indication information to the vehicle, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the enabled state.
[0140] In one embodiment of the present disclosure, the balancing module 140 is also used to: determine a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system; if the second load values at the same time within the set time period are higher than the first load value, control the operating state of the target service deployed by the second operating system to switch from an enabled state to a pre-balancing state; receive third indication information sent by the vehicle, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state; control the operating state of the target service deployed by the second operating system to switch from a pre-balancing state to a disabled state.
[0141] In one embodiment of the present disclosure, before receiving the third indication information sent by the vehicle, the balancing module 140 is further used to: send fourth indication information and second control information to the vehicle, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to a pre-balancing state, and the second control information is used to indicate that the first operating system switches the operating state of the deployed target system from a disabled state to a pre-balancing state.
[0142] In one embodiment of the present disclosure, the first operating system is deployed with a first load balancing service, and the second operating system is deployed with a second load balancing service; the detection module 110 is also used to: detect the second load values at the multiple moments through the second load balancing service; the receiving module 120 is also used to: receive the first load values at the multiple moments sent by the first load balancing service through the second load balancing service.
[0143] It should be noted that for details not disclosed in the load balancing device of the embodiment of the present disclosure, please refer to the details disclosed in the load balancing method of the embodiment of the present disclosure, which will not be repeated here.
[0144] In summary, the load balancing device of the disclosed embodiment detects the second load value of the second operating system deployed on the server at multiple moments, receives the first load value of the first operating system sent by the vehicle at multiple moments, wherein the first operating system is deployed on the vehicle, obtains the difference between the first load value and the second load value at the same moment, and triggers load balancing if the average value of the multiple differences within the set time is greater than the set threshold, so that the first operating system and the second operating system are load balanced. Therefore, in this solution, when the average value of the multiple differences between the first load value and the second load value within the set time is large, the first operating system deployed on the vehicle and the second operating system deployed on the server can be load balanced in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0145] In order to implement the above embodiment, the present disclosure also proposes another load balancing device.
[0146] Fig. 9 It is a structural diagram of a load balancing device according to another embodiment of the present disclosure.
[0147] like Fig. 9 As shown, the load balancing device 200 of the embodiment of the present disclosure includes: a detection module 210 and a sending module 220.
[0148] The detection module 210 is used to detect first load values of a first operating system deployed on the vehicle at multiple moments;
[0149] The sending module 220 is used to send the first load values at the multiple moments to the server, wherein the first load values at the multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
[0150] In one embodiment of the present disclosure, the device also includes: a balancing module, the balancing module is used to: if the first load values of the first operating system at the same time within a set time period are all higher than the second load value, control the operating state of the target service deployed by the first operating system to switch from an enabled state to a pre-balanced state; receive second indication information sent by the server, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to an enabled state; control the operating state of the target service deployed by the first operating system to switch from a pre-balanced state to a disabled state.
[0151] In one embodiment of the present disclosure, before the control of switching the operating state of the target service deployed by the first operating system from the enabled state to the pre-balanced state, the balancing module is also used to: receive first control information sent by the server, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from the enabled state to the pre-balanced state; before receiving second indication information sent by the server, the balancing module is also used to: send first indication information to the server, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balanced state.
[0152] In one embodiment of the present disclosure, the device also includes: a balancing module, the balancing module is used to: if the second load values at the same time within a set time period are all higher than the first load value of the first operating system, control the operating state of the target service deployed by the first operating system to switch from a disabled state to a pre-balanced state; receive fourth indication information sent by the server, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to a pre-balanced state; control the operating state of the target service deployed by the first operating system to switch from a pre-balanced state to an enabled state.
[0153] In one embodiment of the present disclosure, before the operating state of the target service deployed by the first operating system is controlled to switch from a disabled state to a pre-balanced state, the balancing module is further used to: receive second control information sent by the server, wherein the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from a disabled state to a pre-balanced state; after the operating state of the target service deployed by the first operating system is controlled to switch from a pre-balanced state to an enabled state, the balancing module is further used to: send third indication information to the server, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state.
[0154] It should be noted that for details not disclosed in the load balancing device of the embodiment of the present disclosure, please refer to the details disclosed in the load balancing method of the embodiment of the present disclosure, which will not be repeated here.
[0155] In summary, the load balancing device of the disclosed embodiment detects the first load values of the first operating system deployed on the vehicle at multiple times, and sends the first load values at multiple times to the server, wherein the first load values at multiple times are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle. Therefore, in this solution, the first load value can be detected and sent to the server in real time, so that the load balancing can be performed in real time between the first operating system deployed on the vehicle and the second operating system deployed on the server, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0156] In order to implement the above embodiment, Fig.10 As shown, an embodiment of the present disclosure proposes an electronic device 300, including: a memory 310, a processor 320, and a computer program stored in the memory 310 and executable on the processor 320, and when the processor 320 executes the program, the above-mentioned load balancing method is implemented.
[0157] The electronic device of the disclosed embodiment executes a computer program stored in a memory through a processor, detects the second load value of the second operating system deployed on the server at multiple moments, receives the first load value of the first operating system sent by the vehicle at multiple moments, wherein the first operating system is deployed on the vehicle, obtains the difference between the first load value and the second load value at the same moment, and triggers load balancing if the average value of the multiple differences within a set time is greater than a set threshold, so that the first operating system and the second operating system are load balanced. Therefore, in this solution, when the average value of the multiple differences between the first load value and the second load value within a set time is large, load balancing can be performed in real time between the first operating system deployed on the vehicle and the second operating system deployed on the server, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0158] In order to implement the above embodiment, the embodiment of the present disclosure proposes a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above load balancing method is implemented.
[0159] The computer-readable storage medium of the disclosed embodiment stores a computer program and is executed by a processor, detects the second load value of the second operating system deployed on the server at multiple moments, receives the first load value of the first operating system sent by the vehicle at multiple moments, wherein the first operating system is deployed on the vehicle, obtains the difference between the first load value and the second load value at the same moment, and triggers load balancing if the average value of the multiple differences within a set time is greater than a set threshold, so that the first operating system and the second operating system are load balanced. Therefore, in this solution, when the average value of the multiple differences between the first load value and the second load value within a set time is large, the first operating system deployed on the vehicle and the second operating system deployed on the server can be load balanced in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0160] In order to implement the above embodiment, the present disclosure provides a server, including the above Figure 8 The load balancing device shown; or the electronic device mentioned above; or the computer readable storage medium mentioned above.
[0161] The server of the disclosed embodiment detects the second load value of the second operating system deployed on the server at multiple moments, receives the first load value of the first operating system at multiple moments sent by the vehicle, wherein the first operating system is deployed on the vehicle, obtains the difference between the first load value and the second load value at the same moment, and triggers load balancing if the average value of the multiple differences within a set time is greater than a set threshold, so that the first operating system and the second operating system are load balanced. Therefore, in this solution, when the average value of the multiple differences between the first load value and the second load value within a set time is large, the first operating system deployed on the vehicle and the second operating system deployed on the server can be load balanced in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0162] In order to implement the above embodiment, the present disclosure provides a vehicle, including the above Fig. 9 The load balancing device shown; or the electronic device mentioned above; or the computer readable storage medium mentioned above.
[0163] The vehicle of the disclosed embodiment detects the first load values of the first operating system deployed on the vehicle at multiple times, and sends the first load values at multiple times to the server, wherein the first load values at multiple times are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle. Thus, in this solution, the first load value can be detected and sent to the server in real time, so that the load balancing can be performed between the first operating system deployed on the vehicle and the second operating system deployed on the server in real time, which helps to improve the resource utilization efficiency of the first operating system and the second operating system.
[0164] In the description of the present disclosure, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present disclosure.
[0165] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0166] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0167] In the present disclosure, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0168] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0169] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A load balancing method, characterized in that: include: Detecting second load values of a second operating system deployed on the server at multiple times; Receiving first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle; Obtaining a difference between the first load value and the second load value at the same moment; If the average value of the plurality of differences within a set time period is greater than a set threshold, load balancing is triggered so that the first operating system and the second operating system are load balanced.
2. The method according to claim 1, characterized in that The triggering of load balancing includes: Determining a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system; If the first load values at the same time within the set time period are all higher than the second load value, controlling the running state of the target service deployed by the second running system to switch from a disabled state to a pre-balancing state; receiving first indication information sent by the vehicle, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to a pre-balancing state; The operating state of the target service deployed by the second operating system is controlled to switch from a pre-balancing state to an enabled state.
3. The method according to claim 2, characterized in that Before receiving the first indication information sent by the vehicle, the method further includes: Sending first control information to the vehicle, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from an enabled state to a pre-balanced state; After the controlling the operating state of the target service deployed by the second operating system is switched from the pre-balanced state to the enabled state, the method further includes: Sending second indication information to the vehicle, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to an enabled state.
4. The method according to claim 1, characterized in that: The triggering of load balancing includes: Determining a target service to be balanced, wherein the target service is deployed on both the first operating system and the second operating system; If the second load values at the same time within the set time period are all higher than the first load value, controlling the running state of the target service deployed by the second running system to switch from the enabled state to the pre-balancing state; receiving third indication information sent by the vehicle, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state; The operating state of the target service deployed by the second operating system is controlled to switch from a pre-balancing state to a disabled state.
5. The method according to claim 4, characterized in that Before receiving the third indication information sent by the vehicle, the method further includes: Sending fourth indication information and second control information to the vehicle, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the pre-balanced state, and the second control information is used to indicate that the first operating system switches the operating state of the deployed target system from a disabled state to a pre-balanced state.
6. The method according to any one of claims 1 to 5, characterized in that The first operating system is deployed with a first load balancing service, and the second operating system is deployed with a second load balancing service; The detecting the second load values of the second operating system deployed on the server at multiple times includes: Detecting the second load values at the multiple moments by the second load balancing service; The receiving of first load values of a first operating system at multiple moments sent by the vehicle includes: The first load values at the multiple time moments sent by the first load balancing service are received through the second load balancing service.
7. A load balancing method, characterized in that: include: Detecting first load values of a first operating system deployed on the vehicle at multiple times; The first load values at the multiple moments are sent to a server, wherein the first load values at the multiple moments are used to load balance a first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
8. The method according to claim 7, characterized in that The method further comprises: If the first load values of the first operating system at the same time within the set time period are all higher than the second load value, controlling the operating state of the target service deployed by the first operating system to switch from an enabled state to a pre-balancing state; receiving second indication information sent by the server, wherein the second indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to an enabled state; The operating state of the target service deployed by the first operating system is controlled to switch from a pre-balancing state to a disabled state.
9. The method according to claim 8, characterized in that Before controlling the running state of the target service deployed by the first running system to switch from the enabled state to the pre-balanced state, the method further includes: Receiving first control information sent by the server, wherein the first control information is used to instruct the first operating system to switch the operating state of the deployed target system from an enabled state to a pre-balanced state; Before receiving the second indication information sent by the server, the method further includes: Sending first indication information to the server, wherein the first indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to the pre-balancing state.
10. The method according to claim 7, characterized in that The method further comprises: If the second load values at the same time within the set time period are all higher than the first load value of the first operating system, controlling the operating state of the target service deployed by the first operating system to switch from a disabled state to a pre-balancing state; receiving fourth indication information sent by the server, wherein the fourth indication information is used to indicate that the operating state of the target system deployed by the second operating system is successfully switched to the pre-balancing state; The operating state of the target service deployed by the first operating system is controlled to switch from a pre-balancing state to an enabled state.
11. The method according to claim 10, characterized in that Before controlling the running state of the target service deployed by the first running system to switch from the disabled state to the pre-balanced state, the method further includes: receiving second control information sent by the server, wherein the second control information is used to instruct the first operating system to switch the operating state of the deployed target system from a disabled state to a pre-balanced state; After the operating state of the target service deployed by the first operating system is controlled to be switched from the pre-balanced state to the enabled state, the method further includes: Sending third indication information to the server, wherein the third indication information is used to indicate that the operating state of the target system deployed by the first operating system is successfully switched to an enabled state.
12. A load balancing device, characterized in that: include: A detection module, used for detecting a second load value of a second operating system deployed on the server at multiple times; A receiving module, configured to receive first load values of a first operating system at multiple moments sent by a vehicle, wherein the first operating system is deployed on the vehicle; An acquisition module, used to acquire a difference between the first load value and the second load value at the same moment; The balancing module is used to trigger load balancing if the average value of the multiple differences within a set time period is greater than a set threshold, so as to load balance the first operating system and the second operating system.
13. A load balancing device, characterized in that: include: A detection module, used to detect first load values of a first operating system deployed on the vehicle at multiple times; A sending module is used to send the first load values at the multiple moments to the server, wherein the first load values at the multiple moments are used to load balance the first operating system and the second operating system, wherein the first operating system is deployed on the vehicle.
14. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the load balancing method according to any one of claims 1 to 11 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the load balancing method according to any one of claims 1 to 11 is implemented.
16. A server, characterized in that: include: The load balancing device as claimed in claim 12; or the electronic device as claimed in claim 14; or the computer-readable storage medium as claimed in claim 15.
17. A vehicle, characterized in that: include: The load balancing device as claimed in claim 13; or the electronic device as claimed in claim 14; or the computer-readable storage medium as claimed in claim 15.
