WO2019100596A1 - Method and system for operating distributed system - Google Patents

Method and system for operating distributed system Download PDF

Info

Publication number
WO2019100596A1
WO2019100596A1 PCT/CN2018/075499 CN2018075499W WO2019100596A1 WO 2019100596 A1 WO2019100596 A1 WO 2019100596A1 CN 2018075499 W CN2018075499 W CN 2018075499W WO 2019100596 A1 WO2019100596 A1 WO 2019100596A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
component
request
result
component operation
Prior art date
Application number
PCT/CN2018/075499
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 WO2019100596A1 publication Critical patent/WO2019100596A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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

Definitions

  • the application relates to a distributed system operation method and system.
  • a distributed system is a software system built on top of a network. Because of the nature of software, distributed systems are highly cohesive and transparent. In a blockchain or a distributed system based on the PaxOS algorithm protocol, multiple nodes participate in data processing, and a consensus is reached based on the processing strategy and accepted by the system as a whole.
  • a distributed system operation method includes:
  • the current component operation server receives the component operation request forwarded by the forwarding server according to the component type
  • the current component operation server operates on the current component in the distributed system according to the component operation request to obtain a first component operation result
  • the current component operation server returns the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result to the system client.
  • a distributed system operating system including a forwarding server and a current component operation server;
  • the forwarding server is configured to forward the received component operation request to the current component operation server according to the component type
  • the current component operation server is configured to operate the current component in the distributed system according to the component operation request to obtain a first component operation result; and return the first component operation result to the forwarding server, so as to The forwarding server sends the first component operation result.
  • FIG. 1 is an application scenario diagram of a distributed system operation method in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a method of operating a distributed system in accordance with one or more embodiments.
  • FIG. 3 is a schematic diagram of component association in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram of a transaction request processing step in accordance with one or more embodiments.
  • 5 is a flow diagram of transaction request processing steps and component operation request processing steps in accordance with one or more embodiments.
  • FIG. 1 is a schematic diagram of an application scenario of a distributed system operation method according to an embodiment.
  • FIG. 1 shows a system client, a forwarding server, a plurality of component servers corresponding to component types, a request response server, and a request server. .
  • the system client can receive the component operation request sent by the administrator terminal by means of the message, and can also receive the transaction request by means of the message.
  • receives the component operation request sent by the administrator terminal it first needs to determine whether the user who sends the component operation request has the administrator authority. Only after having the administrator authority, the system client sends the component operation request to Forward the server.
  • the system client receives the transaction request, it forwards the transaction request to the request response server, so that the request response server forwards the transaction request to the request server for processing.
  • the component operation request and the transaction request are processed by encryption and signing, and after the system finishes processing the request, the system client takes the result of the component operation and the result of the request processing. The user sent to the system client separately.
  • the forwarding server is configured to receive the component operation request, verify the login of the administrator user, check and decrypt the packet, and distribute the component operation request to the corresponding component operation server according to the component type. After the component operation server completes the operation of the corresponding component, the corresponding operation result is forwarded to the system client.
  • component operation servers include channel operation servers, node operation servers, organization operation servers, user operation servers, and sort server operation servers.
  • Different component operation servers operate the components according to the component operation requests, and feed back the operation results to the forwarding server.
  • the channel in the distributed system is used to receive the transaction request sent by the requesting server, and send the transaction request to all the nodes in the channel, and the node processes the transaction request to obtain the preliminary transaction result, and returns the preliminary transaction result to the channel.
  • the channel obtains the target transaction result according to the preliminary transaction result and sends it to the sorting server.
  • the sorting server sorts and stores the target transaction result in chronological order, and the node can obtain the corresponding target transaction result from the sorting server, wherein the user can be in the organization.
  • the organization assigns a node to the registered user, that is, establishes a mapping relationship between the user and the node, and the node is assigned to a different channel according to the transaction type.
  • the request response server receives the transaction request sent by the system client, decrypts and checks the request message, ensures the validity of the message, and requests the server to assign a unique transaction identifier to each transaction request, for example, may be a transaction. ID number, etc., and receive the target transaction result returned by the transaction server, establish a mapping relationship between the transaction identifier and the target transaction result.
  • the trading server selects the appropriate channel based on the type of the transaction request, and then sends the transaction request to all available trading nodes in the channel through the channel, so that the trading node can process the transaction request to obtain the preliminary transaction result, and the preliminary transaction result Feedback to the channel, the channel calculates the target transaction result based on the obtained preliminary transaction result, and feeds back to the transaction server, which is returned by the transaction server to the transaction response server, and is fed back to the system client by the transaction response server.
  • the transaction server can also receive the component operation result of the forwarding server or the channel operation server or other component operation server in the process of processing the transaction, and then adjust the processing manner of the current transaction request according to the component operation result.
  • the servers and the like involved above may exist in the form of a server cluster to prevent a single point of failure from causing a system failure or the like.
  • a distributed system operation method is provided. This embodiment is exemplified by applying the method to the component operation server in FIG. 1 described above.
  • the component operation server runs a distributed system operation readable instruction through which the distributed system operation method is implemented by operating the readable instructions.
  • the method specifically includes the following steps:
  • the current component operation server receives the component operation request forwarded by the forwarding server according to the component type.
  • the component operation request may be sent to the forwarding server, and after receiving the component operation request, the forwarding server may first verify whether the user who sends the component operation request has Administrator authority, if there is no administrator authority, return the result of the operation failure; if there is administrator authority, the component operation request is checked and decrypted to obtain the plaintext of the component operation request, and the forwarding server is represented according to the plaintext
  • the component type forwards the component operation request to the corresponding current component operations server.
  • the component types of the distributed system include channels, nodes, organizations, users, and sorting servers. Users are registered in the organization. The organization associates users with corresponding trading nodes, and assigns trading nodes to different channels according to transaction types. Each channel is configured with a corresponding sorting server or sorting server cluster. The forwarding server forwards the component operation request to the corresponding component operation server according to the component type indicated in the plaintext, so that the component operation server performs operation processing on the corresponding component.
  • the current component operation server operates on the current component in the distributed system according to the component operation request to obtain the first component operation result.
  • the operations on the current component include at least one of new addition of components, exit of components, suspension of components, recovery of components, query of configuration information of components, and change of configuration information of components.
  • the query of the component status wherein the state of the component includes an initial state, an active state, a stop state, and an exit state
  • the initial state refers to the component being initialized and has not been activated
  • the active state means that the component is activated to participate in the transaction request execution; It means that the component temporarily stops the service.
  • the exit state means that the component exits the system, and the exited component is added to the system again, and then needs to be reinitialized.
  • the channel operation server can support channel addition, channel exit, channel stop, and channel recovery, wherein the channel stop refers to the channel stop service, and the channel recovery refers to already The service stop channel is re-serviced.
  • the configuration information of the channel includes the name, number, node list, sorting server, user list, and status. Therefore, the channel operation server also supports querying the channel number based on the channel name, and querying the status of the channel based on the channel name.
  • Current components can include nodes, channels, users, organizations, and sequencing servers in a distributed system.
  • the node operation server can support node addition, node exit, node stop, and node recovery.
  • the configuration information of the node includes the number, name, status, node IP address and port number, event name, event IP address and port number, organization name, channel list, and so on. Therefore, the node operation server also supports querying the node number based on the node's IP address and port, querying the node status based on the node's IP address and port, and the channel list of the channel to which the node is added.
  • the organization operation server can support the addition of the organization, the exit of the organization, the stop of the organization, and the recovery of the organization.
  • the configuration information of the organization may include a number, a name, a node list, a user list, a status, a mapping relationship between the node and the user, etc., so the organization operation server may also support the organization number query based on the organization name, the organization status query, and the like.
  • the user operation server can support user addition, user exit, user stop, and user recovery.
  • the user's configuration information may include a number, a name, a status, an organization name, an organization user name, a user key, and a user certificate. Therefore, the user operation server can also support the query based on the organization user name (character combination of the organization name and the user name), and can also query the status based on the user name and the organization name.
  • the sort server operation server can support the addition of the sort server, the exit of the sort server, the stop of the sort server, and the recovery of the sort server.
  • the configuration information of the sorting server may include a number, a name, a status, an IP address of the sorting server, and a port. Therefore, the sorting server operation server can also support the number and status of the sorting server based on the IP address and port query of the sorting server.
  • the current component operation server returns the first component operation result to the forwarding server, so that the forwarding server can store the first component operation result, and then send the first component operation result to the system client, and the system client forwards the result to the system client. User, etc.
  • the forwarding server after receiving the component operation request, forwards the component management request to the corresponding current component operation server according to the component type, so that the current component operation server can perform operations on the current component by introducing forwarding.
  • the server and the component operation server operate on the component, and no need to manually change the system after the system is shut down, saving time and improving efficiency, and reducing the cost of the user because the research and development personnel are no longer required to participate.
  • the method may further include: the current component operation server sending the first component operation result to the associated component operation server. So that the associated component operation server operates on the associated component associated with the current component according to the first component operation result to obtain the second component operation result, and returns the second operation result to the forwarding server; the forwarding server sends the second component operation result to System client.
  • each component Since there are multiple components in the system, each component is organically connected. When one component changes, other components need to change accordingly. Therefore, if the current component operation server sends the first component operation result to the associated component operation server, the associated component operation server adjusts the associated component according to the first component operation result, for example, adjusting the configuration information of the management component, etc., and managing the component operation.
  • the server returns the operation result of the management component, that is, the operation result of the second component to the forwarding server, and is stored by the forwarding server, and then sent to the system client, so that the user who uses the system client can timely know the status of the current component of the system. Wait.
  • FIG. 3 is a schematic diagram of component association in an embodiment, including a channel, a node, an organization, a user, and a sorting server.
  • Channels are associated with sorting servers, nodes, and user credentials, nodes are associated with channels and organizations, and organizations are associated with users.
  • the channel changes include the addition of the channel, the exit of the existing channel, the stop of the existing channel, the recovery of the stopped channel, and the change of the channel name. After the channel name changes, the new channel name will be used as the unique identifier of the channel.
  • the status changes accordingly according to the channel change; and when the channel name changes, the channel list in the configuration information of the nodes in the channel changes accordingly.
  • the associated components of the channel include nodes, users, and sorting servers. Changes in nodes, users, and sorting servers all trigger changes in the configuration information of the channel. For details, see below.
  • the associated component operation server is an organization operation server and a channel operation server.
  • the change of the node includes the addition of the node, the exit of the existing node, the stop of the existing node, the restoration of the existing node, the change of the name of the node, the change of the IP address and port of the node, and the event name of the node. Changes, changes in the IP address and port of the node, changes in the organization name of the node, and so on. The state of the node changes accordingly according to the change of the change.
  • a change in a node triggers a change in the configuration information of the physical organization to which it belongs and a change in the configuration information of the logically associated channel.
  • the message packet needs to provide not only the configuration information of the node but also the list of channel names of the channel to which the node belongs.
  • the node operation server When the node change is a new node and the organization name of the newly added node is new, the node operation server notifies the organization operation server, the organization operation server creates a new organization, and assigns a new user list to the organization, and organizes The operation server assigns a user to the newly added node and establishes a mapping relationship between the newly added node and the user.
  • the node operation server When the node change is a new node and the channel name of the newly added node is new, the node operation server notifies the channel operation server, the channel operation server creates a new channel, and adds the newly added node to the new channel.
  • the user list of the channel is updated according to the user corresponding to the node.
  • the node operation server When the change of the node is the exit of the existing node or the stop of the existing node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server will list the node of the configuration information of the organization to which the changed node belongs.
  • the changed node is deleted, and the mapping relationship between the node and the user is updated; the channel operation server deletes the changed node from the node list of the channel configuration information of the changed node.
  • the node operation server When the change of the node is the recovery of the stopped node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server adds the changed node to the node list of the configuration information of the organization to which the changed node belongs, And updating the mapping relationship between the node and the user, and the channel operation server adds the changed node to the node list of the configuration information of the channel to which the changed node belongs.
  • the node operation server When the change of the node is the change of the IP address and port of the node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server updates the identifier of the node in the organization associated with the changed node correspondingly, the channel The operation server also updates the identifier of the node in the channel associated with the changed node correspondingly. Changes in the node's IP address and port, as well as changes in the IP address and port of the node's time, trigger a reconnection of the channel to that node.
  • the organization operation server and the channel operation server may decide whether to perform processing according to requirements, and the default situation is not performed. Processed.
  • the associated operation server is a channel operation server and an organization operation server, so that the channel operation server and the organization operation server are corresponding to the first operation result of the node operation server.
  • the channel and organization operate to realize the dynamic management of system components, improve the unity and integrity of the system, establish the internal relationship between system components, and improve the robustness and stability of the system.
  • the current component operation server operates the server for the user, and the associated component operation server is an organization operation server.
  • the user's changes include the user's new addition, the exit of the existing user, the stop of the existing user, the recovery of the stopped user, and the change of the user name, the change of the user organization name, the change of the user organization name, Changes in the user's key and certificate, the user's status will change accordingly according to the user's changes.
  • the user operation server When the user's change is a new user and the user organization name in the user configuration information is added, the user operation server notifies the organization operation server, the organization operation server creates a new organization, and attributes the user to the new one. Organization.
  • the user operation server When the user's change is the exit of the existing user or the stop of the existing user, the user operation server notifies the organization operation server, and the organization operation server updates the user list of the configuration information of the corresponding organization, and corresponds to the changed user.
  • the node allocates a new user
  • the node and the user's mapping relationship table are updated, and the organization operation server notifies the corresponding channel operation server to update the user list of the corresponding channel.
  • the user operation server When the user's change is the recovery of the existing user, the user operation server first sets the user to be available, and then notifies the organization operation server, and the organization operation server adds the change user to the user list of the corresponding organization.
  • the user operation server updates the user's organization user name; when the user's change is that the user's organization name changes, the user operates the server to update the user's organization user name; when the user changes
  • the user name of the user changes the user name is changed or the name of the organization name is changed by comparing the original organization user name, and the organization name is changed. Then the user operates the server to update the user name of the user.
  • the username changes the user operates the server to update the user's username.
  • the change of the user's organization name will adjust the current user to be used by other organizations, and accordingly the user operation server will notify the organization operation server to adjust the user-related information of the old organization and the new organization, and The organization operation server adjusts the user corresponding to the node, and the organization operation server notifies the channel operation server, and the channel operation server changes the user list.
  • the user operation server When the user's change is a change of the user's key or certificate, the user operation server notifies the channel operation server and the organization operation server, and the channel operation server and the organization operation server update the corresponding key or certificate.
  • the associated operation server is an organization operation server, so that the organization operation server operates the corresponding organization according to the first operation result of the user operation server, and implements the system component. Dynamic management improves the unity and integrity of the system, establishes the internal relationship between system components, and improves the robustness and stability of the system.
  • the current component operation server is an organization operation server
  • the associated component operation server is a node operation server and a user operation server.
  • Organizational changes include the addition of an organization, the withdrawal of an existing organization, the cessation of an existing organization, the restoration of an organization that has ceased, and the change in the name of the organization.
  • the change in the name of the organization can be seen in detail above.
  • the organization operation server will notify the node operation server to add nodes, and notify the user to increase the operation server. user.
  • the organization operation server When the organization's change is the exit of an existing organization or the stop of an existing organization, the organization operation server will update all nodes and users in the organization; for the exit of the existing organization, the organization operation server will notify the corresponding node to operate the server and user.
  • the state of the operation server update node is the exit state, and the state of the update user is the exit state; for the stop of the existing organization, the organization operation server notifies the corresponding node operation server and the user operation server to update the state of the node to the stop state, and update the state of the user.
  • the stop operation state; and the node operation server will send a message to the associated channel operation server, the channel operation server will remove the relevant node in the node list of the channel, and the organization operation server will send a message to the channel operation server, and the channel operation server will Remove the relevant user certificate from the list of user certificates for the associated channel.
  • the organization operation server When the change of the organization is the recovery of the stopped organization, the organization operation server notifies the node operation server to update the state of the corresponding node to the active state, and the node operation server notifies the channel operation server, and the channel operation server lists the node of the channel in the node.
  • the related node is added; the organization operation server is notified to notify the user that the operation server updates the user's status to the active state, and the organization operation server notifies the channel operation server, and the channel operation server adds the relevant user certificate to the user certificate list of the channel to which the user belongs.
  • the current component operation server is an organization operation server
  • the associated component operation server is a node operation server and a user operation server, so that the node operation server and the user operation server are corresponding to the first operation result of the organization operation server.
  • Users and nodes operate to realize dynamic management of system components, improve system uniformity and integrity, establish internal links between system components, and improve system robustness and stability.
  • the current component operation server is a sort server operation server
  • the associated component operation server is a channel operation server
  • the changes in the sorting server include the addition of the sorting server, the exit of the existing sorting server, the stop of the existing sorting server, the recovery of the stopped sorting server, the change of the name of the sorting server, the IP address of the sorting server, and the change of the port. .
  • the sorting server operation server configures the name, IP address, and port for the new sorting server, and notifies the corresponding channel operation server.
  • the sorting server operation server updates the state of the changing sorting server to the exit state or the stop state, and sends a message to the channel operation server, the channel
  • the operation server changes the sorting server list of the configuration information of the associated channel.
  • the sorting server When the change of the sorting server is a change of the IP address and the port, the sorting server operates the server to change the IP address and port of the corresponding sorting server, and then notifies the channel operating server that the channel operating server replaces the old IP address and port with the old IP address and port.
  • the current component operation server is a sorting server operation server
  • the associated component operation server is a channel operation server, so that the channel operation server operates the corresponding channel according to the first operation result of the sorting server operation server, and realizes
  • the dynamic management of system components improves the uniformity and integrity of the system, establishes the internal relationship between system components, and improves the robustness and stability of the system.
  • the channel can be uniquely identified by the channel name or channel number.
  • the channel contains one or more nodes, one or more user certificates, and one or more sorting servers, where the default state is A sorting server, multiple sorting servers are used to determine the sorting result after sorting the server consensus.
  • a sorting server multiple sorting servers are used to determine the sorting result after sorting the server consensus.
  • the user certificate list of the channel refers to the user certificate list of the user of the organization to which the node belongs in the channel.
  • the channel communicates with the node in the channel, for example, sending a transaction request message
  • the public key in the user certificate is selected for the message.
  • the field is encrypted and tagged with the channel's own private key, which sends the public key as part of the message to the node.
  • a node is uniquely identified by the IP address of the node and the number of the port or node.
  • the node is physically attributed to an organization, logically associated with one or more channels, ie, one node can be used by one or more channels to perform Transaction request.
  • the node After receiving the packet of the channel, the node checks the packet in the channel, and decrypts the field of the agreed message with the user private key corresponding to the node, and then executes the corresponding transaction request.
  • the user is uniquely identified by the organization user name or user number.
  • the user belongs to an organization.
  • the user in one organization can correspond to one or more nodes in the organization, that is, the user private key can be one or more in the organization.
  • Node ownership, by default, the private key of a user of the organization is owned by a node in the organization.
  • the organization is based on the organization name or the number of the organization.
  • the organization contains nodes and users.
  • the organization assigns one user to each node.
  • the users corresponding to each node can be the same or different.
  • the organization will establish nodes and The mapping relationship between users.
  • the sorting server is uniquely identified by the IP address of the sorting server and the port or sorting server number.
  • the sorting server provides the channel with the sorting and storage function of the target transaction result.
  • FIG. 4 is a flowchart of a transaction request processing step according to one or more embodiments.
  • the transaction request processing step may include:
  • the request response server receives the transaction request sent by the system client, and forwards the received transaction request to the request server.
  • the system client can receive the transaction request and forward the transaction request to the request response server, the request response server generates a number regarding the transaction request, and forwards the transaction request and number to the request server.
  • the requesting server acquires the state of the component corresponding to the transaction request, and when the state of the component is the available state, the component transaction result is processed by the component to obtain the target transaction result.
  • the request server parses the type of the transaction request according to the transaction request sent by the response server, and selects an appropriate channel according to the type of the transaction request; and the request server can read the channel and the channel by communicating with the channel operation server or the forwarding server. Relevant component information and status, such as node information and status; if the status of the channel and related components is available, ie active, then the transaction request is forwarded to the node in the channel for execution, the nodes in the channel The transaction request is processed to obtain a preliminary transaction result, and the preliminary transaction result is returned to the channel.
  • Relevant component information and status such as node information and status
  • the channel obtains the target transaction result based on the preliminary transaction result and the consensus algorithm strategy, and returns the target transaction result to the request server, wherein after the channel obtains the target transaction result, the target transaction result may be sent to the corresponding sorting server for processing, sorting.
  • the server may sort the target transaction result by time, store the sorted target transaction result, the node may synchronously sort the target transaction result in the server, and the sorting server may actively send the sorted target transaction result to the request. server.
  • the target transaction result is sent to the request response server, and the target response result is returned to the system client by the request response server.
  • the transaction request is processed by introducing the request response server and the request server, and the transaction request is processed separately from the component operation request without affecting each other, thereby improving the robustness and stability of the system.
  • FIG. 5 is a flowchart of a transaction request processing step and a component operation request processing step in an embodiment; after the step of requesting the processor to acquire the state of the component corresponding to the transaction request, The method includes: the requesting server receives the first component operation result and the second component operation result; and when the component state is the available state, the step of processing the transaction request by the component to obtain the target transaction result, including: the first component operation result and the first component The result of the two component operation obtains the available components after the operation, and processes the transaction request through the available components to obtain the target transaction result.
  • the processing directly involved in the processing of the transaction request includes a channel, a node, a user, and a sorting server
  • the change of the organization triggers the change of the node and the user, thereby indirectly affecting the execution of the request
  • the user's change triggers the The change of the user certificate in the associated channel and the change of the user private key of the associated node
  • the change of the node triggers the change of the node list of the channel
  • the change of the sorting server triggers the change of the list of the sorting server of the associated channel
  • the current component operation server may directly directly use the first component.
  • the operation result and the second component operation result are sent to the request server, or are forwarded to the request server by the channel operation server, or forwarded to the request server by the forwarding server, and the request server receives the first component operation result and the second component operation node. After accordingly acquired available components, and processes the transaction request by the available components to obtain the target transaction result.
  • the requesting server performs the transaction request by using the channel service as the main body.
  • the component operation result includes the channel change, for example, the component operation result includes the channel addition, the newly added channel is executed and executed.
  • the channel of the transaction request is not associated and therefore has no effect on the transaction request.
  • the component operation result includes the exit of the channel, the channel service of the channel is directly terminated.
  • the component operation result includes the stop of the channel, the channel service of the channel is directly stopped. If the component operation result includes the recovery of the stopped channel, the channel service of the channel is directly replied, and the processing of the transaction request is not affected.
  • the component operation result includes a change in the channel name, it has no effect on the transaction request being executed, and when the channel receives a new transaction request, it is allocated according to the new channel name.
  • the transaction request is sent to the new transaction node if the transaction
  • the new node will not participate in the execution of the transaction request, and the existing node in the channel continues to execute the current transaction request; when there is a decrease in the node list in the channel, If the current transaction request has been sent to the node in the channel, that is, it is also sent to the reduced node, the current transaction request will continue.
  • the communication timeout processing between the channel and the node is processed accordingly, that is, regardless of Whether the reduced nodes have feedback will not affect the execution and processing results of the transaction request.
  • the component operation result includes a change of the user list of the channel, since the channel encrypts the key segment of the transaction request by using the public key in the user certificate corresponding to the node, the node receiving the transaction request decrypts through the corresponding user private key.
  • the user and the node belong to the same organization. Therefore, for the change of the user list, refer to the change of the node list in the above, and details are not described herein again.
  • the execution result of the current transaction request is consistent; Otherwise, the transaction request execution is considered to have failed.
  • the sorting server list in the channel is used to achieve consistency in the sorting service.
  • the request server when there is a component operation result in the transaction request processing process, the request server correspondingly executes the transaction request according to the component operation result, and the transaction request processing is not suspended or lost due to the operation of the component, thereby improving the stability of the system. .
  • the method may further include: when the requesting server is processing the transaction request, after the requesting server processes the transaction request by the component to obtain the target transaction result, the current component operation server performs the current component according to the component operation request. The operation obtains the result of the first component operation.
  • the system may first suspend execution of the component operation request, first process the transaction request to obtain the target transaction result, and then perform the current component according to the component operation request.
  • the operation gets the result of the first component operation, which prevents the component operation request from affecting the transaction request.
  • the execution of the component operation request may be suspended first, that is, the transaction request is processed first, and the component operation request is processed after the transaction request processing is completed, thereby ensuring that the component operation request is processed.
  • the normal processing of transaction requests improves the stability of the system.
  • steps in the flowcharts of FIGS. 2, 4, and 5 are sequentially displayed in accordance with the indication of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIGS. 2, 4, and 5 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution of the sub-steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of the other steps or other steps.
  • FIG. 1 illustrates an operating system of a distributed system including a forwarding server and a current component operation server.
  • the forwarding server is configured to forward the received component operation request to the current component operation server according to the component type.
  • the current component operation server is configured to operate the current component in the distributed system according to the component operation request to obtain the first component operation result; and return the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result.
  • the component operation request includes at least one of a component addition request, a component exit request, a component stop request, a component recovery request, a component configuration information query request, or a component configuration information change request.
  • the current component operation server is further configured to send the first component operation result to the associated component operation server, so that the associated component operation server operates the associated component associated with the current component according to the first component operation result. After the result of the two component operations, the second operation result is returned to the forwarding server.
  • the forwarding server is also used to send the second component operation result to the system client.
  • the associated component operation server is an organization operation server and a channel operation server.
  • the current component operation server operates the server for the user, and the associated component operation server is an organization operation server.
  • the current component operation server is an organization operation server
  • the associated component operation server is a node operation server and a user operation server.
  • system further includes a request response server and a request server.
  • the request response server is configured to receive a transaction request sent by the system client and forward the received transaction request to the request server.
  • the request server is configured to obtain the state of the component corresponding to the transaction request, and when the state of the component is available, the transaction request is processed by the component to obtain the target transaction result, and the target transaction result is sent to the request response server.
  • the request response server is also used to send the target transaction result to the system client.
  • the requesting server is further configured to: after acquiring the state of the component corresponding to the transaction request, receive the first component operation result and the second component operation result; and according to the first component operation result and the second component operation result Get the available components after the operation, and process the transaction request through the available components to get the target transaction result.
  • the current component operation server is further configured to: when the request server is processing the transaction request, after the request server processes the transaction request through the component to obtain the target transaction result, and the current component is operated according to the component operation request.
  • the first component operation result is further configured to: when the request server is processing the transaction request, after the request server processes the transaction request through the component to obtain the target transaction result, and the current component is operated according to the component operation request. The first component operation result.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

