CN106973093B - A kind of service switch method and device - Google Patents

A kind of service switch method and device Download PDF

Info

Publication number
CN106973093B
CN106973093B CN201710179510.3A CN201710179510A CN106973093B CN 106973093 B CN106973093 B CN 106973093B CN 201710179510 A CN201710179510 A CN 201710179510A CN 106973093 B CN106973093 B CN 106973093B
Authority
CN
China
Prior art keywords
service
normal service
normal
unit
service request
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
CN201710179510.3A
Other languages
Chinese (zh)
Other versions
CN106973093A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710179510.3A priority Critical patent/CN106973093B/en
Publication of CN106973093A publication Critical patent/CN106973093A/en
Application granted granted Critical
Publication of CN106973093B publication Critical patent/CN106973093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Monitoring And Testing Of Exchanges (AREA)

Abstract

A kind of service switch method and device provided by the invention, when the normal service that business relies on is unavailable, i.e. when the number of calling normal service request failure reaches preset threshold, automatic trigger handover mechanism obtains active service address, enables active service;And after judging that normal service is unavailable, whether monitoring normal service be can be used, if it is detected that normal service is available, switchback service, i.e. acquisition normal service address, and initiate to call normal service request.By the automatic switchover of normal service and active service, the reliability of third party's service is improved, and then improves service stability.Also, whole process is not necessarily to manual intervention, better user experience.

Description

