CN112565419A - Target service node access method, system, electronic equipment and storage medium - Google Patents

Target service node access method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN112565419A
CN112565419A CN202011412055.5A CN202011412055A CN112565419A CN 112565419 A CN112565419 A CN 112565419A CN 202011412055 A CN202011412055 A CN 202011412055A CN 112565419 A CN112565419 A CN 112565419A
Authority
CN
China
Prior art keywords
connection
service node
target service
connection modes
modes
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.)
Granted
Application number
CN202011412055.5A
Other languages
Chinese (zh)
Other versions
CN112565419B (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.)
Chuangsheng Shilian Digital Technology Beijing Co Ltd
Original Assignee
Chuangsheng Shilian Digital Technology Beijing 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 Chuangsheng Shilian Digital Technology Beijing Co Ltd filed Critical Chuangsheng Shilian Digital Technology Beijing Co Ltd
Priority to CN202011412055.5A priority Critical patent/CN112565419B/en
Publication of CN112565419A publication Critical patent/CN112565419A/en
Application granted granted Critical
Publication of CN112565419B publication Critical patent/CN112565419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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

Landscapes

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

Abstract

The embodiment of the application provides a target service node access method, which comprises the following steps: acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection; testing a delay of accessing the target service node in each of the selectable connection modes; setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is; and accessing the target service node through the connection mode with the highest priority in the selectable connection modes. According to the method and the device, the target service nodes are intensively deployed into the service node cluster, and various connection modes for accessing the service node cluster are provided, so that the cost for maintaining the target service nodes in deployment is reduced, and the stability for connecting the target service nodes is improved.

Description

