CN109547261A - Service line switching method, device, electronic equipment and storage medium - Google Patents

Service line switching method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109547261A
CN109547261A CN201811518874.0A CN201811518874A CN109547261A CN 109547261 A CN109547261 A CN 109547261A CN 201811518874 A CN201811518874 A CN 201811518874A CN 109547261 A CN109547261 A CN 109547261A
Authority
CN
China
Prior art keywords
service line
server
service
link
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.)
Withdrawn
Application number
CN201811518874.0A
Other languages
Chinese (zh)
Inventor
徐旭明
黄璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811518874.0A priority Critical patent/CN109547261A/en
Publication of CN109547261A publication Critical patent/CN109547261A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5061Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the interaction between service providers and their network customers, e.g. customer relationship management
    • H04L41/5064Customer relationship management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment provides a kind of service line switching method, device, electronic equipment and storage mediums, are related to field of computer technology.This method comprises: receiving the request for building link for establishing communication link with the server of the first service line that client is sent;The link establishment situation of the request for building link is recorded, determines whether the server of first service line breaks down based on record result;When determining to break down, the server of the second service line is determined according to the configuration file of first service line;Establish the communication link between the client and the server of second service line.The technical solution of the embodiment of the present invention can be automatically switched on normal service line from the service line of failure, so as to simplify service line switching flow, not need to interrupt system service.

Description