A kind of service switch method and device
Technical field
The present invention relates to IT (Information Technology, information technology) system regions, more specifically to A kind of service switch method and device.
Background technique
With the Rapid Popularization of information technology application, more and more industries all set up IT system.Telecommunications, finance, The high industry of the levels of informatization such as the energy, IT system have formed quite huge Scale System, the operation management of these industries The height dependence to IT system is formed.The IT system of enterprise-level is generally made of foreground terminal and background data center.Data " isomerous environment " that center IT infrastructure technology is many and diverse, standard is different proposes high technical requirements to system maintenance.IT Thus the industry third party service provider comes into being.IT industry third party's service refers to be provided by non-original factory quotient, for multi-brand The IT infrastructure service of product.
In actual use, big city relies on one or more third party's services to existing business, and mainly passes through HTTP Data interaction is completed in (HyperText Transfer Protocol, hypertext transfer protocol) request.But in request process In can often occur request failure the case where.The reason of request fails major embodiment is both ways.It on the one hand is since network is asked Topic (delay, obstruction, disconnection etc.) message is unreachable to be caused to request to fail;On the other hand be own services it is unavailable (code bug, The uncontrollable factors such as server delay machine) cause request to fail.Third party's service it is unreliable, directly affect the stabilization of entire business Property.
The third party's service of dependence is unavailable to be will lead to entire business and is affected.Due to the big portion of the third party's service of dependence Dividing is different team's maintenances, so that service alerts lag and then cause taking long time on service recovery.It is longer pair time-consuming Service impact is bigger, influences especially for online service bigger.
Summary of the invention
In view of this, the present invention proposes a kind of service switch method and device, it is intended to realize and improves the reliable of third party's service Property, and then improve the purpose of service stability.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of service switch method, comprising:
Normal service address is obtained, and initiates to call normal service request;
Statistics calls the number of normal service request failure;
If the number for calling normal service request failure reaches preset threshold, active service address is obtained, and It initiates to call active service request;
Whether monitoring normal service can be used, and obtain normal service address if so, executing, and initiate that normal service is called to ask Seek step.
Preferably, the statistics calls the number of normal service request failure, specifically:
Asynchronous transmission ActiveMQ message statistics call the number of normal service request failure.
Preferably, the asynchronous transmission ActiveMQ message statistics call the number of normal service request failure, specifically:
Asynchronous transmission ActiveMQ message is to the normal service;
Receive the feedback information comprising key assignments and first time;
Corresponding service profile information is obtained according to the key value match, the service profile information includes: service State, time threshold and time parameter;
Judge whether the service state is switching service state, if it is not, the first time is then subtracted the time Parameter obtains the first difference;
Judge whether first difference is greater than the time threshold, if so, calling normal service request to lose statistics The counter O reset of the number lost, and updating the time parameter is current time, if it is not, then the counter adds 1.
Preferably, the method, further includes:
After active service request is called in the initiation, the short message comprising switching information on services is sent to target terminal user Notice;And/or
It is monitoring that the normal service is available and is executing acquisition normal service address, and initiating to call normal service request After step, Xiang Suoshu target terminal user sends the short massage notice comprising switchback normal service information.
Preferably, whether the monitoring normal service can be used, specifically:
Monitor whether the normal service can be used by OPTIONS operation.
A kind of service switching device, comprising:
Normal service unit for obtaining normal service address, and initiates to call normal service request;
Fault statistics unit, for counting the number for calling normal service request failure;
Service switching unit obtains if the number for the calling normal service request failure reaches preset threshold Active service address is taken, and initiates to call active service request;
Service monitoring unit, for monitoring whether normal service can be used, if so, executing the normal service unit.
Preferably, the fault statistics unit, is specifically used for:
Asynchronous transmission ActiveMQ message statistics call the number of normal service request failure.
Preferably, the fault statistics unit, comprising:
Transmission sub-unit, for asynchronous transmission ActiveMQ message to the normal service;
Receiving subelement, for receiving the feedback information comprising key assignments and first time;
Coupling subelement, for obtaining corresponding service profile information according to the key value match, the service is matched Confidence breath includes: service state, time threshold and time parameter;
First judgment sub-unit, for judging whether the service state is switching service state, if it is not, then by described the One time subtracted the time parameter, obtained the first difference;
Second judgment sub-unit, for judging whether first difference is greater than the time threshold, if so, will statistics The counter O reset of the number of normal service request failure is called, and updating the time parameter is current time, if it is not, then institute It states counter and adds 1.
Preferably, described device, further includes:
First notification unit, for including to target terminal user transmission after active service request is called in the initiation Switch the short massage notice of information on services;And/or
First notification unit, for monitoring that the normal service is available and executing acquisition normal service address, concurrently It rises after calling normal service request step, it is logical that Xiang Suoshu target terminal user sends the short message comprising switchback normal service information Know.
Preferably, the service monitoring unit, is specifically used for:
Monitor whether the normal service can be used by OPTIONS operation, if so, executing the normal service unit.
Compared with prior art, technical solution of the present invention has the advantage that
A kind of service switch method and device that above-mentioned technical proposal provides, it is unavailable in the normal service that business relies on When, i.e. when the number of calling normal service request failure reaches preset threshold, automatic trigger handover mechanism, with obtaining active service Location enables active service;And after judging that normal service is unavailable, whether monitoring normal service be can be used, if it is detected that normally Service is available, then switchback service, i.e. acquisition normal service address, and initiates to call normal service request.By normal service and The automatic switchover of active service improves the reliability of third party's service, and then improves service stability.Also, whole process Without manual intervention, better user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of service switch method provided in an embodiment of the present invention;
Fig. 2 is that a kind of asynchronous transmission ActiveMQ message statistics provided in an embodiment of the present invention call normal service request to lose The flow chart of the method for the number lost;
Fig. 3 is a kind of schematic diagram for servicing switching device provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of fault statistics unit provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of service switch method, shown in Figure 1, this method comprises:
Step S11: obtaining normal service address, and initiates to call normal service request;
It calls getURL (key) interface to obtain the normal service address relied on, initiates to call normal service request.
Step S12: statistics calls the number of normal service request failure;
Pass through HTTP (hypertext transfer protocol, HyperText Transfer Protocol)) request call third party clothes When business, error reason can be captured when network is obstructed or service is unavailable in time by encountering, asynchronous using MQ (ActiveMQ) Message collection errors number is forwarded to call setErrorNum (key, timestamp) to connect that is, after calling normal service time-out Mouth asynchronous transmission MQ message statistics call the number of normal service request failure.The asynchronous errors number for collecting specified services, no Influence regular traffic.
Step S13: if the number for calling normal service request failure reaches preset threshold, active service is obtained Address, and initiate to call active service request.
When calling the normal service request frequency of failure to reach preset threshold, service is switched over.Switching service refer to by Currently used service is switched on the active service of the service.By taking the drawing stream service in net cast as an example.It is watched when calling When stream serv-fail number reaches certain threshold value, automatic trigger handover mechanism enables standby address to continue to support viewing stream clothes Business, when service recovery can automatic switchback, for whole process without manual intervention, business is unaware.
Step S14: whether monitoring normal service can be used, and obtain normal service address if so, executing, and initiate to call just Normal service request steps.
After the completion of switching service, start whether real-time detection normal service can be used.After detecting that normal service is available, Switchback service simultaneously stops monitoring, and switchback service and switching service are opposite.If some service provides normal service address A, with And its active service address B.When A stops servicing, B service, referred to as switching service are just enabled;When A service is available, enable A service stops B service, referred to as switchback service.
Service switch method provided in an embodiment of the present invention calls just when the normal service that business relies on is unavailable When the number of normal service request failure reaches preset threshold, automatic trigger handover mechanism obtains active service address, enables spare Service;And after judging that normal service is unavailable, whether monitoring normal service be can be used, if it is detected that normal service is available, Switchback service, i.e. acquisition normal service address, and initiate to call normal service request.By oneself of normal service and active service Dynamic switching improves the reliability of third party's service, and then improves service stability.Also, whole process is not necessarily to manual intervention, Better user experience.
The main application of OPTIONS requesting method includes obtaining the HTTP request method and principle inspection clothes that server is supported The performance of business device.Using this characteristic, operate whether monitoring (real-time detection) normal service can be used by OPTIONS.Specifically, Judge whether normal service can be used using Status 200, using OPTIONS to service origination requests, if in the data of return In HTTP status code be 200, it is determined that the service is available, if the HTTP status code in the data of return be it is non- 200, then it is assumed that the service is unavailable.
Switchback service process when switching service process and normal service when normal service is unavailable are available is all It is automatically performed, business is unaware.It, can also be to safeguard the third party service provider to unavailable service in time Short massage notice is sent to corresponding user terminal after service switching.Specifically, after initiating to call active service request, to target User terminal sends the short massage notice comprising switching information on services;And/or
It is monitoring that the normal service is available and is executing acquisition normal service address, and initiating to call normal service request After step, Xiang Suoshu target terminal user sends the short massage notice comprising switchback normal service information.
It is shown in Figure 2, provide a kind of asynchronous transmission ActiveMQ message statistics calling positive informal dress for the embodiment of the present invention The flow chart of the method for the number of business request failure, this method comprises:
Step S21: asynchronous transmission ActiveMQ message to the normal service;
After calling service time-out, setErrorNum (key, timestamp) interface asynchronous is called to send MQ message;
Step S22: the feedback information comprising key assignments and first time is received;
Key assignments is the parameter key in setErrorNum (key, timestamp), is at the first time setErrorNum Parameter timestamp in (key, timestamp).Timestamp refers to that the return message generates the timestamp at moment.
Step S23: corresponding service profile information, the service profile information packet are obtained according to the key value match It includes: service state, time threshold and time parameter;
According to the key assignments (key) received, matching obtains service configuration letter corresponding with the key assignments from database redis Breath.Service profile information (key_info) in database redis is stored in the form of key-value pair.Service profile information Key is key+ " _ info ", and corresponding service configuration is acquired from database redis by get (key+ " _ info ") in this way Information.Service profile information include masterUrl, backupUrl, period, maxErrorNum, initTimestamp and IsSwitch, wherein isSwitch is service state, period is time threshold, initTimestamp be time parameter, MaxErrorNum is preset threshold.
Step S24: judge whether the service state is switching service state, if it is not, then subtracting the first time The time parameter obtains the first difference;
If isSwitch=true, then it represents that the corresponding service of the key has switched, i.e., service state is switching service State;If isSwitch=false, then it represents that the corresponding service of the key does not switch, i.e., service state is not switch service State.
Step S25: judging whether first difference is greater than the time threshold, if so, statistics is called positive informal dress The counter O reset of the number of business request failure, and updating the time parameter is current time, if it is not, the then counter counts Numerical value adds 1.
To judge the first difference (timestamp-initTimestamp) whether be greater than time threshold (period). InitTimestamp refers to that moment recorded again after judging timestamp-initTimestamp > period Timestamp.For example, period=300, initTimestamp=0, and the timestamp=150 of a certain feedback message, Timestamp-initTimestamp=150 < 300, then it is assumed that this feedback message is less than time threshold, and statistics is called The counter of the number of normal service request failure adds 1.Since Redis is directed to the write operation mutual exclusion of same key, in turn It ensure that the accuracy of counter.Redis is referred to for the write operation mutual exclusion of same key for the same object (i.e. key) Modification (writing) at the same time point can only there is one to be operated, do not support that simultaneously, by multiple carry out write operations, this is Mutual exclusion.Exactly because this characteristic ensure that when carrying out accumulation operations (counter) to the same numerical value, must be the latter Plus 1 operation be based on it is previous plus 1 after numerical value carry out.As both carried out adding 1 operation (current a=0), benefit to a It is not in but first base in a=0 all on the basis of a=0 plus 1 (leading to final a=1) with this mutual exclusion characteristic On plinth plus 1 becomes a=1, another adds 1 to become a=2 again on the basis of a=1, and then has ensured the accuracy of counter.
If statistics calls the count value of the counter of the number of normal service request failure to reach preset threshold (maxErrorNum), then switch service, set isSwitch=true, and after switchback service, set isSwitch= False, counter O reset and update initTimestamp are current time.
Distributed lock can be realized by the SETNX order of Redis, to guarantee switching in the case of high concurrent not for service It is disturbed.Specifically, operational order is SETNX key value.The value of key is set as value, is not present and if only if key. If given key has existed, SETNX does not do any movement.I.e. if SETNX returns to 1, illustrates that the process is locked, obtain Obtaining lock ensure that service is interference-free.If SETNX returns to 0, illustrate that other processes have been obtained for locking, process not can enter Subsequent logic not can enter subsequent logic, ensure that the process of only previously obtained lock enters subsequent logic, so that service is not It is disturbed.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention reality Undisclosed details in example is applied, embodiment of the present invention method is please referred to.
Shown in Figure 3, for a kind of schematic diagram for servicing switching device provided in an embodiment of the present invention, which includes:
Normal service unit 11 for obtaining normal service address, and initiates to call normal service request;
Fault statistics unit 12, for counting the number for calling normal service request failure;
Service switching unit 13, if the number for the calling normal service request failure reaches preset threshold, Active service address is obtained, and initiates to call active service request;
Service monitoring unit 14, for monitoring whether normal service can be used, if so, executing the normal service unit.
Service switching device provided in an embodiment of the present invention is called just when the normal service that business relies on is unavailable When the number of normal service request failure reaches preset threshold, automatic trigger handover mechanism obtains active service address, enables spare Service;And after judging that normal service is unavailable, whether monitoring normal service be can be used, if it is detected that normal service is available, Switchback service, i.e. acquisition normal service address, and initiate to call normal service request.By oneself of normal service and active service Dynamic switching improves the reliability of third party's service, and then improves service stability.Also, whole process is not necessarily to manual intervention, Better user experience.
Preferably, the fault statistics unit, is specifically used for: asynchronous transmission ActiveMQ message statistics call normal service Request the number of failure.
Preferably, the service monitoring unit, is specifically used for: whether monitoring the normal service by OPTIONS operation It can use, if so, executing the normal service unit.
It is shown in Figure 4, it is a kind of schematic diagram of fault statistics unit provided in an embodiment of the present invention, which includes:
Transmission sub-unit 21, for asynchronous transmission ActiveMQ message to the normal service;
Receiving subelement 22, for receiving the feedback information comprising key assignments and first time;
Coupling subelement 23, for obtaining corresponding service profile information, the service according to the key value match Configuration information includes: service state, time threshold and time parameter;
First judgment sub-unit 24, for judging whether the service state is switching service state, if it is not, then will be described The time parameter is subtracted at the first time, obtains the first difference;
Second judgment sub-unit 25, for judging whether first difference is greater than the time threshold, if so, will system Meter calls the counter O reset of the number of normal service request failure, and updating the time parameter is current time, if it is not, then The counter adds 1.
Preferably, service switching device can also include: the first notification unit and/or the second notification unit,
First notification unit, for including to target terminal user transmission after active service request is called in the initiation Switch the short massage notice of information on services;
Second notification unit, for monitoring that the normal service is available and executing acquisition normal service address, concurrently It rises after calling normal service request step, it is logical that Xiang Suoshu target terminal user sends the short message comprising switchback normal service information Know.
For device embodiment, since it essentially corresponds to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality Relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
To the above description of disclosed embodiment of this invention, it can be realized professional and technical personnel in the field or use this Invention.Various modifications to these embodiments will be readily apparent to those skilled in the art, institute herein The General Principle of definition can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, The present invention will not be limited to the embodiments shown herein, and is to fit to special with principles disclosed herein and novelty The consistent widest scope of point.

