WO2020098346A1 - Method and apparatus for pushing node information - Google Patents

Method and apparatus for pushing node information Download PDF

Info

Publication number
WO2020098346A1
WO2020098346A1 PCT/CN2019/104310 CN2019104310W WO2020098346A1 WO 2020098346 A1 WO2020098346 A1 WO 2020098346A1 CN 2019104310 W CN2019104310 W CN 2019104310W WO 2020098346 A1 WO2020098346 A1 WO 2020098346A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
node
scheduling
scheduled
scheduled node
Prior art date
Application number
PCT/CN2019/104310
Other languages
French (fr)
Chinese (zh)
Inventor
桂宇
Original Assignee
京东数字科技控股有限公司
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 京东数字科技控股有限公司 filed Critical 京东数字科技控股有限公司
Publication of WO2020098346A1 publication Critical patent/WO2020098346A1/en

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/50Network services
    • H04L67/55Push-based network services
    • 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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

Disclosed in the embodiments of the present application are a method and apparatus for pushing node information. A specific embodiment of the method comprises: receiving scheduling request information of a scheduling node, wherein the scheduling request information comprises scheduling node identity information of the scheduling node; and in response to determining that information matching the scheduling node identity information exists in the current configuration information, sending a predetermined set of candidate scheduled node identity information to the scheduling node. This embodiment helps to ensure system stability and data security.

Description

