CN111970358B - Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly - Google Patents

Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly Download PDF

Info

Publication number
CN111970358B
CN111970358B CN202010818235.7A CN202010818235A CN111970358B CN 111970358 B CN111970358 B CN 111970358B CN 202010818235 A CN202010818235 A CN 202010818235A CN 111970358 B CN111970358 B CN 111970358B
Authority
CN
China
Prior art keywords
service
dht
information
target
service information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010818235.7A
Other languages
Chinese (zh)
Other versions
CN111970358A (en
Inventor
雷鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Shenzhen Xunlei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd, Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN202010818235.7A priority Critical patent/CN111970358B/en
Publication of CN111970358A publication Critical patent/CN111970358A/en
Application granted granted Critical
Publication of CN111970358B publication Critical patent/CN111970358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • H04L67/1065Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT] 
    • 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
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a decentralised cloud computing platform, a service deployment and access method and a service deployment and access component. The application discloses a decentralized cloud computing platform is realized based on DHT, includes: a plurality of decentralised nodes, each decentralised node comprising: DHT instances and POD instances; the process for realizing the decentralised cloud computing platform based on the DHT comprises the following steps: collecting a plurality of nodes; deploying a proxy process in each node; the DHT instance and POD instance are deployed in the respective nodes using proxy processes to translate each node into an decentralized node. The application adopts the DHT to realize the decentralization cloud computing platform, each node in the platform is the decentralization node, and the decentralization nodes realize information sharing and exchange based on the DHT, so that the platform has P2P network capability, and the platform service performance is improved. Correspondingly, the service deployment, access method and the service deployment, access component disclosed by the application also have the technical effects.