A method for operating a distributed system comprises: a current module operation server receiving a module operation request forwarded by a forwarding server according to a module type; operating, according to the module operation request, a current module to obtain a first module operation result; and returning the first module operation result to the forwarding server, such that the forwarding server transmits the first module operation result to a client terminal of a system.

Description

分布式系统操作方法及系统Distributed system operation method and system
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年11月23日提交中国专利局,申请号为2017111812213,申请名称为“分布式系统操作方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application entitled "Distributed System Operation Method and System" by the Chinese Patent Office on November 23, 2017, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及一种分布式系统操作方法及系统。The application relates to a distributed system operation method and system.
背景技术Background technique
分布式系统(distributed system)是建立在网络之上的软件系统。正是因为软件的特性,所以分布式系统具有高度的内聚性和透明性。在区块链或基于PaxOS算法协议实现的分布式系统中,有多个节点参与数据处理,基于处理策略达成共识并被系统整体接受。A distributed system is a software system built on top of a network. Because of the nature of software, distributed systems are highly cohesive and transparent. In a blockchain or a distributed system based on the PaxOS algorithm protocol, multiple nodes participate in data processing, and a consensus is reached based on the processing strategy and accepted by the system as a whole.
发明人意识到,传统的分布式系统是事先在静态环境中由研发人员进行搭建,在系统启动后,如果需要对系统中的组件进行变更,则需要首先将系统关闭,即恢复静态环境,然后由研发人员进行对应的修改,该种修改方式效率低,成本高。The inventor realized that the traditional distributed system is set up by the R&D personnel in the static environment in advance. After the system is started, if the components in the system need to be changed, the system needs to be shut down first, that is, the static environment is restored, and then Corresponding modifications are made by the R&D personnel, which are inefficient and costly.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种分布式系统操作方法及系统。In accordance with various embodiments disclosed herein, a distributed system operating method and system is provided.
一种分布式系统操作方法,包括:A distributed system operation method includes:
当前组件操作服务器接收转发服务器根据组件类型所转发的组件操作请求;The current component operation server receives the component operation request forwarded by the forwarding server according to the component type;
当前组件操作服务器根据所述组件操作请求对分布式系统中的当前组件进行操作得到第一组件操作结果;及The current component operation server operates on the current component in the distributed system according to the component operation request to obtain a first component operation result; and
当前组件操作服务器将所述第一组件操作结果返回至所述转发服务器,以使所述转发服务器发送所述第一组件操作结果至系统客户端。The current component operation server returns the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result to the system client.
一种分布式系统操作系统,包括转发服务器和当前组件操作服务器;A distributed system operating system, including a forwarding server and a current component operation server;
所述转发服务器用于根据组件类型将所接收的组件操作请求转发给当前组件操作服务器;及The forwarding server is configured to forward the received component operation request to the current component operation server according to the component type; and
所述当前组件操作服务器用于根据所述组件操作请求对分布式系统中的当前组件进行操作得到第一组件操作结果;并将所述第一组件操作结果返回 至所述转发服务器,以使所述转发服务器发送所述第一组件操作结果。The current component operation server is configured to operate the current component in the distributed system according to the component operation request to obtain a first component operation result; and return the first component operation result to the forwarding server, so as to The forwarding server sends the first component operation result.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为根据一个或多个实施例中分布式系统操作方法的应用场景图。1 is an application scenario diagram of a distributed system operation method in accordance with one or more embodiments.
图2为根据一个或多个实施例中分布式系统操作方法的流程图。2 is a flow diagram of a method of operating a distributed system in accordance with one or more embodiments.
图3为根据一个或多个实施例中的组件关联示意图。FIG. 3 is a schematic diagram of component association in accordance with one or more embodiments.
图4为根据一个或多个实施例中交易请求处理步骤的流程图。4 is a flow diagram of a transaction request processing step in accordance with one or more embodiments.
图5为根据一个或多个实施例中的交易请求处理步骤与组件操作请求处理步骤的流程图。5 is a flow diagram of transaction request processing steps and component operation request processing steps in accordance with one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
请参阅图1,图1为一实施例中分布式系统操作方法的应用场景图,图1示出了系统客户端、转发服务器、与组件类型对应的数个组件服务器、请求响应服务器以及请求服务器。Please refer to FIG. 1. FIG. 1 is a schematic diagram of an application scenario of a distributed system operation method according to an embodiment. FIG. 1 shows a system client, a forwarding server, a plurality of component servers corresponding to component types, a request response server, and a request server. .
系统客户端可以通过报文的方式接收管理员终端发送的组件操作请求,还可以以报文的方式接收交易请求。当系统客户端接收到管理员终端发送的组件操作请求时,首先需要确定发送该组件操作请求的用户是否具有管理员权限,只有具有管理员权限后,系统客户端才会将组件操作请求发送至转发服务器。当系统客户端接收到交易请求时,则将交易请求转发至请求响应服务器,以便于请求响应服务器将交易请求转发至请求服务器进行处理。且为了保证报文的安全,该组件操作请求和交易请求均会通过加密和加签的方式来进行处理,且在系统对请求处理完成后,系统客户端把组件操作的结果和请求处理的结果分别发送给系统客户端的使用者。The system client can receive the component operation request sent by the administrator terminal by means of the message, and can also receive the transaction request by means of the message. When the system client receives the component operation request sent by the administrator terminal, it first needs to determine whether the user who sends the component operation request has the administrator authority. Only after having the administrator authority, the system client sends the component operation request to Forward the server. When the system client receives the transaction request, it forwards the transaction request to the request response server, so that the request response server forwards the transaction request to the request server for processing. In order to ensure the security of the message, the component operation request and the transaction request are processed by encryption and signing, and after the system finishes processing the request, the system client takes the result of the component operation and the result of the request processing. The user sent to the system client separately.
转发服务器用于接收组件操作请求,并对管理员用户的登录进行验证,对报文进行验签和解密,并根据组件类型将组件操作请求分发给对应的组件操作服务器。且在组件操作服务器对相应组件操作完成后,将对应的操作结 果转发至系统客户端。The forwarding server is configured to receive the component operation request, verify the login of the administrator user, check and decrypt the packet, and distribute the component operation request to the corresponding component operation server according to the component type. After the component operation server completes the operation of the corresponding component, the corresponding operation result is forwarded to the system client.
分布式系统中的关键组件包括通道、节点、组织、用户、排序服务器,因此组件操作服务器包括通道操作服务器、节点操作服务器、组织操作服务器、用户操作服务器以及排序服务器操作服务器。不同的组件操作服务器分别根据组件操作请求对组件进行操作,并将操作结果反馈给转发服务器。分布式系统中的通道用于接收请求服务器发送的交易请求,并将交易请求发送至通道中所有的节点,节点对该交易请求进行处理后得到初步交易结果,并将初步交易结果返回至通道,通道根据初步交易结果得到目标交易结果并发送至排序服务器,排序服务器对目标交易结果按照时间先后顺序进行排序并存储,且节点可以从排序服务器获取到对应的目标交易结果,其中用户可以在组织中进行注册,组织为已注册的用户分配节点,即建立用户和节点之间的映射关系,且节点根据交易类型分配到不同的通道。The key components in a distributed system include channels, nodes, organizations, users, and sort servers. Therefore, component operation servers include channel operation servers, node operation servers, organization operation servers, user operation servers, and sort server operation servers. Different component operation servers operate the components according to the component operation requests, and feed back the operation results to the forwarding server. The channel in the distributed system is used to receive the transaction request sent by the requesting server, and send the transaction request to all the nodes in the channel, and the node processes the transaction request to obtain the preliminary transaction result, and returns the preliminary transaction result to the channel. The channel obtains the target transaction result according to the preliminary transaction result and sends it to the sorting server. The sorting server sorts and stores the target transaction result in chronological order, and the node can obtain the corresponding target transaction result from the sorting server, wherein the user can be in the organization. To register, the organization assigns a node to the registered user, that is, establishes a mapping relationship between the user and the node, and the node is assigned to a different channel according to the transaction type.
请求响应服务器则是接收系统客户端发送的交易请求后,对请求报文进行解密和验签,保证报文的合法性,且请求服务器为每一个交易请求分配唯一的交易标识,例如可以为交易ID号等,并接收交易服务器返回的目标交易结果,建立交易标识与目标交易结果之间的映射关系等。The request response server receives the transaction request sent by the system client, decrypts and checks the request message, ensures the validity of the message, and requests the server to assign a unique transaction identifier to each transaction request, for example, may be a transaction. ID number, etc., and receive the target transaction result returned by the transaction server, establish a mapping relationship between the transaction identifier and the target transaction result.
交易服务器则是基于交易请求的类型选择合适的通道,然后通过通道将交易请求发送至通道内所有可用的交易节点中,从而交易节点可以对交易请求进行处理得到初步交易结果,并将初步交易结果反馈至通道,通道根据所得到的初步交易结果进行计算后得到目标交易结果,并反馈给交易服务器,由交易服务器返回给交易响应服务器,并由交易响应服务器反馈给系统客户端。且交易服务器在处理交易的过程中还可以接收转发服务器或通道操作服务器或其他的组件操作服务器的组件操作结果,然后根据组件操作结果来对当前交易请求的处理方式进行调整。The trading server selects the appropriate channel based on the type of the transaction request, and then sends the transaction request to all available trading nodes in the channel through the channel, so that the trading node can process the transaction request to obtain the preliminary transaction result, and the preliminary transaction result Feedback to the channel, the channel calculates the target transaction result based on the obtained preliminary transaction result, and feeds back to the transaction server, which is returned by the transaction server to the transaction response server, and is fed back to the system client by the transaction response server. And the transaction server can also receive the component operation result of the forwarding server or the channel operation server or other component operation server in the process of processing the transaction, and then adjust the processing manner of the current transaction request according to the component operation result.
上述所涉及的服务器等都可以是以服务器集群的方式存在,以防止单点故障造成系统故障等。The servers and the like involved above may exist in the form of a server cluster to prevent a single point of failure from causing a system failure or the like.
在其中一个实施例中,请参阅图2,提供一种分布式系统操作方法,本实施例以该方法应用到上述图1中的组件操作服务器来举例说明。该组件操作服务器上运行有分布式系统操作可读指令,通过该分布式系统操作可读指令来实施分布式系统操作方法。该方法具体包括如下步骤:In one embodiment, referring to FIG. 2, a distributed system operation method is provided. This embodiment is exemplified by applying the method to the component operation server in FIG. 1 described above. The component operation server runs a distributed system operation readable instruction through which the distributed system operation method is implemented by operating the readable instructions. The method specifically includes the following steps:
S202:当前组件操作服务器接收转发服务器根据组件类型所转发的组件操作请求。S202: The current component operation server receives the component operation request forwarded by the forwarding server according to the component type.
结合图1,当系统客户端接收到组件操作请求时,则可以将该组件操作请求发送至转发服务器,转发服务器在接收到该组件操作请求后,可以首先验证发送该组件操作请求的用户是否具有管理员权限,如果不具有管理员权 限,则返回操作失败的结果;如果具有管理员权限,则对该组件操作请求进行验签和解密得到组件操作请求的明文,转发服务器根据该明文中所表示的组件类型将组件操作请求转发给相应的当前组件操作服务器。Referring to FIG. 1, when the system client receives the component operation request, the component operation request may be sent to the forwarding server, and after receiving the component operation request, the forwarding server may first verify whether the user who sends the component operation request has Administrator authority, if there is no administrator authority, return the result of the operation failure; if there is administrator authority, the component operation request is checked and decrypted to obtain the plaintext of the component operation request, and the forwarding server is represented according to the plaintext The component type forwards the component operation request to the corresponding current component operations server.
该分布式系统的组件类型包括通道、节点、组织、用户和排序服务器,用户是在组织中注册的,组织将用户和相应的交易节点进行关联,并将交易节点根据交易类型分配到不同的通道,每一个通道配置有相应的排序服务器或排序服务器集群。转发服务器根据明文中表示的组件类型将组件操作请求转发至相应的组件操作服务器,以便于组件操作服务器对相应组件进行操作处理。The component types of the distributed system include channels, nodes, organizations, users, and sorting servers. Users are registered in the organization. The organization associates users with corresponding trading nodes, and assigns trading nodes to different channels according to transaction types. Each channel is configured with a corresponding sorting server or sorting server cluster. The forwarding server forwards the component operation request to the corresponding component operation server according to the component type indicated in the plaintext, so that the component operation server performs operation processing on the corresponding component.
S204:当前组件操作服务器根据组件操作请求对分布式系统中的当前组件进行操作得到第一组件操作结果。S204: The current component operation server operates on the current component in the distributed system according to the component operation request to obtain the first component operation result.
对于当前组件的操作包括组件的新增、组件的退出、组件的暂停、组件的恢复、组件的配置信息的查询和组件的配置信息的变更的其中至少一种。例如组件状态的查询,其中组件的状态包括初始态、活动态、停止态和退出态,初始态是指组件进行初始化且尚未被激活,活动态是指组件被激活可以参与交易请求执行;停止态是指组件暂时停止服务,退出态是指组件退出系统,退出的组件再次加入系统,则需要重新初始化。The operations on the current component include at least one of new addition of components, exit of components, suspension of components, recovery of components, query of configuration information of components, and change of configuration information of components. For example, the query of the component status, wherein the state of the component includes an initial state, an active state, a stop state, and an exit state, the initial state refers to the component being initialized and has not been activated, and the active state means that the component is activated to participate in the transaction request execution; It means that the component temporarily stops the service. The exit state means that the component exits the system, and the exited component is added to the system again, and then needs to be reinitialized.
若当前组件操作服务器为通道操作服务器,则该通道操作服务器可以支持通道的新增、通道的退出、通道的停止、通道的恢复,其中通道的停止是指通道停止服务,通道的恢复是指已经停止服务的通道重新提供服务。通道的配置信息包括名称、编号、节点列表、排序服务器、用户列表以及状态,因此通道操作服务器还支持基于通道名称查询通道的编号,基于通道名称查询通道的状态等。If the current component operation server is a channel operation server, the channel operation server can support channel addition, channel exit, channel stop, and channel recovery, wherein the channel stop refers to the channel stop service, and the channel recovery refers to already The service stop channel is re-serviced. The configuration information of the channel includes the name, number, node list, sorting server, user list, and status. Therefore, the channel operation server also supports querying the channel number based on the channel name, and querying the status of the channel based on the channel name.
当前组件可以包括分布式系统中的节点、通道、用户、组织和排序服务器。Current components can include nodes, channels, users, organizations, and sequencing servers in a distributed system.
若当前组件操作服务器为节点操作服务器,则该节点操作服务器可以支持节点的新增、节点的退出、节点的停止、节点的恢复。节点的配置信息包括编号、名称、状态、节点IP地址和端口号、事件名、事件IP地址和端口号、组织名、通道列表等。因此节点操作服务器还支持基于节点的IP地址和端口查询节点编号,基于节点的IP地址和端口查询节点状态、节点所加入的通道的通道列表等。If the current component operation server is a node operation server, the node operation server can support node addition, node exit, node stop, and node recovery. The configuration information of the node includes the number, name, status, node IP address and port number, event name, event IP address and port number, organization name, channel list, and so on. Therefore, the node operation server also supports querying the node number based on the node's IP address and port, querying the node status based on the node's IP address and port, and the channel list of the channel to which the node is added.
若当前组件操作服务器为组织操作服务器,则该组织操作服务器可以支持组织的新增、组织的退出、组织的停止、组织的恢复。组织的配置信息可以包括编号、名称、节点列表、用户列表、状态、节点和用户的映射关系等,因此该组织操作服务器还可以支持基于组织名进行组织编号的查询、组织状 态的查询等。If the current component operation server is an organization operation server, the organization operation server can support the addition of the organization, the exit of the organization, the stop of the organization, and the recovery of the organization. The configuration information of the organization may include a number, a name, a node list, a user list, a status, a mapping relationship between the node and the user, etc., so the organization operation server may also support the organization number query based on the organization name, the organization status query, and the like.
若当前组件操作服务器为用户操作服务器,则该用户操作服务器可以支持用户的新增、用户的退出、用户的停止、用户的恢复。且用户的配置信息可以包括编号、名称、状态、组织名、组织用户名、用户密钥和用户证书。因此该用户操作服务器还可以支持基于组织用户名(组织名和用户名的字符组合)进行编号的查询,还可以基于用户名和组织名进行状态的查询。If the current component operation server is a user operation server, the user operation server can support user addition, user exit, user stop, and user recovery. And the user's configuration information may include a number, a name, a status, an organization name, an organization user name, a user key, and a user certificate. Therefore, the user operation server can also support the query based on the organization user name (character combination of the organization name and the user name), and can also query the status based on the user name and the organization name.
若当前组件操作服务器为排序服务器操作服务器,则该排序服务器操作服务器可以支持排序服务器的新增、排序服务器的退出、排序服务器的停止、排序服务器的恢复。且排序服务器的配置信息可以包括编号、名称、状态、排序服务器的IP地址及端口。因此该排序服务器操作服务器还可以支持基于排序服务器的IP地址和端口查询排序服务器的编号和状态等。If the current component operation server is a sort server operation server, the sort server operation server can support the addition of the sort server, the exit of the sort server, the stop of the sort server, and the recovery of the sort server. And the configuration information of the sorting server may include a number, a name, a status, an IP address of the sorting server, and a port. Therefore, the sorting server operation server can also support the number and status of the sorting server based on the IP address and port query of the sorting server.
S206:当前组件操作服务器将第一组件操作结果返回至转发服务器,以使转发服务器发送第一组件操作结果至系统客户端。S206: The current component operation server returns the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result to the system client.
当前组件操作服务器将第一组件操作结果返回至转发服务器,从而转发服务器可以存储该第一组件操作结果后,将该第一组件操作结果发送给系统客户端,由系统客户端转发给系统客户端的使用者等。The current component operation server returns the first component operation result to the forwarding server, so that the forwarding server can store the first component operation result, and then send the first component operation result to the system client, and the system client forwards the result to the system client. User, etc.
上述分布式系统管理方法,在接收到组件操作请求后,由转发服务器根据组件类型将该组件管理请求转发至对应的当前组件操作服务器,从而当前组件操作服务器可以对当前组件进行操作通过引入了转发服务器和组件操作服务器对组件进行操作,不再需要将系统关闭后,由研发人员手动的变更,节约了时间,提高了效率,且由于不再需要研发人员参与,降低了用人成本。In the above distributed system management method, after receiving the component operation request, the forwarding server forwards the component management request to the corresponding current component operation server according to the component type, so that the current component operation server can perform operations on the current component by introducing forwarding. The server and the component operation server operate on the component, and no need to manually change the system after the system is shut down, saving time and improving efficiency, and reducing the cost of the user because the research and development personnel are no longer required to participate.
在其中一个实施例中,当前组件操作服务器根据组件操作请求对当前组件进行操作得到第一组件操作结果的步骤之后,还可以包括:当前组件操作服务器将第一组件操作结果发送至关联组件操作服务器,以使关联组件操作服务器根据第一组件操作结果对当前组件关联的关联组件进行操作得到第二组件操作结果后,将第二件操作结果返回至转发服务器;转发服务器发送第二组件操作结果至系统客户端。In one embodiment, after the step of the current component operation server operating the current component according to the component operation request to obtain the first component operation result, the method may further include: the current component operation server sending the first component operation result to the associated component operation server. So that the associated component operation server operates on the associated component associated with the current component according to the first component operation result to obtain the second component operation result, and returns the second operation result to the forwarding server; the forwarding server sends the second component operation result to System client.
由于系统中存在多个组件,每个组件之间是有机联系的,当存在一个组件发生变动时,其他组件也需要发生相应的变动。因此若当前组件操作服务器将第一组件操作结果发送至关联组件操作服务器后,关联组件操作服务器会根据该第一组件操作结果相应地调整关联组件,例如调整管理组件的配置信息等,管理组件操作服务器将该管理组件的操作结果,即第二组件操作结果返回至转发服务器,由转发服务器进行存储后,发送给系统客户端,以便于使用系统客户端的用户可以及时地了解到系统当前组件的状态等。Since there are multiple components in the system, each component is organically connected. When one component changes, other components need to change accordingly. Therefore, if the current component operation server sends the first component operation result to the associated component operation server, the associated component operation server adjusts the associated component according to the first component operation result, for example, adjusting the configuration information of the management component, etc., and managing the component operation. The server returns the operation result of the management component, that is, the operation result of the second component to the forwarding server, and is stored by the forwarding server, and then sent to the system client, so that the user who uses the system client can timely know the status of the current component of the system. Wait.
上述实施例中,当系统中一个组件发生变动时,其他与该组件相关联的 组件也会相应地发生变动,从而使得组件之间的变动有机联系,不需要人工去根据一个组件的变动调整其他组件,提高了组件变动的效率,系统的可扩展性和系统的整体性。In the above embodiment, when a component in the system changes, other components associated with the component also change accordingly, so that the changes between the components are organically linked, and there is no need to manually adjust other components according to changes of one component. Components that increase the efficiency of component changes, system scalability, and system integrity.
参阅图3,图3为一实施例中的组件关联示意图,其中包括通道、节点、组织、用户以及排序服务器。通道与排序服务器、节点以及用户证书相关联,节点与通道以及组织相关联,组织与用户相关联。其中通道的变化包括通道的新增、已有通道的退出、已有通道的停止、已停止通道的恢复、通道名称的变化,通道名称变化后新的通道名称将作为通道的唯一标识,通道的状态会根据通道的变化而相应的变化;且当通道名称改变时,通道中节点的配置信息中的通道列表则会相应地改变。通道的关联组件包括节点、用户和排序服务器,节点、用户、排序服务器的变化均会触发通道的配置信息的变化,具体可以参见下文所述。Referring to FIG. 3, FIG. 3 is a schematic diagram of component association in an embodiment, including a channel, a node, an organization, a user, and a sorting server. Channels are associated with sorting servers, nodes, and user credentials, nodes are associated with channels and organizations, and organizations are associated with users. The channel changes include the addition of the channel, the exit of the existing channel, the stop of the existing channel, the recovery of the stopped channel, and the change of the channel name. After the channel name changes, the new channel name will be used as the unique identifier of the channel. The status changes accordingly according to the channel change; and when the channel name changes, the channel list in the configuration information of the nodes in the channel changes accordingly. The associated components of the channel include nodes, users, and sorting servers. Changes in nodes, users, and sorting servers all trigger changes in the configuration information of the channel. For details, see below.
在其中一个实施例中,当前组件操作服务器为节点操作服务器时,则关联组件操作服务器为组织操作服务器和通道操作服务器。In one of the embodiments, when the current component operation server is a node operation server, the associated component operation server is an organization operation server and a channel operation server.
具体地,节点的变动包括节点的新增、已有节点的退出、已有节点的停止、已有节点的恢复、节点的名称的变化、节点的IP地址和端口的变化、节点的事件名称的变化、节点的IP地址和端口的变化、节点的组织名称的变化等。其中节点的状态会根据变动的变化而相应地改变。Specifically, the change of the node includes the addition of the node, the exit of the existing node, the stop of the existing node, the restoration of the existing node, the change of the name of the node, the change of the IP address and port of the node, and the event name of the node. Changes, changes in the IP address and port of the node, changes in the organization name of the node, and so on. The state of the node changes accordingly according to the change of the change.
节点的变动会触发其所属的物理上的组织的配置信息的变化以及逻辑上关联的通道的配置信息的变化。系统客户端提交上述节点的变动的组织操作请求时,其消息报文不仅需要提供节点的配置信息还需要提供节点所属通道的通道名称的列表。A change in a node triggers a change in the configuration information of the physical organization to which it belongs and a change in the configuration information of the logically associated channel. When the system client submits the changed organization operation request of the above node, the message packet needs to provide not only the configuration information of the node but also the list of channel names of the channel to which the node belongs.
当节点的变动是新增节点,且新增节点的组织名称是新的时,节点操作服务器则会通知组织操作服务器,组织操作服务器创建新的组织,同时为该组织分配新的用户列表,组织操作服务器为该新增节点指定用户,并建立新增节点与用户之间的映射关系。当节点的变动是新增节点,且新增节点的通道名称是新的时,节点操作服务器则会通知通道操作服务器,通道操作服务器创建新的通道,并将新增节点添加到新的通道中,同时根据节点对应的用户更新通道的用户列表。When the node change is a new node and the organization name of the newly added node is new, the node operation server notifies the organization operation server, the organization operation server creates a new organization, and assigns a new user list to the organization, and organizes The operation server assigns a user to the newly added node and establishes a mapping relationship between the newly added node and the user. When the node change is a new node and the channel name of the newly added node is new, the node operation server notifies the channel operation server, the channel operation server creates a new channel, and adds the newly added node to the new channel. At the same time, the user list of the channel is updated according to the user corresponding to the node.
当节点的变动是已有节点的退出或已有节点的停止时,节点操作服务器则会通知组织操作服务器和通道操作服务器,组织操作服务器则会从变动的节点所属的组织的配置信息的节点列表中删除该变动的节点,并更新节点和用户的映射关系;通道操作服务器则会从变动的节点所述的通道的配置信息的节点列表中删除该变动的节点。When the change of the node is the exit of the existing node or the stop of the existing node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server will list the node of the configuration information of the organization to which the changed node belongs. The changed node is deleted, and the mapping relationship between the node and the user is updated; the channel operation server deletes the changed node from the node list of the channel configuration information of the changed node.
当节点的变动是已停止的节点的恢复时,节点操作服务器则会通知组织 操作服务器和通道操作服务器,组织操作服务器在变动的节点所属的组织的配置信息的节点列表中增加该变动的节点,并更新节点和用户的映射关系,通道操作服务器在变动的节点所属的通道的配置信息的节点列表中增加该变动的节点。When the change of the node is the recovery of the stopped node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server adds the changed node to the node list of the configuration information of the organization to which the changed node belongs, And updating the mapping relationship between the node and the user, and the channel operation server adds the changed node to the node list of the configuration information of the channel to which the changed node belongs.
当节点的变动是节点的IP地址和端口的变化时,节点操作服务器则会通知组织操作服务器和通道操作服务器,组织操作服务器则会对应地更新变动的节点关联的组织内的节点的标识,通道操作服务器也会对应地更新变动的节点关联的通道内的节点的标识。节点的IP地址和端口的变化以及节点的时间的IP地址和端口的变化会触发通道与该节点的通信上的重新连接。When the change of the node is the change of the IP address and port of the node, the node operation server notifies the organization operation server and the channel operation server, and the organization operation server updates the identifier of the node in the organization associated with the changed node correspondingly, the channel The operation server also updates the identifier of the node in the channel associated with the changed node correspondingly. Changes in the node's IP address and port, as well as changes in the IP address and port of the node's time, trigger a reconnection of the channel to that node.
节点的其他的配置信息的变化,例如节点的事件名称的变化、节点的组织名称的变化时,组织操作服务器和通道操作服务器则可以根据需要决定是否进行处理,且缺省的状况下是不进行处理的。When the other configuration information of the node changes, such as the change of the event name of the node and the change of the organization name of the node, the organization operation server and the channel operation server may decide whether to perform processing according to requirements, and the default situation is not performed. Processed.
在上述实施例中,若当前操作服务器为节点操作服务器,则关联操作服务器为通道操作服务器和组织操作服务器,从而通道操作服务器和组织操作服务器则会根据节点操作服务器的第一操作结果对相应的通道和组织进行操作,实现了系统组件的动态管理,提高了系统的统一性和整体性,建立了系统组件之间的内在联系,提高了系统的健壮性和稳定性。In the above embodiment, if the current operation server is a node operation server, the associated operation server is a channel operation server and an organization operation server, so that the channel operation server and the organization operation server are corresponding to the first operation result of the node operation server. The channel and organization operate to realize the dynamic management of system components, improve the unity and integrity of the system, establish the internal relationship between system components, and improve the robustness and stability of the system.
在其中一个实施例中,当前组件操作服务器为用户操作服务器,则关联组件操作服务器为组织操作服务器。In one of the embodiments, the current component operation server operates the server for the user, and the associated component operation server is an organization operation server.
具体地,用户的变动包括用户的新增、已有用户的退出、已有用户的停止、已停止用户的恢复,并支持用户名称的变化、用户组织用户名的变化、用户组织名的变化、用户密钥和证书的变化,用户的状态会根据用户的变动而相应地变化。Specifically, the user's changes include the user's new addition, the exit of the existing user, the stop of the existing user, the recovery of the stopped user, and the change of the user name, the change of the user organization name, the change of the user organization name, Changes in the user's key and certificate, the user's status will change accordingly according to the user's changes.
当用户的变动是新增用户,且是用户配置信息中的用户组织名的新增时,则用户操作服务器通知组织操作服务器,组织操作服务器会创建新的组织,并将该用户归属于该新的组织。When the user's change is a new user and the user organization name in the user configuration information is added, the user operation server notifies the organization operation server, the organization operation server creates a new organization, and attributes the user to the new one. Organization.
当用户的变动是已有用户的退出或已有用户的停止时,则用户操作服务器通知组织操作服务器,组织操作服务器更新相应的组织的配置信息的用户列表,并为与该变动的用户对应的节点分配新的用户后,更新节点和用户的映射关系表,且组织操作服务器通知对应的通道操作服务器更新对应的通道的用户列表。When the user's change is the exit of the existing user or the stop of the existing user, the user operation server notifies the organization operation server, and the organization operation server updates the user list of the configuration information of the corresponding organization, and corresponds to the changed user. After the node allocates a new user, the node and the user's mapping relationship table are updated, and the organization operation server notifies the corresponding channel operation server to update the user list of the corresponding channel.
当用户的变动是已有用户的恢复时,则用户操作服务器首先设置用户可用,然后通知组织操作服务器,组织操作服务器在相应的组织的用户列表中增加该变动用户。When the user's change is the recovery of the existing user, the user operation server first sets the user to be available, and then notifies the organization operation server, and the organization operation server adds the change user to the user list of the corresponding organization.
当用户的变动是用户名称发生变化时,则用户操作服务器更新用户的组 织用户名;当用户的变动是用户的组织名发生变化时,则用户操作服务器更新用户的组织用户名;当用户的变动是用户的组织用户名发生变化时,则首先会通过比对原来的组织用户名判断是用户名部分发生变化还是组织名部分发生变化,组织名发生变化,则用户操作服务器更新用户的组织名,用户名发生变化,则用户操作服务器更新用户的用户名。在上述两种变化中,用户的组织名的变化则会把当前用户调整为被其他组织所使用,相应地用户操作服务器会通知组织操作服务器调整旧的组织和新的组织的用户相关信息,且组织操作服务器调整节点所对应的用户,并由组织操作服务器通知通道操作服务器,由通道操作服务器改变用户列表。When the user's change is that the user name changes, the user operation server updates the user's organization user name; when the user's change is that the user's organization name changes, the user operates the server to update the user's organization user name; when the user changes When the user name of the user changes, the user name is changed or the name of the organization name is changed by comparing the original organization user name, and the organization name is changed. Then the user operates the server to update the user name of the user. When the username changes, the user operates the server to update the user's username. In the above two changes, the change of the user's organization name will adjust the current user to be used by other organizations, and accordingly the user operation server will notify the organization operation server to adjust the user-related information of the old organization and the new organization, and The organization operation server adjusts the user corresponding to the node, and the organization operation server notifies the channel operation server, and the channel operation server changes the user list.
当用户的变动是用户的密钥或证书的变化时,则用户操作服务器通知通道操作服务器和组织操作服务器,通道操作服务器和组织操作服务器更新相应的密钥或证书。When the user's change is a change of the user's key or certificate, the user operation server notifies the channel operation server and the organization operation server, and the channel operation server and the organization operation server update the corresponding key or certificate.
上述实施例中,若当前操作服务器为用户操作服务器,则关联操作服务器为组织操作服务器,从而组织操作服务器则会根据用户操作服务器的第一操作结果对相应的组织进行操作,实现了系统组件的动态管理,提高了系统的统一性和整体性,建立了系统组件之间的内在联系,提高了系统的健壮性和稳定性。In the above embodiment, if the current operation server is a user operation server, the associated operation server is an organization operation server, so that the organization operation server operates the corresponding organization according to the first operation result of the user operation server, and implements the system component. Dynamic management improves the unity and integrity of the system, establishes the internal relationship between system components, and improves the robustness and stability of the system.
在其中一个实施例中,当前组件操作服务器为组织操作服务器,则关联组件操作服务器为节点操作服务器和用户操作服务器。In one of the embodiments, the current component operation server is an organization operation server, and the associated component operation server is a node operation server and a user operation server.
组织的变动包括组织的新增、已有组织的退出、已有组织的停止、已停止组织的恢复、组织名称的变化。其中组织名称的变化可以具体参见上文所示。Organizational changes include the addition of an organization, the withdrawal of an existing organization, the cessation of an existing organization, the restoration of an organization that has ceased, and the change in the name of the organization. The change in the name of the organization can be seen in detail above.
当组织的变动是组织的新增时,则表示系统会增加一个新的组织,因此需要相应地配置新增组织的节点和用户,组织操作服务器会通知节点操作服务器增加节点,通知用户操作服务器增加用户。When the organization's change is the addition of the organization, it means that the system will add a new organization. Therefore, the nodes and users of the newly added organization need to be configured accordingly. The organization operation server will notify the node operation server to add nodes, and notify the user to increase the operation server. user.
当组织的变动是已有组织的退出或已有组织的停止时,则组织操作服务器会更新组织内所有节点和用户;对于已有组织的退出,组织操作服务器会通知相应的节点操作服务器和用户操作服务器更新节点的状态为退出态,更新用户的状态为退出态;对于已有组织的停止,组织操作服务器通知相应的节点操作服务器和用户操作服务器更新节点的状态为停止态,更新用户的状态为停止态;且节点操作服务器会发消息给所属的通道操作服务器,通道操作服务器会在通道的节点列表中移除相关的节点,同时组织操作服务器会发送消息给通道操作服务器,通道操作服务器会在关联通道的用户证书列表中移除相关的用户证书。When the organization's change is the exit of an existing organization or the stop of an existing organization, the organization operation server will update all nodes and users in the organization; for the exit of the existing organization, the organization operation server will notify the corresponding node to operate the server and user. The state of the operation server update node is the exit state, and the state of the update user is the exit state; for the stop of the existing organization, the organization operation server notifies the corresponding node operation server and the user operation server to update the state of the node to the stop state, and update the state of the user. The stop operation state; and the node operation server will send a message to the associated channel operation server, the channel operation server will remove the relevant node in the node list of the channel, and the organization operation server will send a message to the channel operation server, and the channel operation server will Remove the relevant user certificate from the list of user certificates for the associated channel.
当组织的变动为已停止的组织的恢复时,组织操作服务器会通知节点操 作服务器更新相应节点的状态为活动态,同时节点操作服务器通知通道操作服务器,通道操作服务器在节点所述通道的节点列表中增加该相关的节点;通知组织操作服务器通知用户操作服务器更新用户的状态为活动态,同时组织操作服务器通知通道操作服务器,通道操作服务器在用户所属通道的用户证书列表中增加相关的用户证书。When the change of the organization is the recovery of the stopped organization, the organization operation server notifies the node operation server to update the state of the corresponding node to the active state, and the node operation server notifies the channel operation server, and the channel operation server lists the node of the channel in the node. The related node is added; the organization operation server is notified to notify the user that the operation server updates the user's status to the active state, and the organization operation server notifies the channel operation server, and the channel operation server adds the relevant user certificate to the user certificate list of the channel to which the user belongs.
上述实施例中,当前组件操作服务器为组织操作服务器,则关联组件操作服务器为节点操作服务器和用户操作服务器,从而节点操作服务器和用户操作服务器则会根据组织操作服务器的第一操作结果对相应的用户和节点进行操作,实现了系统组件的动态管理,提高了系统的统一性和整体性,建立了系统组件之间的内在联系,提高了系统的健壮性和稳定性。In the above embodiment, the current component operation server is an organization operation server, and the associated component operation server is a node operation server and a user operation server, so that the node operation server and the user operation server are corresponding to the first operation result of the organization operation server. Users and nodes operate to realize dynamic management of system components, improve system uniformity and integrity, establish internal links between system components, and improve system robustness and stability.
在其中一个实施例中,当前组件操作服务器为排序服务器操作服务器,则关联组件操作服务器为通道操作服务器。In one of the embodiments, the current component operation server is a sort server operation server, and the associated component operation server is a channel operation server.
其中排序服务器的变化包括排序服务器的新增、已有排序服务器的退出、已有排序服务器的停止、已停止的排序服务器的恢复、排序服务器的名称的变化、排序服务器的IP地址和端口的变化。The changes in the sorting server include the addition of the sorting server, the exit of the existing sorting server, the stop of the existing sorting server, the recovery of the stopped sorting server, the change of the name of the sorting server, the IP address of the sorting server, and the change of the port. .
当排序服务器的变化是排序服务器的新增或排序服务器的恢复时,排序服务器操作服务器会为该新增的排序服务器配置名称、IP地址和端口,并通知相应的通道操作服务器。When the change of the sorting server is the recovery of the sorting server's new or sorting server, the sorting server operation server configures the name, IP address, and port for the new sorting server, and notifies the corresponding channel operation server.
当排序服务器的变化是已有排序服务器的退出或已有排序服务器的停止时,则排序服务器操作服务器会更新变动的排序服务器的状态为退出态或停止态,且向通道操作服务器发送消息,通道操作服务器则变更所关联的通道的配置信息的排序服务器列表。When the change of the sorting server is the exit of the existing sorting server or the stop of the existing sorting server, the sorting server operation server updates the state of the changing sorting server to the exit state or the stop state, and sends a message to the channel operation server, the channel The operation server changes the sorting server list of the configuration information of the associated channel.
当排序服务器的变化是IP地址和端口的变化时,排序服务器操作服务器变更对应排序服务器的IP地址和端口,然后通知通道操作服务器,通道操作服务器将新的IP地址和端口替换旧的IP地址和端口。When the change of the sorting server is a change of the IP address and the port, the sorting server operates the server to change the IP address and port of the corresponding sorting server, and then notifies the channel operating server that the channel operating server replaces the old IP address and port with the old IP address and port.
上述实施例中,当前组件操作服务器为排序服务器操作服务器,则关联组件操作服务器为通道操作服务器,从而通道操作服务器则会根据排序服务器操作服务器的第一操作结果对相应的通道进行操作,实现了系统组件的动态管理,提高了系统的统一性和整体性,建立了系统组件之间的内在联系,提高了系统的健壮性和稳定性。In the above embodiment, the current component operation server is a sorting server operation server, and the associated component operation server is a channel operation server, so that the channel operation server operates the corresponding channel according to the first operation result of the sorting server operation server, and realizes The dynamic management of system components improves the uniformity and integrity of the system, establishes the internal relationship between system components, and improves the robustness and stability of the system.
请继续参阅图3,其中通道可以以通道名称或通道编号作为唯一标识,通道中包含了一个或多个节点,一个或多个用户证书,一个或多个排序服务器,其中缺省的状态下是一个排序服务器,多个排序服务器是为了在排序服务器大诚一致性共识后才确定排序的结果。基于通道的交易请求执行时,通道会将交易请求发送至通道内的每一个节点,并通过节点执行交易请求,且 节点在交易请求执行完成后,将初步交易结果返回至通道,通道根据初步交易结果得到目标交易结果,并将目标交易结果发送至排序服务器,由排序服务器进行排序并存储。通道的用户证书列表是指通道内的节点所属组织的用户的用户证书列表,通道和通道内的节点通信时,比如发送交易请求报文等,会选择用户证书中的公钥对报文约定的字段进行加密,并通过通道自己的私钥进行加签,其将公钥作为报文的一部分发送给节点。Please continue to refer to Figure 3, where the channel can be uniquely identified by the channel name or channel number. The channel contains one or more nodes, one or more user certificates, and one or more sorting servers, where the default state is A sorting server, multiple sorting servers are used to determine the sorting result after sorting the server consensus. When a channel-based transaction request is executed, the channel sends a transaction request to each node in the channel, and executes a transaction request through the node, and after the transaction request is completed, the node returns the preliminary transaction result to the channel, and the channel is based on the preliminary transaction. The result is the target transaction result, and the target transaction result is sent to the sorting server, which is sorted and stored by the sorting server. The user certificate list of the channel refers to the user certificate list of the user of the organization to which the node belongs in the channel. When the channel communicates with the node in the channel, for example, sending a transaction request message, the public key in the user certificate is selected for the message. The field is encrypted and tagged with the channel's own private key, which sends the public key as part of the message to the node.
节点是以节点的IP地址和端口或节点的编号作为唯一标识的,其中节点物理上归属于某一个组织,逻辑上关联一个或多个通道,即一个节点可以被一个或多个通道用来执行交易请求。节点在收到通道的报文后,对通道内的报文进行验签,并对约定的报文的字段用节点对应的用户私钥进行解密,然后执行相应的交易请求。A node is uniquely identified by the IP address of the node and the number of the port or node. The node is physically attributed to an organization, logically associated with one or more channels, ie, one node can be used by one or more channels to perform Transaction request. After receiving the packet of the channel, the node checks the packet in the channel, and decrypts the field of the agreed message with the user private key corresponding to the node, and then executes the corresponding transaction request.
用户是以组织用户名或用户编号作为唯一标识的,用户归属于某个组织,一个组织内的用户可以对应组织内的一个或多个节点,即用户私钥可以为组织内的一个或多个节点所有,缺省的情况下组织的一个用户的私钥为组织内一个节点所有。The user is uniquely identified by the organization user name or user number. The user belongs to an organization. The user in one organization can correspond to one or more nodes in the organization, that is, the user private key can be one or more in the organization. Node ownership, by default, the private key of a user of the organization is owned by a node in the organization.
组织是以组织名或组织的编号为唯一标识,组织中包含了节点和用户,组织会为其中的每个节点分配一个用户,各个节点对应的用户可以是相同或不同的,组织会建立节点和用户之间的映射关系。The organization is based on the organization name or the number of the organization. The organization contains nodes and users. The organization assigns one user to each node. The users corresponding to each node can be the same or different. The organization will establish nodes and The mapping relationship between users.
排序服务器是以排序服务器的IP地址和端口或排序服务器的编号为唯一标识的,排序服务器为通道提供目标交易结果的排序和存储功能。The sorting server is uniquely identified by the IP address of the sorting server and the port or sorting server number. The sorting server provides the channel with the sorting and storage function of the target transaction result.
请参阅图4,图4为根据一个或多个实施例中交易请求处理步骤的流程图,该交易请求处理步骤可以包括:Please refer to FIG. 4. FIG. 4 is a flowchart of a transaction request processing step according to one or more embodiments. The transaction request processing step may include:
S402:请求响应服务器接收系统客户端发送的交易请求,并将所接收的交易请求转发至请求服务器。S402: The request response server receives the transaction request sent by the system client, and forwards the received transaction request to the request server.
具体地,系统客户端可以接收交易请求,并将交易请求转发给请求响应服务器,请求响应服务器生成关于交易请求的编号,并将该交易请求和编号转发给请求服务器。Specifically, the system client can receive the transaction request and forward the transaction request to the request response server, the request response server generates a number regarding the transaction request, and forwards the transaction request and number to the request server.
S404:请求服务器获取与交易请求对应的组件的状态,并在组件的状态为可用状态时,通过组件对交易请求进行处理得到目标交易结果。S404: The requesting server acquires the state of the component corresponding to the transaction request, and when the state of the component is the available state, the component transaction result is processed by the component to obtain the target transaction result.
具体地,请求服务器根据请求响应服务器发送的交易请求解析交易请求的类型,并根据交易请求的类型选择合适的通道;且请求服务器可以通过与通道操作服务器或转发服务器进行通信读取通道以及与通道相关的组件的信息和状态,例如节点的信息和状态等;如果通道和相关的组件的状态为可用状态,即活动态时,则将该交易请求转发给通道内的节点执行,通道内的节点对该交易请求进行处理得到初步交易结果,并将该初步交易结果返回给通 道。通道基于该初步交易结果和共识算法策略得到目标交易结果,并将该目标交易结果返回至请求服务器,其中在通道得到目标交易结果后,可以将目标交易结果发送至对应的排序服务器进行处理,排序服务器可以对该目标交易结果通过时间来进行排序,并将排序后的目标交易结果进行存储,节点可以同步排序服务器中的目标交易结果,且排序服务器可以将排序后的目标交易结果主动发送给请求服务器。Specifically, the request server parses the type of the transaction request according to the transaction request sent by the response server, and selects an appropriate channel according to the type of the transaction request; and the request server can read the channel and the channel by communicating with the channel operation server or the forwarding server. Relevant component information and status, such as node information and status; if the status of the channel and related components is available, ie active, then the transaction request is forwarded to the node in the channel for execution, the nodes in the channel The transaction request is processed to obtain a preliminary transaction result, and the preliminary transaction result is returned to the channel. The channel obtains the target transaction result based on the preliminary transaction result and the consensus algorithm strategy, and returns the target transaction result to the request server, wherein after the channel obtains the target transaction result, the target transaction result may be sent to the corresponding sorting server for processing, sorting. The server may sort the target transaction result by time, store the sorted target transaction result, the node may synchronously sort the target transaction result in the server, and the sorting server may actively send the sorted target transaction result to the request. server.
S406:请求服务器将目标交易结果发送至请求响应服务器后,请求响应服务器发送目标交易结果至系统客户端。S406: After requesting the server to send the target transaction result to the request response server, the request response server sends the target transaction result to the system client.
具体地,在请求服务器获取到目标交易结果后,将该目标交易结果发送至请求响应服务器,并由请求响应服务器将该目标交易结果返回至系统客户端。Specifically, after the requesting server obtains the target transaction result, the target transaction result is sent to the request response server, and the target response result is returned to the system client by the request response server.
上述实施例中,通过引入请求响应服务器和请求服务器来对交易请求进行处理,将交易请求与组件操作请求分开处理,互不影响,提高了系统的健壮性和稳定性。In the above embodiment, the transaction request is processed by introducing the request response server and the request server, and the transaction request is processed separately from the component operation request without affecting each other, thereby improving the robustness and stability of the system.
在其中一个实施例中,参见图5,图5为一实施例中的交易请求处理步骤与组件操作请求处理步骤的流程图;请求处理器获取与交易请求对应的组件的状态的步骤之后,还包括:请求服务器接收第一组件操作结果和第二组件操作结果;在组件的状态为可用状态时,通过组件对交易请求进行处理得到目标交易结果的步骤,包括:根据第一组件操作结果和第二组件操作结果获取操作后的可用组件,并通过可用组件对交易请求进行处理得到目标交易结果。In one embodiment, referring to FIG. 5, FIG. 5 is a flowchart of a transaction request processing step and a component operation request processing step in an embodiment; after the step of requesting the processor to acquire the state of the component corresponding to the transaction request, The method includes: the requesting server receives the first component operation result and the second component operation result; and when the component state is the available state, the step of processing the transaction request by the component to obtain the target transaction result, including: the first component operation result and the first component The result of the two component operation obtains the available components after the operation, and processes the transaction request through the available components to obtain the target transaction result.
具体地,交易请求的处理直接涉及到的组件包括通道、节点、用户和排序服务器,组织的变更则会触发节点和用户的变更,从而间接对请求的执行产生影响,其中用户的变更会触发所关联的通道内用户证书的变更和所关联的节点的用户私钥的变更,节点的变更会触发通道的节点列表的变更,排序服务器的变更会触发所关联的通道的排序服务器的列表的变更,在当前组件操作服务器对当前组件进行操作得到第一组件操作结果以及关联组件操作服务器对关联组件进行操作得到第二组件操作结果后,当前组件操作服务器以及关联组件操作服务器可以直接将该第一组件操作结果和第二组件操作结果发送给请求服务器,或者由通道操作服务器转发给请求服务器,或者由转发服务器转发给请求服务器,请求服务器在接收到该第一组件操作结果和第二组件操作结果后,相应地获取到可用的组件,并通过可用组件对交易请求进行处理得到目标交易结果。Specifically, the processing directly involved in the processing of the transaction request includes a channel, a node, a user, and a sorting server, and the change of the organization triggers the change of the node and the user, thereby indirectly affecting the execution of the request, wherein the user's change triggers the The change of the user certificate in the associated channel and the change of the user private key of the associated node, the change of the node triggers the change of the node list of the channel, and the change of the sorting server triggers the change of the list of the sorting server of the associated channel, After the current component operation server operates on the current component to obtain the first component operation result and the associated component operation server operates the associated component to obtain the second component operation result, the current component operation server and the associated component operation server may directly directly use the first component. The operation result and the second component operation result are sent to the request server, or are forwarded to the request server by the channel operation server, or forwarded to the request server by the forwarding server, and the request server receives the first component operation result and the second component operation node. After accordingly acquired available components, and processes the transaction request by the available components to obtain the target transaction result.
其中请求服务器以通道服务为主体执行交易请求,在接收到组件操作结果时,如果组件操作结果中包括了通道的变更,例如组件操作结果包括通道 的新增,则新增的通道由于与正在执行的交易请求的通道没有关联,因此对交易请求没有影响。如果组件操作结果包括通道的退出,则直接终止该通道的通道服务。如果组件操作结果包括通道的停止,则直接停止该通道的通道服务。如果组件操作结果包括已停止的通道的恢复,则直接回复该通道的通道服务,不会对交易请求的处理造成影响。The requesting server performs the transaction request by using the channel service as the main body. When the component operation result is received, if the component operation result includes the channel change, for example, the component operation result includes the channel addition, the newly added channel is executed and executed. The channel of the transaction request is not associated and therefore has no effect on the transaction request. If the component operation result includes the exit of the channel, the channel service of the channel is directly terminated. If the component operation result includes the stop of the channel, the channel service of the channel is directly stopped. If the component operation result includes the recovery of the stopped channel, the channel service of the channel is directly replied, and the processing of the transaction request is not affected.
如果组件操作结果包括通道名称的变化,其对正在执行的交易请求没有影响,且在通道接收到新的交易请求时,则根据新的通道名称进行分配。If the component operation result includes a change in the channel name, it has no effect on the transaction request being executed, and when the channel receives a new transaction request, it is allocated according to the new channel name.
如果组件操作结果包括通道的节点列表的变化,例如当节点列表中存在新的节点时,在交易请求尚未发送给通道内节点执行时,则交易请求会被发送给该新的交易节点,如果交易请求已经发送给了通道内已有的节点时,则该新的节点不会参与交易请求的执行,通道内已有的节点继续执行当前交易请求;当通道的节点列表中存在节点的减少时,如果当前交易请求已经发送给了通道内的节点,即也发送给了减少的节点,则当前交易请求会继续进行,此时通过通道与节点之间的通信超时处理来进行相应地处理,即无论减少的节点是否有反馈都不会影响交易请求的执行和处理结果。如果组件操作结果包括通道的用户列表的变更,由于通道是使用节点对应的用户证书内的公钥对交易请求的关键字段进行加密,从而接收到交易请求的节点通过对应的用户私钥进行解密,而用户和节点归属于同一个组织,因此对于用户列表的变更可以参见上文中节点列表的变更,在此不再赘述。If the component operation result includes a change in the node list of the channel, for example, when there is a new node in the node list, when the transaction request has not been sent to the node in the channel for execution, the transaction request is sent to the new transaction node if the transaction When the request has been sent to an existing node in the channel, the new node will not participate in the execution of the transaction request, and the existing node in the channel continues to execute the current transaction request; when there is a decrease in the node list in the channel, If the current transaction request has been sent to the node in the channel, that is, it is also sent to the reduced node, the current transaction request will continue. At this time, the communication timeout processing between the channel and the node is processed accordingly, that is, regardless of Whether the reduced nodes have feedback will not affect the execution and processing results of the transaction request. If the component operation result includes a change of the user list of the channel, since the channel encrypts the key segment of the transaction request by using the public key in the user certificate corresponding to the node, the node receiving the transaction request decrypts through the corresponding user private key. The user and the node belong to the same organization. Therefore, for the change of the user list, refer to the change of the node list in the above, and details are not described herein again.
如果组件操作结果包括排序服务器的变更,由于通道服务器只需要节点数的n/2+1(n代表节点数)对交易请求执行的成功反馈,即可认为当前交易请求的执行结果是一致的;否则认为交易请求执行失败。通道内的排序服务器列表用于对排序服务达成一致性,也需要数量上的m/2+1(m代表排序服务器数量)一致,认为交易请求执行结果一致;否则认为交易请求执行失败;缺省的情况下是通道使用单个排序服务器,对于单个排序服务器,如果在排序服务进行中,排序服务器退出或者停止,系统会为通道服务分配新的排序服务器,通道服务重新进行排序;排序服务器的新增或恢复,由请求处理器进行重新调配,不会影响当前请求的执行。If the result of the component operation includes the change of the sorting server, since the channel server only needs n/2+1 of the number of nodes (n represents the number of nodes), the execution result of the current transaction request is consistent; Otherwise, the transaction request execution is considered to have failed. The sorting server list in the channel is used to achieve consistency in the sorting service. It also requires the number of m/2+1 (m represents the number of sorting servers) to be consistent, and the transaction request execution result is consistent; otherwise, the transaction request execution fails; In the case where the channel uses a single sorting server, for a single sorting server, if the sorting service is in progress, the sorting server exits or stops, the system assigns a new sorting server to the channel service, and the channel service is reordered; the sorting server is added. Or recovery, re-provisioned by the requesting processor, does not affect the execution of the current request.
上述实施例中,在交易请求处理过程中存在组件操作结果时,则请求服务器根据组件操作结果相应地处交易请求,不会因为组件的操作导致交易请求处理中止或丢失,提高了系统的稳定性。In the above embodiment, when there is a component operation result in the transaction request processing process, the request server correspondingly executes the transaction request according to the component operation result, and the transaction request processing is not suspended or lost due to the operation of the component, thereby improving the stability of the system. .
在其中一个实施例中,该方法还可以包括当请求服务器正在处理交易请求时,则在请求服务器通过组件对交易请求进行处理得到目标交易结果后,当前组件操作服务器根据组件操作请求对当前组件进行操作得到第一组件操作结果。In one embodiment, the method may further include: when the requesting server is processing the transaction request, after the requesting server processes the transaction request by the component to obtain the target transaction result, the current component operation server performs the current component according to the component operation request. The operation obtains the result of the first component operation.
具体地,当请求服务器正在处理交易请求时,发生了组件操作请求,则系统可以先暂停组件操作请求的执行,首先对交易请求进行处理得到目标交易结果后,再根据组件操作请求对当前组件进行操作得到第一组件操作结果,这样可以防止组件操作请求对于交易请求的影响。Specifically, when the request server is processing the transaction request, when the component operation request occurs, the system may first suspend execution of the component operation request, first process the transaction request to obtain the target transaction result, and then perform the current component according to the component operation request. The operation gets the result of the first component operation, which prevents the component operation request from affecting the transaction request.
上述实施例中,当在交易请求处理过程中存在组件操作请求时,则可以首先暂停组件操作请求的执行,即先处理交易请求,在交易请求处理完成后再对组件操作请求进行处理,保证了交易请求的正常处理,提高了系统的稳定性。In the above embodiment, when there is a component operation request in the transaction request processing process, the execution of the component operation request may be suspended first, that is, the transaction request is processed first, and the component operation request is processed after the transaction request processing is completed, thereby ensuring that the component operation request is processed. The normal processing of transaction requests improves the stability of the system.
应该理解的是,虽然图2、图4和图5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、图4和图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2, 4, and 5 are sequentially displayed in accordance with the indication of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIGS. 2, 4, and 5 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution of the sub-steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of the other steps or other steps.
请继续参阅图1,图1示出了一分布式系统的操作系统,其包括转发服务器和当前组件操作服务器。With continued reference to FIG. 1, FIG. 1 illustrates an operating system of a distributed system including a forwarding server and a current component operation server.
转发服务器用于根据组件类型将所接收的组件操作请求转发给当前组件操作服务器。The forwarding server is configured to forward the received component operation request to the current component operation server according to the component type.
当前组件操作服务器用于根据组件操作请求对分布式系统中的当前组件进行操作得到第一组件操作结果;并将第一组件操作结果返回至转发服务器,以使转发服务器发送第一组件操作结果。The current component operation server is configured to operate the current component in the distributed system according to the component operation request to obtain the first component operation result; and return the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result.
在其中一个实施例中,组件操作请求包括组件新增请求、组件退出请求、组件停止请求、组件恢复请求、组件配置信息查询请求或组件配置信息变更请求中的至少一种。In one of the embodiments, the component operation request includes at least one of a component addition request, a component exit request, a component stop request, a component recovery request, a component configuration information query request, or a component configuration information change request.
在其中一个实施例中,当前组件操作服务器还用于将第一组件操作结果发送至关联组件操作服务器,以使关联组件操作服务器根据第一组件操作结果对当前组件关联的关联组件进行操作得到第二组件操作结果后,将第二件操作结果返回至转发服务器。In one embodiment, the current component operation server is further configured to send the first component operation result to the associated component operation server, so that the associated component operation server operates the associated component associated with the current component according to the first component operation result. After the result of the two component operations, the second operation result is returned to the forwarding server.
转发服务器还用于发送第二组件操作结果至系统客户端。The forwarding server is also used to send the second component operation result to the system client.
在其中一个实施例中,当前组件操作服务器为节点操作服务器时,则关联组件操作服务器为组织操作服务器和通道操作服务器。In one of the embodiments, when the current component operation server is a node operation server, the associated component operation server is an organization operation server and a channel operation server.
在其中一个实施例中,当前组件操作服务器为用户操作服务器,则关联组件操作服务器为组织操作服务器。In one of the embodiments, the current component operation server operates the server for the user, and the associated component operation server is an organization operation server.
在其中一个实施例中,当前组件操作服务器为组织操作服务器,则关联组件操作服务器为节点操作服务器和用户操作服务器。In one of the embodiments, the current component operation server is an organization operation server, and the associated component operation server is a node operation server and a user operation server.
在其中一个实施例中,系统还包括请求响应服务器以及请求服务器。In one of the embodiments, the system further includes a request response server and a request server.
请求响应服务器用于接收系统客户端发送的交易请求,并将所接收的交易请求转发至请求服务器。The request response server is configured to receive a transaction request sent by the system client and forward the received transaction request to the request server.
请求服务器用于获取与交易请求对应的组件的状态,并在组件的状态为可用状态时,通过组件对交易请求进行处理得到目标交易结果,并将目标交易结果发送至请求响应服务器。The request server is configured to obtain the state of the component corresponding to the transaction request, and when the state of the component is available, the transaction request is processed by the component to obtain the target transaction result, and the target transaction result is sent to the request response server.
请求响应服务器还用于发送目标交易结果至系统客户端。The request response server is also used to send the target transaction result to the system client.
在其中一个实施例中,请求服务器还用于在获取与交易请求对应的组件的状态之后,接收第一组件操作结果和第二组件操作结果;并根据第一组件操作结果和第二组件操作结果获取操作后的可用组件,并通过可用组件对交易请求进行处理得到目标交易结果。In one embodiment, the requesting server is further configured to: after acquiring the state of the component corresponding to the transaction request, receive the first component operation result and the second component operation result; and according to the first component operation result and the second component operation result Get the available components after the operation, and process the transaction request through the available components to get the target transaction result.
在其中一个实施例中,当前组件操作服务器还用于当请求服务器正在处理交易请求时,则在请求服务器通过组件对交易请求进行处理得到目标交易结果后,根据组件操作请求对当前组件进行操作得到第一组件操作结果。In one embodiment, the current component operation server is further configured to: when the request server is processing the transaction request, after the request server processes the transaction request through the component to obtain the target transaction result, and the current component is operated according to the component operation request. The first component operation result.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干 变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (18)

  1. 一种分布式系统操作方法,包括:A distributed system operation method includes:
    当前组件操作服务器接收转发服务器根据组件类型所转发的组件操作请求;The current component operation server receives the component operation request forwarded by the forwarding server according to the component type;
    当前组件操作服务器根据所述组件操作请求对分布式系统中的当前组件进行操作得到第一组件操作结果;及The current component operation server operates on the current component in the distributed system according to the component operation request to obtain a first component operation result; and
    当前组件操作服务器将所述第一组件操作结果返回至所述转发服务器,以使所述转发服务器发送所述第一组件操作结果至系统客户端。The current component operation server returns the first component operation result to the forwarding server, so that the forwarding server sends the first component operation result to the system client.
  2. 根据权利要求1所述的方法,其特征在于,所述组件操作请求包括组件新增请求、组件退出请求、组件停止请求、组件恢复请求、组件配置信息查询请求或组件配置信息变更请求中的至少一种。The method according to claim 1, wherein the component operation request comprises at least a component addition request, a component exit request, a component stop request, a component recovery request, a component configuration information query request, or a component configuration information change request. One.
  3. 根据权利要求1或2所述的方法,其特征在于,所述当前组件操作服务器根据所述组件操作请求对当前组件进行操作得到第一组件操作结果之后,还包括:The method according to claim 1 or 2, wherein after the current component operation server operates the current component according to the component operation request to obtain the first component operation result, the method further includes:
    当前组件操作服务器将所述第一组件操作结果发送至关联组件操作服务器,以使关联组件操作服务器根据所述第一组件操作结果对所述当前组件关联的关联组件进行操作得到第二组件操作结果后,将第二件操作结果返回至转发服务器;及The current component operation server sends the first component operation result to the associated component operation server, so that the associated component operation server operates the associated component associated with the current component according to the first component operation result to obtain a second component operation result. Returning the second operation result to the forwarding server; and
    所述转发服务器发送所述第二组件操作结果至系统客户端。The forwarding server sends the second component operation result to the system client.
  4. 根据权利要求3所述的方法,其特征在于,所述当前组件操作服务器为节点操作服务器时,则所述关联组件操作服务器为组织操作服务器和通道操作服务器。The method according to claim 3, wherein when the current component operation server is a node operation server, the associated component operation server is an organization operation server and a channel operation server.
  5. 根据权利要求3所述的方法,其特征在于,所述当前组件操作服务器为用户操作服务器,则所述关联组件操作服务器为组织操作服务器。The method according to claim 3, wherein the current component operation server is a user operation server, and the associated component operation server is an organization operation server.
  6. 根据权利要求3所述的方法,其特征在于,所述当前组件操作服务器为组织操作服务器,则所述关联组件操作服务器为节点操作服务器和用户操作服务器。The method according to claim 3, wherein the current component operation server is an organization operation server, and the associated component operation server is a node operation server and a user operation server.
  7. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    请求响应服务器接收所述系统客户端发送的交易请求,并将所接收的交易请求转发至请求服务器;The request response server receives the transaction request sent by the system client, and forwards the received transaction request to the request server;
    请求服务器获取与所述交易请求对应的组件的状态,并在所述组件的状态为可用状态时,通过所述组件对所述交易请求进行处理得到目标交易结果;及Requesting a server to acquire a state of a component corresponding to the transaction request, and processing the transaction request by the component to obtain a target transaction result when the state of the component is an available state; and
    所述请求服务器将所述目标交易结果发送至所述请求响应服务器后,所述请求响应服务器发送所述目标交易结果至所述系统客户端。After the requesting server sends the target transaction result to the request response server, the request response server sends the target transaction result to the system client.
  8. 根据权利要求7所述的方法,其特征在于,所述请求处理器获取与所述交易请求对应的组件的状态之后,还包括:The method according to claim 7, wherein after the requesting processor acquires the state of the component corresponding to the transaction request, the method further includes:
    所述请求服务器接收所述第一组件操作结果和所述第二组件操作结果;The requesting server receives the first component operation result and the second component operation result;
    所述在所述组件的状态为可用状态时,通过所述组件对所述交易请求进行处理得到目标交易结果,包括:When the status of the component is in an available state, the transaction request is processed by the component to obtain a target transaction result, including:
    根据所述第一组件操作结果和所述第二组件操作结果获取操作后的可用组件,并通过所述可用组件对所述交易请求进行处理得到目标交易结果。Obtaining the available components after the operation according to the first component operation result and the second component operation result, and processing the transaction request by the available component to obtain a target transaction result.
  9. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    当所述请求服务器正在处理交易请求时,则在所述请求服务器通过所述组件对所述交易请求进行处理得到目标交易结果后,所述当前组件操作服务器根据所述组件操作请求对当前组件进行操作得到第一组件操作结果。When the requesting server is processing the transaction request, after the requesting server processes the transaction request by the component to obtain the target transaction result, the current component operation server performs the current component according to the component operation request. The operation obtains the result of the first component operation.
  10. 一种分布式系统操作系统,包括转发服务器和当前组件操作服务器;A distributed system operating system, including a forwarding server and a current component operation server;
    所述转发服务器用于根据组件类型将所接收的组件操作请求转发给当前组件操作服务器;The forwarding server is configured to forward the received component operation request to the current component operation server according to the component type;
    所述当前组件操作服务器用于根据所述组件操作请求对分布式操作系统中的当前组件进行操作得到第一组件操作结果;并将所述第一组件操作结果返回至所述转发服务器,以使所述转发服务器发送所述第一组件操作结果。The current component operation server is configured to operate the current component in the distributed operating system according to the component operation request to obtain a first component operation result; and return the first component operation result to the forwarding server, so that The forwarding server sends the first component operation result.
  11. 根据权利要求10所述的系统,其特征在于,所述组件操作请求包括组件新增请求、组件退出请求、组件停止请求、组件恢复请求、组件配置信息查询请求或组件配置信息变更请求中的至少一种。The system according to claim 10, wherein the component operation request comprises at least a component addition request, a component exit request, a component stop request, a component recovery request, a component configuration information query request, or a component configuration information change request. One.
  12. 根据权利要求10或11所述的系统,其特征在于,所述当前组件操作服务器还用于将所述第一组件操作结果发送至关联组件操作服务器,以使关联组件操作服务器根据所述第一组件操作结果对所述当前组件关联的关联组件进行操作得到第二组件操作结果后,将第二件操作结果返回至转发服务器;及The system according to claim 10 or 11, wherein the current component operation server is further configured to send the first component operation result to an associated component operation server, so that the associated component operation server is according to the first The component operation result is performed on the associated component associated with the current component to obtain a second component operation result, and the second operation result is returned to the forwarding server;
    所述转发服务器还用于发送所述第二组件操作结果至系统客户端。The forwarding server is further configured to send the second component operation result to the system client.
  13. 根据权利要求12所述的系统,其特征在于,所述当前组件操作服务器为节点操作服务器时,则所述关联组件操作服务器为组织操作服务器和通道操作服务器。The system according to claim 12, wherein when the current component operation server is a node operation server, the associated component operation server is an organization operation server and a channel operation server.
  14. 根据权利要求12所述的系统,其特征在于,所述当前组件操作服务器为用户操作服务器,则所述关联组件操作服务器为组织操作服务器。The system according to claim 12, wherein the current component operation server is a user operation server, and the associated component operation server is an organization operation server.
  15. 根据权利要求12所述的系统,其特征在于,所述当前组件操作服务器为组织操作服务器,则所述关联组件操作服务器为节点操作服务器和用户操作服务器。The system according to claim 12, wherein the current component operation server is an organization operation server, and the associated component operation server is a node operation server and a user operation server.
  16. 根据权利要求12所述的系统,其特征在于,所述系统还包括请求响 应服务器以及请求服务器;The system of claim 12, wherein the system further comprises a request response server and a request server;
    所述请求响应服务器用于接收所述系统客户端发送的交易请求,并将所接收的交易请求转发至请求服务器;The request response server is configured to receive a transaction request sent by the system client, and forward the received transaction request to a request server;
    所述请求服务器用于获取与所述交易请求对应的组件的状态,并在所述组件的状态为可用状态时,通过所述组件对所述交易请求进行处理得到目标交易结果,将所述目标交易结果发送至所述请求响应服务器;The request server is configured to acquire a state of a component corresponding to the transaction request, and when the state of the component is an available state, process the transaction request by the component to obtain a target transaction result, and the target is Transaction results are sent to the request response server;
    所述请求响应服务器还用于发送所述目标交易结果至所述系统客户端。The request response server is further configured to send the target transaction result to the system client.
  17. 根据权利要求16所述的系统,其特征在于,所述请求服务器还用于在获取与所述交易请求对应的组件的状态之后,接收所述第一组件操作结果和所述第二组件操作结果;并根据所述第一组件操作结果和所述第二组件操作结果获取操作后的可用组件,并通过所述可用组件对所述交易请求进行处理得到目标交易结果。The system according to claim 16, wherein the requesting server is further configured to receive the first component operation result and the second component operation result after acquiring a state of a component corresponding to the transaction request And obtaining an available component after the operation according to the first component operation result and the second component operation result, and processing the transaction request by the available component to obtain a target transaction result.
  18. 根据权利要求16所述的系统,其特征在于,所述当前组件操作服务器还用于当所述请求服务器正在处理交易请求时,则在所述请求服务器通过所述组件对所述交易请求进行处理得到目标交易结果后,根据所述组件操作请求对当前组件进行操作得到第一组件操作结果。The system according to claim 16, wherein said current component operation server is further configured to process said transaction request by said component at said request server when said request server is processing a transaction request After the target transaction result is obtained, the current component is operated according to the component operation request to obtain the first component operation result.