用于推送节点信息的方法和装置Method and device for pushing node information
本专利申请要求于2018年11月16日提交的、申请号为201811365254.8、发明名称为“用于推送节点信息的方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application requires the priority of the Chinese patent application filed on November 16, 2018 with the application number 201811365254.8 and the invention titled "Method and Device for Pushing Node Information". The entire text of this application is incorporated by reference Into this application.
技术领域Technical field
本申请实施例涉及计算机技术领域,具体涉及用于推送节点信息的方法和装置。The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for pushing node information.
背景技术Background technique
相关技术中,在节点调度应用中,可以在系统的名称信息和系统中的控制节点的一些相关参数已知的情况下,将新增的调度节点或被调度节点接入系统,并使新接入的调度节点或被调度节点可在系统下运行相应任务。In the related art, in the node scheduling application, when the name information of the system and some related parameters of the control nodes in the system are known, the newly added scheduling node or the scheduled node can be connected to the system, and the newly connected The incoming scheduling node or scheduled node can run the corresponding task under the system.
发明内容Summary of the invention
本申请实施例提出了用于推送节点信息的方法和装置。The embodiments of the present application propose a method and an apparatus for pushing node information.
第一方面,本申请实施例提供了一种用于推送节点信息的方法,该方法包括:接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息;响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。In a first aspect, an embodiment of the present application provides a method for pushing node information, the method includes: receiving scheduling request information of a scheduling node, the scheduling request information includes scheduling node identity identification information of the scheduling node; in response to determining the current configuration There is information matching the scheduling node identity information in the information, and the predetermined candidate scheduled node identity information set is sent to the scheduling node.
第二方面,本申请实施例提供了一种用于推送节点信息的装置,该装置包括:调度接收单元,被配置成接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息;信息发送单元,被配置成响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给 调度节点。In a second aspect, an embodiment of the present application provides an apparatus for pushing node information. The apparatus includes: a scheduling receiving unit configured to receive scheduling request information of a scheduling node, and the scheduling request information includes a scheduling node identity of the scheduling node Information; the information sending unit is configured to send a predetermined set of candidate scheduled node identity information to the scheduling node in response to determining that there is information in the current configuration information that matches the scheduling node identity information.
第三方面,本申请实施例提供了一种服务器,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如用于推送节点信息的方法中任一实施例的方法。In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a storage device, on which one or more programs are stored, and when one or more programs are executed by one or more processors So that one or more processors implement the method as in any embodiment of the method for pushing node information.
第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如用于推送节点信息的方法中任一实施例的方法。According to a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, where the program, when executed by a processor, implements the method of any embodiment as the method for pushing node information.
本申请实施例提供的用于推送节点信息的方法和装置,采用当前配置信息对调度节点进行安全验证,只将候选被调度节点身份标识信息集合发送给验证通过的调度节点,可以避免非法节点接入,有助于保障系统稳定和数据安全。The method and device for pushing node information provided in the embodiments of the present application use the current configuration information to perform security verification on the scheduling node, and only send the candidate scheduled node identity identification information set to the verified scheduling node to avoid illegal node access Access to help ensure system stability and data security.
附图说明BRIEF DESCRIPTION
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments made with reference to the following drawings, other features, objects, and advantages of the present application will become more apparent:
图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
图2是根据本申请的用于推送节点信息的方法的一个实施例的流程图;2 is a flowchart of an embodiment of a method for pushing node information according to the present application;
图3是根据本申请实施例的用于推送节点信息的方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of a method for pushing node information according to an embodiment of the present application;
图4是根据本申请的用于推送节点信息的方法的又一个实施例的流程图;4 is a flowchart of another embodiment of a method for pushing node information according to the present application;
图5是根据本申请的用于推送节点信息的装置的一个实施例的结构示意图;5 is a schematic structural diagram of an embodiment of an apparatus for pushing node information according to the present application;
图6是适于用来实现本申请实施例的服务器的计算机系统的结构示意图。6 is a schematic structural diagram of a computer system suitable for implementing the server of the embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be described in further detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other if there is no conflict. The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
图1示出了可以应用本申请实施例的用于推送节点信息的方法或用于推送节点信息的装置的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which a method for pushing node information or an apparatus for pushing node information according to an embodiment of the present application may be applied.
如图1所示,系统架构100可以包括控制节点101,调度节点102、103,被调度节点104、105、106、107,网络108、109、110。网络108、109、110用以在控制节点101,调度节点102、103,被调度节点104、105、106、107之间提供通信链路的介质。网络108、109、110可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include a control node 101, a scheduling node 102, 103, a scheduled node 104, 105, 106, 107, and a network 108, 109, 110. The networks 108, 109, and 110 are used as a medium for providing communication links between the control node 101, the scheduling nodes 102, 103, and the scheduled nodes 104, 105, 106, and 107. The networks 108, 109, 110 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
调度节点102、103可以通过网络108、110与控制节点101和被调度节点104、105、106、107交互,以接收信息或发送信息等。调度节点102、103可以是提供各种服务的服务器,例如,对被调度节点104、105、106、107进行调度的调度服务器。调度服务器可以在接收到控制节点101发送的候选被调度节点身份标识信息集合后,对候选被调度节点进行调度。The scheduling nodes 102, 103 may interact with the control node 101 and the scheduled nodes 104, 105, 106, 107 via the networks 108, 110 to receive information or send information, etc. The scheduling nodes 102 and 103 may be servers that provide various services, for example, a scheduling server that schedules the scheduled nodes 104, 105, 106, and 107. The scheduling server may schedule the candidate scheduled node after receiving the set of identification information of the candidate scheduled node sent by the control node 101.
被调度节点104、105、106、107可以通过网络109、110与控制节点101和调度节点102、103交互,以接收信息或发送信息等。被调度节点104、105、106、107可以是提供各种服务的服务器,例如,执行调度节点102、103分配的调度任务的被调度服务器。被调度服务器可以在接收到调度节点102、103的调度任务后,执行调度任务。The scheduled nodes 104, 105, 106, 107 may interact with the control node 101 and the scheduling nodes 102, 103 through the networks 109, 110 to receive information or send information, etc. The scheduled nodes 104, 105, 106, and 107 may be servers that provide various services, for example, scheduled servers that perform scheduling tasks assigned by the scheduling nodes 102 and 103. The scheduled server may execute the scheduled task after receiving the scheduled task of the scheduling nodes 102 and 103.
控制节点101可以通过网络108、109与调度节点102、103和被调度节点104、105、106、107交互,以接收或发送信息等。控制节点101可以是提供各种服务的服务器,例如,控制调度节点102、103调度被调度节点104、105、106、107的控制服务器。控制服务器可以在 确定当前配置信息中存在与调度节点身份标识信息相匹配的信息后,将预先确定的候选被调度节点身份标识信息集合发送给调度节点102、103。The control node 101 may interact with the scheduling nodes 102, 103 and the scheduled nodes 104, 105, 106, 107 via the networks 108, 109 to receive or send information, etc. The control node 101 may be a server that provides various services, for example, a control server that controls the scheduling nodes 102, 103 to schedule scheduled nodes 104, 105, 106, 107. After determining that there is information matching the scheduling node identity information in the current configuration information, the control server may send a predetermined set of candidate scheduled node identity information to the scheduling nodes 102 and 103.
需要说明的是,本申请实施例所提供的用于推送节点信息的方法一般由控制节点101执行,相应地,用于推送节点信息的装置一般设置于控制节点101中。需要指出的是,本申请实施例所提供的用于推送节点信息的方法不依赖于被调度节点104、105、106、107,因而,图1中可以不存在被调度节点104、105、106、107。It should be noted that the method for pushing node information provided by the embodiments of the present application is generally performed by the control node 101, and accordingly, the device for pushing node information is generally provided in the control node 101. It should be noted that the method for pushing node information provided by the embodiments of the present application does not depend on the scheduled nodes 104, 105, 106, and 107. Therefore, there may be no scheduled nodes 104, 105, 106, 107.
应该理解,图1中的控制节点、被调度节点和调度节点的数目仅仅是示意性的。根据实现需要,可以具有任意数目的控制节点、被调度节点和调度节点。It should be understood that the numbers of control nodes, scheduled nodes, and scheduling nodes in FIG. 1 are only schematic. According to the implementation needs, there can be any number of control nodes, scheduled nodes and scheduling nodes.
继续参考图2,示出了根据本申请的用于推送节点信息的方法的一个实施例的流程200。该用于推送节点信息的方法,包括以下步骤:With continued reference to FIG. 2, a flow 200 of an embodiment of a method for pushing node information according to the present application is shown. The method for pushing node information includes the following steps:
步骤201,接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息。Step 201: Receive scheduling request information of a scheduling node. The scheduling request information includes scheduling node identity identification information of the scheduling node.
在本实施例中,用于推送节点信息的方法的执行主体(例如图1所示的控制节点101)可以通过有线连接方式或者无线连接方式接收调度节点的调度请求信息。其中,上述调度请求信息可以包括但不限于调度节点的调度节点身份标识信息。其中,调度节点的调度节点身份标识信息可以是用于表征调度节点的身份的任何标识信息。例如,调度节点身份标识信息可以是用于表征调度节点的身份的数字“1”。在本实施例中,调度节点可以为向执行主体发送调度请求信息的任何节点。例如,上述调度节点可以为Presto集群中的中心调度节点(Coordinator)。In this embodiment, the execution body of the method for pushing node information (for example, the control node 101 shown in FIG. 1) may receive the scheduling request information of the scheduling node through a wired connection or a wireless connection. The foregoing scheduling request information may include, but is not limited to, scheduling node identity information of the scheduling node. The scheduling node identity identification information of the scheduling node may be any identification information used to characterize the scheduling node's identity. For example, the scheduling node identity identification information may be a number "1" used to characterize the scheduling node's identity. In this embodiment, the scheduling node may be any node that sends scheduling request information to the execution subject. For example, the above scheduling node may be a central scheduling node (Coordinator) in the Presto cluster.
可选地,调度节点的调度节点身份标识信息可以包括但不限于调度节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、互联网协议IP地址信息、端口号信息。Optionally, the scheduling node identity information of the scheduling node may include, but is not limited to, node name information of the scheduling node and user name information, Internet protocol IP address information, and port number information stored in association with the node name information.
步骤202,响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合 发送给调度节点。In step 202, in response to determining that there is information matching the scheduling node identity information in the current configuration information, a predetermined candidate scheduled node identity information set is sent to the scheduling node.
在本实施例中,上述执行主体在接收到调度节点的调度请求信息后,可以采用调度请求信息所包括的调度节点身份标识信息与当前配置信息进行比较。In this embodiment, after receiving the scheduling request information of the scheduling node, the above-mentioned executing body may use the scheduling node identity information included in the scheduling request information to compare with the current configuration information.
其中,上述当前配置信息可以为记录有接入系统(例如,Presto集群)中的各个自有节点的身份标识信息的集合。其中,自有节点的身份标识信息可以是用于表征自有节点的身份的任何标识信息。例如,自有节点的身份标识信息可以是用于表征自有节点的身份的数字“5”。Wherein, the above current configuration information may be a set of recorded identity information of each own node in the access system (for example, Presto cluster). The identity identification information of the own node may be any identification information used to characterize the identity of the own node. For example, the identity identification information of the own node may be a number "5" used to characterize the identity of the own node.
可选地,自有节点的身份标识信息可以包括但不限于:自有节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、互联网协议IP地址信息、端口号信息。需要指出的是,上述自有节点,指的是系统中的、通过管理员设置的节点。自有节点可以包括:调度节点、控制节点、被调度节点。Optionally, the identity identification information of the own node may include, but is not limited to: node name information of the own node and user name information stored in association with the node name information, Internet protocol IP address information, and port number information. It should be noted that the above-mentioned own node refers to a node set by an administrator in the system. Own nodes may include: scheduling nodes, control nodes, and scheduled nodes.
实际应用中,采用调度请求信息所包括的调度节点身份标识信息与当前配置信息进行比较时,由于,一个节点具有一个IP地址,而一个IP地址往往可以对应多个用户。因此,若当前配置信息中的某一条身份标识信息中的节点名称信息、用户名称信息、IP地址信息,分别与调度节点身份标识信息中的节点名称信息、用户名称信息、IP地址信息完全相同,则认为当前配置信息中存在与调度节点身份标识信息相匹配的信息。此时,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。In actual applications, when the scheduling node identity information included in the scheduling request information is compared with the current configuration information, a node has an IP address, and an IP address can often correspond to multiple users. Therefore, if the node name information, user name information, and IP address information in one piece of identification information in the current configuration information are respectively the same as the node name information, user name information, and IP address information in the scheduling node identity information, It is considered that there is information matching the scheduling node identity information in the current configuration information. At this time, the predetermined candidate scheduled node identity information set is sent to the scheduling node.
另外,本实施例中,上述执行主体将预先确定的候选被调度节点身份标识信息集合发送给调度节点,其目的在于,调度节点可以采用候选被调度节点身份标识信息集合中的候选被调度节点身份标识信息,找到候选被调度节点,从而将调度任务分配给所找到的候选被调度节点。In addition, in this embodiment, the above-mentioned executive agent sends the predetermined candidate scheduled node identity identification information set to the scheduling node, the purpose of which is that the scheduling node can adopt the candidate scheduled node identity in the candidate scheduled node identity identification information set Identify the information, find the candidate scheduled node, and assign the scheduling task to the found candidate scheduled node.
在本实施例的一些可选的实现方式中,上述当前配置信息可以包括授权标识信息集合,授权标识信息集合中的授权标识信息包括:授权节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、IP地址信息、端口号信息;其中,授权节点包括:调度节点,被 调度节点,控制节点。In some optional implementation manners of this embodiment, the current configuration information may include a set of authorization identification information, and the authorization identification information in the set of authorization identification information includes: node name information of an authorized node and a user stored in association with the node name information Name information, IP address information, port number information; among them, authorized nodes include: scheduling node, scheduled node, control node.
在本实施例中,上述授权节点为处于正常运行状态的自有节点。这里,当前配置信息中存储授权标识信息集合,可以实现只将候选被调度节点身份标识信息集合发送给验证通过的、处于正常运行状态的调度节点,可进一步保障系统稳定和数据安全。In this embodiment, the above-mentioned authorized node is its own node in a normal operating state. Here, the current configuration information stores the authorization identification information set, which can realize that only the candidate scheduled node identity identification information set can be sent to the verified scheduling node in the normal operation state, which can further ensure system stability and data security.
在本实施例的一些可选的实现方式中,上述当前配置信息还包括非授权IP地址信息集合;以及上述执行主体可以响应于确定非授权IP地址信息集合中存在与调度节点身份标识信息相匹配的非授权IP地址信息,发送预先设定的第一报警信息。In some optional implementations of this embodiment, the current configuration information further includes a set of unauthorized IP address information; and the above-mentioned execution subject may respond to determine that the unauthorized IP address information set matches the scheduling node identity information Unauthorized IP address information, send the first preset alarm information.
本实施例中,非授权IP地址信息可以为处于非正常运行状态的自有节点的IP地址信息。其中,处于非正常运行状态的自有节点,可以为处于升级维护过程中的自有节点。这里,若非授权IP地址信息集合中的某一条非授权IP地址信息与调度节点身份标识信息中的IP地址信息完全相同,则认为非授权IP地址信息集合中存在与调度节点身份标识信息相匹配的非授权IP地址信息。In this embodiment, the unauthorized IP address information may be the IP address information of the own node in an abnormal operation state. Among them, the own node in the abnormal operation state may be the own node in the process of upgrade and maintenance. Here, if a piece of unauthorized IP address information in the unauthorized IP address information set is exactly the same as the IP address information in the dispatch node identity identification information, it is considered that there is a match in the unauthorized IP address information set with the dispatch node identity identification information Unauthorized IP address information.
本实施例中,在当前配置信息中存储非授权IP地址信息集合,可以在发现处于非正常运行状态的自有节点试图与控制节点连接时,发出报警,以通知管理人员及时处理。这里,可以通过短信或邮件等方式通知管理人员及时处理。其中,第一报警信息可以是用于表征非正常运行状态的自有节点试图与控制节点连接的任何信息。In this embodiment, a set of unauthorized IP address information is stored in the current configuration information, and an alarm can be issued when the own node in the abnormal operating state is attempted to connect with the control node to notify the management personnel to process in time. Here, you can notify managers in a timely manner by SMS or email. Wherein, the first alarm information may be any information used to characterize that the own node trying to connect with the control node in an abnormal operating state.
在本实施例的一些可选的实现方式中,执行主体可以响应于确定当前配置信息中不存在与调度节点身份标识信息相匹配的信息,发送预先设定的第二报警信息。In some optional implementations of this embodiment, the execution body may send the preset second alarm information in response to determining that there is no information matching the scheduling node identity information in the current configuration information.
在本实施例中,若当前配置信息中不存在与调度节点身份标识信息相匹配的信息,则认为调度节点为系统自有节点之外的节点。此时,可以通过短信或邮件等方式向管理人员发送第二报警信息。其中,第二报警信息可以是用于表征系统自有节点之外的节点试图与控制节点连接的任何信息。In this embodiment, if there is no information matching the scheduling node identity information in the current configuration information, the scheduling node is considered to be a node other than the system's own node. At this time, the second alarm information can be sent to the management personnel by means of SMS or email. The second alarm information may be any information used to characterize that a node other than the system's own node attempts to connect with the control node.
本申请实施例提供的用于推送节点信息的方法,采用当前配置信息对调度节点进行安全验证,只将候选被调度节点身份标识信息集合 发送给验证通过的调度节点,可以避免非法节点(处于非正常运行状态的自有节点、系统自有节点之外的节点等)接入,可以保障系统稳定和数据安全。The method for pushing node information provided by the embodiment of the present application uses the current configuration information to perform security verification on the scheduling node, and only sends the candidate scheduled node identity identification information set to the verified scheduling node to avoid illegal nodes (in The normal operation state's own nodes, nodes other than the system's own nodes, etc.) can ensure system stability and data security.
继续参见图3,图3是根据本申请实施例的用于推送节点信息的方法的应用场景的一个示意图。其中,系统可以为Presto集群,控制节点可以为Presto集群中的服务发现节点(DiscoveryService),调度节点可以为Presto集群中的中心调度节点(Coordinator),被调度节点可以为Presto集群中的工作节点(Worker)。在图3的应用场景300中,首先,中心调度节点301向服务发现节点302发送调度请求信息。其中,调度请求信息包括中心调度节点301的中心调度节点身份标识信息A。然后,服务发现节点302接收到中心调度节点301的调度请求信息,将中心调度节点身份标识信A与当前配置信息中的信息进行逐条比对。最后,在确定当前配置信息中存在这样一条信息,它的部分或全部内容与中心调度节点身份标识信A中的部分或全部内容相同时,服务发现节点302确定当前配置信息中存在与中心调度节点身份标识信息A相匹配的信息,并将预先确定的候选工作节点身份标识信息集合发送给中心调度节点301。Continue to refer to FIG. 3, which is a schematic diagram of an application scenario of a method for pushing node information according to an embodiment of the present application. Among them, the system can be a Presto cluster, the control node can be a service discovery node (DiscoveryService) in the Presto cluster, the scheduling node can be a central scheduling node (Coordinator) in the Presto cluster, and the scheduled node can be a working node in the Presto cluster ( Worker). In the application scenario 300 of FIG. 3, first, the central scheduling node 301 sends scheduling request information to the service discovery node 302. The scheduling request information includes the central scheduling node identification information A of the central scheduling node 301. Then, the service discovery node 302 receives the scheduling request information of the central scheduling node 301, and compares the central scheduling node identity identification letter A with the information in the current configuration information one by one. Finally, when it is determined that there is a piece of information in the current configuration information whose part or all of the content is the same as part or all of the identity information A of the central scheduling node, the service discovery node 302 determines that there is a central scheduling node in the current configuration information The information matching the identity information A, and sending the predetermined set of identity information of the candidate working node to the central scheduling node 301.
本申请的上述实施例提供的用于推送节点信息的方法,采用当前配置信息对调度节点进行安全验证,只将候选被调度节点身份标识信息集合发送给验证通过的调度节点,可以避免非法节点接入,提高了系统稳定性和数据安全性。The method for pushing node information provided by the above embodiments of the present application uses the current configuration information to perform security verification on the scheduling node, and only sends the candidate scheduled node identity identification information set to the verified scheduling node to avoid illegal node access To improve system stability and data security.
进一步参考图4,其示出了用于推送节点信息的方法的又一个实施例的流程400。该用于推送节点信息的方法的流程400,包括以下步骤:With further reference to FIG. 4, it shows a flow 400 of yet another embodiment of a method for pushing node information. The process 400 of the method for pushing node information includes the following steps:
步骤401,获取存储于设定位置的配置信息;确定配置信息的加密信息;响应于确定加密信息与历史加密信息不匹配,将配置信息确定为当前配置信息,以及将加密信息确定为历史加密信息,其中,所述历史加密信息是当前配置信息的加密信息。Step 401: Obtain the configuration information stored in the set location; determine the encryption information of the configuration information; in response to determining that the encryption information does not match the historical encryption information, determine the configuration information as the current configuration information and determine the encryption information as the historical encryption information , Where the historical encrypted information is the encrypted information of the current configuration information.
在本实施例中,执行主体可以按照设定的周期,通过有限连接或是无线连接的方式,从设定位置获取配置信息。其中,上述设定位置可以是U盘,也可以是控制节点的数据存储设备,还可以是与控制节点通信连接的交互设备的缓存。上述设定的周期可以是一秒钟也可以是一分钟,这里不做限定。In this embodiment, the execution subject may acquire the configuration information from the set location through a limited connection or a wireless connection according to the set period. Wherein, the above setting location may be a U disk, or a data storage device of the control node, or a cache of an interactive device communicatively connected to the control node. The period set above may be one second or one minute, which is not limited here.
这里,执行主体在获取到配置信息后,可以对所获取的配置信息执行如下步骤:Here, after acquiring the configuration information, the executive body may perform the following steps on the acquired configuration information:
第一步,确定配置信息的加密信息。在本实施例中,执行主体可以采用多种方式确定所获取的配置信息的加密信息,例如,可以采用信息摘要算法(Message-Digest Algorithm)计算配置信息的MD5值,还可以采用其他算法计算配置信息的其他加密值。这里不做限定。The first step is to determine the encrypted information of the configuration information. In this embodiment, the executive body can determine the encrypted information of the obtained configuration information in various ways. For example, the message digest algorithm (Message-Digest Algorithm) can be used to calculate the MD5 value of the configuration information, and other algorithms can also be used to calculate the configuration. Other encrypted values of information. There is no limit here.
第二步,响应于确定加密信息与历史加密信息不匹配,将配置信息确定为当前配置信息,以及将加密信息确定为历史加密信息。在本实施例中,执行主体可以将所获取的配置信息的加密信息与已经存储的历史加密信息进行比较。其中,若加密信息与历史加密信息相同,则可以认为加密信息与历史加密信息是匹配的,此时可以不做处理。若加密信息与历史加密信息不相同,则可以认为加密信息与历史加密信息不匹配,即,所获取的配置信息与当前配置信息相比,存在变化。此时,可以将所获取的配置信息作为当前配置信息。另外,将所获取的配置信息的加密信息作为历史加密信息并存储。In the second step, in response to determining that the encrypted information does not match the historical encrypted information, the configuration information is determined as the current configuration information, and the encrypted information is determined as the historical encrypted information. In this embodiment, the execution subject may compare the encrypted information of the acquired configuration information with the historical encrypted information that has been stored. Among them, if the encrypted information is the same as the historical encrypted information, it can be considered that the encrypted information and the historical encrypted information match, and no processing is required at this time. If the encrypted information is different from the historical encrypted information, it can be considered that the encrypted information does not match the historical encrypted information, that is, the acquired configuration information is changed from the current configuration information. At this time, the acquired configuration information may be used as the current configuration information. In addition, the encrypted information of the acquired configuration information is stored as historical encrypted information.
步骤402,接收被调度节点的注册请求信息,注册请求信息包括被调度节点的被调度节点身份标识信息。Step 402: Receive registration request information of the scheduled node. The registration request information includes identity information of the scheduled node of the scheduled node.
在本实施例中,执行主体可以通过有限连接或是无线连接的方式,接收被调度节点的注册请求信息。其中,注册请求信息可以包括但不限于被调度节点的被调度节点身份标识信息。其中,被调度节点的被调度节点身份标识信息可以是用于表征被调度节点的身份的任何标识信息。例如,被调度节点身份标识信息可以是用于表征被调度节点的身份的数字“2”。In this embodiment, the executive body may receive the registration request information of the scheduled node through a limited connection or a wireless connection. Wherein, the registration request information may include but is not limited to the scheduled node identity information of the scheduled node. The identity identification information of the scheduled node may be any identification information used to characterize the identity of the scheduled node. For example, the scheduled node identity identification information may be a number "2" used to characterize the scheduled node's identity.
可选地,被调度节点的被调度节点身份标识信息可以包括但不限于被调度节点的节点名称信息以及与节点名称信息关联存储的用户名 称信息、互联网协议IP地址信息、端口号信息。Optionally, the scheduled node identity information of the scheduled node may include, but is not limited to, node name information of the scheduled node and user name information, Internet protocol IP address information, and port number information stored in association with the node name information.
步骤403,响应于确定当前配置信息中存在与被调度节点身份标识信息相匹配的信息,将被调度节点确定为注册被调度节点。In step 403, in response to determining that there is information matching the identity information of the scheduled node in the current configuration information, the scheduled node is determined to be the registered scheduled node.
在本实施例中,上述执行主体在接收到被调度节点的注册请求信息后,可以采用注册请求信息所包括的被调度节点身份标识信息与当前配置信息进行比较。在当前配置信息中存在一条信息,它的部分或全部内容与被调度节点身份标识信息相同时,可以认为,当前配置信息中存在与被调度节点身份标识信息相匹配的信息。此时,执行主体将被调度节点确定为注册被调度节点,从而与该被调度节点建立有效通信连接。In this embodiment, after receiving the registration request information of the scheduled node, the execution subject may use the identity information of the scheduled node included in the registration request information to compare with the current configuration information. If there is a piece of information in the current configuration information, and part or all of its content is the same as the identity identification information of the scheduled node, it can be considered that there is information matching the identity identification information of the scheduled node in the current configuration information. At this time, the execution subject determines the scheduled node as a registered scheduled node, thereby establishing an effective communication connection with the scheduled node.
步骤404,确定候选被调度节点身份标识信息集合。In step 404, the candidate scheduled node identification information set is determined.
在本实施例中,可以采用多种方式确定候选被调度节点身份标识信息集合。例如,执行主体可以选取指定的注册被调度节点作为候选被调度节点,以及将所选取的注册被调度节点的身份标识信息存入候选被调度节点身份标识信息集合,从而得到候选被调度节点身份标识信息集合。再例如,执行主体还可以任意选取设定数目个注册被调度节点作为候选被调度节点,以及将所选取的注册被调度节点的身份标识信息存入候选被调度节点身份标识信息集合,从而得到候选被调度节点身份标识信息集合。In this embodiment, the identification information set of candidate scheduled nodes may be determined in various ways. For example, the execution subject may select the designated registered scheduled node as the candidate scheduled node, and store the identity identification information of the selected registered scheduled node in the candidate scheduled node identity identification information set, thereby obtaining the candidate scheduled node identity identification Information collection. For another example, the execution subject may also arbitrarily select a set number of registered scheduled nodes as candidate scheduled nodes, and store the identity information of the selected registered scheduled node in the candidate scheduled node identity information set to obtain a candidate The set of identity information of the scheduled node.
在本实施例的一些可选的实现方式中,上述执行主体还可以通过如下步骤得到候选被调度节点身份标识信息集合:In some optional implementations of this embodiment, the above-mentioned execution subject may also obtain the candidate scheduled node identity identification information set by the following steps:
第一步,接收注册被调度节点发送的状态信息。The first step is to receive the status information sent by the registered scheduled node.
在本实施例中,执行主体可以通过有线连接方式或是无线连接方式接收到注册被调度节点发送的状态信息。其中,上述状态信息可以是用于表征注册被调度节点的工作状态任意信息。例如,状态信息可以为字母“Y”,用于表征注册被调度节点的工作状态为正常运行。再例如,状态信息可以为字母“N”,用于表征注册被调度节点的工作状态为异常运行。In this embodiment, the executive body may receive the status information sent by the registered scheduled node through a wired connection or a wireless connection. The above state information may be any information used to characterize the working state of the registered scheduled node. For example, the status information may be the letter "Y", which is used to indicate that the working status of the registered scheduled node is normal operation. For another example, the status information may be the letter "N", which is used to indicate that the working status of the registered scheduled node is abnormal operation.
第二步,响应于确定状态信息与预先存储的状态信息相匹配,将注册被调度节点确定为候选被调度节点,以及将注册被调度节点的身 份标识信息作为候选被调度节点身份标识信息存入候选被调度节点身份标识信息集合。In the second step, in response to determining that the state information matches the pre-stored state information, the registered scheduled node is determined as a candidate scheduled node, and the identity information of the registered scheduled node is stored as the candidate scheduled node identity information Candidate scheduled node identity information set.
在本实施例中,若注册被调度节点的状态信息与预先存储的状态信息相同,此时,执行主体将注册被调度节点确定为候选被调度节点,以及将注册被调度节点的身份标识信息作为候选被调度节点身份标识信息存入候选被调度节点身份标识信息集合。In this embodiment, if the status information of the registered scheduled node is the same as the pre-stored status information, at this time, the executive body determines the registered scheduled node as a candidate scheduled node, and uses the identity identification information of the registered scheduled node as The candidate scheduled node identity identification information is stored in the candidate scheduled node identity identification information set.
第三步,响应于确定状态信息与预先存储的状态信息不匹配,查找候选被调度节点身份标识信息集合中的与注册被调度节点对应的候选被调度节点身份标识信息,将所查找到的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除。In the third step, in response to determining that the state information does not match the pre-stored state information, the candidate scheduled node identity identification information corresponding to the registered scheduled node in the candidate scheduled node identity identification information set is searched for the found candidate The scheduled node identity information is removed from the candidate scheduled node identity information set.
在本实施例中,若注册被调度节点与预先存储的状态信息相同,此时,执行主体可以查找候选被调度节点身份标识信息集合中是否存在与注册被调度节点对应的候选被调度节点身份标识信息,若查找到,则将所查找到的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除。这里,将处于异常运行状态的注册被调度节点对应的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除,目的在于保证只将处于正常运行状态的注册被调度节点的身份标识信息推送给调度节点,可以进一步提高系统稳定性和数据安全性。In this embodiment, if the registered scheduled node is the same as the pre-stored state information, at this time, the execution subject may find whether the candidate scheduled node identity corresponding to the registered scheduled node exists in the candidate scheduled node identity information set If the information is found, the found candidate scheduled node identity information is removed from the candidate scheduled node identity information set. Here, the identity information of the candidate scheduled node corresponding to the registered scheduled node in the abnormal operating state is removed from the candidate scheduled node identity identification information set, the purpose is to ensure that only the identity of the registered scheduled node in the normal operating state Pushing the identification information to the scheduling node can further improve the system stability and data security.
步骤405,接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息。Step 405: Receive scheduling request information of the scheduling node. The scheduling request information includes scheduling node identity identification information of the scheduling node.
步骤406,响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。Step 406: In response to determining that there is information matching the scheduling node identity information in the current configuration information, send a predetermined set of candidate scheduled node identity information to the scheduling node.
在本实施例中,步骤405-406的具体操作与图2所示的实施例中步骤201-202的操作基本相同,在此不做赘述。In this embodiment, the specific operations of steps 405-406 are basically the same as the operations of steps 201-202 in the embodiment shown in FIG. 2, which will not be repeated here.
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于推送节点信息的方法的流程400体现了对当前配置信息进行更新的步骤,对被调度节点进行注册的步骤,以及对候选被调度节点身份标识信息集合进行确定的步骤。由此,本实施例描述的方案可以及时调 整当前配置信息和候选被调度节点身份标识信息集合,可以提高系统运行效率,以及进一步提高系统稳定性和数据安全性。As can be seen from FIG. 4, compared with the embodiment corresponding to FIG. 2, the process 400 of the method for pushing node information in this embodiment embodies the steps of updating the current configuration information and registering the scheduled node And the step of determining the identity information of the candidate scheduled node. Therefore, the solution described in this embodiment can timely adjust the current configuration information and the set of candidate node identification information, which can improve the system operating efficiency, and further improve the system stability and data security.
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于推送节点信息的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种服务器中。With further reference to FIG. 5, as an implementation of the method shown in the above figures, this application provides an embodiment of an apparatus for pushing node information, which corresponds to the method embodiment shown in FIG. 2, The device can be specifically applied to various servers.
如图5所示,本实施例的用于推送节点信息的装置500包括:调度接收单元501,被配置成接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息;信息发送单元502,被配置成响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。As shown in FIG. 5, the apparatus 500 for pushing node information in this embodiment includes: a scheduling receiving unit 501 configured to receive scheduling request information of the scheduling node. The scheduling request information includes scheduling node identity identification information of the scheduling node; information The sending unit 502 is configured to send a predetermined set of candidate scheduled node identity information to the scheduling node in response to determining that there is information matching the scheduling node identity information in the current configuration information.
在本实施例的一些可选的实现方式中,上述装置还可以包括信息确定单元(图中未示出)。其中,信息确定单元可以被配置成获取存储于设定位置的配置信息;确定配置信息的加密信息;响应于确定加密信息与历史加密信息不匹配,将配置信息确定为当前配置信息,以及将加密信息确定为历史加密信息,其中,所述历史加密信息是当前配置信息的加密信息。In some optional implementations of this embodiment, the foregoing device may further include an information determination unit (not shown in the figure). Among them, the information determination unit may be configured to acquire the configuration information stored at the set location; determine the encryption information of the configuration information; in response to determining that the encryption information does not match the historical encryption information, determine the configuration information as the current configuration information, and encrypt The information is determined to be historical encrypted information, where the historical encrypted information is encrypted information of the current configuration information.
在本实施例的一些可选的实现方式中,上述装置还可以包括注册接收单元和注册确定单元(图中未示出)。其中,注册接收单元,可以被配置成接收被调度节点的注册请求信息,注册请求信息包括被调度节点的被调度节点身份标识信息。注册确定单元,可以被配置成响应于确定当前配置信息中存在与被调度节点身份标识信息相匹配的信息,将被调度节点确定为注册被调度节点。In some optional implementations of this embodiment, the foregoing device may further include a registration receiving unit and a registration determining unit (not shown in the figure). Wherein, the registration receiving unit may be configured to receive registration request information of the scheduled node, and the registration request information includes scheduled node identity identification information of the scheduled node. The registration determination unit may be configured to determine the scheduled node as the registered scheduled node in response to determining that there is information in the current configuration information that matches the identity information of the scheduled node.
在本实施例的一些可选的实现方式中,候选被调度节点身份标识信息集合可以通过如下步骤确定:接收注册被调度节点发送的状态信息;响应于确定状态信息与预先存储的状态信息相匹配,将注册被调度节点确定为候选被调度节点,以及将注册被调度节点的身份标识信息作为候选被调度节点身份标识信息存入候选被调度节点身份标识信息集合;响应于确定状态信息与预先存储的状态信息不匹配,查找候 选被调度节点身份标识信息集合中的与注册被调度节点对应的候选被调度节点身份标识信息,将所查找到的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除。In some optional implementations of this embodiment, the candidate scheduled node identity information set may be determined by the following steps: receiving status information sent by the registered scheduled node; in response to determining that the status information matches the pre-stored status information , The registered scheduled node is determined as a candidate scheduled node, and the identity identification information of the registered scheduled node is stored as the candidate scheduled node identity identification information in the candidate scheduled node identity identification information set; Status information does not match, find the candidate scheduled node identity information corresponding to the registered scheduled node in the set of candidate scheduled node identity information, and search the candidate scheduled node identity information from the candidate scheduled node identity Removed from the identification information set.
在本实施例的一些可选的实现方式中,当前配置信息可以包括授权标识信息集合,授权标识信息集合中的授权标识信息包括:授权节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、互联网协议IP地址信息、端口号信息;其中,授权节点包括:调度节点,被调度节点,控制节点。In some optional implementations of this embodiment, the current configuration information may include a set of authorized identification information, and the authorized identification information in the set of authorized identification information includes: node name information of the authorized node and the user name stored in association with the node name information Information, Internet protocol IP address information, port number information; where the authorized node includes: scheduling node, scheduled node, control node.
本申请的上述实施例提供的装置,调度接收单元501接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息。而后,信息发送单元502响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。本实施例的装置,采用当前配置信息对调度节点进行安全验证,只将候选被调度节点身份标识信息集合发送给验证通过的调度节点,可以避免非法节点接入,有助于保障系统稳定和数据安全。In the apparatus provided in the above embodiment of the present application, the scheduling receiving unit 501 receives scheduling request information of the scheduling node, and the scheduling request information includes scheduling node identity identification information of the scheduling node. Then, in response to determining that there is information matching the scheduling node identity information in the current configuration information, the information sending unit 502 sends the predetermined candidate scheduled node identity information set to the scheduling node. The device of this embodiment uses the current configuration information to perform security verification on the scheduling node, and only sends the candidate scheduled node identity identification information set to the verified scheduling node, which can avoid illegal node access and help ensure system stability and data Safety.
下面参考图6,其示出了适于用来实现本申请实施例的服务器的计算机系统600的结构示意图。图6示出的服务器仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。6, which shows a schematic structural diagram of a computer system 600 suitable for implementing the server of the embodiment of the present application. The server shown in FIG. 6 is only an example, and should not bring any limitation to the functions and usage scope of the embodiments of the present application.
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a random access memory (RAM) 603 from a program stored in a read-only memory (ROM) 602 or from a storage section 608 Instead, perform various appropriate actions and processing. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如 因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc .; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 608 including a hard disk, etc. ; And a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. The driver 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed on the drive 610 as necessary, so that the computer program read out therefrom is installed into the storage section 608 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the method of the present application are executed. It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In this application, the computer-readable signal medium may include a data signal that is propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. . The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and a combination of blocks in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation Or, it can be realized by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括调度接收单元和信息发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,调度接收单元还可以被描述为“接收调度节点的调度请求信息的单元”。The units described in the embodiments of the present application may be implemented in software or hardware. The described unit may also be provided in the processor. For example, it may be described as: a processor includes a scheduling receiving unit and an information sending unit. In some cases, the names of these units do not constitute a limitation on the unit itself. For example, the scheduling receiving unit may also be described as "a unit that receives scheduling request information of a scheduling node."
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收调度节点的调度请求信息,调度请求信息包括调度节点的调度节点身份标识信息;响应于确定当前配置信息中存在与调度节点身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给调度节点。As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the foregoing embodiments; or may exist alone without being assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device is caused to: receive scheduling request information of the scheduling node, and the scheduling request information includes scheduling node identity identification information of the scheduling node ; In response to determining that there is information matching the scheduling node identity information in the current configuration information, sending a predetermined set of candidate scheduled node identity information to the scheduling node.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合 而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only the preferred embodiment of the present application and the explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, but should also cover the above technical features or without departing from the above inventive concept Other technical solutions formed by arbitrary combinations of equivalent features. For example, a technical solution formed by replacing the above features with technical features disclosed in this application (but not limited to) but having similar functions.