Service line switching method, device, electronic equipment and storage medium
Technical field
The present invention relates to field of computer technology, in particular to a kind of service line switching method, service line switching dress It sets, electronic equipment and computer readable storage medium.
Background technique
With the development of internet technology, the service line of operation system also becomes increasingly complex, what operation system broke down Situation is also more and more, needs quickly to be restored to focus of attention when occurring abnormal.
By taking CRM (Customer relationship management, customer relation management) operation system as an example, attend a banquet It is logged in by CRM operation system, finds the server fail of service line logged in, need that normal clothes will be switched to Business device.In the prior art, in the server fail service switchover line of service line, need to be attended a banquet be operated manually into Row switching and rollback version, process is cumbersome, and the system service of a period of time is caused to interrupt.
It should be noted that information is only used for reinforcing the reason to background of the present invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of service line switching method, service line switching device, electronic equipment And computer readable storage medium, and then overcome the limitation and defect due to the relevant technologies at least to a certain extent and cause One or more problem.
According to a first aspect of the embodiments of the present invention, a kind of service line switching method is provided, comprising: receive client hair That send establishes the request for building link of communication link with the server of the first service line;The link of the request for building link is built Vertical situation is recorded, and determines whether the server of first service line breaks down based on record result;Determining to occur When failure, the server of the second service line is determined according to the configuration file of first service line;Establish the client and institute State the communication link between the server of the second service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, according to the configuration of first service line text Part determines the server of the second service line, comprising: the identification information based on first service line obtains first service line Configuration file;Configuration file based on first service line obtains the server info of multiple service lines;Based on the clothes Business device information determines the renewal time information of the server of the multiple service line;The server of last updated service line is true It is set to the server of the second service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, according to the configuration of first service line text Part determines the server of the second service line, comprising: the identification information based on first service line obtains first service line Configuration file;Configuration file based on first service line obtains the precedence information of multiple service lines;Based on described excellent First grade information determines the server of the second service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, first industry is determined based on record result Whether the server of business line breaks down, comprising: the frequency of failure of the request for building link is determined based on record result;Judgement Whether the frequency of failure of the request for building link reaches predetermined quantity threshold value;When determining to reach the predetermined quantity threshold value, Determine the server fail of first service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, first industry is determined based on record result Whether the server of business line breaks down, comprising: determines the server of first service line to the chain based on record result The response time of request is established on road;Judge whether the response time of the request for building link is greater than scheduled time threshold value;Sentencing When being greater than the scheduled time threshold value surely, the server fail of first service line is determined.
In some exemplary embodiments of the invention, aforementioned schemes are based on, first industry is determined based on record result Whether the server of business line breaks down, comprising: determines that the link establishment of predetermined time server fails based on record result The ratio of number and link establishment number of success;When the ratio is greater than predetermined threshold, the clothes of first service line are determined Business device breaks down.
In some exemplary embodiments of the invention, it is based on aforementioned schemes, the service line switching method further include: When the server fail of first service line, the server is shielded.
According to a second aspect of the embodiments of the present invention, a kind of service line switching device is provided, comprising: receiving unit is used for Receive the request for building link that communication link is established with the server of the first service line that client is sent;Failure determination unit, It is recorded for the link establishment situation to the request for building link, first service line is determined based on record result Whether server breaks down;Service line determination unit, for determine break down when, according to matching for first service line Set the server that file determines the second service line;Link establishment unit, for establishing the client and second service line Server between communication link.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: processor;And memory, institute It states and is stored with computer-readable instruction on memory, realize when the computer-readable instruction is executed by the processor as above-mentioned Service line switching method described in any one.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program realizes the service line switching method as described in above-mentioned any one when the computer program is executed by processor.
In the technical solution provided by some embodiments of the present invention, on the one hand, the link based on request for building link The record result for establishing situation determines whether the server of the first service line breaks down, and can automatically and accurately determine the first industry Whether the server of business line breaks down;On the other hand, is determined according to the configuration file of the first service line when sending failure The server of two service lines establishes the communication link between client and the server of the second service line, can be automatically from event The service line of barrier is switched on normal service line, so as to simplify service line switching flow, and does not need interruption system Service.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the flow diagram of service line switching method according to some embodiments of the present invention;
Fig. 2 shows the flow diagrams for the server for determining the second service line according to some embodiments of the present invention;
Fig. 3 shows the stream for determining whether the server of the first service line breaks down according to some embodiments of the present invention Journey schematic diagram;
Fig. 4 shows the schematic block diagram of service line switching device according to some embodiments of the present invention;
Fig. 5 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Fig. 1 shows the flow diagram of service line switching method according to some embodiments of the present invention, the service line Switching method can be applied to server.
Shown in referring to Fig.1, in step s 110, communicating with the foundation of the server of the first service line for client transmission is received The request for building link of link.
In the exemplary embodiment, client can be browser or application program, and the first service line is operation system Service environment.By taking stock exchange transaction platform as an example, the operation system of stock exchange transaction platform may include: the system of scalping, reconciliation system, The operation systems such as system for settling account, each operation system may include the service environment of a plurality of service environment such as service line A, B, C. When the database that the server end of service line A is disposed is MySQL database, the server of service line A can be with MySQL database Master library.
In the exemplary embodiment, unified crm system is built in server end, disposes the general service function of operation system, Using the unified crm system as the unified login entrance of each operation system, the entrance of operation system is avoided to be directly exposed to use Family.When user logs in crm system by client, client unifies the service of crm system transmission and the first service line to this Device establishes the request for building link of communication link, the request for building link that received server-side to client is sent.
In the step s 120, the link establishment situation of the request for building link is recorded, it is true based on record result Whether the server of fixed first service line breaks down.
In the exemplary embodiment, communication link is established with the server of the first service line to what is sent in received server-side Request for building link when, each link establishment result is recorded, the service of the first service line is determined based on record result Whether device breaks down.For example, determining the first service line to the response time of the request for building link based on record result; Judge whether the response time of the request for building link is greater than scheduled time threshold value;Determining to be greater than the scheduled time threshold value When, determine the server fail of the first service line.The predetermined threshold can be according to the process performance and data of server at Reason amount is set.
In step s 130, when determining to break down, the second industry is determined according to the configuration file of first service line The server of business line.
In the exemplary embodiment, when determining the server fail of the first service line, according to first service line Configuration file determine second service line server information.It may include the service of multiple service lines in configuration file The configuration information of device.By taking the first service line is service line A as an example, multiple service lines are obtained according to the configuration file of service line A The information of server determines the server of last updated service line based on the data renewal time of the server of each service line, Using the server of last updated service line as the server of the second service line.
In step S140, the communication link between the client and the server of second service line is established.
In the exemplary embodiment, after the server for determining the second service line, the server of the first service line is switched Communication link for the server of the second service line, between the server of the second service line after establishing client and switching.Example Such as, there is exception, such as the number of users on business A in the environment of the i.e. service line A of the server fail for determining service line A It is excessive, the second service line i.e. corresponding address of service line B, client is established by the way that the corresponding address service line A to be revised as Communication link between the server of the second service line.Business processing can be made to be promptly restored to normal condition.
In addition, in the exemplary embodiment, in the server fail of the first service line, shielding the server, keeping away Exempt from the server for selecting failure again.
According to the service line switching method in the example embodiment of Fig. 1, on the one hand, the link based on request for building link is built The record result of vertical situation determines whether the server of the first service line breaks down, and can automatically and accurately determine the first business Whether the server of line breaks down;On the other hand, second is determined according to the configuration file of the first service line when sending failure The server of service line establishes the communication link between client and the server of the second service line, can be automatically from failure Service line be switched on normal service line, so as to simplify service line switching flow, and do not need interruption system clothes Business.
In the exemplary embodiment, using the affiliated service line of user as the first service line, matching for the first service line is configured in advance Set file.The address of a plurality of service line of crm system backstage configuration service system, such as service line A, B, C, every service line has correspondence Service environment and server.After user logs in crm system, the service line of user is obtained, then obtain corresponding with the service line Operation system address, in client such as browser show operation system the page, from face realize user to operation system Normal access.
Further, in the exemplary embodiment, the link of the server of the first service line in the predetermined time can also be determined The ratio for establishing the frequency of failure and link establishment number of success determines that the server occurs when the ratio is greater than predetermined threshold Failure.The predetermined threshold can be set according to the process performance and data processing amount of server.
In the exemplary embodiment, operation system is configured with a plurality of service line, and different service line permissions can be supported to jump To different application environments.Therefore different application versions is disposed on the service environment of each service line, user is verified by switching Service line, can be realized in the production time while carrying out the verifying of different editions, improve verification efficiency and accuracy.
In addition, in the exemplary embodiment, refreshing identification configuration is added in crm system, modified logo when service switchover line Numerical value, front end page, which gets backstage ident value and updates just prompt user immediately, to be saved current operation, refreshes current page or again Xindeng recording system, to achieve the purpose that jump to corresponding operation system new environment.
Fig. 2 shows the flow diagrams for the server for determining the second service line according to some embodiments of the present invention.
Referring to shown in Fig. 2, in step S210, the identification information based on first service line obtains first business The configuration file of line.
In the exemplary embodiment, the configuration file of each service line of operation system has been configured in advance, it can in configuration file With include multiple service lines server configuration information.The service line is obtained from database according to the identification information of service line Configuration file.For example, obtaining the configuration of service line A according to the identification information of service line A when the first service line is service line A File.
In step S220, the configuration file based on first service line obtains the precedence information of multiple service lines.
In the exemplary embodiment, it is built according to the response time of the server of each service line of operation system and/or link The priority of vertical frequency of failure setting different business line, the environment conduct that the link establishment frequency of failure is minimum, the response time is most fast Highest priority.In addition, being 0 to the frequency of failure, service line of the response time in predetermined time threshold values sets equal priority. By in the configuration file of the priority information configuration of setting to each service line, so as to be obtained according to the configuration file of service line Take the precedence information of each service line.
In step S230, the server of the second service line is determined based on the precedence information.
In the exemplary embodiment, the highest service line of priority in multiple service lines is determined as the second service line.Therefore, When first service line breaks down, automatically using the service line of highest priority as main business line, service line is switched to immediately Main business line, it is ensured that when service line occurs abnormal, system can fast quick-recovery it is normal.
In addition, in the exemplary embodiment, establishing exception handling to the minimum environment of priority, journal analyzer is automatic Log in abnormal time section is analyzed, and retains thread, heap log, automatic outer call alarm notification application system O&amp personnel carry out different Normal analysis processing.
Fig. 3 shows what whether the server determined under the first service line according to some embodiments of the present invention broke down Flow diagram.
Referring to shown in Fig. 3, in step s310, the frequency of failure of the request for building link is determined based on record result.
In the exemplary embodiment, when being counted to the link establishment frequency of failure, it can be determined that primary server builds link Whether the request response time of vertical request is greater than scheduled time threshold value such as 3S, when determining greater than the scheduled time threshold value, really Fixed request for building link failure, adds 1 for the link establishment frequency of failure.
In step s 320, judge whether the frequency of failure of the request for building link reaches predetermined quantity threshold value.
In the exemplary embodiment, request for building link can be set according to the process performance and data processing amount of server The predetermined quantity threshold value of the frequency of failure.For example, may be set in the link establishment frequency of failure in predetermined time such as 10S reaches 10 Secondary is predetermined quantity threshold value.
In step S330, when determining to reach the predetermined quantity threshold value, the server of first service line is determined It breaks down.
In the exemplary embodiment, the link establishment frequency of failure reaches predetermined threshold such as 10 within predetermined time such as 10S When secondary, the server fail of service line is determined, issue fault pre-alarming in server end.
In addition, in an embodiment of the present invention, additionally providing a kind of service line switching device.Referring to shown in Fig. 4, the business Line switching device 400 may include: that receiving unit 410, failure determination unit 420, service line determination unit 430 and link are built Vertical unit 440.Wherein, what receiving unit 410 was used to receive client transmission establishes communication chain with the server of the first service line The request for building link on road;Failure determination unit 420 is used to record the link establishment situation of the request for building link, Determine whether the server of first service line breaks down based on record result;Service line determination unit 430 is for sentencing When breaking down surely, the server of the second service line is determined according to the configuration file of first service line;Link establishment unit 440 for establishing the communication link between the client and the server of second service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, service line determination unit 430 includes: first Acquiring unit obtains the configuration file of first service line for the identification information based on first service line;Server Information acquisition unit obtains the server info of multiple service lines for the configuration file based on first service line;It updates Time determination unit, the renewal time information of the server for determining the multiple service line based on the server info; First determination unit, for the server of last updated service line to be determined as to the server of the second service line.
In some exemplary embodiments of the invention, aforementioned schemes are based on, service line determination unit 430 includes: second Acquiring unit obtains the configuration file of first service line for the identification information based on first service line;Priority Information acquisition unit obtains the precedence information of multiple service lines for the configuration file based on first service line;Second Determination unit, for determining the server of the second service line based on the precedence information.
In some exemplary embodiments of the invention, aforementioned schemes are based on, failure determination unit 420 includes: unsuccessfully secondary Number determination unit, for determining the frequency of failure of the request for building link based on record result;First judging unit, for sentencing Whether the frequency of failure for the request for building link of breaking reaches predetermined quantity threshold value;Fisrt fault determination unit, for determining When reaching the predetermined quantity threshold value, the server fail of first service line is determined.
In some exemplary embodiments of the invention, aforementioned schemes are based on, when failure determination unit 420 includes: response Between determination unit, for based on record result determine response of the server of first service line to the request for building link Time;Second judgment unit, for judging whether the response time of the request for building link is greater than scheduled time threshold value;Second Failure determination unit, for when determining to be greater than the scheduled time threshold value, determining that the server of first service line occurs Failure.
In some exemplary embodiments of the invention, aforementioned schemes are based on, failure determination unit 420 includes: that ratio is true Order member, for determining the link establishment frequency of failure and link establishment success time of predetermined time server based on record result Several ratios;Third failure determination unit, for determining the clothes of first service line when the ratio is greater than predetermined threshold Business device breaks down.
In some exemplary embodiments of the invention, it is based on aforementioned schemes, the service line switching device further include: screen Unit is covered, for shielding the server in the server fail of first service line.
Since each functional module of the service line switching device 400 of example embodiments of the present invention is cut with above-mentioned service line The step of changing the example embodiment of method is corresponding, therefore details are not described herein.
In an exemplary embodiment of the present invention, a kind of electronic equipment that can be realized the above method is additionally provided.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 500 of electronic equipment shown in Fig. 5 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, it is also stored with various programs and data needed for system operatio.CPU 501, ROM 502 and RAM 503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus 504。
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media 511 are mounted.When the computer program is executed by central processing unit (CPU) 501, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes such as above-mentioned service line switching method as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 1: step S110, receive that client sends with the The server of one service line establishes the request for building link of communication link;Step S120, to the link of the request for building link It establishes situation to be recorded, determines whether the server of first service line breaks down based on record result;Step S130, When determining to break down, the server of the second service line is determined according to the configuration file of first service line;Step S140, Establish the communication link between the client and the server of second service line.
It should be noted that although being referred to several modules for acting the device executed in the above detailed description Or unit, but this division is not enforceable.In fact, embodiment according to the present invention, above-described two Or more the feature and function of module or unit can be embodied in a module or unit.Conversely, above-described One module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of service line switching method characterized by comprising
Receive the request for building link that communication link is established with the server of the first service line that client is sent;
The link establishment situation of the request for building link is recorded, first service line is determined based on record result Whether server breaks down;
When determining to break down, the server of the second service line is determined according to the configuration file of first service line;
Establish the communication link between the client and the server of second service line.
2. service line switching method according to claim 1, which is characterized in that according to the configuration of first service line text Part determines the server of the second service line, comprising:
Identification information based on first service line obtains the configuration file of first service line;
Configuration file based on first service line obtains the server info of multiple service lines;
The renewal time information of the server of the multiple service line is determined based on the server info;
The server of last updated service line is determined as to the server of the second service line.
3. service line switching method according to claim 1, which is characterized in that according to the configuration of first service line text Part determines the server of the second service line, comprising:
Identification information based on first service line obtains the configuration file of first service line;
Configuration file based on first service line obtains the precedence information of multiple service lines;
The server of the second service line is determined based on the precedence information.
4. service line switching method according to claim 1, which is characterized in that determine first business based on record result Whether the server of line breaks down, comprising:
The frequency of failure of the request for building link is determined based on record result;
Judge whether the frequency of failure of the request for building link reaches predetermined quantity threshold value;
When determining to reach the predetermined quantity threshold value, the server fail of first service line is determined.
5. service line switching method according to claim 1, which is characterized in that determine first industry based on record result Whether the server of business line breaks down, comprising:
Response time of the server to the request for building link of first service line is determined based on record result;
Judge whether the response time of the request for building link is greater than scheduled time threshold value;
When determining to be greater than the scheduled time threshold value, the server fail of first service line is determined.
6. service line switching method according to claim 1, which is characterized in that determine first industry based on record result Whether the server of business line breaks down, comprising:
The link establishment frequency of failure of predetermined time server and the ratio of link establishment number of success are determined based on record result Rate;
When the ratio is greater than predetermined threshold, the server fail of first service line is determined.
7. service line switching method according to any one of claim 1 to 6, which is characterized in that the service line switching Method further include:
In the server fail of first service line, the server is shielded.
8. a kind of service line switching device characterized by comprising
Receiving unit, the link establishment for establishing communication link with the server of the first service line for receiving client transmission are asked It asks;
Failure determination unit is recorded for the link establishment situation to the request for building link, true based on record result Whether the server of fixed first service line breaks down;
Service line determination unit, for determining second according to the configuration file of first service line when determining to break down The server of service line;
Link establishment unit, the communication link for establishing between the client and the server of second service line.
9. a kind of electronic equipment characterized by comprising
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor The service line switching method as described in any one of claims 1 to 7 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor Service line switching method of the Shi Shixian as described in any one of claims 1 to 7.
CN201811518874.0A 2018-12-12 2018-12-12 Service line switching method, device, electronic equipment and storage medium Withdrawn CN109547261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811518874.0A CN109547261A (en) 2018-12-12 2018-12-12 Service line switching method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811518874.0A CN109547261A (en) 2018-12-12 2018-12-12 Service line switching method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109547261A true CN109547261A (en) 2019-03-29

