CN114138366A - Service control method, device, equipment and storage medium - Google Patents

Service control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114138366A
CN114138366A CN202111445543.0A CN202111445543A CN114138366A CN 114138366 A CN114138366 A CN 114138366A CN 202111445543 A CN202111445543 A CN 202111445543A CN 114138366 A CN114138366 A CN 114138366A
Authority
CN
China
Prior art keywords
service
cloud
vehicle
unavailable
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111445543.0A
Other languages
Chinese (zh)
Inventor
张晓濛
李可卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uisee Shanghai Automotive Technologies Ltd
Original Assignee
Uisee Shanghai Automotive Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uisee Shanghai Automotive Technologies Ltd filed Critical Uisee Shanghai Automotive Technologies Ltd
Priority to CN202111445543.0A priority Critical patent/CN114138366A/en
Publication of CN114138366A publication Critical patent/CN114138366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present disclosure relates to a service control method, apparatus, device, and storage medium. The service control method is applied to the cloud, and various types of services are operated on the cloud, and the method specifically comprises the following steps: the method comprises the steps of obtaining the running state of the service running on the cloud, wherein the running state of the service comprises service availability and service unavailability, usually one service corresponds to at least one copy, the copy refers to a program for realizing the service function, the service unavailability refers to the condition that the copies corresponding to the service cannot be used or run, and the service function cannot be realized; if the service is determined to be unavailable, the safety service corresponding to the service is started, the safety service is used for realizing the core function of the service, the safety service can realize the core function of the service and can also be understood as low-profile service, when the service is unavailable, the service operation can be maintained, meanwhile, time can be provided for related personnel to subsequently maintain the unavailable service, and the user experience is improved.

Description