Claims (12)

  1. 一种用于推送节点信息的方法,包括:A method for pushing node information, including:
    接收调度节点的调度请求信息,所述调度请求信息包括所述调度节点的调度节点身份标识信息;以及Receiving scheduling request information of a scheduling node, the scheduling request information including scheduling node identity identification information of the scheduling node; and
    响应于确定当前配置信息中存在与所述调度节点的所述身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给所述调度节点。In response to determining that there is information in the current configuration information that matches the identity information of the scheduling node, a predetermined set of identity information of the candidate scheduled node is sent to the scheduling node.
  2. 根据权利要求1所述的方法,其中,在所述接收调度节点的调度请求信息之前,所述方法还包括:The method of claim 1, wherein before the receiving scheduling request information of the scheduling node, the method further comprises:
    获取存储于设定位置的配置信息;Obtain the configuration information stored in the set location;
    确定所述配置信息的加密信息;以及Determine the encrypted information of the configuration information; and
    响应于确定所述加密信息与历史加密信息不匹配,将所述配置信息确定为当前配置信息,以及将所述加密信息确定为历史加密信息,其中,所述历史加密信息是当前配置信息的加密信息。In response to determining that the encrypted information does not match the historical encrypted information, the configuration information is determined as the current configuration information, and the encrypted information is determined as the historical encryption information, where the historical encrypted information is the encryption of the current configuration information information.
  3. 根据权利要求1所述的方法,其中,在所述接收调度节点的调度请求信息之前,所述方法还包括:The method of claim 1, wherein before the receiving scheduling request information of the scheduling node, the method further comprises:
    接收被调度节点的注册请求信息,所述注册请求信息包括所述被调度节点的被调度节点身份标识信息;以及Receiving registration request information of the scheduled node, the registration request information including identity information of the scheduled node of the scheduled node; and
    响应于确定当前配置信息中存在与所述被调度节点身份标识信息相匹配的信息,将所述被调度节点确定为注册被调度节点。In response to determining that there is information in the current configuration information that matches the identity information of the scheduled node, the scheduled node is determined to be the registered scheduled node.
  4. 根据权利要求3所述的方法,其中,所述候选被调度节点身份标识信息集合通过如下步骤确定:The method according to claim 3, wherein the candidate scheduled node identity identification information set is determined by the following steps:
    接收所述注册被调度节点发送的状态信息;Receiving status information sent by the registered scheduled node;
    响应于确定所述状态信息与预先存储的状态信息相匹配,将所述注册被调度节点确定为候选被调度节点,以及将所述注册被调度节点的身份标识信息作为候选被调度节点身份标识信息存入候选被调度节 点身份标识信息集合;以及In response to determining that the state information matches the pre-stored state information, determining the registered scheduled node as a candidate scheduled node, and using the identification information of the registered scheduled node as the candidate scheduled node identification information Deposit the set of candidate identification information of the scheduled node; and
    响应于确定所述状态信息与预先存储的状态信息不匹配,查找候选被调度节点身份标识信息集合中的与所述注册被调度节点对应的候选被调度节点身份标识信息,将所查找到的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除。In response to determining that the status information does not match the pre-stored status information, searching for candidate scheduled node identity identification information corresponding to the registered scheduled node in the candidate scheduled node identity identification information set, and searching for the found candidate The scheduled node identity information is removed from the candidate scheduled node identity information set.
  5. 根据权利要求1-4之一所述的方法,其中,所述当前配置信息包括授权标识信息集合,所述授权标识信息集合中的授权标识信息包括:The method according to any one of claims 1 to 4, wherein the current configuration information includes an authorization identification information set, and the authorization identification information in the authorization identification information set includes:
    授权节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、互联网协议IP地址信息、端口号信息;其中,所述授权节点包括:调度节点,被调度节点,控制节点。The node name information of the authorized node and the user name information, Internet protocol IP address information, and port number information stored in association with the node name information; wherein, the authorized node includes: a scheduling node, a scheduled node, and a control node.
  6. 一种用于推送节点信息的装置,其中,包括:An apparatus for pushing node information, including:
    调度接收单元,被配置成接收调度节点的调度请求信息,所述调度请求信息包括所述调度节点的调度节点身份标识信息;以及A scheduling receiving unit configured to receive scheduling request information of the scheduling node, the scheduling request information including scheduling node identity identification information of the scheduling node; and
    信息发送单元,被配置成响应于确定当前配置信息中存在与所述调度节点的所述身份标识信息相匹配的信息,将预先确定的候选被调度节点身份标识信息集合发送给所述调度节点。The information sending unit is configured to, in response to determining that there is information in the current configuration information that matches the identity information of the scheduling node, send a predetermined set of identity information of the candidate scheduled node to the scheduling node.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    信息确定单元,被配置成获取存储于设定位置的配置信息;确定所述配置信息的加密信息;以及响应于确定所述加密信息与历史加密信息不匹配,将所述配置信息确定为当前配置信息,以及将所述加密信息确定为加密信息,其中,所述历史加密信息是当前配置信息的加密信息。The information determining unit is configured to acquire the configuration information stored at the set location; determine the encryption information of the configuration information; and in response to determining that the encryption information does not match the historical encryption information, determine the configuration information as the current configuration Information, and determining the encrypted information as encrypted information, wherein the historical encrypted information is the encrypted information of the current configuration information.
  8. 根据权利要求6所述的装置,其中,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    注册接收单元,被配置成接收被调度节点的注册请求信息,所述注册请求信息包括所述被调度节点的被调度节点身份标识信息;以及A registration receiving unit configured to receive registration request information of the scheduled node, the registration request information including identity information of the scheduled node of the scheduled node; and
    注册确定单元,被配置成响应于确定当前配置信息中存在与所述被调度节点身份标识信息相匹配的信息,将所述被调度节点确定为注册被调度节点。The registration determining unit is configured to determine that the scheduled node is a registered scheduled node in response to determining that there is information in the current configuration information that matches the identity information of the scheduled node.
  9. 根据权利要求8所述的装置,其中,所述候选被调度节点身份标识信息集合通过如下步骤确定:The apparatus according to claim 8, wherein the candidate scheduled node identity identification information set is determined by the following steps:
    接收所述注册被调度节点发送的状态信息;Receiving status information sent by the registered scheduled node;
    响应于确定所述状态信息与预先存储的状态信息相匹配,将所述注册被调度节点确定为候选被调度节点,以及将所述注册被调度节点的身份标识信息作为候选被调度节点身份标识信息存入候选被调度节点身份标识信息集合;以及In response to determining that the state information matches the pre-stored state information, determining the registered scheduled node as a candidate scheduled node, and using the identification information of the registered scheduled node as the candidate scheduled node identification information Deposit the set of candidate identification information of the scheduled node; and
    响应于确定所述状态信息与预先存储的状态信息不匹配,查找候选被调度节点身份标识信息集合中的与所述注册被调度节点对应的候选被调度节点身份标识信息,将所查找到的候选被调度节点身份标识信息从候选被调度节点身份标识信息集合中移除。In response to determining that the status information does not match the pre-stored status information, searching for candidate scheduled node identity identification information corresponding to the registered scheduled node in the candidate scheduled node identity identification information set, and searching for the found candidate The scheduled node identity information is removed from the candidate scheduled node identity information set.
  10. 根据权利要求6所述的装置,其中,所述当前配置信息包括授权标识信息集合,所述授权标识信息集合中的授权标识信息包括:The apparatus according to claim 6, wherein the current configuration information includes a set of authorization identification information, and the authorization identification information in the set of authorization identification information includes:
    授权节点的节点名称信息以及与节点名称信息关联存储的用户名称信息、互联网协议IP地址信息、端口号信息;其中,所述授权节点包括:调度节点,被调度节点,控制节点。The node name information of the authorized node and the user name information, Internet protocol IP address information, and port number information stored in association with the node name information; wherein the authorized node includes: a scheduling node, a scheduled node, and a control node.
  11. 一种服务器,包括:A server, including:
    一个或多个处理器;One or more processors;
    存储装置,其上存储有一个或多个程序,A storage device on which one or more programs are stored,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-5.
  12. 一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-5中任一所述的方法。A computer readable medium on which a computer program is stored, wherein the program is executed by a processor to implement the method according to any one of claims 1-5.