Target service node access method, system, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the field of communication, in particular to a target service node access method, a target service node access system, electronic equipment and a storage medium.
Background
With the development of communication technology, communication service providers have been able to provide users in various areas around the world with network services for accessing other areas. Generally, a communication service provider establishes target service nodes in different regions of the world according to the distribution conditions of users in different regions of the world, and then dispatches the request of the user to the target service node closest to the user according to the IP address of the request initiated by the user, so as to solve the problem of communication between the users in different regions and a server. However, if the user is connected to the current server abnormally or the line is abnormal, the access is generally slow or the access fails; in addition, the deployment of the target service nodes is generally scattered, and the maintenance is difficult; finally, it is costly to deploy a large number of target service nodes, but the target service nodes have a low resource utilization.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method, a system, an electronic device, and a storage medium for accessing a target service node, so as to overcome the problems in the prior art.
In a first aspect, an embodiment of the present application provides a target service node access method, including:
acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
testing a delay of accessing the target service node in each of the selectable connection modes;
setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
and accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the method further comprises:
and when the target service node is accessed in the connection mode in the optional connection mode fails or is abnormal, switching to the connection mode with the next priority in the optional connection mode to access the target service node.
Optionally, in a specific embodiment, the method further comprises:
when line jitter or line interruption occurs in the process of accessing the target service node through the connection mode with the highest priority in the selectable connection modes, switching to accessing the target service node through the connection mode with the next priority in the selectable connection modes.
Optionally, in a specific embodiment, the method further comprises:
service nodes located in different regions of the world are deployed in a centralized mode to serve node clusters.
Optionally, in a specific embodiment, the method further comprises:
service instances within a service node cluster may scale horizontally.
Optionally, in a specific embodiment, the method further comprises:
load balancing techniques are applied to the cluster of service nodes.
In a second aspect, an embodiment of the present application provides a target service node access system, including:
the device comprises an acquisition module, a test module, a setting module and a connection module;
the acquisition module is used for acquiring optional connection modes for accessing the target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
the test module is used for testing the delay of accessing the target service node in each connection mode of the selectable connection modes;
the setting module is used for setting priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
the connection module is used for accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the system further comprises:
and the switching module is used for switching to access the target service node through the connection mode of the next priority in the selectable connection modes when the access of the target service node through the connection modes in the selectable connection modes fails or is abnormal.
Optionally, in a specific embodiment, the system further comprises:
the node deployment module is used for deploying the service nodes in different regions of the world into a service node cluster in a centralized manner.
Optionally, in a specific embodiment, the service instances within the service node cluster may be horizontally scalable.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores an executable program, and the processor executes the executable program to perform the following steps:
acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
testing a delay of accessing the target service node in each of the selectable connection modes;
setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
and accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the method further includes:
and when the target service node is accessed in the connection mode in the optional connection mode fails or is abnormal, switching to the connection mode with the next priority in the optional connection mode to access the target service node.
Optionally, in a specific embodiment, the method further includes:
service nodes located in different regions of the world are deployed in a centralized mode to serve node clusters.
Optionally, in a specific embodiment, the service instances within the service node cluster may be horizontally scalable.
The target service node access system of claim 7, wherein the system further comprises:
and the switching module is used for switching to access the target service node through the connection mode of the next priority in the selectable connection modes when the target service node is failed to be accessed through the connection mode in the selectable connection modes or is abnormal.
The target service node access system of claim 8, wherein the system further comprises:
the node deployment module is used for deploying service nodes located in different regions of the world in a centralized mode into service node clusters.
The target service node access system of claim 9, wherein service instances within the service node cluster are scalable.
The electronic device of claim 11, further comprising:
service nodes located in different regions of the world are deployed in a centralized mode to serve node clusters.
The electronic device of claim 13, wherein service instances within the service node cluster are scalable.
In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the method according to any one of the first aspect.
The embodiment of the application provides a target service node access method, a system, electronic equipment and a storage medium, a plurality of target service nodes are intensively deployed into a service node cluster, and a plurality of connection modes for accessing the service node cluster are provided, so that the cost for maintaining the deployed target service nodes is reduced, the stability of connecting the target service nodes by users is improved, and the user experience is improved.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart of a target service node access method according to an embodiment of the present application;
fig. 2 is a flowchart of another target service node access method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a target service node access system according to an embodiment of the present application;
fig. 4 is a schematic view of an electronic device according to an embodiment of the present application.
Detailed Description
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
Example one
Referring to fig. 1, an embodiment of the present application provides a method for accessing a target service node, including:
s101: acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
in particular, a public network may refer to a wide area network, which is a remote network connecting computers communicating over local or metropolitan area networks in different regions. Typically spanning a large physical range, ranging from tens of kilometers to thousands of kilometers, and which can connect multiple regions, cities and countries, or span several continents and provide long-range communications, forming an international long-range network. The fixed private line is a symmetric telecommunication line for connecting two areas, and unlike the traditional PSTN, the fixed private line has no telephone number, and permanent connection is established at both ends of the private line, and the fixed private line can be applied to telephone, data and Internet services. And a special line access service node cluster is provided for the user, so that the stability and the safety of connection can be effectively improved. The content Delivery network may be a CDN (content Delivery network), which is an intelligent virtual network constructed on the basis of an existing network, and enables a user to obtain required content nearby by means of functional modules of load balancing, content Delivery, scheduling and the like of a central platform by means of edge servers deployed in various places, so that network congestion is reduced, and the access response speed and hit rate of the user are improved. The content delivery network connection in the embodiment of the present application refers to providing an access function of a target service node for a user by using a CDN global service and using a coverage node and a back-to-source link of the CDN. Preferably, because a single CDN has limited access devices in different regions and is prone to failure, multiple CDN vendors can be accessed simultaneously, so that stability and security of connection are improved. The selectable connection modes comprise at least two of public network connection, content distribution network connection and private line connection, so that one connection mode can be automatically switched to the other connection mode when one connection fails or is abnormal, and the stability of the user accessing the target service node is improved.
Preferably, the determining the optional connection mode for accessing the target node according to the access amount data of the area where the user is located, for example, the determining the optional connection mode according to the access amount data of the area where the user is located includes: when the access volume data is greater than or equal to a first threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; when the access data is less than the first threshold, the selectable connection modes comprise content distribution network connection and public network connection. When the access amount of an area is greater than or equal to the first threshold, a fixed connection private line can be directly established between the area and the service node cluster, so that the stability and the safety of user connection in the area are improved. Optionally, the first threshold may be a median of the global regional visit volume data, may also be a minimum of the first 30% global regional visit volume data, and may also be a minimum of the first 40% global regional visit volume data, which is not specifically limited in this application. Optionally, obtaining the optional connection mode according to the access amount data may further include: obtaining an optional connection mode according to the visit quantity data and the visit quality of the area, which specifically comprises the following steps: when the ratio of the number of complaints of the client in the area to the access volume data is greater than or equal to a second threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; and when the proportion of the number of complaints of the customers to the access volume data in the area is smaller than a second threshold value, the selectable connection modes comprise content distribution network connection and public network connection. Alternatively, the second threshold may be set manually as needed. The region where the user is located may be a country or a continent, which is not limited in the present application. More connection modes can be set for the high-access area, so that users in the high-access area can normally access the service node cluster.
S102: the latency of accessing the target service node in each of the selectable connection modes is tested.
S103: setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
specifically, the optional connection mode with the lowest access delay in the optional connection modes may be used as the optional connection mode with the highest priority, the optional connection mode with the second lowest access delay in the optional connection modes may be used as the optional connection mode with the second highest priority, and so on, the optional connection mode with the highest access delay in the optional connection modes may be used as the optional connection mode with the lowest priority, and the target service node is accessed through the connection mode with the highest priority in the optional connection modes, which is favorable for reducing the deployment cost and the maintenance cost of the service node cluster on the premise of ensuring the access quality of the user.
S104: and accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the method further comprises:
and when the target service node is accessed in the connection mode in the optional connection mode fails or is abnormal, switching to the connection mode with the next priority in the optional connection mode to access the target service node.
Optionally, in a specific embodiment, the method further comprises:
when line jitter or line interruption occurs in the process of accessing the target service node through the connection mode with the highest priority in the selectable connection modes, switching to accessing the target service node through the connection mode with the next priority in the selectable connection modes.
Specifically, when the target service node is accessed in the connection mode with the highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed in the connection mode with the second highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the third highest priority in the optional connection modes, and the like until the target service node is accessed successfully. Similarly, when the target service node is accessed by the connection mode with the highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed by the connection mode with the second highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the third highest priority in the optional connection modes, and so on until the access is successful. Therefore, when the access of the user fails, the access is abnormal, and line jitter or line interruption occurs, the target service node access method provided by the embodiment of the application can enable the user to finally successfully access the resource of the target service node by continuously and automatically switching the connection mode of the sub-priority, so that the use experience of the user is greatly improved.
Optionally, in a specific embodiment, service nodes located in different regions around the world are deployed collectively as a service node cluster;
specifically, the service node cluster may be a server cluster, where a server cluster refers to a cluster of many servers that are collected together to perform the same service, and appears to the client as if there is only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup so as to ensure that any one machine damages the whole system or can normally run. In this way, the deployment cost and maintenance cost of the target service node can be reduced.
Optionally, in a specific embodiment, the method further comprises:
service instances within a service node cluster may scale horizontally.
Therefore, the maintenance difficulty of the service node cluster is favorably reduced, the maintenance is more convenient, and even the automatic expansion and contraction according to the quantity can be realized, so that the zero maintenance is realized.
Optionally, in a specific embodiment, the method further comprises:
load balancing techniques are applied to the cluster of service nodes.
In particular, load balancing is a computer technique used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives, or other resources for the purpose of optimizing resource usage, maximizing throughput, minimizing response time, while avoiding overload. Using multiple server components with load balancing, instead of a single component, may increase reliability through redundancy. The load balancing service is usually completed by dedicated software and hardware, and the main role is to reasonably distribute a large amount of jobs to a plurality of operation units for execution, so as to solve the problems of high concurrency and high availability in the internet architecture. In the embodiment of the application, the load balancing technology is applied to the service node cluster, so that the service instances in the service node cluster can be transversely expanded, the maintenance is more convenient, even the automatic expansion and contraction according to the quantity can be realized, and the zero maintenance is realized.
Referring to fig. 2, an embodiment of the present application provides another method for accessing a target service node, including: deploying a plurality of target service nodes into a service node cluster in a centralized manner; acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection; setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is; testing a delay of accessing the target service node in each of the selectable connection modes; accessing the target service node through the connection mode with the highest priority in the selectable connection modes; and when the target service node is accessed in the connection mode in the optional connection mode fails or is abnormal, switching to the connection mode with the next priority in the optional connection mode to access the target service node.
The embodiment of the application provides a target service node access method, a plurality of target service nodes are intensively deployed into a service node cluster, and a plurality of connection modes for accessing the service node cluster are provided, so that the cost for maintaining the deployed target service nodes is reduced, the stability of connecting the target service nodes by users is improved, and the user experience is improved.
It should be particularly noted that the present application provides a method for accessing a target service node, which is mainly applied to providing various connection modes for accessing the target service node individually for users in various regions, taking into account different network conditions, policy conditions, user size, access amount, and the like in various regions of the world under the background that users in various regions cannot access network services in other regions in a complex network environment in the global region, thereby reducing the cost of deployed maintaining the target service node, improving the stability of the user in connecting the target service node, and facilitating the improvement of user experience.
Example two
Referring to fig. 3, an embodiment of the present application provides a target service node access system 20, including:
an acquisition module 201, a test module 202, a setting module 203 and a connection module 204;
the obtaining module 201 is configured to obtain optional connection modes for accessing the target node, where the optional connection modes at least include content distribution network connection, private line connection, and public network connection;
in particular, a public network may refer to a wide area network, which is a remote network connecting computers communicating over local or metropolitan area networks in different regions. Typically spanning a large physical range, ranging from tens of kilometers to thousands of kilometers, and which can connect multiple regions, cities and countries, or span several continents and provide long-range communications, forming an international long-range network. The fixed private line is a symmetric telecommunication line for connecting two areas, and unlike the traditional PSTN, the fixed private line has no telephone number, and permanent connection is established at both ends of the private line, and the fixed private line can be applied to telephone, data and Internet services. And a special line access service node cluster is provided for the user, so that the stability and the safety of connection can be effectively improved. The content Delivery network may be a CDN (content Delivery network), which is an intelligent virtual network constructed on the basis of an existing network, and enables a user to obtain required content nearby by means of functional modules of load balancing, content Delivery, scheduling and the like of a central platform by means of edge servers deployed in various places, so that network congestion is reduced, and the access response speed and hit rate of the user are improved. The content delivery network connection in the embodiment of the present application refers to providing an access function of a target service node for a user by using a CDN global service and using a coverage node and a back-to-source link of the CDN. Preferably, because a single CDN has limited access devices in different regions and is prone to failure, multiple CDN vendors can be accessed simultaneously, so that stability and security of connection are improved. The selectable connection modes comprise at least two of public network connection, content distribution network connection and private line connection, so that one connection mode can be automatically switched to the other connection mode when one connection fails or is abnormal, and the stability of the user accessing the target service node is improved.
Preferably, the determining the optional connection mode for accessing the target node according to the access amount data of the area where the user is located, for example, the determining the optional connection mode according to the access amount data of the area where the user is located includes: when the access volume data is greater than or equal to a first threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; when the access data is less than the first threshold, the selectable connection modes comprise content distribution network connection and public network connection. When the access amount of an area is greater than or equal to the first threshold, a fixed connection private line can be directly established between the area and the service node cluster, so that the stability and the safety of user connection in the area are improved. Optionally, the first threshold may be a median of the global regional visit volume data, may also be a minimum of the first 30% global regional visit volume data, and may also be a minimum of the first 40% global regional visit volume data, which is not specifically limited in this application. Optionally, obtaining the optional connection mode according to the access amount data may further include: obtaining an optional connection mode according to the visit quantity data and the visit quality of the area, which specifically comprises the following steps: when the ratio of the number of complaints of the client in the area to the access volume data is greater than or equal to a second threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; and when the proportion of the number of complaints of the customers to the access volume data in the area is smaller than a second threshold value, the selectable connection modes comprise content distribution network connection and public network connection. Alternatively, the second threshold may be set manually as needed. The region where the user is located may be a country or a continent, which is not limited in the present application. More connection modes can be set for the high-access area, so that users in the high-access area can normally access the service node cluster.
The test module 202 is configured to test a delay of accessing the target service node in each of the selectable connection modes.
The setting module 203 is configured to set a priority for a connection mode in the selectable connection modes, where each connection mode in the selectable connection modes accesses the target service node, and the lower the delay is, the higher the set priority is;
specifically, the optional connection mode with the lowest access delay in the optional connection modes may be used as the optional connection mode with the highest priority, the optional connection mode with the second lowest access delay in the optional connection modes may be used as the optional connection mode with the second highest priority, and so on, the optional connection mode with the highest access delay in the optional connection modes may be used as the optional connection mode with the lowest priority, and the target service node is accessed through the connection mode with the highest priority in the optional connection modes, which is favorable for reducing the deployment cost and the maintenance cost of the service node cluster on the premise of ensuring the access quality of the user.
The connection module 204 is configured to access the target service node through a connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the system further comprises:
and the switching module is used for switching to access the target service node through the connection mode of the next priority in the selectable connection modes when the access of the target service node through the connection modes in the selectable connection modes fails or is abnormal.
Optionally, in a specific embodiment, the switching module is further configured to switch to access the target service node through a connection mode of a next priority in the selectable connection modes when line jitter or line interruption occurs during the process of accessing the target service node through the connection mode of a highest priority in the selectable connection modes.
Specifically, when the target service node is accessed in the connection mode with the highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed in the connection mode with the second highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the third highest priority in the optional connection modes, and the like until the target service node is accessed successfully. Similarly, when the target service node is accessed by the connection mode with the highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed by the connection mode with the second highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the third highest priority in the optional connection modes, and so on until the access is successful. Therefore, when the access of the user fails, the access is abnormal, and line jitter or line interruption occurs, the target service node access method provided by the embodiment of the application can enable the user to finally successfully access the resource of the target service node by continuously and automatically switching the connection mode of the sub-priority, so that the use experience of the user is greatly improved.
Optionally, in a specific embodiment, the system further comprises: the node deployment module is used for intensively deploying the service nodes in different regions of the world into a service node cluster;
specifically, the service node cluster may be a server cluster, where a server cluster refers to a cluster of many servers that are collected together to perform the same service, and appears to the client as if there is only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup so as to ensure that any one machine damages the whole system or can normally run. In this way, the deployment cost and maintenance cost of the target service node can be reduced.
Optionally, in a specific embodiment, the method further includes: service instances within a service node cluster may scale horizontally.
Therefore, the maintenance difficulty of the service node cluster is favorably reduced, the maintenance is more convenient, and even the automatic expansion and contraction according to the quantity can be realized, so that the zero maintenance is realized.
Optionally, in a specific embodiment, the method further comprises:
load balancing techniques are applied to the cluster of service nodes.
In particular, load balancing is a computer technique used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives, or other resources for the purpose of optimizing resource usage, maximizing throughput, minimizing response time, while avoiding overload. Using multiple server components with load balancing, instead of a single component, may increase reliability through redundancy. The load balancing service is usually completed by dedicated software and hardware, and the main role is to reasonably distribute a large amount of jobs to a plurality of operation units for execution, so as to solve the problems of high concurrency and high availability in the internet architecture. In the embodiment of the application, the load balancing technology is applied to the service node cluster, so that the service instances in the service node cluster can be transversely expanded, the maintenance is more convenient, even the automatic expansion and contraction according to the quantity can be realized, and the zero maintenance is realized.
EXAMPLE III
Referring to fig. 4, an electronic device 30 according to an embodiment of the present application includes a memory 301 and a processor 302, where the memory 301 stores an executable program, and the processor 302 executes the executable program to perform the following steps:
acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
testing a delay of accessing the target service node in each of the selectable connection modes;
setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
and accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
The following is a detailed description:
acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
in particular, a public network may refer to a wide area network, which is a remote network connecting computers communicating over local or metropolitan area networks in different regions. Typically spanning a large physical range, ranging from tens of kilometers to thousands of kilometers, and which can connect multiple regions, cities and countries, or span several continents and provide long-range communications, forming an international long-range network. The fixed private line is a symmetric telecommunication line for connecting two areas, and unlike the traditional PSTN, the fixed private line has no telephone number, and permanent connection is established at both ends of the private line, and the fixed private line can be applied to telephone, data and Internet services. And a special line access service node cluster is provided for the user, so that the stability and the safety of connection can be effectively improved. The content Delivery network may be a CDN (content Delivery network), which is an intelligent virtual network constructed on the basis of an existing network, and enables a user to obtain required content nearby by means of functional modules of load balancing, content Delivery, scheduling and the like of a central platform by means of edge servers deployed in various places, so that network congestion is reduced, and the access response speed and hit rate of the user are improved. The content delivery network connection in the embodiment of the present application refers to providing an access function of a target service node for a user by using a CDN global service and using a coverage node and a back-to-source link of the CDN. Preferably, because a single CDN has limited access devices in different regions and is prone to failure, multiple CDN vendors can be accessed simultaneously, so that stability and security of connection are improved. The selectable connection modes comprise at least two of public network connection, content distribution network connection and private line connection, so that one connection mode can be automatically switched to the other connection mode when one connection fails or is abnormal, and the stability of the user accessing the target service node is improved.
Preferably, the determining the optional connection mode for accessing the target node according to the access amount data of the area where the user is located, for example, the determining the optional connection mode according to the access amount data of the area where the user is located includes: when the access volume data is greater than or equal to a first threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; when the access data is less than the first threshold, the selectable connection modes comprise content distribution network connection and public network connection. When the access amount of an area is greater than or equal to the first threshold, a fixed connection private line can be directly established between the area and the service node cluster, so that the stability and the safety of user connection in the area are improved. Optionally, the first threshold may be a median of the global regional visit volume data, may also be a minimum of the first 30% global regional visit volume data, and may also be a minimum of the first 40% global regional visit volume data, which is not specifically limited in this application. Optionally, obtaining the optional connection mode according to the access amount data may further include: obtaining an optional connection mode according to the visit quantity data and the visit quality of the area, which specifically comprises the following steps: when the ratio of the number of complaints of the client in the area to the access volume data is greater than or equal to a second threshold value, the selectable connection modes comprise private line connection, content distribution network connection and public network connection; and when the proportion of the number of complaints of the customers to the access volume data in the area is smaller than a second threshold value, the selectable connection modes comprise content distribution network connection and public network connection. Alternatively, the second threshold may be set manually as needed. The region where the user is located may be a country or a continent, which is not limited in the present application. More connection modes can be set for the high-access area, so that users in the high-access area can normally access the service node cluster.
The latency of accessing the target service node in each of the selectable connection modes is tested.
Setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
specifically, the optional connection mode with the lowest access delay in the optional connection modes may be used as the optional connection mode with the highest priority, the optional connection mode with the second lowest access delay in the optional connection modes may be used as the optional connection mode with the second highest priority, and so on, the optional connection mode with the highest access delay in the optional connection modes may be used as the optional connection mode with the lowest priority, and the target service node is accessed through the connection mode with the highest priority in the optional connection modes, which is favorable for reducing the deployment cost and the maintenance cost of the service node cluster on the premise of ensuring the access quality of the user.
And accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
Optionally, in a specific embodiment, the method further includes:
and when the target service node is accessed in the connection mode in the optional connection mode fails or is abnormal, switching to the connection mode with the next priority in the optional connection mode to access the target service node.
Optionally, in a specific embodiment, the method further includes:
when line jitter or line interruption occurs in the process of accessing the target service node through the connection mode with the highest priority in the selectable connection modes, switching to accessing the target service node through the connection mode with the next priority in the selectable connection modes.
Specifically, when the target service node is accessed in the connection mode with the highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed in the connection mode with the second highest priority in the optional connection modes and fails or is abnormal, the target service node is accessed in the connection mode with the third highest priority in the optional connection modes, and the like until the target service node is accessed successfully. Similarly, when the target service node is accessed by the connection mode with the highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the second highest priority in the optional connection modes, when the target service node is accessed by the connection mode with the second highest priority in the optional connection modes and line jitter or line interruption occurs, the target service node is accessed by the connection mode with the third highest priority in the optional connection modes, and so on until the access is successful. Therefore, when the access of the user fails, the access is abnormal, and line jitter or line interruption occurs, the target service node access method provided by the embodiment of the application can enable the user to finally successfully access the resource of the target service node by continuously and automatically switching the connection mode of the sub-priority, so that the use experience of the user is greatly improved.
Optionally, in a specific embodiment, service nodes located in different regions around the world are deployed collectively as a service node cluster;
specifically, the service node cluster may be a server cluster, where a server cluster refers to a cluster of many servers that are collected together to perform the same service, and appears to the client as if there is only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup so as to ensure that any one machine damages the whole system or can normally run. In this way, the deployment cost and maintenance cost of the target service node can be reduced.
Optionally, in a specific embodiment, the method further comprises:
service instances within a service node cluster may scale horizontally.
Therefore, the maintenance difficulty of the service node cluster is favorably reduced, the maintenance is more convenient, and even the automatic expansion and contraction according to the quantity can be realized, so that the zero maintenance is realized.
Optionally, in a specific embodiment, the method further comprises:
load balancing techniques are applied to the cluster of service nodes.
In particular, load balancing is a computer technique used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives, or other resources for the purpose of optimizing resource usage, maximizing throughput, minimizing response time, while avoiding overload. Using multiple server components with load balancing, instead of a single component, may increase reliability through redundancy. The load balancing service is usually completed by dedicated software and hardware, and the main role is to reasonably distribute a large amount of jobs to a plurality of operation units for execution, so as to solve the problems of high concurrency and high availability in the internet architecture. In the embodiment of the application, the load balancing technology is applied to the service node cluster, so that the service instances in the service node cluster can be transversely expanded, the maintenance is more convenient, even the automatic expansion and contraction according to the quantity can be realized, and the zero maintenance is realized.
Example four
The embodiment of the application provides a storage medium, wherein a computer program is stored on the storage medium, and when a processor executes the computer program, the method of any one of the embodiments is realized.
The storage medium of the embodiments of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And other electronic equipment with data interaction function.
Thus, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for accessing a target service node, comprising:
acquiring optional connection modes for accessing a target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
testing a delay of accessing a target service node in each of the selectable connection modes;
setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed by each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
and accessing the target service node through the connection mode with the highest priority in the optional connection modes.
2. The target service node access method of claim 1, wherein the method further comprises:
and when the target service node is accessed in the connection mode of the selectable connection modes fails or is abnormal, switching to access the target service node in the connection mode of the next priority in the selectable connection modes.
3. The target service node access method of claim 1, wherein the method further comprises:
and when line jitter or line interruption occurs in the process of accessing the target service node through the connection mode with the highest priority in the selectable connection modes, switching to accessing the target service node through the connection mode with the next priority in the selectable connection modes.
4. The target service node access method of claim 1, wherein the method further comprises:
service nodes located in different regions of the world are deployed in a centralized mode to serve node clusters.
5. The target service node access method of claim 4, wherein the method further comprises:
service instances within the service node cluster may be laterally scalable.
6. The target service node access method of claim 4 or 5, wherein the method further comprises:
applying a load balancing technique to the cluster of service nodes.
7. A target service node access system, comprising:
the device comprises an acquisition module, a test module, a setting module and a connection module;
the acquisition module is used for acquiring optional connection modes for accessing the target node, wherein the optional connection modes at least comprise content distribution network connection, private line connection and public network connection;
the test module is used for testing the delay of accessing the target service node in each connection mode of the selectable connection modes;
the setting module is used for setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed in each connection mode in the selectable connection modes, and the lower the delay is, the higher the set priority is;
the connection module is used for accessing the target service node through the connection mode with the highest priority in the selectable connection modes.
8. An electronic device is characterized by comprising a memory and a processor, wherein the memory stores selectable connection modes for acquiring an access target node, and the selectable connection modes at least comprise content distribution network connection, private line connection and public network connection;
testing a delay of accessing a target service node in each of the selectable connection modes;
setting a priority for the connection modes in the selectable connection modes, wherein the target service node is accessed by each connection mode in the selectable connection modes, and the lower the delay of the connection mode is, the higher the set priority is;
and accessing the target service node through the connection mode with the highest priority in the optional connection modes.
9. The electronic device of claim 11, further comprising:
and when the target service node is accessed in the connection mode of the selectable connection modes fails or is abnormal, switching to access the target service node in the connection mode of the next priority in the selectable connection modes.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, carries out the method according to any one of claims 1-6.
CN202011412055.5A 2020-12-03 2020-12-03 Target service node access method, system, electronic equipment and storage medium Active CN112565419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011412055.5A CN112565419B (en) 2020-12-03 2020-12-03 Target service node access method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011412055.5A CN112565419B (en) 2020-12-03 2020-12-03 Target service node access method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112565419A true CN112565419A (en) 2021-03-26
CN112565419B CN112565419B (en) 2023-02-10