Service control method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a service control method, apparatus, and storage medium for a device.
Background
The cloud computing platform is also called a cloud platform, and refers to services based on hardware resources and software resources, and provides computing, network and storage capabilities, mass services can be deployed on the cloud platform, each service can be used by a large number of users, and once the services are failed, that is, the services are unavailable, serious consequences can be caused.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present disclosure provides a storage medium for a service control method, apparatus, and device, which can enable a security service corresponding to a service in time when the service is unavailable, reduce the unavailable time of the service, ensure the normal operation of a core function of the service, and provide better user experience.
In a first aspect, an embodiment of the present disclosure provides a service control method, which is applied to a cloud on which multiple types of services are run, and the method includes:
acquiring the running state of the service, wherein the running state of the service comprises service availability and service unavailability;
and if the service is unavailable, starting a safety service corresponding to the service, wherein the safety service is used for realizing the core function of the service.
Optionally, the multiple types of services include gateway services and vehicle cloud access services;
the gateway service comprises gateway authority service and equipment initialization service;
the safety service corresponding to the gateway service comprises a simple gateway authority service and a simple verification service;
the vehicle cloud access service comprises a vehicle shadow service, a vehicle management and control service and a vehicle cloud message channel;
the safety service corresponding to the vehicle cloud access service comprises a minimized vehicle cloud access service and a low-version vehicle cloud message channel.
Optionally, if the service is not available, the security service corresponding to the service is enabled, including:
if the gateway permission service is unavailable, starting a simple gateway permission service, wherein the simple gateway permission service is used for providing at least one security account;
if the device initialization service is not available, then a simple authentication service is enabled, which is used to authenticate the username and password of the vehicle system.
Optionally, the security service corresponding to the gateway service further includes a simple interface service;
if the gateway permission service is not available, the simple gateway permission service is started, and the method comprises the following steps:
and if the gateway permission service is not available, starting the simple gateway permission service and the simple interface service.
Optionally, if the service is not available, the security service corresponding to the service is enabled, including:
if the vehicle shadow service and the vehicle management and control service are unavailable, starting a minimized vehicle cloud access, wherein the minimized vehicle cloud access is used for sending control instructions and receiving information;
and if the vehicle cloud message channel is not available, starting a low-version vehicle cloud message channel, wherein the low-version vehicle cloud message channel is used for publishing and subscribing data.
Optionally, if the service is not available, the security service corresponding to the service is enabled, including:
and if the vehicle shadow service, the vehicle management and control service and the vehicle cloud message channel are unavailable, enabling a minimized vehicle cloud channel.
Optionally, the enabling of the security service corresponding to the service includes:
judging whether the service meets a preset starting condition or not; if so, starting a safety service corresponding to the service; the preset enabling conditions comprise that the cloud is available, a cluster of running services in the cloud is available, and a network in the cloud is normally connected.
In a second aspect, an embodiment of the present disclosure provides a service control apparatus, which is applied to a cloud on which multiple types of services are run, and the apparatus includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the running state of the service, and the running state of the service comprises service availability and service unavailability;
and the starting unit is used for starting the safety service corresponding to the service if the service is unavailable, and the safety service is used for realizing the core function of the service.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the service control method as described above.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the service control method as described above.
The service control method provided by the embodiment of the disclosure is applied to a cloud, wherein multiple types of services are operated on the cloud, the multiple types of services can refer to gateway services and vehicle cloud access services, the operation state of the services operated on the cloud is obtained, the operation state of the services comprises service availability and service unavailability, the service availability can be understood that at least one service can be normally operated in the services operated on the cloud and backup services of the services, the service unavailability refers to that the services and the backup services of the services cannot be operated (cannot be used), if the service unavailability is determined, a safety service corresponding to the service is started, the safety service is used for realizing a core function of the service, and the safety service does not belong to the backup services of the services. The service control method provided by the disclosure provides the safety service corresponding to the service, and can directly start the safety service when the service is unavailable, so that the time that the service is unavailable is reduced, the core function of the service can be realized, namely, only the main necessary function of the service is maintained for the unavailable service, the serious problem caused by the unavailable service is avoided, the maintenance time can be provided for related personnel to maintain the unavailable service, the unavailable service can be normally operated, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of another application scenario provided by the embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a service control method according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of another service control method provided in the embodiment of the present disclosure;
fig. 5 is a schematic flow chart of another service control method provided in the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a service control apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
The service control method provided by the present disclosure is explained in detail by one or more embodiments described below.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present disclosure, where fig. 1 includes a client 11 and a server 12, specifically, the client 12 and a vehicle 11 may be referred to, the vehicle 11 is in communication connection with the cloud 12, and the vehicle 11 may be a vehicle with an automatic driving function. A large number of services are deployed on the cloud 12, and the services deployed on the cloud 12 are used for implementing operation and maintenance of the vehicle 11, for example, a network service, a permission service, a vehicle shadow service, and the like provided by the cloud 12, so that a user can better use an automatic driving function of the vehicle 11, and data communication is performed between the vehicle 11 and the cloud 12 through the services deployed on the cloud 12. The method provided by the embodiment of the disclosure is applicable to the server 12, the server 12 determines the running state of the service running on the server, and when the running state of the service is unavailable, the security service corresponding to the service is started, that is, the low-version service of the service is started, the low-version service can be stored in the server 12 in a cold standby mode, the cold standby mode is that the security service corresponding to the service is started only when the service is unavailable, and if the service is available, the security service is only stored in the server but is not running.
In one embodiment, the method for the server 12 to determine the operation state of the service running on the server includes: acquiring the number of available copies corresponding to the service and the number of times of restarting the service; and determining the running state of the service according to the number of the available copies and the restarting times, wherein the running state comprises a normal state, a waiting state and a failure state.
It can be understood that fig. 2 is a schematic diagram of an application scenario provided by the embodiment of the present disclosure, fig. 2 includes a cloud 210 and a backup cloud 220 of the cloud 210, the cloud 210 includes a cluster 211 and a backup cluster 212 of the cluster 211, the cluster 211 includes 3 copies, which are a copy 213, a copy 214 and a copy 215, and the 3 copies implement related functions of the same service, and can be understood as a program to implement the related functions of the service, where the copy 213 can be a copy in the cluster 211 as a copy for receiving a processing request, the copy 214 and the copy 215 can be understood as backup copies with respect to the copy 211, the copy 213, the copy 214 and the copy 215 can be simultaneously run, and backup can be performed between the 3 copies in a hot standby manner, where hot standby refers to running multiple sets of services in the whole cluster, all requests are received and processed by only one set of services, and when one or more services in the set of services cannot normally run, and when the request is switched to the corresponding backup service, the data among the 3 copies are synchronized in real time, and the switching time is shorter by adopting a hot standby mode. For example, the copy 214 corresponding to the backup service may be enabled after the copy 213 fails to operate normally, and the backup copy 215 may be enabled when the copy 214 fails to operate normally. The cluster 212 is a backup cluster of the cluster 211, the cloud 220 is a backup cloud of the cloud 210, when the service copy 213 in the cluster 211 in the cloud 210 cannot normally operate, the backup copy 214 or the copy 215 on the cluster 211 is preferentially enabled, if the copy 214 and the copy 215 cannot normally operate, the backup cluster 212 is switched to, the copy 216 or other copies running on the backup cluster 212 are enabled, if multiple copies running on the backup cluster 212 cannot normally operate, the backup cloud 220 is enabled, that is, a switching rule between services may be that service switching is preferentially performed in the same cluster, service switching between clusters in the same cloud is performed, finally service switching between different clouds is performed, so that switching speed can be increased to the maximum extent, and switching cost can be reduced.
It is understood that the service state determination method may be executed by a state machine, the state machine may also be deployed in the cluster 211, or in the cloud 210, or one state machine may be deployed in each cluster, the state machine may be understood as a mechanism for monitoring a service state, and a state machine entity may be a program. When the cluster 211 is restarted or initialized, the state machine may be automatically started to monitor the running state of the service on the cluster at any time, and the following embodiments will be described by taking the state machine in the cluster 211 as an example, and the manner of the state machine in the cloud is similar, which is not described herein again. The state machine obtains the number of available copies of a service running on the cluster and the number of restart times of the service, where an available copy refers to the number of copies that can run normally, and the number of restart times of the service may be an accumulated number of restart times of all copies corresponding to the service, or may be a number of restart times of each copy corresponding to the service running on the cluster, for example, the number of available copies of the service in the cluster 211 in fig. 2 is 3, that is, the copy 213, the copy 214, and the copy 215 may run normally, and the number of restart times of the service may be zero at this time. In some embodiments, the number of restarts may also be different from zero, the state machine is not necessarily enabled synchronously with the cluster 211, and there may be a case where the state machine is enabled or initialized after the cluster 211 has been operated for a period of time, for example, during the operation of the cluster 211, a service is restarted, that is, there is a number of restarts for the service, and if there is an available copy of the service in the cluster 211, that is, the service is in a normal state in the cluster 211, but the number of restarts for the service is different from zero.
Optionally, the determining the running state of the service according to the number of available copies and the number of restart times specifically includes the following steps: if the number of the available copies is larger than or equal to a first preset threshold value, determining that the running state of the service is a normal state; if the number of the available copies is smaller than a first preset threshold value and the number of restarting times is smaller than a second preset threshold value, determining that the running state of the service is a waiting state; and if the number of the available copies is less than a first preset threshold value and the restarting times is greater than or equal to a second preset threshold value, determining that the running state of the service is a failure state.
It can be understood that if the number of available copies of the service acquired by the state machine is greater than or equal to a first preset threshold, the running state of the service may be directly determined to be a normal state, where the first preset threshold may be 1, that is, if at least one copy that can be normally run and used exists on the cluster 211, it is indicated that the service running on the cluster 211 is a normal state.
It can be understood that if the number of available copies of the service acquired by the state machine is less than a first preset threshold, and the recorded number of times of restarting the service is less than a second preset threshold, the running state of the service may be directly determined to be a waiting state, where the second preset threshold may be 10, and the number of times of restarting the service may be the number of times of restarting each copy corresponding to the service running on the cluster. For example, if there is no copy capable of being used in normal operation on cluster 211, that is, 3 copies in cluster 211 are not available, and the number of times of restarting each copy in the 3 copies is less than 10, it may be determined that a service running on cluster 211 is in a waiting state, where there is an unavailable copy that is restarting. It is understood that when the copy 213 is not available, the copy 213 is automatically switched to the copy 214, and the copy 213 is automatically restarted, when the copy 214 is also not available, if the copy 213 is still in the restart at this time, the copy 215 may be switched to, and the copy 214 is also automatically restarted, and when 3 copies are not available and the number of restarts of each copy in the 3 copies is less than 10, it may be determined that the service running on the cluster 211 is in the waiting state. The first preset threshold and the second preset threshold can be determined according to requirements of related personnel.
It can be understood that if the number of available copies of the service acquired by the state machine is less than a first preset threshold and the recorded restart times of the service are greater than or equal to a second preset threshold, the running state of the service may be directly determined to be a failure state, where the failure state in this case means that all copies corresponding to the service on the cluster 211 are unavailable, and when the restart times are relatively large, it indicates that the service is in the failure state, and at this time, the service is completely unavailable or cannot run.
In another embodiment, the method for determining whether the service is available or not, that is, determining whether the service is in a failure state or a normal state, may specifically include: acquiring the number of available copies corresponding to the service; and determining the running state of the service according to the number of the available copies, wherein the running state comprises a normal state and a failure state.
Understandably, the state machine in cluster 211 obtains the number of available copies of the service running on cluster 211, i.e., determines how many copies in cluster 211 are available to function properly.
It will be appreciated that the method does not include a wait state, i.e., no wait timeout mechanism is set or enabled in the state machine, and the running state of the service includes only a normal state and a failed state. The running state of the service can be determined only by the number of available copies of the service, and the restarting times of the service do not need to be acquired.
Understandably, according to the number of available copies, determining the running state of the service, wherein the running state comprises a normal state and a failure state, and specifically comprises the following steps: if the number of the available copies is larger than or equal to a first preset threshold value, determining that the running state of the service is a normal state; and if the number of the available copies is less than a first preset threshold value, determining that the running state of the service is a failure state.
It can be understood that if the number of available copies of the service acquired by the state machine is greater than or equal to a first preset threshold, the running state of the service may be directly determined to be a normal state, where the first preset threshold may be 1, that is, if at least one copy that can be normally run and used exists on the cluster 211, it is indicated that the service running on the cluster 211 is a normal state.
Fig. 3 is a service control method provided in the embodiment of the present disclosure, which is applied to a cloud, where multiple types of services are run on the cloud, and specifically, the following steps S310 to S320 are shown:
s310, acquiring the running state of the service, wherein the running state of the service comprises service availability and service unavailability.
It can be understood that the operation state of the service may be determined by using the method, specifically, the operation state of the service running on the cloud may be determined, a state machine is configured on the cloud, and the state machine is used to monitor the operation state of the service running on the cloud, and may also be understood as a state machine that monitors the operation states of all services in a physical cluster in the cloud, where the physical cluster may also include a virtual cluster, and the virtual cluster may be understood as the cluster 211 and the standby cluster 212. The service running state includes service availability and service unavailability, where service unavailability means that the copies corresponding to the services on the cloud 210 and the standby cloud 220 in fig. 2 are both unavailable, that is, the service is in an invalid state, and service availability means that at least one copy corresponding to the services on the cloud 210 and the standby cloud 220 is available, that is, the service is in a normal state.
And S320, if the service is unavailable, starting the safety service corresponding to the service, wherein the safety service is used for realizing the core function of the service.
It can be understood that, on the basis of S310, if it is determined that the service is in the running state, the security service corresponding to the service is enabled, and the security service may also be understood as a low-profile service, where the security service is used to implement a core and necessary functions of the service, the security service may be stored in a cloud in a cold-standby manner, and the security service is enabled only when the service is unavailable, and the enabling of the security service may also be understood as an operation manner related to the service entering a security mode.
It can be understood that data related to service operation can be stored in a storage module in the cloud, and if the service is unavailable, after the security service is enabled, the security service can read related data of the service from the storage module to ensure normal operation of the security service, and can continue to execute tasks which are being executed and are not completed by the service.
Optionally, multiple types of services are run on the cloud, specifically including gateway services and vehicle cloud access services; the gateway service comprises gateway authority service and equipment initialization service; the safety service corresponding to the gateway service comprises a simple gateway authority service and a simple verification service; the vehicle cloud access service comprises a vehicle shadow service, a vehicle management and control service and a vehicle cloud message channel; the safety service corresponding to the vehicle cloud access service comprises a minimized vehicle cloud access service and a low-version vehicle cloud message channel.
It can be understood that various types of services run on the cloud, specifically including gateway services and car cloud access services, the gateway services can realize data transmission, authority, authentication and other functions of the cloud and the car end, the gateway services include gateway authority services and equipment initialization services, the car cloud access services can realize data transmission of the vehicle and the cloud, specifically referring to table 1, where table 1 includes functions realized by the gateway services, functions realized by security services corresponding to the gateway services, functions realized by the car cloud access services, and functions realized by the security services corresponding to the car cloud access services. The vehicle shadow service can receive data reported by a vehicle end and forward the data to the cloud end, receive a control command and issue the control command to the vehicle end, the vehicle cloud message channel specifically comprises a cloud message channel and a vehicle cloud message channel, the cloud message channel can forward the vehicle end and other messages to the cloud end service, and the vehicle cloud message channel can provide subscription and release of vehicle end data. The gateway permission service specifically comprises a gateway service and a permission service, the gateway service can be connected with the client, the permission system and the upstream service, and the permission service can be authenticated, authorized and audited. It can be understood that the specific service type for configuring the security service is not limited, and the function that the security service corresponding to the service can implement is not limited, and can be determined by the user according to the user requirement.
TABLE 1
Figure BDA0003384781710000101
Optionally, the enabling of the security service corresponding to the service in S320 specifically includes: judging whether the service meets a preset starting condition or not; if so, starting a safety service corresponding to the service; the preset enabling conditions comprise that the cloud is available, a cluster of running services in the cloud is available, and a network in the cloud is normally connected.
It can be understood that when it is determined that the service is unavailable, if the security service corresponding to the service is to be enabled, the preset enabling condition needs to be met, and the security service corresponding to the service can be enabled only when the preset enabling condition is met. The preset enabling condition includes that the cloud is available, that is, the cloud itself can normally operate, and the cloud itself can normally operate means that there is no circumstance that an invariance force causes a physical machine fault or a communication fault of the cloud, so as to ensure that the security service stored on the cloud has an environment in which the security service can operate, for example, the service a running on the cloud is unavailable, but the service B running on the cloud is available, which may indicate that the cloud is available, that is, one of the operating conditions of the security service a corresponding to the service a is satisfied; if the service A runs on the cluster A, the security service A corresponding to the service A is also cold-prepared on the cluster A, and at the moment, the cluster A itself needs to be ensured to be available; the network in the cloud is normally connected, namely the network in the cloud is normally connected, the service running on the cloud can carry out communication and data transmission, and the data of the service A are synchronized to the security service A when the security service A cannot be started conveniently.
It can be understood that the security service corresponding to the service running on the cloud and the standby cloud may be configured in advance, or the security service may be configured only for the high-severity service, such as the gateway service and the vehicle cloud access service described above, where the high-severity service may be understood as a service with relatively high importance, such as controlling vehicle running, and may also be configured for a self-behavior service according to a user requirement, or may also be understood as a service with a security mode configured in advance, and when a certain service is unavailable, the security service corresponding to the service is enabled.
It can be understood that, if it is detected that the high-severity service (as shown in table 1) running on the cloud is unavailable, information that the high-severity service is unavailable may be generated and recorded on the cloud, and meanwhile, a notification message that the high-severity service is unavailable may be sent to a vehicle connected to the cloud, for example, the unavailable service is service a, related information about the unavailability of service a may be generated on the cloud, and the related information may be a time when service a is unavailable, a communication state at that time, and the like, and a notification message that the service a is unavailable or that the service a is abnormal may also be displayed on an interface of the vehicle connected to the cloud, so as to prompt a user that the service a running on the cloud fails, and then the cloud may directly enable the security service a corresponding to service a, or ask the user on the interface whether to enable the security service a corresponding to service a, if the user determines to enable, the system is switched to a safety mode, the safety service A is started, and meanwhile, the notification that the service A is unavailable can be sent to operation and maintenance personnel, so that the operation and maintenance personnel can know the condition of the service A and maintain the service A in time. If the service A can normally run, the running of the safety service A can be stopped, and the service A is continuously started.
It can be understood that in the embodiment of the present disclosure, there is also a security service that is only stored in the cluster, the cluster does not have a standby cluster, the cloud corresponding to the cluster does not have a standby cloud, and multiple copies corresponding to the service may exist in the cluster.
The service control method provided by the embodiment of the disclosure is applied to a cloud, wherein multiple types of services are operated on the cloud, the multiple types of services can refer to gateway services and vehicle cloud access services, the operation state of the services operated on the cloud is acquired, the operation state of the services comprises service availability and service unavailability, the service availability can be understood that at least one of the services operated on the cloud and backup services of the services can be operated normally, the service unavailability refers to that the services and the backup services of the services cannot be operated (cannot be used), if the service unavailability is determined, a safety service corresponding to the service is started, the safety service is used for realizing a core function of the service, and the safety service is not the backup service of the services. The service control method provided by the disclosure provides the safety service corresponding to the service, and can directly start the safety service when the service is unavailable, so that the time that the service is unavailable is reduced, the core function of the service can be realized, namely, only the main necessary function of the service is maintained for the unavailable service, the serious problem caused by the unavailable service is avoided, and the user experience is improved.
On the basis of the foregoing embodiment, optionally, if the service is unavailable, the security service corresponding to the service is enabled, specifically including the following steps S410 to S420 as shown in fig. 4:
and S410, if the gateway permission service is unavailable, starting a simple gateway permission service, wherein the simple gateway permission service is used for providing at least one safety account.
It is understood that many types of services may be run on the cloud, and when the gateway authority service is not available, there are situations where other types of services are available, for example, a device initialization service is available, and a car cloud access class service is available. If the gateway permission service is unavailable, the simple gateway permission service corresponding to the gateway permission service is started, the simple gateway permission service comprises a simple gateway and a simple permission service, and the simple permission service can access the upstream resource only through the verification of one safety account.
And S420, if the equipment initialization service is unavailable, starting a simple authentication service, wherein the simple authentication service is used for authenticating the user name and the password of the vehicle system.
It can be understood that if the device initialization service is unavailable, the simple authentication service corresponding to the device initialization service is started, the simple authentication service only needs to authenticate the user name and the password of the vehicle system, that is, only the user name and the password of the vehicle system are authenticated, and the conditions involved in other device initialization services do not need authentication, for example, authentication certificates are not needed.
Optionally, the security service corresponding to the gateway class service further includes a simple interface service.
It can be understood that the security service corresponding to the gateway class service further includes a simple interface service, and the simple interface service only includes core functions of a normal interface, for example, the simple interface may include identifiers of operations such as inputting, determining, and the like, and may also display a map and a vehicle position on the cloud, a current operating state of the vehicle, and the like.
Optionally, if the gateway permission service is unavailable, the simple gateway permission service is started, which specifically includes: and if the gateway permission service is not available, starting the simple gateway permission service and the simple interface service.
It can be understood that if the gateway permission service is determined to be unavailable, the simple gateway permission service and the simple interface service can be simultaneously started, and the simple interface service can provide the identifier required by the permission service.
According to the service control method provided by the embodiment of the disclosure, if the gateway permission service is unavailable, the simple gateway permission service is started, and at the moment, the upstream resources and services can be accessed only by verifying the security account number, so that other services related to the gateway service can be normally operated; if the equipment initialization service is unavailable, the simple verification service can be started, and when a vehicle is to be connected into the cloud, the simple verification service running on the cloud can verify only the user name and the password of the vehicle without verifying the certificate so as to ensure that the vehicle can be connected into the cloud. The method disclosed by the invention can provide the function of the service core when the service is unavailable, and provides maintenance time for maintenance personnel.
On the basis of the foregoing embodiment, optionally, if the service is not available, the security service corresponding to the service is enabled, specifically including the following steps S510 to S520 shown in fig. 5:
and S510, if the vehicle management and control service and the vehicle shadow service are unavailable, starting a minimized vehicle cloud access, wherein the minimized vehicle cloud access is used for sending control instructions and receiving information.
Understandably, if the vehicle management and control service and the vehicle shadow service are unavailable, a security service minimized vehicle cloud passage corresponding to the vehicle management and control service and the vehicle shadow service is started, and the minimized vehicle cloud passage is used for receiving information sent by the vehicle and sending a control instruction to the vehicle through the cloud, namely, information transmission between the cloud and the vehicle end is realized.
S520, if the vehicle cloud message channel is unavailable, starting a low-version vehicle cloud message channel which is used for releasing and subscribing data.
Understandably, if the vehicle cloud message channel is unavailable, the low-version vehicle cloud message channel is started, the low-version vehicle cloud message channel is used for publishing and subscribing data, the low-version vehicle cloud message channel can transmit data subscribed by the vehicle, and the data published by the cloud end can be transmitted to the vehicle.
Understandably, when the cloud message channel is not available, the low-version cloud message channel can be started to forward the message related to the vehicle to the cloud.
Optionally, if the service is unavailable, the security service corresponding to the service is enabled, which specifically includes: and if the vehicle management and control service, the vehicle shadow service and the vehicle cloud message channel are unavailable, enabling a minimized vehicle cloud channel.
Understandably, if the vehicle management and control service, the vehicle shadow service and the vehicle cloud message channel are not available, only the minimized vehicle cloud channel can be started, and the low-profile vehicle cloud message channel is not started, so that the minimized vehicle cloud channel can transmit release data, subscription data and control instructions.
Understandably, if the vehicle management and control service, the vehicle shadow service and the cloud message channel are not available, only the minimized vehicle cloud channel is started.
Understandably, if the vehicle management and control service, the vehicle shadow service, the vehicle cloud message channel and the cloud message channel are unavailable, only the minimized vehicle cloud channel is started.
According to the service control method provided by the embodiment of the disclosure, if the vehicle management and control service and the vehicle shadow service are unavailable, a corresponding security service minimized vehicle cloud access can be started, and the minimized vehicle cloud access is used for transmitting a control instruction sent by a cloud and receiving vehicle information sent by a vehicle so as to ensure normal operation of the vehicle. And if the vehicle cloud message channel is unavailable, starting a corresponding security service low-version vehicle cloud message channel, wherein the low-version vehicle cloud message channel is used for transmitting data published by the cloud and subscription data. The method can provide the function of the service core when the service is unavailable, ensure that the core function corresponding to the unavailable service is realized on the cloud, and provide maintenance time for maintenance personnel.
Fig. 6 is a schematic structural diagram of a service control apparatus according to an embodiment of the present disclosure. The service control apparatus provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the service control method, and is applied to a cloud on which a plurality of types of services are run, where the service control apparatus 600 includes:
an obtaining unit 610, configured to obtain a service running state, where the service running state includes service availability and service unavailability;
the enabling unit 620 is configured to enable a security service corresponding to the service if the service is not available, where the security service is used to implement a core function of the service.
Optionally, the multiple types of services in the apparatus 600 include gateway type services and vehicle cloud access type services; the gateway service comprises gateway authority service and equipment initialization service; the security service corresponding to the gateway service comprises an authority service and an authentication service; the vehicle cloud access service comprises a vehicle management and control service, a vehicle shadow service and a vehicle cloud message channel; the safety service corresponding to the vehicle cloud access service comprises a minimized vehicle cloud access service and a low-version vehicle cloud message channel.
Optionally, if the service is unavailable in the enabling unit 620, the security service corresponding to the service is enabled, which is specifically used for:
if the gateway permission service is unavailable, starting a simple gateway permission service, wherein the simple gateway permission service is used for providing at least one security account;
if the device initialization service is not available, then a simple authentication service is enabled, which is used to authenticate the username and password of the vehicle system.
Optionally, the security service corresponding to the gateway class service in the apparatus 600 further includes a simple interface service.
Optionally, if the gateway permission service is not available in the enabling unit 620, the simple gateway permission service is enabled, and specifically configured to:
and if the gateway permission service is not available, starting the simple gateway permission service and the simple interface service.
Optionally, if the service is unavailable in the enabling unit 620, the security service corresponding to the service is enabled, which is specifically used for:
if the vehicle management and control service and the vehicle shadow service are unavailable, starting a minimized vehicle cloud access, wherein the minimized vehicle cloud access is used for sending control instructions and receiving information;
and if the vehicle cloud message channel is not available, starting a low-version vehicle cloud message channel, wherein the low-version vehicle cloud message channel is used for publishing and subscribing data.
Optionally, if the service is unavailable in the enabling unit 620, the security service corresponding to the service is enabled, which is specifically used for:
and if the vehicle management and control service, the vehicle shadow service and the vehicle cloud message channel are unavailable, enabling a minimized vehicle cloud channel.
Optionally, the enabling unit 620 enables a security service corresponding to the service, and is specifically configured to:
judging whether the service meets a preset starting condition or not; if so, starting a safety service corresponding to the service; the preset enabling conditions comprise that the cloud is available, a cluster of running services in the cloud is available, and a network in the cloud is normally connected.
The service control apparatus in the embodiment shown in fig. 6 may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device provided in the embodiment of the present disclosure may execute the processing procedure provided in the above embodiment, as shown in fig. 7, the electronic device 700 includes: processor 710, communication interface 720, and memory 730; wherein the computer program is stored in the memory 730 and configured to be executed by the processor 710 for performing the service control method as described above.
In addition, the disclosed embodiments also provide a computer-readable storage medium on which a computer program is stored, the computer program being executed by a processor to implement the service control method described in the above embodiments.
Furthermore, the embodiments of the present disclosure also provide a computer program product, which includes a computer program or instructions, and the computer program or instructions implement the service control method as described above when executed by a processor.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A service control method applied to a cloud on which a plurality of types of services are run, the method comprising:
acquiring the running state of the service, wherein the running state of the service comprises the service availability and the service unavailability;
and if the service is unavailable, starting a safety service corresponding to the service, wherein the safety service is used for realizing the core function of the service.
2. The method of claim 1, wherein the plurality of types of services comprise gateway-type services and car cloud access-type services;
the gateway class service comprises a gateway authority service and an equipment initialization service;
the security service corresponding to the gateway class service comprises a simple gateway authority service and a simple verification service;
the vehicle cloud access service comprises a vehicle management and control service, a vehicle shadow service and a vehicle cloud message channel;
the safety service corresponding to the vehicle cloud access service comprises a minimized vehicle cloud access service and a low-version vehicle cloud message channel.
3. The method of claim 2, wherein enabling the security service corresponding to the service if the service is not available comprises:
if the gateway permission service is unavailable, starting the simple gateway permission service, wherein the simple gateway permission service is used for providing at least one security account;
enabling the easy authentication service if the device initialization service is unavailable, the easy authentication service being used to authenticate a username and password of a vehicle system.
4. The method of claim 3, wherein the security services corresponding to the gateway class service further comprise a simple interface service;
if the gateway permission service is unavailable, the simple gateway permission service is started, and the method comprises the following steps:
and if the gateway permission service is unavailable, starting the simple gateway permission service and the simple interface service.
5. The method of claim 2, wherein enabling the security service corresponding to the service if the service is not available comprises:
if the vehicle shadow service and the vehicle management and control service are unavailable, starting the minimized vehicle cloud access, wherein the minimized vehicle cloud access is used for sending control instructions and receiving information;
and if the vehicle cloud message channel is unavailable, starting the low-version vehicle cloud message channel, wherein the low-version vehicle cloud message channel is used for publishing and subscribing data.
6. The method of claim 2, wherein enabling the security service corresponding to the service if the service is not available comprises:
enabling the minimized vehicle cloud pathway if none of the vehicle shadow service, the vehicle management and control service, and the vehicle cloud message channel is available.
7. The method of claim 1, wherein the enabling of the security service corresponding to the service comprises:
judging whether the service meets a preset starting condition or not; if so, starting the safety service corresponding to the service; the preset enabling conditions comprise that the cloud is available, a cluster running the service in the cloud is available, and a network in the cloud is normally connected.
8. A service control apparatus applied to a cloud on which a plurality of types of services are run, the apparatus comprising:
an obtaining unit, configured to obtain an operating state of the service, where the operating state of the service includes that the service is available and that the service is unavailable;
and the starting unit is used for starting the safety service corresponding to the service if the service is unavailable, and the safety service is used for realizing the core function of the service.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the service control method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the service control method according to one of claims 1 to 7.
CN202111445543.0A 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium Pending CN114138366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111445543.0A CN114138366A (en) 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111445543.0A CN114138366A (en) 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114138366A true CN114138366A (en) 2022-03-04