Description

Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly
Technical Field
The application relates to the technical field of computers, in particular to a decentralised cloud computing platform, a service deployment and access method and a service deployment and access component.
Background
Currently, commonly used service deployment and access platforms are centralized cloud computing platforms. The centralized cloud computing platform can perform service expansion and contraction according to the flow requirements of the client. However, the centralized cloud computing platform does not have the P2P network capability, and cannot share and exchange information, which results in a reduction in platform service performance.
Therefore, how to realize information sharing and exchange in the cloud computing platform and improve platform service performance is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The main purpose of the application is to provide a decentralised cloud computing platform, a service deployment and access method and a service deployment and access component, and aims to solve the technical problem of low service performance of the cloud computing platform.
To achieve the above object, the present application provides a decentralized cloud computing platform, implemented based on DHT, including: a plurality of decentralised nodes, each decentralised node comprising: DHT instances and POD instances;
the process of implementing the decentralized cloud computing platform based on the DHT comprises the following steps:
collecting a plurality of nodes;
deploying a proxy process in each node;
the DHT instance and the POD instance are deployed in respective nodes using the proxy process to translate each node into an decentralized node.
In order to achieve the above object, the present application further provides a service deployment method applied to the decentralized cloud computing platform as described above, including:
receiving a deployment request of a service;
determining a plurality of target decentralised nodes deploying the service;
storing service names and service information of the service in DHT examples of all target decentralizing nodes so that all target decentralizing nodes can complete broadcasting of the service information based on a DHT network protocol and obtain a service information list;
and storing the service information list into DHT instances of the target decentralizing nodes.
Preferably, the service is a server program obtained by utilizing the SDK development of the decentralised cloud computing platform.
Preferably, the service information list includes a plurality of service information, and the service information includes: DHT communication information and/or extranet communication information, service ports, and extension information.
Preferably, storing the service name and service information of the service in DHT instances of respective target decentralized nodes includes:
storing the service name and the service information of the service in the DHT instance of each target decentralization node in a Key-Value Key Value mode; key is the service name, value is the service information;
wherein, the service information corresponding to different target decentralization nodes is different.
To achieve the above object, the present application further provides a service access method applied to the decentralized cloud computing platform as described above, including:
receiving an access request of a service;
inquiring a service information list of the service according to the access request;
and selecting target service information from the service information list, and responding to the access request by utilizing the target service information.
Preferably, the access request is initiated by a client of the service, the client being obtained using SDK development of the decentralized cloud computing platform.
Preferably, the querying the service information list of the service according to the access request includes:
extracting a service name of the service from the access request;
querying the service information list by using the service name, wherein the service information list comprises a plurality of service information, and each service information comprises: DHT communication information and/or extranet communication information, service ports, and extension information.
Preferably, said responding to said access request with said target service information comprises:
and if the target service information comprises the external network communication information, responding to the access request by utilizing the external network communication information.
Preferably, said responding to said access request with said target service information comprises:
and if the target service information only comprises the DHT communication information, responding to the access request by utilizing the DHT communication information.
Preferably, said responding to said access request with said DHT communication information comprises:
and forwarding the access request to a POD instance in the decentralized node corresponding to the target service information by using the DHT communication information, and responding to the access request by using the POD instance.
To achieve the above object, the present application further provides a service deployment apparatus applied to the decentralized cloud computing platform as described above, including:
the first receiving module is used for receiving a deployment request of the service;
a determining module for determining a plurality of target decentralised nodes deploying the service;
the storage module is used for storing the service name and the service information of the service in the DHT instance of each target decentralization node so that each target decentralization node can complete broadcasting of the service information based on a DHT network protocol and obtain a service information list;
and the sharing module is used for storing the service information list into DHT instances of the target decentralizing nodes.
To achieve the above object, the present application further provides a service access apparatus applied to the decentralized cloud computing platform as described above, including:
the second receiving module is used for receiving the access request of the service;
the query module is used for querying a service information list of the service according to the access request;
and the response module is used for selecting target service information from the service information list and responding to the access request by utilizing the target service information.
To achieve the above object, the present application further provides an apparatus comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method disclosed previously.
To achieve the above object, the present application further provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the method of the foregoing disclosure.
According to the scheme, the application provides a decentralised cloud computing platform, which is realized based on DHT and comprises the following components: a plurality of decentralised nodes, each decentralised node comprising: DHT instances and POD instances; the process of implementing the decentralized cloud computing platform based on the DHT comprises the following steps: collecting a plurality of nodes; deploying a proxy process in each node; the DHT instance and the POD instance are deployed in respective nodes using the proxy process to translate each node into an decentralized node.
As can be seen, the application implements a decentralized cloud computing platform using DHT, where each node in the platform includes DHT instances and POD instances thereon, so that each node becomes a decentralized node. The decentralized nodes can realize information sharing and exchange by utilizing the DHT instance and the POD instance, so that the platform has P2P network capability and the service performance of the platform is improved.
Accordingly, the service deployment method and the component (the component, the device and the readable storage medium) and the service access method and the component (the component, the device and the readable storage medium) also have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of a decentralized cloud computing platform disclosed herein;
FIG. 2 is a flow chart of a service deployment method disclosed in the present application;
FIG. 3 is a flow chart of a service access method disclosed in the present application;
FIG. 4 is a schematic diagram of another decentralized cloud computing platform disclosed herein;
FIG. 5 is a schematic diagram of a selection of a target Value disclosed in the present application;
FIG. 6 is a schematic diagram of an underlying protocol stack of the cloud computing platform disclosed in FIG. 4;
FIG. 7 is a schematic diagram of a service deployment apparatus disclosed herein;
FIG. 8 is a schematic diagram of a service access apparatus disclosed herein;
FIG. 9 is a schematic diagram of an apparatus disclosed herein;
fig. 10 is a schematic view of another apparatus disclosed herein.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description herein of "first," "second," etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a decentralized cloud computing platform disclosed herein. In this embodiment, the decentralized cloud computing platform is implemented based on DHT (Distributed Hash Table ), and includes: a plurality of decentralised nodes, each decentralised node comprising: DHT instance and POD instance.
In this embodiment, the process of implementing the decentralized cloud computing platform based on the DHT includes: collecting a plurality of nodes; deploying a proxy process in each node; the DHT instance and POD instance are deployed in the respective nodes using proxy processes to translate each node into an decentralized node. The proxy process may also be set in a proxy server, where each node corresponds to one proxy server.
Based on the platform provided in this embodiment, a user may develop a client program and a server program, deploy the server program on some of the decentralized nodes of the platform (i.e., deploy a service), and then access the server program on the node with the client (i.e., access the service). That is, after the user deploys the service on the platform, DHT instances on the nodes of the platform are updated accordingly, and POD instances corresponding to the service are generated.
Specifically, each decentralizing node comprises a proxy process which is used for managing and deploying platform tasks. Meanwhile, the proxy process deploys DHT instances in the decentralized node such that all DHT instances form a DHT network.
If a service is deployed on the platform, a service information list is provided in the DHT instance on each node, where the service information list includes a plurality of service information, and each service information includes: DHT communication information and/or extranet communication information, service ports and extension information, etc. Since there is one service information list in each decentralised node, information sharing can be achieved. Storing service names and service information in a service information list according to a Key-Value Key Value pair mode; key is service name, value is service information; wherein, the service information corresponding to different decentralizing nodes is different. One service corresponds to one POD instance, and the POD instance is used for responding to an access request initiated by the corresponding service. Multiple POD instances may be included in one de-centralized node.
It should be noted that, one service is deployed on a plurality of decentralizing nodes, and after the service is deployed on a certain decentralizing node, service information corresponding to the current decentralizing node can be obtained; one de-centralized node can therefore be considered to correspond to one service message. All the service information is arranged into a list, and a service information list can be obtained. Because each decentralizing node has one DHT instance, each decentralizing node can complete broadcasting of service information based on a DHT network protocol, so that each decentralizing node has one service information list in the DHT instance, and information sharing can be realized.
It can be seen that the present embodiment implements a decentralized cloud computing platform using DHT, where each node in the platform includes a DHT instance and a POD instance, so each node becomes a decentralized node. The decentralized nodes can realize information sharing and exchange by utilizing the DHT instance and the POD instance, so that the platform has P2P network capability and the service performance of the platform is improved.
Referring to fig. 2, fig. 2 is a service deployment method disclosed in the present application. In this embodiment, the method is applied to the decentralized cloud computing platform provided in the foregoing embodiment, and includes:
s201, receiving a deployment request of the service.
It should be noted that, the service is a server program obtained by SDK development of the decentralized cloud computing platform.
S202, determining a plurality of target decentralizing nodes for deploying the service.
Specifically, a plurality of target decentralised nodes deploying the service may be determined using a service orchestration policy preset in the platform. Service orchestration policies such as: a random selection policy, a load balancing policy, etc. Deployment services may be implemented by invoking the Put interface of the DHT.
S203, storing service names and service information of services in DHT instances of the target decentralizing nodes, so that the target decentralizing nodes can complete broadcasting of the service information based on a DHT network protocol, and a service information list is obtained.
In one embodiment, the service information list includes a plurality of service information, where the service information includes: DHT communication information and/or extranet communication information, service ports, and extension information.
S204, storing the service information list into DHT examples of the target decentralizing nodes.
In one embodiment, storing service names and service information for services in DHT instances of respective target decentralized nodes includes: storing service names and service information of the services in the DHT examples of the target decentralizing nodes in a Key-Value Key Value mode; key is service name, value is service information; wherein, the service information corresponding to different target decentralization nodes is different.
It should be noted that, deployed on the decentralized cloud computing platform is a server program, where when the server program is deployed on the decentralized cloud computing platform, a TCP port or a UDP port is configured to provide a service. The user may develop a client program based on the SDK (Software Development Kit ) on the decentralized cloud computing platform. The client program is used for accessing the server program deployed on the platform.
From the above, the embodiment realizes the decentralised cloud computing platform based on the DHT. In the service deployment process, the platform can realize information sharing and exchange by utilizing the DHT, so that the platform has P2P network capability and improves the service performance of the platform.
Referring to fig. 3, fig. 3 is a service access method disclosed in the present application. In this embodiment, the method is applied to the decentralized cloud computing platform provided in the foregoing embodiment, and includes:
s301, receiving a service access request.
In one embodiment, the access request is initiated by a client of the service, the client being obtained using SDK development of the decentralized cloud computing platform.
S302, inquiring a service information list of the service according to the access request.
The service information list is stored in a DHT instance of a decentralizing node, wherein the decentralizing node is a node with services deployed in the decentralizing cloud computing platform.
In one embodiment, querying a service information list of a service according to an access request includes: extracting a service name of a service from the access request; querying a service information list by using a service name, wherein the service information list comprises a plurality of service information, and each service information comprises: DHT communication information and/or extranet communication information, service ports, and extension information. The query service is implemented by invoking the Get interface of the DHT.
S303, selecting target service information in the service information list, and responding to the access request by utilizing the target service information.
When selecting target service information in the service information list, the node with a short network distance and good network quality is used as the optimal selection target. Of course, the selection may also be made according to other strategies, such as random selection. Because one decentralizing node corresponds to one service information, one service information is selected, namely the node where the service information is located is selected to respond to the request.
In one embodiment, responding to an access request with targeted service information includes: and if the target service information comprises the external network communication information, responding to the access request by using the external network communication information.
In one embodiment, responding to an access request with targeted service information includes: if the target service information only includes DHT communication information, the access request is responded by using the DHT communication information. Wherein responding to the access request with the DHT communication comprises: and forwarding the access request to the POD instance in the decentralized node corresponding to the target service information by using the DHT communication information, and responding to the access request by using the POD instance.
From the above, in this embodiment, service access is performed on the decentralized cloud computing platform implemented based on DHT, and in this process, the platform may utilize DHT to implement information sharing and exchange, so that the platform has P2P network capability, and platform service performance is improved.
The following describes a decentralized cloud computing platform, and the decentralized cloud computing platform and the service access method described above may be referred to each other.
The embodiment provides a cloud computing platform based on decentralization, which comprises: platform construction, service deployment, service access and the like.
And (3) building a platform: the platform collects and manages the decentralised nodes. A proxy server (in which a proxy process is provided) for managing and deploying platform tasks is provided in each of the decentralized nodes, and a DHT instance (i.e., the DHT in fig. 4) is deployed in each of the decentralized nodes by using the proxy server, where all DHT instances form a DHT network.
Service deployment: the user develops a server program and deploys the server program on the decentralized cloud computing platform, and simultaneously configures a TCP (Transmission Control Protoco, transmission control protocol) port or a UDP (User Datagram Protocol ) port to provide a service. Specifically, when a server-side program is deployed on the decentralized cloud computing platform, an appropriate decentralized node may be selected on the current platform. If the proxy server in the selected decentralized node receives the deployment message, the image is downloaded and the service is started. Referring specifically to fig. 4, in fig. 4, deployed services run in POD (container) instances (i.e., PODs in fig. 4), one service corresponding to each POD instance.
After the service is started, the proxy server performs service registration (i.e. service deployment), and the specific operations are as follows: the Put interface that invokes the DHT instance receives and stores the < Key-Value > Key Value pair. Wherein, the key is a character string of the service name, such as a format of the domain name: com. Value is service information of the current service in the current decentralization node, and includes: DHT communication information (communication IP/Port of DHT, etc.) and/or external network communication information (external network IP, etc.), service ports (POD ports, etc.), and extension information. And, the DHT instance in each of the decentralised nodes can broadcast key-Value pairs to other decentralised nodes based on DHT network protocols, such that there is a list of values on each decentralised node. Value can be queried later through the Get interface. When inquiring, the input parameter is Key (service name), and the input parameter is a list of Value. For the same service, in DHT instances of different decentralised nodes, the keys are the same and the values are different.
Service access: before service access, call Get interface to query the list of values, then select one Value from the list as the target Value, and schematic diagram of selecting the target Value can be seen in fig. 5. Since one Value corresponds to one decentralizing node, selecting the target Value means selecting the decentralizing node corresponding to the target Value to provide the service. At this time, a communication channel is established with the de-centralized node corresponding to the target Value, and the communication capability of a transmission layer (TCP or UDP) is provided for an upper layer. Of course, TCP may be further encapsulated to provide the communication capabilities of HTTP (Hyper Text Transport Protocol, hypertext transfer protocol).
Specifically, a client program developed by a client and a server program communicate at an application layer. In the decentralized cloud computing platform, the external network communication information is not necessarily stored in each decentralized node, so that the data transmission of the client and the server needs to be ensured by using a DHT communication protocol. That is, the DHT communication information is used to forward the access request to the POD instance in the decentralized node corresponding to the target Value, and the POD instance is used to respond to the access request.
The underlying protocol stack is shown in fig. 6. Specifically, a layer of proxy protocol for TCP or UDP is encapsulated on the basis that the DHT can communicate, and the original TCP or UDP data packet is sent to the TCP or UDP port of the service.
For example: the server program monitors the UDP port of the local 8080 to provide service to the outside, and the service name is www.abc.com; the client wants to send a UDP signaling (called traffic signaling) to the 8080 service of the service www.abc.com. Based on the service name www.abc.com, a POD instance is located first, and communication information included in the service information is acquired. If only DHT communication information exists in the communication information, the client sends a proxy signaling (comprising a service name, a port type and an original signaling), and after receiving the proxy signaling, the server sends the original signaling to a monitoring port (8080) of a local server program according to the service name, the port and the port type; the server program then receives a signaling from the client from the 8080 port, enabling end-to-end communication. If the communication information has the external network address, the part of the DHT transmission protocol can be omitted, the external network address is directly acquired (acquired by Get interface query interface), and the end-to-end communication is completed by using TCP/IP.
Therefore, the decentralised cloud computing platform provided by the embodiment solves the problems of stable supply and difficult operation and maintenance of the decentralised service nodes. Based on the high-quality DHT network, the development threshold of service discovery and network communication is reduced, meanwhile, the development efficiency is greatly improved, and information sharing and exchange are realized.
A service deployment device provided in the embodiments of the present application is described below, and a service deployment device described below and a service deployment method described above may be referred to each other.
Referring to fig. 7, fig. 7 is a schematic diagram of a service deployment device disclosed in the present application. In this embodiment, the device is applied to a decentralized cloud computing platform implemented based on DHT, and includes:
a first receiving module 701, configured to receive a deployment request of a service;
a determining module 702 for determining a plurality of target decentralized nodes for deploying a service;
a storage module 703, configured to store service names and service information of services in DHT instances of respective target decentralized nodes, so that the respective target decentralized nodes complete broadcasting of the service information based on a DHT network protocol, and obtain a service information list;
a sharing module 704, configured to store the service information list in DHT instances of the respective target decentralized nodes.
In one embodiment, the service is a server-side program obtained using the SDK development of the decentralized cloud computing platform.
In one embodiment, the service information list includes a plurality of service information, where the service information includes: DHT communication information and/or extranet communication information, service ports, and extension information.
In one embodiment, the storage module is specifically configured to:
storing service names and service information of the services in the DHT examples of the target decentralizing nodes in a Key-Value Key Value mode; key is service name, value is service information;
wherein, the service information corresponding to different target decentralization nodes is different.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that the embodiment realizes the decentralised cloud computing platform based on the DHT. In the service deployment process, the platform can realize information sharing and exchange by utilizing the DHT, so that the platform has P2P network capability and improves the service performance of the platform.
A service access apparatus provided in the embodiments of the present application is described below, and a service access apparatus described below and a service access method described above may be referred to each other.
Referring to fig. 8, fig. 8 is a schematic diagram of a service access apparatus disclosed in the present application. In this embodiment, the device is applied to a decentralized cloud computing platform implemented based on DHT, and includes:
a second receiving module 801, configured to receive an access request of a service;
a query module 802, configured to query a service information list of a service according to an access request;
and a response module 803 for selecting the target service information in the service information list and responding to the access request with the target service information.
In one embodiment, the access request is initiated by a client of the service, the client being obtained using SDK development of the decentralized cloud computing platform.
In one embodiment, the query module includes:
an extracting unit for extracting a service name of a service from the access request;
a query unit, configured to query a service information list by using a service name, where the service information list includes a plurality of service information, and each service information includes: DHT communication information and/or extranet communication information, service ports, and extension information.
In one embodiment, the response module is specifically configured to:
and if the target service information comprises the external network communication information, responding to the access request by using the external network communication information.
In one embodiment, the response module is specifically configured to:
if the target service information only includes DHT communication information, the access request is responded by using the DHT communication information.
In one embodiment, the response module is specifically configured to:
and forwarding the access request to the POD instance in the decentralized node corresponding to the target service information by using the DHT communication information, and responding to the access request by using the POD instance.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
It can be seen that the embodiment realizes the decentralised cloud computing platform based on the DHT. In the service access process, the platform can realize information sharing and exchange by utilizing the DHT, so that the platform has P2P network capability and improves the service performance of the platform.
The following describes a device provided in an embodiment of the present application, and a method and an apparatus for service access described in the following and a method and an apparatus for service deployment described in the foregoing may refer to each other.
Referring to fig. 9, fig. 9 is a schematic view of an apparatus disclosed herein. In this embodiment, the apparatus includes:
a memory 901 for storing a computer program;
a processor 902 for executing the computer program to implement the method disclosed in any of the embodiments above.
Referring to fig. 10, fig. 10 is a schematic view of another apparatus disclosed herein. The device may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the device, such as a hard disk of the device. The memory 11 may in other embodiments also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the device. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may be used not only for storing application software installed in the device and various types of data, such as codes of service access programs, service deployment codes, and the like, but also for temporarily storing data that has been output or is to be output.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing data stored in the memory 11, e.g. executing service access programs, service deployment programs, etc.
The bus 13 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
Further, the device may also include a network interface, which may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the device and other electronic devices.
Optionally, the device may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the device and for displaying a visual user interface.
Fig. 10 shows only a device having components 11-13, it will be understood by those skilled in the art that the configuration shown in fig. 10 is not limiting of the device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
A readable storage medium provided in the embodiments of the present application is described below, and a readable storage medium described below and any embodiment described above may be referred to with each other.
A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method disclosed in any of the embodiments. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (12)