Family

ID=65854894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811518874.0A Withdrawn CN109547261A (en) 2018-12-12 2018-12-12 Service line switching method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109547261A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300153A (en) * 2019-05-27 2019-10-01 北京百度网讯科技有限公司 Method, apparatus, proxy server and the storage medium established the link with MySQL
CN111526185A (en) * 2020-04-10 2020-08-11 广东小天才科技有限公司 Data downloading method, device, system and storage medium
CN111552572A (en) * 2020-04-30 2020-08-18 北京大米科技有限公司 Task processing method, readable storage medium and electronic device
CN112202616A (en) * 2020-09-30 2021-01-08 北京大米科技有限公司 Fault processing method, readable storage medium and electronic device
CN112860431A (en) * 2021-01-20 2021-05-28 重庆六花网络科技有限公司 Connection method, system, equipment and storage medium of micro service node

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300153A (en) * 2019-05-27 2019-10-01 北京百度网讯科技有限公司 Method, apparatus, proxy server and the storage medium established the link with MySQL
CN110300153B (en) * 2019-05-27 2021-11-30 北京百度网讯科技有限公司 Method, device, proxy server and storage medium for establishing link with MySQL
CN111526185A (en) * 2020-04-10 2020-08-11 广东小天才科技有限公司 Data downloading method, device, system and storage medium
CN111526185B (en) * 2020-04-10 2022-11-25 广东小天才科技有限公司 Data downloading method, device, system and storage medium
CN111552572A (en) * 2020-04-30 2020-08-18 北京大米科技有限公司 Task processing method, readable storage medium and electronic device
CN112202616A (en) * 2020-09-30 2021-01-08 北京大米科技有限公司 Fault processing method, readable storage medium and electronic device
CN112860431A (en) * 2021-01-20 2021-05-28 重庆六花网络科技有限公司 Connection method, system, equipment and storage medium of micro service node
CN112860431B (en) * 2021-01-20 2024-03-15 重庆六花网络科技有限公司 Connection method, system, equipment and storage medium of micro service node