PCT/CN2018/075499 2017-11-23 2018-02-06 Method and system for operating distributed system WO2019100596A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711181221.3A CN107947980B (en) 2017-11-23 2017-11-23 Distributed system operation method and system
CN201711181221.3 2017-11-23

Publications (1)

Publication Number Publication Date
WO2019100596A1 true WO2019100596A1 (en) 2019-05-31

Family

ID=61930969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075499 WO2019100596A1 (en) 2017-11-23 2018-02-06 Method and system for operating distributed system

Country Status (2)

Country Link
CN (1) CN107947980B (en)
WO (1) WO2019100596A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246179B (en) * 2018-06-30 2021-06-01 华为技术有限公司 Method and apparatus for maintaining blockchain, server, and computer-readable storage medium
CN109242681B (en) * 2018-08-21 2020-11-20 京东数字科技控股有限公司 Asset data storage method, device, equipment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735032A (en) * 2004-08-13 2006-02-15 华为技术有限公司 Network managing method for supporting distributed management information tree
CN101647012A (en) * 2007-03-23 2010-02-10 微软公司 Unified service management
US20150365283A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency offline vault storage system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682984B (en) * 2016-10-27 2019-09-10 深圳壹账通智能科技有限公司 Transaction business process method and system based on block chain
CN106530083B (en) * 2016-10-27 2018-06-29 深圳壹账通智能科技有限公司 Multichain management method and system based on block chain
CN107277108B (en) * 2017-05-18 2020-09-08 北京众享比特科技有限公司 Method, device and system for processing messages at nodes of block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735032A (en) * 2004-08-13 2006-02-15 华为技术有限公司 Network managing method for supporting distributed management information tree
CN101647012A (en) * 2007-03-23 2010-02-10 微软公司 Unified service management
US20150365283A1 (en) * 2014-06-16 2015-12-17 Bank Of America Corporation Cryptocurrency offline vault storage system