PCT/CN2019/104310 2018-11-16 2019-09-04 Method and apparatus for pushing node information WO2020098346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811365254.8 2018-11-16
CN201811365254.8A CN109218452B (en) 2018-11-16 2018-11-16 Method and device for pushing node information

Publications (1)

Publication Number Publication Date
WO2020098346A1 true WO2020098346A1 (en) 2020-05-22

Family

ID=64994292

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/104310 WO2020098346A1 (en) 2018-11-16 2019-09-04 Method and apparatus for pushing node information

Country Status (2)

Country Link
CN (1) CN109218452B (en)
WO (1) WO2020098346A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218452B (en) * 2018-11-16 2020-11-24 京东数字科技控股有限公司 Method and device for pushing node information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561049A (en) * 2013-09-05 2014-02-05 乐视网信息技术(北京)股份有限公司 Method for processing terminal scheduling request, system thereof and device thereof
CN105978938A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 Service processing equipment service status determining method and scheduling equipment
US20160323188A1 (en) * 2015-04-30 2016-11-03 Amazon Technologies, Inc. Managing state for updates to load balancers of an auto scaling group
CN107885594A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Distributed resource scheduling method, scheduling node and access node
CN109218452A (en) * 2018-11-16 2019-01-15 北京京东金融科技控股有限公司 Method and apparatus for pushing nodal information

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014026B (en) * 2006-12-18 2010-05-19 联创科技(南京)有限公司 Method for implementing general soft gateway of dynamic self-adaptive Radius system
CN103107948B (en) * 2011-11-15 2016-02-03 阿里巴巴集团控股有限公司 A kind of flow control methods and device
KR101616220B1 (en) * 2011-12-23 2016-05-11 블랙베리 리미티드 A method implemented in an enodeb base station
CN103188750B (en) * 2011-12-30 2017-04-12 华为技术有限公司 Switching method, node and system
CN105247826B (en) * 2013-01-11 2018-07-13 华为技术有限公司 The network function of the network equipment virtualizes
CN105701155B (en) * 2015-12-30 2019-05-31 百度在线网络技术(北京)有限公司 Information-pushing method and device
CN106130816B (en) * 2016-06-24 2018-12-28 腾讯科技(深圳)有限公司 A kind of content distributing network monitoring method, monitoring server and system
CN108540831B (en) * 2018-04-19 2019-10-22 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561049A (en) * 2013-09-05 2014-02-05 乐视网信息技术(北京)股份有限公司 Method for processing terminal scheduling request, system thereof and device thereof
US20160323188A1 (en) * 2015-04-30 2016-11-03 Amazon Technologies, Inc. Managing state for updates to load balancers of an auto scaling group
CN105978938A (en) * 2016-04-25 2016-09-28 乐视控股(北京)有限公司 Service processing equipment service status determining method and scheduling equipment
CN107885594A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Distributed resource scheduling method, scheduling node and access node
CN109218452A (en) * 2018-11-16 2019-01-15 北京京东金融科技控股有限公司 Method and apparatus for pushing nodal information