Family

ID=80386030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111445543.0A Pending CN114138366A (en) 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114138366A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043310A (en) * 2007-04-27 2007-09-26 北京佳讯飞鸿电气有限责任公司 Image backup method for dual-core control of core controlled system
US20120254960A1 (en) * 2011-03-31 2012-10-04 Victor Lortz Connecting mobile devices, internet-connected vehicles, and cloud services
CN111245873A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Service degradation method, device, equipment and storage medium
US10904086B1 (en) * 2016-09-30 2021-01-26 Amazon Technologies, Inc. Device capabilities management from a service provider environment
CN112398860A (en) * 2020-11-17 2021-02-23 珠海大横琴科技发展有限公司 Safety control method and device
CN113194005A (en) * 2021-07-01 2021-07-30 智道网联科技(北京)有限公司 Exit system and method for abnormal vehicle intelligent networking service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043310A (en) * 2007-04-27 2007-09-26 北京佳讯飞鸿电气有限责任公司 Image backup method for dual-core control of core controlled system
US20120254960A1 (en) * 2011-03-31 2012-10-04 Victor Lortz Connecting mobile devices, internet-connected vehicles, and cloud services
US10904086B1 (en) * 2016-09-30 2021-01-26 Amazon Technologies, Inc. Device capabilities management from a service provider environment
CN111245873A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Service degradation method, device, equipment and storage medium
CN112398860A (en) * 2020-11-17 2021-02-23 珠海大横琴科技发展有限公司 Safety control method and device
CN113194005A (en) * 2021-07-01 2021-07-30 智道网联科技(北京)有限公司 Exit system and method for abnormal vehicle intelligent networking service