Also Published As

Publication number Publication date
CN107947980B (en) 2020-05-08
CN107947980A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
WO2019100597A1 (en) Transaction data processing method and device, computer equipment, and storage medium
US10853475B2 (en) Systems and methods for event delivery in a cloud storage system
US20210165891A1 (en) Systems and methods for providing multi-node resiliency for blockchain peers
US8645701B2 (en) System and method for zone signing and key management in a DNS system
WO2019095577A1 (en) Method and device for processing data request, computer apparatus, and storage medium
US8064896B2 (en) Push notification service
US11483315B2 (en) Alias management method and device
WO2019100598A1 (en) Transaction processing method and device, computer equipment, and storage medium
JP2012235464A (en) Dnssec signing server
US20120171961A1 (en) System and Method for Quick Authentication between Bluetooth Devices
JP2008533879A (en) Communication method and system comprising identity information and directory management
JP2020087443A (en) Dynamic content distribution protocol for enterprise environment
EP3598705B1 (en) Routing control
US11831768B2 (en) Cryptographic material sharing among entities with no direct trust relationship or connectivity
JP2016051921A (en) Communication system
WO2019100596A1 (en) Method and system for operating distributed system
US20220309583A1 (en) Fair credit screened market data distribution
JP2007515837A (en) Method and system for providing integrity and trust in data management and data delivery processes
US11233876B2 (en) User profile distribution and deployment systems and methods
US11936633B2 (en) Centralized management of private networks
WO2023039165A1 (en) Distributed encryption key allocation
Toth Design of a social messaging system using stateful multicast
US20240137211A1 (en) Distributed Decryption Request Handling
WO2021103986A1 (en) Network device management method and apparatus, network management device, and medium
WO2016141794A1 (en) Method and system for realizing packet authentication

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: 18880989

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18880989

Country of ref document: EP

Kind code of ref document: A1