Family

ID=75048780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011412055.5A Active CN112565419B (en) 2020-12-03 2020-12-03 Target service node access method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112565419B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945003A (en) * 2014-05-06 2014-07-23 北京邮电大学 Dynamic self-adapting method for connection of Web RTC (Real Time Communication) client
US20170142177A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method and system for network dispatching
CN107104921A (en) * 2016-02-19 2017-08-29 阿里巴巴集团控股有限公司 Ddos attack defence method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945003A (en) * 2014-05-06 2014-07-23 北京邮电大学 Dynamic self-adapting method for connection of Web RTC (Real Time Communication) client
US20170142177A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method and system for network dispatching
CN107104921A (en) * 2016-02-19 2017-08-29 阿里巴巴集团控股有限公司 Ddos attack defence method and device

Also Published As

Publication number Publication date
CN112565419B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
CN107450979B (en) Block chain consensus method and device
US10726518B2 (en) Capacity reservation for virtualized graphics processing
RU2702268C2 (en) Scalable data storage pools
CN107430528B (en) Opportunistic resource migration to optimize resource placement
US10601680B2 (en) Application resiliency using APIs
US9880885B2 (en) Method and system to rebalance constrained services in a cloud using a genetic algorithm
US11341032B1 (en) Testing in a disaster recovery computer system
CN105306507A (en) Disaster tolerance processing method and disaster tolerance processing device in distributed architecture
CN110928638A (en) Method and device for selecting host machine for virtual machine deployment
CN111866210A (en) Virtual IP balance distribution method, system, terminal and storage medium
US20240264875A1 (en) Method, apparatus, system, device, medium and program product for resource scheduling
CN108390914B (en) Service updating method, device and system
US9609118B2 (en) Usage of software programs on mobile computing devices
CN111209260A (en) NFS cluster based on distributed storage and method for providing NFS service
WO2023091215A1 (en) Mapping an application signature to designated cloud resources
CN115412610A (en) Flow scheduling method and device under fault scene
CN112565419B (en) Target service node access method, system, electronic equipment and storage medium
CN115328608A (en) Kubernetes container vertical expansion adjusting method and device
CN108681492A (en) Data processing method and device
CN114296869A (en) Server node service method and device based on TCP long connection
CN113126884B (en) Data migration method, data migration device, electronic equipment and computer storage medium
CN112258166A (en) Transaction request processing method and device
CN111797070A (en) Ticket data processing method and device
US11768704B2 (en) Increase assignment effectiveness of kubernetes pods by reducing repetitive pod mis-scheduling
US20240168663A1 (en) Sharing node storage resources with the entire cluster

Legal Events

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