Similar Documents

Publication Publication Date Title
EP2454679B1 (en) Management of an instant message session
WO2016037479A1 (en) Method, device and system for optimizing virtualized network function (vnf)
US10083098B1 (en) Network function virtualization (NFV) virtual network function (VNF) crash recovery
US20140067917A1 (en) Daas manager and daas client for daas system
US8566847B2 (en) Out-of-band host management via a management controller
US9544296B2 (en) Transferring web-application prerequisite files while authentication interface occludes web-application interface
US20150095651A1 (en) Network system, management server system, control method, and storage medium
EP3002699A1 (en) A method for controlling the execution of an application in a virtual computer environment
JP2020135441A (en) Resource service system, control method, and program
CN111241523B (en) Authentication processing method, device, equipment and storage medium
US20160162232A1 (en) Information processing system, information processor, non-transitory computer readable medium, and information processing method
US9749278B1 (en) Persistent connections for email web applications
CN111212117A (en) Remote interaction method and device
US9807259B2 (en) Method for providing service through solution server in security environment, and apparatus and system for performing the same
CN108600156B (en) Server and security authentication method
JP2020145647A (en) System, client terminal, control method, and program
CN114138366A (en) Service control method, device, equipment and storage medium
CN117131493A (en) Authority management system construction method, device, equipment and storage medium
CN116886286A (en) Big data authentication service self-adaption method, device and equipment
KR20150102378A (en) Apparatus for electing a master in redundancy system
US20150271029A1 (en) Activation management system and activation management method
JP5736346B2 (en) Virtualization device, virtualization control method, virtualization device control program
US9104347B2 (en) Systems, methods, and apparatus to print messages from an electronic mailbox
US11223578B2 (en) System and control method to direct transmission of event data to one of a plurality of reception queues
EP4193625A1 (en) Techniques for device to device authentication

Legal Events

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