Claims (6)

1. a kind of service switch method characterized by comprising
Normal service address is obtained, and initiates to call normal service request;
Statistics calls the number of normal service request failure;
If the number for calling normal service request failure reaches preset threshold, active service address is obtained, and initiate Call active service request;
Whether monitoring normal service can be used, and obtain normal service address if so, executing, and initiate to call normal service request step Suddenly;
The statistics calls the number of normal service request failure, specifically:
Asynchronous transmission ActiveMQ message is to the normal service;
Receive the feedback information comprising key assignments and first time;
Obtain corresponding service profile information according to the key value match, the service profile information include: service state, Time threshold and time parameter;
Judge whether the service state is switching service state, if it is not, the first time is then subtracted into the time parameter, Obtain the first difference;
Judge whether first difference is greater than the time threshold, if so, statistics is called normal service request failure The counter O reset of number, and updating the time parameter is current time, if it is not, then the counter adds 1.
2. the method according to claim 1, wherein the method, further includes:
After active service request is called in the initiation, it is logical that the short message comprising switching information on services is sent to target terminal user Know;And/or
It is monitoring that the normal service is available and is executing acquisition normal service address, and initiating to call normal service request step Afterwards, the short massage notice comprising switchback normal service information is sent to target terminal user.
3. the method according to claim 1, wherein whether the monitoring normal service can be used, specifically:
Monitor whether the normal service can be used by OPTIONS operation.
4. a kind of service switching device characterized by comprising
Normal service unit for obtaining normal service address, and initiates to call normal service request;
Fault statistics unit, for counting the number for calling normal service request failure;
Service switching unit obtains standby if the number for the calling normal service request failure reaches preset threshold With address of service, and initiate to call active service request;
Service monitoring unit, for monitoring whether normal service can be used, if so, executing the normal service unit;
The fault statistics unit, comprising:
Transmission sub-unit, for asynchronous transmission ActiveMQ message to the normal service;
Receiving subelement, for receiving the feedback information comprising key assignments and first time;
Coupling subelement, for obtaining corresponding service profile information, the service configuration letter according to the key value match Breath includes: service state, time threshold and time parameter;
First judgment sub-unit, for judge the service state whether be switching service state, if it is not, then by described first when Between subtract the time parameter, obtain the first difference;
Second judgment sub-unit, for judging whether first difference is greater than the time threshold, if so, statistics is called The counter O reset of the number of normal service request failure, and updating the time parameter is current time, if it is not, the then meter Counter count value adds 1.
5. device according to claim 4, which is characterized in that described device, further includes:
First notification unit, for sending to target terminal user comprising switching after active service request is called in the initiation The short massage notice of information on services;And/or
First notification unit for monitoring that the normal service is available and executing acquisition normal service address, and initiates to adjust After normal service request step, Xiang Suoshu target terminal user sends the short massage notice comprising switchback normal service information.
6. device according to claim 4, which is characterized in that the service monitoring unit is specifically used for:
Monitor whether the normal service can be used by OPTIONS operation, if so, executing the normal service unit.
CN201710179510.3A 2017-03-23 2017-03-23 A kind of service switch method and device Active CN106973093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710179510.3A CN106973093B (en) 2017-03-23 2017-03-23 A kind of service switch method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710179510.3A CN106973093B (en) 2017-03-23 2017-03-23 A kind of service switch method and device