1. A decentralized cloud computing platform, characterized by DHT-based implementations, comprising: a plurality of decentralised nodes, each decentralised node comprising: DHT instances and POD instances;
the process of implementing the decentralized cloud computing platform based on the DHT comprises the following steps:
collecting a plurality of nodes;
deploying a proxy process in each node;
deploying the DHT instance and the POD instance in respective nodes using the proxy process to convert each node to an decentralized node;
wherein, the decentralization cloud computing platform is for: receiving a deployment request of a service; determining a plurality of target decentralised nodes deploying the service; storing service names and service information of the service in DHT examples of all target decentralizing nodes so that all target decentralizing nodes can complete broadcasting of the service information based on a DHT network protocol and obtain a service information list; the service information list includes a plurality of service information, and the service information includes: DHT communication information and/or external network communication information, service ports and extension information; and storing the service information list into DHT instances of the target decentralizing nodes.
2. A service deployment method applied to the decentralized cloud computing platform according to claim 1, comprising:
receiving a deployment request of a service;
determining a plurality of target decentralised nodes deploying the service;
storing service names and service information of the service in DHT examples of all target decentralizing nodes so that all target decentralizing nodes can complete broadcasting of the service information based on a DHT network protocol and obtain a service information list; the service information list includes a plurality of service information, and the service information includes: DHT communication information and/or external network communication information, service ports and extension information;
and storing the service information list into DHT instances of the target decentralizing nodes.
3. The service deployment method of claim 2, wherein the service is a server-side program obtained by SDK development of the decentralized cloud computing platform.
4. The service deployment method according to claim 2, wherein storing the service name and service information of the service in DHT instances of respective target decentralized nodes comprises:
storing the service name and the service information of the service in the DHT instance of each target decentralization node in a Key-Value Key Value mode; key is the service name, value is the service information;
wherein, the service information corresponding to different target decentralization nodes is different.
5. A service access method, applied to the decentralized cloud computing platform according to claim 1, comprising:
receiving an access request of a service;
inquiring a service information list of the service according to the access request;
and selecting target service information from the service information list, and responding to the access request by utilizing the target service information.
6. The service access method of claim 5, wherein the access request is initiated by a client of the service, the client being obtained using SDK development of the decentralized cloud computing platform.
7. The service access method according to claim 5, wherein the querying the service information list of the service according to the access request includes:
extracting a service name of the service from the access request;
querying the service information list by using the service name, wherein the service information list comprises a plurality of service information, and each service information comprises: DHT communication information and/or extranet communication information, service ports, and extension information.
8. The service access method according to claim 5, wherein said responding to said access request with said target service information comprises:
and if the target service information comprises the external network communication information, responding to the access request by utilizing the external network communication information.
9. The service access method according to claim 5, wherein said responding to said access request with said target service information comprises:
and if the target service information only comprises the DHT communication information, responding to the access request by utilizing the DHT communication information.
10. The service access method of claim 9, wherein said responding to said access request with said DHT communication information comprises:
and forwarding the access request to a POD instance in the decentralized node corresponding to the target service information by using the DHT communication information, and responding to the access request by using the POD instance.
11. An apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 2 to 4, and/or any one of claims 5 to 10.
12. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 2 to 4, and/or any one of claims 5 to 10.
CN202010818235.7A 2020-08-14 2020-08-14 Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly Active CN111970358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010818235.7A CN111970358B (en) 2020-08-14 2020-08-14 Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010818235.7A CN111970358B (en) 2020-08-14 2020-08-14 Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly

