CN111343262A - Distributed cluster login method, device, equipment and storage medium - Google Patents

Distributed cluster login method, device, equipment and storage medium Download PDF

Info

Publication number
CN111343262A
CN111343262A CN202010103918.4A CN202010103918A CN111343262A CN 111343262 A CN111343262 A CN 111343262A CN 202010103918 A CN202010103918 A CN 202010103918A CN 111343262 A CN111343262 A CN 111343262A
Authority
CN
China
Prior art keywords
service data
data server
distributed cluster
login
target
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
CN202010103918.4A
Other languages
Chinese (zh)
Other versions
CN111343262B (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010103918.4A priority Critical patent/CN111343262B/en
Publication of CN111343262A publication Critical patent/CN111343262A/en
Application granted granted Critical
Publication of CN111343262B publication Critical patent/CN111343262B/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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a distributed cluster login method, a distributed cluster login device, distributed cluster login equipment and a storage medium. The distributed cluster login method comprises the following steps: responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server; and if the service data server is connected, establishing a connection relation between the target node and the service data server so as to enable the target node to access the target service data server. The embodiment of the invention inquires whether the connected service data server exists in the distributed cluster or not when the login is requested in the distributed cluster, so that the whole distributed cluster is connected with the same target service data server, and the problem of resource waste caused by repeated connection is avoided.

Description

Distributed cluster login method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a distributed cluster login method, a distributed cluster login device, distributed cluster login equipment and a storage medium.
Background
The Internet of things platform is an information bearer based on the Internet, a traditional telecommunication network and the like, and enables all common physical objects capable of being independently addressed to form an interconnected network. In order to obtain information in the internet of things platform, a connection relationship applied to the internet of things platform needs to be established through an SDK (Software Development Kit). Namely, the internet of things platform provides an Application Programming Interface (API) for the SDK to use, and the SDK provides a standard Interface for the Application to use. Therefore, the SD is important in the connection of the application and the platform of the Internet of things.
The SDK commonly used at present is packaged based on the function of the platform of the Internet of things. By layer-by-layer packaging, the SDK is more convenient to use, and the calling process is clearly conditioned, so that a user can develop the center of gravity on business logic. The system provides a convenient development tool and service for the client, assists the client to complete equipment access more efficiently, provides application development and scene service capability for the client, and helps the client to construct the application of the Internet of things efficiently and at low cost.
However, the existing SDKs are all based on the conventional technology, and each login needs to send a request to the platform accessing the internet of things to obtain request data in real time, and each request consumes a certain amount of time, so that the access efficiency of the application to the platform of the internet of things is low, and the existing requirements of multiple applications, large load and high-efficiency access are not met.
Disclosure of Invention
The embodiment of the invention provides a distributed cluster login method, a distributed cluster login device and a storage medium, wherein the login information is cached in a distributed cluster to realize efficient connection between nodes in the distributed cluster and an Internet of things platform, so that the access efficiency of nodes to the Internet of things platform is improved.
In a first aspect, an embodiment of the present invention provides a distributed cluster login method, which is executed by a login server, and includes:
responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server;
and if the service data server is connected, establishing a connection relation between the target node and the service data server so as to enable the target node to access the target service data server.
In a second aspect, an embodiment of the present invention further provides a distributed cluster login apparatus, executed by a login server, including:
the system comprises a service data server query module, a service data server query module and a service data server processing module, wherein the service data server query module is used for responding to a login request of a target node in a distributed cluster and determining whether other nodes in the distributed cluster have service data servers in connection;
and the direct connection relation establishing module is used for establishing the connection relation between the target node and the service data server if the service data server is connected so as to enable the target node to access the target service data server.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a distributed cluster login method as in any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the distributed cluster login method according to any embodiment of the present invention.
The embodiment of the invention inquires whether the connected service data server exists in the distributed cluster or not when the login is requested in the distributed cluster, so that the whole distributed cluster is connected with the same target service data server, and the problem of resource waste caused by repeated connection is avoided. The development of an upper application system is simplified, and meanwhile, the high availability of the service data server is ensured.
Drawings
Fig. 1 is a flowchart of a distributed cluster login method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a distributed cluster login method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a distributed cluster login apparatus in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a distributed cluster login method in an embodiment of the present invention, which is applicable to a case where multiple application programs are connected to an internet of things platform and executed by a login server. The method may be performed by a distributed cluster login apparatus, which may be implemented in software and/or hardware, and may be configured in a device, for example, a device having communication and computing capabilities such as a background server. As shown in fig. 1, the method specifically includes:
step 101, responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server.
In the embodiment, the distributed cluster means that different SDKs are set to provide a function of accessing a service data server for an application system, a distributed cluster is formed among the different SDKs, and for a distributed cluster, functions performed by the application system to which the SDKs belong are the same, for example, for an application system such as an unmanned bank, the SDKs below the distributed cluster form a distributed cluster. The target node refers to a service module deployed in the distributed cluster, and in this embodiment, refers to an SDK, which is a software development kit, and is a development tool set used when establishing application software for specific software, a software framework, a hardware platform, an operating system, and the like. The software development tool includes a collection of related documents, paradigms and tools for assisting in developing a certain type of software, for example, for an unmanned bank application system, the SDK in the distributed cluster is used for establishing a connection relationship with a bank server to acquire related business data for an unmanned bank. The login request refers to authentication information sent by a node in the distributed cluster before the node requests to connect with the service data server, and illustratively, the login request includes address information of a target node and the like, so that the application system to which the target node belongs can be conveniently confirmed according to the address information. The service data server is an information bearer based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnected network. In this embodiment, the service data server refers to an internet of things platform deployed on different servers. For the unmanned bank application system, the internet of things platform connected with the unmanned bank application system provides a server including all business data for a bank.
Specifically, according to the functions of the internet of things platform, a universal API is provided for the application system, and the complete internet of things equipment management capability is covered. All relevant Internet of things platforms provide application SDKs, and are easy to use by developers. Illustratively, the bank internet of things platform provides an API for the unmanned bank SDK to use, and the SDK provides an interface with a standard style for the application system to use so as to realize the calling of the unmanned bank application system to the service data in the bank internet of things platform. When the SDK in the distributed cluster needs to be connected with the Internet of things platform, the SDK is a target node, the target node sends a login request to a login server, and the login server judges whether other nodes in the distributed cluster have information in connection with the service data server, namely whether other nodes request to login and are in a login state before the target node logs in.
Optionally, the login information in the distributed cluster connection is unique. Specifically, the login information refers to the service data servers connected to all nodes in the distributed cluster, that is, the service data servers connected to the nodes in the same distributed cluster are unique. The SDK which belongs to the same application system is connected with one service data server only, so that the utilization rate of the service data server is improved, and the resource waste is reduced.
Optionally, determining whether there is a connected service data server at another node in the distributed cluster includes:
and determining whether other nodes in the distributed cluster have the service data server in connection according to the connection relation information stored in the storage module in the distributed cluster.
The storage module is configured to store connection relationship information and other information in the distributed cluster, where the connection relationship information refers to information, such as an address and an ID, of a unique service data server connected to the distributed cluster, or information, which is obtained by a target node from the service data server and is related to connection and subsequent data acquisition, such as an ID address of the service data server and type information of acquired data. Optionally, the storage module may be stored in the distributed cluster, or may be stored outside the distributed cluster. For example, HazelCast is established in the distributed cluster, distributed cache information in each node in the distributed cluster is realized, cache information can be viewed by all nodes, and information sharing is realized.
Specifically, if there is a connected service data server in another node in the distributed cluster, there is connected service data server information, such as server address information, in the connection relationship information stored in the storage module in the distributed cluster. And the unique service data server information of the distributed cluster connection can be confirmed according to the address information, so that the resource waste caused by repeated connection is avoided.
And 102, if a connected service data server exists, establishing a connection relation between a target node and the service data server so that the target node accesses the target service data server.
Specifically, if the connection relationship between other nodes and the service data server already exists in the distributed cluster where the target node is located, the information of the connected service data server is determined according to the connection relationship, and the connection relationship between the target node and the service data server is established, so that all nodes in the distributed cluster access the same service data server to obtain related data.
Optionally, a distributed cache is built among the SDKs of the same application system by using the HazelCast, the SDKs configure cache node address information, and the HazelCast automatically builds a distributed cluster by configuration, so that connection information sharing between the SDKs is realized, login steps between the SDKs and the service data server are reduced, and login efficiency is improved.
The embodiment of the invention inquires whether the connected service data server exists in the distributed cluster or not when the login is requested in the distributed cluster, so that the whole distributed cluster is connected with the same target service data server, the problem of resource waste of the service data server caused by repeated connection is avoided, the login steps of the nodes in the distributed cluster are improved, and the login efficiency is improved. The development of upper-layer application is simplified, and meanwhile, the high availability of the service data server is guaranteed.
Example two
Fig. 2 is a flowchart of a distributed cluster login method in the second embodiment of the present invention, and the second embodiment of the present invention is further optimized based on the first embodiment of the present invention. As shown in fig. 2, the method includes:
step 201, responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server.
Step 202, if there is no connected service data server, after detecting that the target node is successfully logged in, determining a target service data server from the candidate service data servers, and controlling to establish a connection relationship between the target service data server and the target node.
Specifically, the absence of the connected service data server indicates that no node in the distributed cluster establishes a connection relationship with the service data server, and the target node may be a node that logs in for the first time in the distributed cluster to which the target node belongs. The node needs to carry login verification information to perform verification login, and the verification login is used for verifying the identity information of the distributed cluster. Illustratively, if there is no connected service data server, the target node sends verification information to the login server, where the verification information includes account ID information, password information, and the like, and if the verification information is successfully matched, the target node logs in successfully.
And after detecting that the target node is successfully logged in, determining a target service data server from candidate service data servers, wherein the candidate service data servers can establish a connection relationship with the SDK to provide service data call for the application system. The target service data server refers to a server selected from candidate service data servers and meeting the connection requirement of the target node, for example, the number of SDKs connected by the candidate service data server is the minimum. And sending the selected address of the target service data server to the target node, establishing the connection relation between the target node and the address, and realizing the data call of the target node to the target service data server.
Optionally, determining a target service data server from the candidate service data servers includes:
based on load balancing, a target server is determined from at least two candidate servers.
Load balancing refers to sharing and executing on a plurality of operation units, such as a Web server, an FTP server, an enterprise critical application server, and other critical task servers, so as to collectively complete work tasks. In this embodiment, load balancing refers to allocating connections of SDKs in different application systems to different service data servers.
Specifically, when the application system accesses the service data server through the SDK, the SDK selects one of the servers in turn from the addresses of the plurality of service data servers in the distributed cluster configuration in a polling manner, and invokes the status query interface thereof, if the server is available, invokes the corresponding service, that is, determines that the server is the target server; and if the server is unavailable, sequentially selecting the next server for judgment. For example, the determination that the server is available is determined according to the number of SDKs that are available for connection with the server or the remaining memory of the server. Optionally, the SDK determines that the target server may use a randomly selected service data server based on load balancing, and invokes a state query interface of the randomly selected server.
Step 203, obtaining login authorization information distributed by the target service data server to the distributed cluster, and using the login authorization information for subsequent login of the nodes in the distributed cluster.
The login authorization information refers to login information related to the SDK in the application system accessing the target service data server, for example, an authorization token confirmed for the distributed cluster, and is used to determine the type of the service data accessible by the distributed cluster, so as to ensure the validity of the service data accessed by the distributed cluster.
Specifically, after the connection relationship between the target node and the target service data server is established, the acquired information related to login is cached in the distributed cluster, so that when a subsequent node queries the service data server in connection before login, the connection relationship can be directly established, and the login information cached in the distributed cluster can also be directly accessed, thereby realizing information sharing, and avoiding resource waste and influence on login efficiency caused by repeated acquisition of reuse information.
According to the embodiment of the invention, the login information is established in the distributed cluster in a distributed manner, so that one node is established after login, all nodes in the distributed cluster can be shared, the cache information can be shared by a plurality of nodes, the access pressure to a service data server is reduced, and the access times to the platform of the Internet of things are reduced. If the login reuse information of the node under the application system is not cached, the internet of things platform needs to be accessed for each login, data is acquired in real time, a certain time is consumed for each request, and therefore efficiency is low.
Optionally, the method further includes:
and if the connection failure between any node in the distributed cluster and the service data server is detected, re-determining a new service data server from the rest candidate servers, and re-establishing the connection relationship between the node connected with the original service data server in the distributed cluster and the new service data server.
Specifically, if it is detected that any node in the distributed cluster fails to connect with the service data server, it indicates that the connection between the target node and the target service data server fails in the first connection, or the first connection between the target node and the target service data server succeeds, but the connection is disconnected in the subsequent access process due to various reasons.
If the connection failure between any node in the distributed cluster and the service data server is detected, the node actively triggers and reselects a new service data server, optionally polls the remaining candidate servers based on a load balancing principle, determines that a certain available server exists in the remaining candidate servers, establishes the connection relationship between the node and the server, sends the address of the re-determined server to the node connected with the original target service data server, establishes the connection relationship between each node and the server, and disconnects the connection with the original target service data server. All nodes in the distributed cluster are ensured to be connected with only one service data server, the utilization rate of the service data server is improved, and the pressure of the Internet of things platform caused by multiple connections is greatly reduced.
Optionally, the distributed cluster function is realized by adopting HazelCast inside the SDK of the application system, the application system does not need to consider the problems of load balancing, distributed deployment and the like, the development of an upper-layer application system is simplified, and high availability is realized better.
The embodiment of the invention determines the connected servers for the nodes in the distributed cluster based on load balancing, thereby improving the connection utilization rate of the servers; the SDK nodes are self-grouped and distributed, load is transferred to a plurality of nodes from a single node, the whole application system is prevented from being crashed due to the failure of the single node, and login efficiency is improved. And the login information is cached in a distributed mode, information sharing among cluster nodes is achieved, and the access pressure to the Internet of things platform is reduced. The embodiment of the invention ensures the realization of the SDK login function under the application system and simultaneously considers the access efficiency.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a distributed cluster login device in the third embodiment of the present invention, which is applicable to a case where multiple application programs are connected to an internet of things platform and executed by a login server in the third embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a service data server query module 310, configured to respond to a login request of a target node in a distributed cluster, and determine whether other nodes in the distributed cluster have a service data server in connection;
a direct connection relationship establishing module 320, configured to establish, if there is a connected service data server, a connection relationship between a target node and the service data server, so that the target node accesses the target service data server.
The embodiment of the invention inquires whether the connected service data server exists in the distributed cluster or not when the login is requested in the distributed cluster, so that the whole distributed cluster is connected with the same target service data server, and the problem of resource waste caused by repeated connection is avoided. The development of an upper application system is simplified, and meanwhile, the high availability of the service data server is ensured.
Optionally, the apparatus further comprises:
the connection relation control establishment module is used for determining a target service data server from the candidate service data servers and controlling and establishing the connection relation between the target service data server and the target node after the successful login of the target node is detected if the connected service data server does not exist;
and the login authorization information acquisition module is used for acquiring login authorization information distributed by the target service data server for the distributed cluster and used for subsequent login of the nodes in the distributed cluster.
Optionally, the login information in the distributed cluster connection is unique.
Optionally, the service data server query module 310 is specifically configured to:
and determining whether other nodes in the distributed cluster have the service data server in connection according to the connection relation information stored in the storage module in the distributed cluster.
Optionally, the connection relationship control establishing module is specifically configured to:
based on load balancing, a target server is determined from at least two candidate servers.
Optionally, the apparatus further includes a service data server re-determining module, specifically configured to:
and if the connection failure between any node in the distributed cluster and the service data server is detected, re-determining a new service data server from the rest candidate servers, and re-establishing the connection relationship between the node connected with the original service data server in the distributed cluster and the new service data server.
The distributed cluster login device provided by the embodiment of the invention can execute the distributed cluster login method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the distributed cluster login method.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory device 28, and a bus 18 that couples various system components including the system memory device 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system storage 28 may include computer system readable media in the form of volatile storage, such as Random Access Memory (RAM)30 and/or cache storage 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Storage 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in storage 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 4, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system storage device 28, for example, implements the distributed cluster login method provided by the embodiment of the present invention, which is executed by a login server, and includes:
responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server;
and if the service data server is connected, establishing a connection relation between the target node and the service data server so as to enable the target node to access the target service data server.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the distributed cluster login method provided in the embodiment of the present invention, where the distributed cluster login method is executed by a login server, and the method includes:
responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server;
and if the service data server is connected, establishing a connection relation between the target node and the service data server so as to enable the target node to access the target service data server.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A distributed cluster login method, performed by a login server, the method comprising:
responding to a login request of a target node in a distributed cluster, and determining whether other nodes in the distributed cluster have a connected service data server;
and if the service data server is connected, establishing a connection relation between the target node and the service data server so as to enable the target node to access the target service data server.
2. The method of claim 1, wherein determining whether other nodes in the distributed cluster have a connected traffic data server further comprises:
if no connected service data server exists, determining a target service data server from the candidate service data servers after successful login of the target node is detected, and controlling establishment of a connection relation between the target service data server and the target node;
and obtaining login authorization information distributed by the target service data server for the distributed cluster, wherein the login authorization information is used for subsequent login of the nodes in the distributed cluster.
3. The method of claim 1, wherein the login information in the distributed cluster connection is unique.
4. The method of claim 1, wherein determining whether other nodes in the distributed cluster have a connected traffic data server comprises:
and determining whether other nodes in the distributed cluster have the service data server in connection according to the connection relation information stored in the storage module in the distributed cluster.
5. The method of claim 2, wherein determining the target business data server from the candidate business data servers comprises:
based on load balancing, a target server is determined from at least two candidate servers.
6. The method of claim 1, further comprising:
and if the connection failure between any node in the distributed cluster and the service data server is detected, re-determining a new service data server from the rest candidate servers, and re-establishing the connection relationship between the node connected with the original service data server in the distributed cluster and the new service data server.
7. A distributed cluster login device, executed by a login server, comprising:
the system comprises a service data server query module, a service data server query module and a service data server processing module, wherein the service data server query module is used for responding to a login request of a target node in a distributed cluster and determining whether other nodes in the distributed cluster have service data servers in connection;
and the direct connection relation establishing module is used for establishing the connection relation between the target node and the service data server if the service data server is connected so as to enable the target node to access the target service data server.
8. The apparatus of claim 7, further comprising:
the connection relation control establishment module is used for determining a target service data server from the candidate service data servers and controlling and establishing the connection relation between the target service data server and the target node after the successful login of the target node is detected if the connected service data server does not exist;
and the login authorization information acquisition module is used for acquiring login authorization information distributed by the target service data server for the distributed cluster and used for subsequent login of the nodes in the distributed cluster.
9. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the distributed cluster login method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a distributed cluster login method according to any one of claims 1 to 6.
CN202010103918.4A 2020-02-20 2020-02-20 Distributed cluster login method, device, equipment and storage medium Active CN111343262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010103918.4A CN111343262B (en) 2020-02-20 2020-02-20 Distributed cluster login method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010103918.4A CN111343262B (en) 2020-02-20 2020-02-20 Distributed cluster login method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111343262A true CN111343262A (en) 2020-06-26
CN111343262B CN111343262B (en) 2022-04-29

Family

ID=71187018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010103918.4A Active CN111343262B (en) 2020-02-20 2020-02-20 Distributed cluster login method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111343262B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115026A (en) * 2020-09-15 2020-12-22 招商局金融科技有限公司 Server cluster monitoring method and device, electronic equipment and readable storage medium
CN112905699A (en) * 2021-02-23 2021-06-04 京东数科海益信息科技有限公司 Full data comparison method, device, equipment and storage medium
CN114422510A (en) * 2020-10-13 2022-04-29 腾讯科技(深圳)有限公司 Service processing method and device
CN116069464A (en) * 2022-12-19 2023-05-05 深圳计算科学研究院 Optimization method and device based on distributed storage call data execution

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163635A1 (en) * 2015-12-08 2017-06-08 Canon Kabushiki Kaisha Authorization server, authentication cooperation system, and storage medium storing program
CN107911357A (en) * 2017-11-09 2018-04-13 北京锐安科技有限公司 A kind of method, apparatus of single-sign-on, server and storage medium
CN108696581A (en) * 2018-05-07 2018-10-23 上海智臻智能网络科技股份有限公司 Caching method, device, computer equipment and the storage medium of distributed information
CN108833149A (en) * 2018-06-04 2018-11-16 深圳市丰巢科技有限公司 Method and system for monitoring network availability and self-healing of express delivery cabinet
US20190342117A1 (en) * 2017-01-19 2019-11-07 Guangzhou Huaduo Network Technology Co., Ltd. Method for controlling a remote service access path and relevant device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163635A1 (en) * 2015-12-08 2017-06-08 Canon Kabushiki Kaisha Authorization server, authentication cooperation system, and storage medium storing program
US20190342117A1 (en) * 2017-01-19 2019-11-07 Guangzhou Huaduo Network Technology Co., Ltd. Method for controlling a remote service access path and relevant device
CN107911357A (en) * 2017-11-09 2018-04-13 北京锐安科技有限公司 A kind of method, apparatus of single-sign-on, server and storage medium
CN108696581A (en) * 2018-05-07 2018-10-23 上海智臻智能网络科技股份有限公司 Caching method, device, computer equipment and the storage medium of distributed information
CN108833149A (en) * 2018-06-04 2018-11-16 深圳市丰巢科技有限公司 Method and system for monitoring network availability and self-healing of express delivery cabinet

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANDREAS ROTT: "Self-Healing in Distributed Network Environments", 《21ST INTERNATIONAL CONFERENCE ON ADVANCED INFORMATION NETWORKING AND APPLICATIONS WORKSHOPS (AINAW"07)》 *
王爱俊等: "面向C2C通信的轻量级TURN实现架构及方案", 《电信科学》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115026A (en) * 2020-09-15 2020-12-22 招商局金融科技有限公司 Server cluster monitoring method and device, electronic equipment and readable storage medium
CN114422510A (en) * 2020-10-13 2022-04-29 腾讯科技(深圳)有限公司 Service processing method and device
CN114422510B (en) * 2020-10-13 2024-04-30 腾讯科技(深圳)有限公司 Service processing method and device
CN112905699A (en) * 2021-02-23 2021-06-04 京东数科海益信息科技有限公司 Full data comparison method, device, equipment and storage medium
CN112905699B (en) * 2021-02-23 2024-04-09 京东科技信息技术有限公司 Full data comparison method, device, equipment and storage medium
CN116069464A (en) * 2022-12-19 2023-05-05 深圳计算科学研究院 Optimization method and device based on distributed storage call data execution
CN116069464B (en) * 2022-12-19 2024-01-16 深圳计算科学研究院 Optimization method and device based on distributed storage call data execution

Also Published As

Publication number Publication date
CN111343262B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN111343262B (en) Distributed cluster login method, device, equipment and storage medium
US9244817B2 (en) Remote debugging in a cloud computing environment
US7146431B2 (en) Virtual network environment
US9753786B2 (en) Client server communication system
CN111737022B (en) Micro-service-based interface calling method, system, equipment and medium
CN111290712B (en) Block device creating method and device, cloud computing management system and storage medium
US20110173319A1 (en) Apparatus and method for operating server using virtualization technique
CN111404753A (en) Flat network configuration method, computer equipment and storage medium
US7002956B2 (en) Network addressing method and system for localizing access to network resources in a computer network
US8832215B2 (en) Load-balancing in replication engine of directory server
US8458702B1 (en) Method for implementing user space up-calls on java virtual machine before/after garbage collection
CN110706148B (en) Face image processing method, device, equipment and storage medium
US11360824B2 (en) Customized partitioning of compute instances
US7111325B2 (en) Apparatus, system and method of double-checking DNS provided IP addresses
CN109819023B (en) Distributed transaction processing method and related product
CN114285659A (en) Reverse proxy method, device, equipment and storage medium
US9760412B2 (en) Client server communication system
US10637924B2 (en) Cloud metadata discovery API
CN114221933A (en) Multi-center multi-activity addressing method, device and system for mobile banking
CN112637201A (en) Request processing method, device, equipment and system of web server
KR20220057927A (en) Platform apparatus for image analysis, and control method thereof
CN115516842A (en) Orchestration broker service
CN112188012A (en) Method and device for establishing customer service session, electronic equipment and readable storage medium
CN112965763B (en) Service processing system, method, device and storage medium
CN115988080B (en) Micro-service resource calling method and system based on proxy middleware

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220915

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Patentee after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Patentee before: CHINA CONSTRUCTION BANK Corp.

Patentee before: Jianxin Financial Science and Technology Co.,Ltd.