Publications (2)

Publication Number Publication Date
CN106973093A CN106973093A (en) 2017-07-21
CN106973093B true CN106973093B (en) 2019-11-19

Family

ID=59329864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710179510.3A Active CN106973093B (en) 2017-03-23 2017-03-23 A kind of service switch method and device

Country Status (1)

Country Link
CN (1) CN106973093B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428864B (en) * 2017-08-30 2021-11-09 武汉斗鱼网络科技有限公司 Method and device for improving quality of nginx-rtmp pull flow service
CN108400885A (en) * 2018-01-17 2018-08-14 北京奇艺世纪科技有限公司 A kind of service availability detection method, device and electronic equipment
CN110278227A (en) * 2018-03-15 2019-09-24 阿里巴巴集团控股有限公司 Service processing method, device and electronic equipment
JP6486568B1 (en) * 2018-04-27 2019-03-20 三菱電機ビルテクノサービス株式会社 Wireless remote monitoring system
CN109104336B (en) * 2018-09-27 2022-08-05 平安普惠企业管理有限公司 Service request processing method and device, computer equipment and storage medium
CN111039115A (en) * 2018-10-15 2020-04-21 奥的斯电梯公司 Method and system for monitoring elevator communication module fault and elevator
CN109450691B (en) * 2018-11-20 2022-01-11 深圳前海微众银行股份有限公司 Service gateway monitoring method, device and computer readable storage medium
CN110620703A (en) * 2019-09-29 2019-12-27 北京首汽智行科技有限公司 Http-based service node state determination method
CN111181777B (en) * 2019-12-17 2022-09-20 深圳前海环融联易信息科技服务有限公司 Service degradation method, device, computer equipment and storage medium
CN112751782B (en) * 2020-12-29 2022-09-30 微医云(杭州)控股有限公司 Flow switching method, device, equipment and medium based on multi-activity data center
CN112835702A (en) * 2021-02-25 2021-05-25 平安消费金融有限公司 Service switching method and device, computer equipment and storage medium
CN114727278B (en) * 2022-04-19 2023-07-28 广州爱浦路网络技术有限公司 Address changing method and device for single NRF network element

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
CN102006314A (en) * 2009-09-02 2011-04-06 中国银联股份有限公司 Multiserver adaptive task scheduling method and device thereof
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302090B (en) * 2015-05-25 2019-10-22 阿里巴巴集团控股有限公司 A kind of message treatment method, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
CN102006314A (en) * 2009-09-02 2011-04-06 中国银联股份有限公司 Multiserver adaptive task scheduling method and device thereof
CN103327135A (en) * 2013-06-27 2013-09-25 贝壳网际(北京)安全技术有限公司 Domain name resolution method, device and client