Publications (2)

Publication Number Publication Date
CN111970358A CN111970358A (en) 2020-11-20
CN111970358B true CN111970358B (en) 2023-05-16

Family

ID=73365768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010818235.7A Active CN111970358B (en) 2020-08-14 2020-08-14 Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly

Country Status (1)

Country Link
CN (1) CN111970358B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509727A (en) * 2021-06-07 2022-12-23 贵州白山云科技股份有限公司 Service code processing method, device, equipment and medium based on distributed network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108700922A (en) * 2016-01-07 2018-10-23 纬波里奥股份有限责任公司 Data center management
US10498812B1 (en) * 2019-05-29 2019-12-03 Cloudflare, Inc. State management and object storage in a distributed cloud computing network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052661B (en) * 2013-03-11 2018-04-10 华为技术有限公司 Container name server and container name analytic method
EP3304285A1 (en) * 2015-06-03 2018-04-11 Telefonaktiebolaget LM Ericsson (publ) Implanted agent within a first service container for enabling a reverse proxy on a second container
CN111131345B (en) * 2018-10-30 2022-04-15 伊姆西Ip控股有限责任公司 Distributed node finder in multi-cloud computing environment
CN109600683A (en) * 2018-12-05 2019-04-09 深圳市网心科技有限公司 A kind of VOD method, device and its relevant device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108700922A (en) * 2016-01-07 2018-10-23 纬波里奥股份有限责任公司 Data center management
US10498812B1 (en) * 2019-05-29 2019-12-03 Cloudflare, Inc. State management and object storage in a distributed cloud computing network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design of smart container cloud based on DHT;Xiaolan Xie;《2017 13th International Conference on Natual Computation,Fuzzy Systems and Knowledge Discovery》;全文 *
新型多媒体业务云计算平台网络架构的设计与实现;陈宇峰;《计算机与数字工程》;第45卷(第6期);1116-1120 *