Similar Documents

Publication Publication Date Title
CN109547261A (en) Service line switching method, device, electronic equipment and storage medium
CN109800223A (en) Log processing method, device, electronic equipment and storage medium
CN109981619A (en) Data capture method, device, medium and electronic equipment
CN109558748A (en) Data processing method, device, electronic equipment and storage medium
CN111190888A (en) Method and device for managing graph database cluster
US10474954B2 (en) Feedback and customization in expert systems for anomaly prediction
CN109308239A (en) Method and apparatus for output information
CN108897607A (en) Message treatment method, device, electronic equipment and storage medium
CN109857431A (en) Code revision method and device, computer-readable medium and electronic equipment
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN109960635A (en) The monitoring of real-time computing platform and alarm method, system, equipment and storage medium
CN111770128B (en) Message management method and device
US9082085B2 (en) Computing environment climate dependent policy management
CN109597810A (en) A kind of task cutting method, device, medium and electronic equipment
CN109600295A (en) Notification bar information push method, device, medium and electronic equipment
CN108667660A (en) The method and apparatus and route system of routing management and business routing
CN111782502A (en) Automatic testing method and device
CN109213789A (en) A kind of analysis method and device about business SQL
CN108875355A (en) A kind of control method and device of access authority
CN110928940B (en) Data writing method and device based on kafka cluster, electronic equipment and storage medium
CN109683942A (en) Script management method, device, medium and electronic equipment
CN110489263A (en) The abnormality recognition method and device that process is called
CN109614440A (en) Method of data synchronization and relevant device based on big data
CN113778780A (en) Application stability determination method and device, electronic equipment and storage medium
CN112084115A (en) Software defect flow operation method and 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190329

WW01 Invention patent application withdrawn after publication