[go: up one dir, main page]

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

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

Info

Publication number
CN114138366B
CN114138366B CN202111445543.0A CN202111445543A CN114138366B CN 114138366 B CN114138366 B CN 114138366B CN 202111445543 A CN202111445543 A CN 202111445543A CN 114138366 B CN114138366 B CN 114138366B
Authority
CN
China
Prior art keywords
service
services
cloud
vehicle
security
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.)
Active
Application number
CN202111445543.0A
Other languages
Chinese (zh)
Other versions
CN114138366A (en
Inventor
张晓濛
李可卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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/CN114138366B/en
Publication of CN114138366A publication Critical patent/CN114138366A/en
Application granted granted Critical
Publication of CN114138366B publication Critical patent/CN114138366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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: acquiring the running state of a service running on a 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 a service function, the service unavailability refers to that the copy corresponding to the service cannot be used or run, and the function of the service cannot be realized; if the service is determined to be unavailable, enabling the security service corresponding to the service, wherein the security service is used for realizing the core function of the service, and the security service can realize the core function of the service and also can be understood as low-allocation service so as to maintain service operation when the service is unavailable, and simultaneously, provide time for related personnel to maintain the unavailable service later, thereby improving user experience.

Description

Service control method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a service control method, a service control device and a storage medium of equipment.
Background
Cloud computing platforms, also referred to as cloud platforms, refer to services based on hardware resources and software resources, providing computing, networking, and storage capabilities, on which a large number of services, each potentially being used by a large number of users, can be deployed, with serious consequences once these services fail, i.e., the services are not available.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present disclosure provides a service control method, an apparatus, and a storage medium for a device, where in case of unavailable service, a security service corresponding to the service can be started in time, and while reducing unavailable service time, normal operation of a core function of the service can be ensured, and user experience is better.
In a first aspect, an embodiment of the present disclosure provides a service control method, applied to a cloud, where multiple types of services are operated on the cloud, the method including:
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 not available, enabling the security service corresponding to the service, wherein the security service is used for realizing the core function of the service.
Optionally, the multiple types of services include gateway class services and cloud path class services;
The gateway class services comprise gateway authority services and equipment initialization services;
the security services corresponding to the gateway class services comprise simple gateway authority services and simple verification services;
The vehicle cloud access service comprises a vehicle shadow service, a vehicle management and control service and a vehicle cloud message channel;
the security services corresponding to the vehicle cloud access class services comprise a minimized vehicle cloud access service and a low-profile vehicle cloud message channel.
Optionally, if the service is not available, enabling the security service corresponding to the service, including:
If the gateway entitlement service is not available, enabling a simple gateway entitlement service for providing at least one secured account number;
If the device initialization service is not available, a simple authentication service is enabled for authenticating the user name and password of the vehicle system.
Optionally, the security service corresponding to the gateway service further comprises a simple interface service;
if the gateway entitlement service is not available, enabling the simple gateway entitlement service, including:
and if the gateway authority service is not available, enabling the simple gateway authority service and the simple interface service.
Optionally, if the service is not available, enabling the security service corresponding to the service, including:
If the vehicle shadow service and the vehicle management and control service are not available, enabling 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 which is used for publishing and subscribing data.
Optionally, if the service is not available, enabling the security service corresponding to the service, including:
if none of the vehicle shadow service, the vehicle management service, and the vehicle cloud message channel is available, a minimized vehicle cloud pathway is enabled.
Optionally, enabling the security service corresponding to the service includes:
Judging whether the service meets a preset starting condition or not; if yes, enabling the security service corresponding to the service; the preset enabling conditions comprise cloud availability, cluster availability of running service in the cloud and normal connection of a network in the cloud.
In a second aspect, an embodiment of the present disclosure provides a service control apparatus, applied to a cloud, on which a plurality of types of services are operated, including:
the system comprises an acquisition unit, a service management unit and a service management 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 security service corresponding to the service if the service is unavailable, and the security 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 a memory and configured to be executed by a processor to implement the service control method as described above.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a service control method as described above.
The service control method provided by the embodiment of the disclosure is applied to a cloud, a plurality of types of services are operated on the cloud, the plurality of types of services can refer to gateway type services and cloud access type services, the operation states of the services comprise service availability and service unavailability by acquiring the operation states of the services operated on the cloud, the service availability can be understood as that at least one service exists between the services operated on the cloud and the backup services of the services and can normally operate, the service unavailability refers to the service and the backup services of the services cannot be operated (cannot be used), and if the service unavailability is determined, the security service corresponding to the service is started, the security service is used for realizing the core function of the service, and the security service does not belong to the backup services of the services. The service control method provided by the disclosure provides the corresponding security service, and can directly enable the security service when the service is unavailable, so that the service unavailable time is reduced, the core function of the service is ensured to 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 service unavailable service can be maintained by providing the maintenance time for related personnel, so that the unavailable service can normally run, 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 disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
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 in an embodiment of the present disclosure;
Fig. 3 is a schematic flowchart of a service control method according to an embodiment of the disclosure;
Fig. 4 is a schematic flow chart of another service control method according to an embodiment of the disclosure;
Fig. 5 is a schematic flow chart of another service control method according to an embodiment of the disclosure;
Fig. 6 is a schematic structural diagram of a service control device 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, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
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 otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The service control method provided by the present disclosure will be described in detail through one or more of the following embodiments.
Fig. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure, where fig. 1 includes a client 11 and a server 12, specifically may refer to a cloud 12 and a vehicle 11, where the vehicle 11 is in communication connection with the cloud 12, and the vehicle 11 may be a vehicle with an autopilot function. A large number of services are deployed on the cloud 12, and the services deployed on the cloud 12 are used for realizing operation and maintenance of the vehicle 11, such as network services, authority services, vehicle shadow services and the like provided by the cloud 12, so that a user can better use an autopilot 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 suitable for the service end 12, the service end 12 determines the running state of the service running on the service end 12, when the running state of the service is unavailable, the security service corresponding to the service is started, namely, the low-allocation service of the service is started, the low-allocation service can be stored in the service end 12 in a cold standby mode, 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 service end but not running.
In one embodiment, the method for determining the running state of the service running on the server 12 includes: acquiring the number of available copies corresponding to the service and the restarting times of the service; and determining the running state of the service according to the number of available copies and the restarting times, wherein the running state comprises a normal state, a waiting state and a failure state.
It may be appreciated 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 standby cloud 220 of the cloud 210, the cloud 210 includes a cluster 211 and a standby cluster 212 of the cluster 211, the cluster 211 includes 3 copies, and each of the copies 213, 214, and 215,3 implements related functions of a service, the copy may be understood as a program that is to implement related functions of the service, where the copy 213 may be a copy in the cluster 211 that receives a processing request, the copy 214 and the copy 215 may be understood as backup copies with respect to the copy 211, the copy 213, the copy 214, and the copy 215 may operate simultaneously, backup may be performed between the 3 copies in a hot standby manner, the hot standby refers to running multiple sets of services in the whole cluster, all requests are only received and processed by one set of services, when one or more services in the set of services cannot normally operate, the request is switched to the service of the corresponding backup, and data between the 3 copies is synchronized in real time, and the hot standby manner is shorter. For example, copy 213 may be enabled with copy 214 corresponding to the backup service after it fails to function properly, and backup copy 215 may be enabled after copy 214 fails to function properly. The cluster 212 is a standby cluster of the cluster 211, the cloud 220 is a standby cloud of the cloud 210, when the service copies 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 started, if the copy 214 and the copy 215 cannot normally operate, the backup cluster 212 is switched to, the copy 216 or other copies operating on the backup cluster 212 are started, if a plurality of copies operating on the backup cluster 212 cannot normally operate, the backup cloud 220 is started, that is, the switching rule between services can be that service switching is performed in the same cluster preferentially, service switching between the clusters in the same cloud is performed, and finally service switching between different clouds is performed, so that the switching speed can be improved to the greatest extent, and the switching cost is reduced.
It may be appreciated that the service state determining method may be performed by a state machine, where the state machine may be disposed in the cluster 211 or in the cloud 210, or may be disposed in each cluster, and the state machine may be understood as a mechanism for monitoring a service state, and the state machine may be a program specifically. When the cluster 211 is restarted or initialized, a 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, where the manner of the state machine in the cloud is similar, and will not be described herein. The state machine obtains the number of available copies of the service running on the cluster and the number of times of restarting the service, where the available copies refer to the number of copies that can run normally, and the number of times of restarting the service may be the cumulative number of restarting times of all copies corresponding to the service, or may be the number of restarting times of each copy corresponding to the service running on the cluster, for example, in fig. 2, the number of available copies of the service in the cluster 211 is 3, that is, the number of copies 213, 214, and 215 may all run normally, where the number of times of restarting the service may be zero. In some embodiments, the number of restarts may not be zero, the state machine is not necessarily enabled synchronously with the cluster 211, and there may be a period of time after the cluster 211 has been running, the state machine is enabled or the state machine is initialized, for example, during the running process of the cluster 211, there is a service that is restarted, i.e., the service has a number of restarts, and if there is an available copy of the service in the cluster 211, i.e., the service is in a normal state in the cluster 211, but the number of restarts of the service is not zero.
Optionally, determining the running state of the service according to the number of available copies and the number of restarting times specifically includes the following steps: if the number of available copies is greater than or equal to a first preset threshold, determining that the running state of the service is a normal state; if the number of available copies is smaller than a first preset threshold and the restarting times are smaller than a second preset threshold, determining that the running state of the service is a waiting state; and if the number of available copies is smaller than the first preset threshold and the restarting times is larger than or equal to the second preset threshold, determining that the running state of the service is a failure state.
It can be appreciated that if the number of available copies of the service acquired by the state machine is greater than or equal to the 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 in a normal state.
It can be understood that if the number of available copies of the service acquired by the state machine is smaller than a first preset threshold and the recorded restart times of the service is smaller than a second preset threshold, the running state of the service can be directly determined to be a waiting state, where the second preset threshold can be 10, and the restart times of the service can be the restart times of each copy corresponding to the service running on the cluster. For example, if there are no copies on the cluster 211 that can be used in normal operation, that is, when none of the 3 copies in the cluster 211 is available and the number of restarting times of each of the 3 copies is less than 10, it may be determined that the service running on the cluster 211 is in a waiting state, and the waiting state may have an unavailable copy restarting. It can be understood that when the copy 213 is not available, the copy 214 is automatically switched to, and the copy 213 is automatically restarted, when the copy 214 is also not available, if the copy 213 is still restarting at this time, the copy 215 may be switched to, and the copy 214 is also automatically restarted, and when all 3 copies are not available, and the number of restarting times 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 a waiting state. The first preset threshold and the second preset threshold can be determined according to the requirements of related personnel.
It can be understood that if the number of available copies of the service acquired by the state machine is smaller than the first preset threshold and the number of restarting times of the recorded service is greater than or equal to the second preset threshold, the running state of the service can be directly determined to be the failure state, and the failure state in this case refers to that no copy corresponding to the service on the cluster 211 is available, and when the number of restarting times is relatively large, it indicates that the service is in the failure state, and at this time, the service cannot be used at all and cannot run.
In another embodiment, the method for determining whether the service is available or not, that is, the method for judging whether the service is in a failure state or a normal state, specifically includes: 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.
It is appreciated that the state machines in cluster 211 obtain the number of available copies of the service running on cluster 211, i.e., determine how many copies exist in cluster 211 that can 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, at which time the operational state of the service includes only a normal state and a disabled state. The running state of the service can be determined only by the number of available copies of the service, and the number of restarting times of the service is not required to be acquired.
It can be appreciated that, according to the number of available copies, the running state of the service is determined, where the running state includes a normal state and a failure state, and specifically includes: if the number of available copies is greater than or equal to a first preset threshold, determining that the running state of the service is a normal state; and if the number of the available copies is smaller than a first preset threshold value, determining that the running state of the service is a failure state.
It can be appreciated that if the number of available copies of the service obtained by the state machine is greater than or equal to the 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 in a normal state.
Fig. 3 is a schematic diagram of a service control method according to an embodiment of the present disclosure, which is applied to a cloud, and multiple types of services are run on the cloud, specifically in steps S310 to S320 as follows:
S310, acquiring the running state of the service, wherein the running state of the service comprises service availability and service unavailability.
It may be understood that the above method may be used to determine the running state of a service, specifically may refer to determining the running state of a service running on a cloud, configuring a state machine on the cloud, where the state machine is used to monitor the running state of the service running on the cloud, and may also be understood as that the state machine monitors the running 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 above-mentioned cluster 211 and the standby cluster 212. The running states of the service include service availability and service unavailability, that is, the service is unavailable, that is, the service is in a failure state, that is, the service is available, that is, at least one copy of the service is available, that is, the service is in a normal state, on the cloud 210 and the standby cloud 220, that is, the service is available.
And S320, if the service is unavailable, enabling the security service corresponding to the service, wherein the security 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 running state of the service is that the service is unavailable, the security service corresponding to the service is enabled, which may also be understood as a low-profile service, where the security service is used to implement the core and necessary functions of the service, the security service may be stored in a cloud in a cold standby manner, and only when the service is unavailable, the security service is enabled, which may also be understood as that the operation mode related to the service enters the security mode.
It can be understood that the data related to service operation can be stored in the storage module in the cloud, if the service is not available, after the security service is started, the security service can read the related data of the service from the storage module, so as to ensure the normal operation of the security service, and the task that the service is executing and is not completed can be continuously executed.
Optionally, multiple types of services are operated on the cloud, and specifically include gateway services and cloud access services; the gateway class services comprise gateway authority services and equipment initialization services; the security services corresponding to the gateway class services comprise simple gateway authority services and simple verification services; the vehicle cloud access service comprises a vehicle shadow service, a vehicle management and control service and a vehicle cloud message channel; the security services corresponding to the vehicle cloud access class services comprise a minimized vehicle cloud access service and a low-profile vehicle cloud message channel.
It can be understood that a plurality of types of services are operated on the cloud, specifically including gateway service and vehicle cloud access service, the gateway service can realize functions of data transmission, authority, verification and the like of the cloud and the vehicle end, the gateway service includes gateway authority service and equipment initialization service, the vehicle cloud access service can realize data transmission of the vehicle and the cloud, specifically referring to table 1, the table 1 includes functions realized by the gateway service, functions realized by security service corresponding to the gateway service, functions realized by the vehicle cloud access service, and functions realized by security service corresponding to the vehicle cloud access service. The vehicle management and control service can unify front-end service requests and responses, the vehicle shadow service can collect data reported by the vehicle end and forward the data to the cloud end, the vehicle shadow service receives control commands and transmits the control commands 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 service, and the vehicle cloud message channel can provide subscription and release of the vehicle end data. The gateway authority service specifically comprises a gateway service and an authority service, wherein the gateway service can be connected with a client, an authority system and an upstream service, and the authority service can be authenticated, authorized and audited. It can be understood that the specific service type of the configured security service is not limited, and the functions that the security service corresponding to the service can realize are not limited, and can be determined by the user according to the requirements.
TABLE 1
Optionally, the enabling the security service corresponding to the service in S320 specifically includes: judging whether the service meets a preset starting condition or not; if yes, enabling the security service corresponding to the service; the preset enabling conditions comprise cloud availability, cluster availability of running service in the cloud and normal connection of a network in the cloud.
It can be understood that when the service is determined to be unavailable, if the security service corresponding to the service is to be started, the preset starting condition needs to be met, and the security service corresponding to the service can be started only when the preset starting condition is met. The preset enabling conditions include that the cloud is available, that is, the cloud can normally operate, that is, the condition that physical machine faults or communication faults of the cloud are not caused by unreliability exists is avoided, so that safe services stored on the cloud can be ensured to have an environment capable of operating, for example, service A operating on the cloud is unavailable, but service B operating on the cloud is available, and in the condition, the cloud can be described as being available, that is, one of the operating conditions of the safe service A corresponding to the service A is met; if the service A runs on the cluster A, the security service A corresponding to the service A is also cold-standby on the cluster A, and the cluster A needs to be ensured to be available at the moment; the network in the cloud is normally connected, namely the network in the cloud is normally connected, and the service running on the cloud can carry out communication and data transmission, so that when the service A is unavailable and enables the security service A, the data of the service A can be synchronized to the security service A.
It can be understood that the security services corresponding to the services running on the cloud and the standby cloud can be configured in advance, or the security services can be configured only for the high-severity services, for example, the gateway services and the cloud access services, the high-severity services can be understood as services with higher importance such as controlling the running of vehicles, the security services can be configured according to the user demand from the behavior services, the security services can be understood as services with pre-configured security modes, and when a certain service is not available, the security services corresponding to the service are enabled.
It can be understood that if the service with high severity (as shown in table 1) running on the cloud is detected to be unavailable, information that the service with high severity is unavailable can be generated and recorded on the cloud, meanwhile, prompt information that the service with high severity is unavailable can be sent to a vehicle connected with the cloud, for example, the service with high severity is unavailable is service a, relevant information about the service a is generated on the cloud, the relevant information can be time that the service a is unavailable, a communication state at the moment and the like, prompt information that the service a is unavailable or the service a is abnormal can be displayed on an interface of the vehicle connected with the cloud, so as to prompt a user that the service a running on the cloud fails, then the cloud can directly enable the security service a corresponding to the service a, or ask the user whether to enable the security service a corresponding to the service a on the interface, if the user determines to enable the service a, the service a is switched to a security mode, meanwhile, the notification that the service a is unavailable is also can be sent to an operation staff, and the operation staff is convenient for maintaining the service a. If the service A can normally run, the operation of the security service A can be stopped, and the service A is continuously started.
It can be understood that in the embodiment of the disclosure, the security service 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 can exist in the cluster.
The service control method provided by the embodiment of the disclosure is applied to a cloud, a plurality of types of services are operated on the cloud, the plurality of types of services can refer to gateway type services and cloud access type services, the operation states of the services include service availability and service unavailability by acquiring the operation states of the services operated on the cloud, the service availability can be understood as that at least one service exists between the services operated on the cloud and the backup services of the services and can normally operate, the service unavailability refers to the service and the backup services of the services cannot be operated (cannot be used), and if the service unavailability is determined, the security service corresponding to the service is started, the security service is used for realizing the core function of the service, and the security service is not the backup service of the service. The service control method provided by the disclosure provides the corresponding security service, and can directly enable the security service when the service is unavailable, so that the service unavailable time is reduced, the core function of the service is ensured to be realized, namely, only the main necessary function of the service is maintained for the unavailable service, the serious problem caused by the service unavailable is avoided, and the user experience is improved.
On the basis of the above embodiment, optionally, if the service is not available, enabling the security service corresponding to the service, which specifically includes the following steps S410 to S420 as shown in fig. 4:
And S410, if the gateway authority service is not available, enabling the simple gateway authority service, wherein the simple gateway authority service is used for providing at least one secured account number.
It will be appreciated that many types of services may be running on the cloud, and when gateway rights services are not available, there are other types of services that are available, for example, device initialization services are available and vehicle cloud pathway class services are available. If the gateway authority service is unavailable, enabling a simple gateway authority service corresponding to the gateway authority service, wherein the simple gateway authority service comprises a simple gateway and a simple authority service, and the simple authority service can access the upstream resource only through verification of a secured account number.
S420, if the equipment initialization service is not available, enabling a simple verification service, wherein the simple verification service is used for verifying the user name and the password of the vehicle system.
It can be understood that if the device initialization service is not available, the simple verification service corresponding to the device initialization service is started, and the simple verification service only needs to verify the user name and the password of the vehicle system, that is, only verifies the user name and the password of the vehicle end system, and the other conditions related to the device initialization service do not need to be verified, for example, a certificate does not need to be verified.
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 comprises a simple interface service, and the simple interface service only comprises core functions of a normal interface, for example, the simple interface can comprise an identifier of operations such as inputting, determining and the like, and can also display a map and a vehicle position, a current running state of a vehicle and the like on the cloud.
Optionally, if the gateway authority service is unavailable, the simple gateway authority service is started, which specifically includes: and if the gateway authority service is not available, enabling the simple gateway authority service and the simple interface service.
It can be appreciated that if it is determined that the gateway rights service is not available, the simple gateway rights service and the simple interface service can be simultaneously enabled, and the simple interface service can provide the identifier required by the rights service.
According to the service control method provided by the embodiment of the disclosure, if the gateway authority service is unavailable, the simple gateway authority service is started, and at the moment, upstream resources and services can be accessed only by verifying the secured account number, so that other services related to the gateway service can be normally operated; if the device initialization service is unavailable, a simple verification service can be started, and when a vehicle is to be accessed to 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 that the vehicle can be ensured to be accessed to 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 above embodiment, optionally, if the service is not available, enabling the security service corresponding to the service, which specifically includes 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 not available, enabling a minimized vehicle cloud access, wherein the minimized vehicle cloud access is used for sending control instructions and receiving information.
It can be understood that if the vehicle management and control service and the vehicle shadow service are not available, the safety service corresponding to the vehicle management and control service and the vehicle shadow service is started to minimize the vehicle cloud path, and the vehicle cloud path is used for the cloud to receive the information sent by the vehicle and send a control instruction to the vehicle, that is, the information transmission between the cloud and the vehicle end is realized.
And S520, if the vehicle cloud message channel is unavailable, starting a low-version vehicle cloud message channel, wherein the low-version vehicle cloud message channel is used for publishing and subscribing data.
It can be understood that if the vehicle cloud message channel is unavailable, a low-version vehicle cloud message channel is started, and is used for publishing and subscribing data, namely the low-version vehicle cloud message channel can transmit the data subscribed by the vehicle and can transmit the data published by the cloud to the vehicle.
It can be appreciated that when the cloud message channel is unavailable, the low-profile cloud message channel may also be enabled to forward messages related to the vehicle to the cloud.
Optionally, if the service is not available, enabling the security service corresponding to the service specifically includes: and if the vehicle management and control service, the vehicle shadow service and the vehicle cloud message channel are not available, enabling the minimized vehicle cloud access.
It can be appreciated that 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-version vehicle cloud message channel is not started, and at this time, the minimized vehicle cloud channel can transmit release data, subscription data and control instructions.
It can be appreciated that if none of the vehicle management service, the vehicle shadow service, and the cloud message channel is available, only the minimized vehicle cloud path is enabled.
It can be appreciated that if none of the vehicle management service, the vehicle shadow service, the vehicle cloud message channel, and the cloud message channel is available, only the minimized vehicle cloud path is enabled.
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, the corresponding safety service minimization vehicle cloud access can be started, and the minimization 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 cloud published data 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 device according to an embodiment of the present disclosure. The service control device provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the service control method, and be applied to a cloud, where multiple types of services are running on the cloud, where the service control device 600 includes:
an acquiring unit 610, configured to acquire an operation state of a service, where the operation state of the service includes service availability and service unavailability;
And an enabling unit 620, configured to enable a security service corresponding to the service if the service is unavailable, 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 class services and cloud path class services; the gateway class services comprise gateway authority services and equipment initialization services; the security services corresponding to the gateway class services comprise authority services and verification services; the vehicle cloud access service comprises a vehicle management and control service, a vehicle shadow service and a vehicle cloud message channel; the security services corresponding to the vehicle cloud access class services comprise a minimized vehicle cloud access service and a low-profile vehicle cloud message channel.
Optionally, if the service is not available in the enabling unit 620, a security service corresponding to the service is enabled, which is specifically configured to:
If the gateway entitlement service is not available, enabling a simple gateway entitlement service for providing at least one secured account number;
If the device initialization service is not available, a simple authentication service is enabled for authenticating the user name 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 rights service is not available in the enabling unit 620, the simple gateway rights service is enabled, which is specifically configured to:
and if the gateway authority service is not available, enabling the simple gateway authority service and the simple interface service.
Optionally, if the service is not available in the enabling unit 620, a security service corresponding to the service is enabled, which is specifically configured to:
if the vehicle management and control service and the vehicle shadow service are not available, enabling 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 which is used for publishing and subscribing data.
Optionally, if the service is not available in the enabling unit 620, a security service corresponding to the service is enabled, which is specifically configured to:
and if the vehicle management and control service, the vehicle shadow service and the vehicle cloud message channel are not available, enabling the minimized vehicle cloud access.
Optionally, the enabling unit 620 is configured to enable a security service corresponding to the service, which is specifically configured to:
Judging whether the service meets a preset starting condition or not; if yes, enabling the security service corresponding to the service; the preset enabling conditions comprise cloud availability, cluster availability of running service in the cloud and normal connection of a network in the cloud.
The service control device of the embodiment shown in fig. 6 may be used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device provided in the embodiment of the present disclosure may execute the processing flow provided in the foregoing embodiment, as shown in fig. 7, where 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 embodiment of the present disclosure also provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the service control method described in the above embodiment.
Furthermore, the disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implements a service control method as described above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the 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 and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

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 the service unavailability refers to the service unavailability and the service backup service unavailability;
If the service is unavailable, enabling a security service corresponding to the service, wherein the security service is used for realizing a core function of the service;
The plurality of types of services comprise gateway type services and cloud access type services; the gateway class service comprises a gateway authority service and a device initialization service; the security services corresponding to the gateway class services comprise simple gateway authority services and simple verification services; the vehicle cloud access service comprises a vehicle management and control service, a vehicle shadow service and a vehicle cloud message channel; the security services corresponding to the vehicle cloud access class services comprise a minimized vehicle cloud access service and a low-profile vehicle cloud message channel.
2. The method of claim 1, wherein enabling the security service corresponding to the service if the service is not available comprises:
If the gateway entitlement service is not available, enabling the simple gateway entitlement service, the simple gateway entitlement service for providing at least one secured account number;
and if the equipment initialization service is not available, enabling the simple verification service, wherein the simple verification service is used for verifying the user name and the password of the vehicle system.
3. The method of claim 2, wherein the security services corresponding to the gateway class services further comprise simple interface services;
and if the gateway authority service is not available, enabling the simple gateway authority service, including:
and if the gateway authority service is not available, enabling the simple gateway authority service and the simple interface service.
4. The method of claim 1, 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 not available, enabling 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.
5. The method of claim 1, wherein enabling the security service corresponding to the service if the service is not available comprises:
and if the vehicle shadow service, the vehicle management service and the vehicle cloud message channel are not available, enabling the minimized vehicle cloud access.
6. The method of claim 1, wherein enabling the security service corresponding to the service comprises:
judging whether the service meets a preset starting condition or not; if yes, enabling the security service corresponding to the service; the preset enabling conditions comprise that the cloud is available, the cluster running the service in the cloud is available, and the network in the cloud is normally connected.
7. A service control apparatus, characterized by being applied to a cloud on which a plurality of types of services are run, the apparatus comprising:
An obtaining unit, configured to obtain an operation state of the service, where the operation state of the service includes availability of the service and unavailability of the service, where unavailability of the service refers to unavailability of both the service and a backup service of the service;
An enabling unit, configured to enable a security service corresponding to the service if the service is unavailable, where the security service is used to implement a core function of the service;
The plurality of types of services comprise gateway type services and cloud access type services; the gateway class service comprises a gateway authority service and a device initialization service; the security services corresponding to the gateway class services comprise simple gateway authority services and simple verification services; the vehicle cloud access service comprises a vehicle management and control service, a vehicle shadow service and a vehicle cloud message channel; the security services corresponding to the vehicle cloud access class services comprise a minimized vehicle cloud access service and a low-profile vehicle cloud message channel.
8. 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 according to any one of claims 1 to 6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the service control method according to any one of claims 1 to 6.
CN202111445543.0A 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium Active CN114138366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111445543.0A CN114138366B (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 CN114138366B (en) 2021-11-30 2021-11-30 Service control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114138366A CN114138366A (en) 2022-03-04
CN114138366B true CN114138366B (en) 2024-08-13

Family

ID=80386030

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114138366B (en)

Citations (2)

* 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
CN111245873A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Service degradation method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032493B2 (en) * 2011-03-31 2015-05-12 Intel Corporation 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
CN112398860A (en) * 2020-11-17 2021-02-23 珠海大横琴科技发展有限公司 Safety control method and device
CN113194005B (en) * 2021-07-01 2022-03-18 智道网联科技(北京)有限公司 Exit system and method for abnormal vehicle intelligent networking service

Patent Citations (2)

* 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
CN111245873A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Service degradation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114138366A (en) 2022-03-04

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)
US9201675B2 (en) DAAS manager and DAAS client for DAAS system
JP2003022258A (en) Server backup system
CN108200155A (en) The mirror image synchronization method in Docker mirror images warehouse and mirror image synchronization system
CN111212117A (en) Remote interaction method and device
US10505787B2 (en) Automatic recovery in remote management services
CN115022065B (en) License authentication method and system
JP2013218449A (en) Cloud computing system
CN114138366B (en) Service control method, device, equipment and storage medium
KR101694298B1 (en) Apparatus for electing a master in redundancy system
CN114143905A (en) Session establishment method, communication system, electronic device and storage medium
CN104995615A (en) Reservation and execution image writing of native computing devices
CN107943622B (en) Standby operation and maintenance method, device and system
CN114915545B (en) Application scheduling deployment management method based on DHCP network cluster
CN116886286A (en) Big data authentication service self-adaption method, device and equipment
US12058130B2 (en) Systems and methods for secure onboarding and communication for internet of things devices
CN115396430A (en) Cloud mobile phone management method and system
US11223578B2 (en) System and control method to direct transmission of event data to one of a plurality of reception queues
CN106332078B (en) dot1x user authentication system, method and device
EP2776934B1 (en) Management apparatus and control method of management apparatus
CN110635953A (en) Configuration information management method and device
WO2017216829A1 (en) Computer system and user authentication method for computer system
CN118796359B (en) ES containerized deployment method, device, computer equipment and storage medium
CN112333248B (en) Login failure verification method and related device

Legal Events

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