Also Published As

Publication number Publication date
CN106973093A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106973093B (en) A kind of service switch method and device
RU2641706C1 (en) Method of processing failure of network service, control system of services and system control unit
US9774697B2 (en) Method, apparatus, and system for pushing notification
EP3060018B1 (en) Registration method and system for common service entity
US10476833B2 (en) Warning method and apparatus, and processing server
US9172593B2 (en) System and method for identifying problems on a network
US9191269B2 (en) Method and system for providing latency detection based on automated latency measurements of communication network paths
US10419950B2 (en) Monitoring processing method and device
KR102148346B1 (en) Apparatus for diagnosing service error and client device
EP2874349B1 (en) Communication path processing method and apparatus
CN105744494A (en) Short message sending method and device
KR102333866B1 (en) Method and Apparatus for Checking Problem in Mobile Communication Network
CN103634166A (en) Equipment survival detection method and equipment survival detection device
US8775617B2 (en) Method for optimizing network performance after a temporary loss of connection
KR100908131B1 (en) Fault detection device and method using log filtering and fault detection system using the device
KR20200007912A (en) Methods, devices, and systems for monitoring data traffic
JP6544835B2 (en) Message processing method and apparatus
US12074916B2 (en) Methods, communication devices and system relating to performing lawful interception
US12009967B2 (en) Communications methods and apparatus for minimizing and/or preventing message processing faults
US20120072545A1 (en) Remote maintenance and monitoring service framework for heterogeneous device and system
US9608719B2 (en) Optical network connection termination on client facility failure
KR102577019B1 (en) Disability diagnosis solution system using information and communication technology
TWI831540B (en) How to block signaling storm
JP5155986B2 (en) Monitoring system, monitoring method, monitoring program
CN102075405B (en) Service signaling transmission method and system based on subscription registration

Legal Events

Date Code Title Description
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