Also Published As

Publication number Publication date
CN109218452A (en) 2019-01-15
CN109218452B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN101258505B (en) Secure software updates
CN106533669B (en) The methods, devices and systems of equipment identification
US10735426B2 (en) Secure asynchronous retrieval of data behind a firewall
US10454910B2 (en) Management apparatus, computer program product, system, device, method, information processing apparatus, and server
US9509672B1 (en) Providing seamless and automatic access to shared accounts
US10637805B2 (en) Instant messaging method, server, and storage medium
JP2009277081A (en) Computer system for managing password for detecting information about component arranged on network, its method, and computer program
US20170099144A1 (en) Embedded encryption platform comprising an algorithmically flexible multiple parameter encryption system
CN112507325B (en) Method, device, equipment and storage medium for managing equipment access authority
CN108289074B (en) User account login method and device
US9515877B1 (en) Systems and methods for enrolling and configuring agents
CN111814131B (en) Method and device for equipment registration and configuration management
CN111200593A (en) Application login method and device and electronic equipment
US20160323266A1 (en) Method, management apparatus and device for certificate-based authentication of communication partners in a device
US20230262045A1 (en) Secure management of a robotic process automation environment
WO2020098346A1 (en) Method and apparatus for pushing node information
CN109495468A (en) Authentication method, device, electronic equipment and storage medium
US11777742B2 (en) Network device authentication
CN111737747A (en) Database security method, device, equipment and computer storage medium
US11818574B2 (en) Provisioning devices securely using zero touch deployments
CN113987475A (en) Distributed resource management system, distributed resource management method, credential information management system, and medium
CN109657481B (en) Data management method and device
US10530812B2 (en) Methods and apparatuses for providing configurable security models
CN113626873B (en) Authentication method, device, electronic equipment and computer readable medium
US11463481B2 (en) System and method for certificate-less security management of interconnected hybrid resources

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19883946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19883946

Country of ref document: EP

Kind code of ref document: A1