Also Published As

Publication number Publication date
CN111970358A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US11528226B2 (en) Network validation with dynamic tunneling
US7788522B1 (en) Autonomous cluster organization, collision detection, and resolutions
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
CN104836821B (en) A kind of network accelerating method based on router device, device and equipment
CN102404396B (en) Method, device and system for identifying peer-to-peer (P2P) flow and equipment
US7836164B2 (en) Extensible network discovery subsystem
CN110381131B (en) Method for realizing MEC node identification, mobile terminal, server and storage medium
US9866448B2 (en) Electronic device and method for DNS processing
Klauck et al. Chatty things-Making the Internet of Things readily usable for the masses with XMPP
CN112015544A (en) Load balancing method, device and equipment of k8s cluster and storage medium
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
CN101895520B (en) Widget system data sharing method, server and data sharing system
CN113746928A (en) Cross-cloud service calling method, device and system
CN116633934A (en) Load balancing method, device, node and storage medium
CN111970358B (en) Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly
EP2656591B1 (en) DNS proxy service for multi-core platforms
US10069715B2 (en) Method for deploying resource in cloud computing environment
WO2016175872A1 (en) Network based service discovery via unicast messages
EP2656590B1 (en) DNS forwarder for multi-core platforms
Chang et al. An efficient service discovery system for dual-stack cloud file service
US10958580B2 (en) System and method of performing load balancing over an overlay network
CN114048028A (en) Service calling method and device, storage medium and electronic equipment
CN102792659A (en) Utilizing resources of a peer-to-peer computer environment
JP5508472B2 (en) Information processing apparatus, communication system, and communication method
CN112162868B (en) Data communication method, device and storage medium applied to cluster processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210909

Address after: 518000 21 / f-23 / F, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, South Keji Road, high tech community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Xunlei Networking Technologies, Ltd.

Applicant after: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd.

Address before: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant