Access processing method and device, cloud computing cluster, equipment, medium and program product
By dividing the buffer namespace and internal namespace in the cloud computing cluster, and forwarding requests according to access types, the security threat problem of external networks to internal networks in cloud computing scenarios is solved, and security and operating efficiency are improved.
Patent Information
- Application Number
- CN202410916807.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In cloud computing scenarios, because the internal network is exposed to the external network, there are security risks. Hackers may invade and steal sensitive information or conduct destructive attacks, resulting in serious security threats.
The cloud computing cluster is divided into mutually isolated buffer namespaces and internal namespaces. The buffer namespace deploys external network access services, and the internal namespace deploys internal network access services. It receives access requests and forwards them to the corresponding namespace for processing according to their types. , to achieve isolation and management of external network access and internal network access.
Effectively distinguish external and internal access requests, prevent external network access requests from accessing internal services, and improve the security and overall operating efficiency of cloud computing clusters.
Smart Images

Figure CN118869822A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of cloud computing technology, and in particular to an access processing method, apparatus, cloud computing cluster, device, medium, and program product. Background Art
[0002] Cloud computing is an Internet-based computing model that provides resources (such as computing power and storage space) to users as services. This model allows users to instantly obtain the required computing power and storage space through the network without having to own hardware or software resources locally, greatly improving resource utilization and flexibility, and has become a mainstream trend in today's information technology field.
[0003] However, in cloud computing scenarios, since internal networks usually contain sensitive data or core mission systems, direct exposure to external networks may lead to security risks. Hackers can invade the internal network through external networks, steal sensitive information or conduct destructive attacks, posing serious security threats to the cloud computing environment. Therefore, effective measures must be taken to protect the internal network from the adverse effects of external networks.
[0004] Therefore, there is an urgent need for an access processing method that can be applied to cloud computing scenarios and ensure the security of the intranet. Summary of the invention
[0005] In view of this, an embodiment of this specification provides an access processing method. One or more embodiments of this specification also relate to an access processing device, a cloud computing cluster, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.
[0006] According to a first aspect of an embodiment of the present specification, an access processing method is provided, which is applied to a control node in a cloud computing cluster, wherein the computing nodes in the cloud computing cluster are divided into at least two types of namespaces, wherein the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, wherein the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network; and the method comprises:
[0007] receiving an access request sent by an access terminal, wherein the access request includes target access information;
[0008] Determine the access type of the access request based on the target access information;
[0009] When the access type is external network access, the access request is forwarded to the buffer namespace for processing;
[0010] When the access type is internal network access, the access request is forwarded to the internal namespace for processing.
[0011] According to a second aspect of an embodiment of this specification, there is provided an access processing device, including:
[0012] A receiving module, configured to receive an access request sent by an access terminal, wherein the access request includes target access information;
[0013] a determination module configured to determine an access type of the access request based on the target access information;
[0014] A first forwarding module is configured to forward the access request to the buffer namespace for processing when the access type is external network access;
[0015] The second forwarding module is configured to forward the access request to the internal namespace for processing when the access type is internal network access.
[0016] According to a third aspect of an embodiment of this specification, there is provided a cloud computing cluster, including a control node and a computing node, wherein the computing node is divided into at least two types of namespaces, wherein the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, wherein the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network;
[0017] A control node is used to receive an access request sent by an access terminal, wherein the access request includes target access information; based on the target access information, determine the access type of the access request; when the access type is external network access, forward the access request to the buffer namespace for processing; when the access type is internal network access, forward the access request to the internal namespace for processing.
[0018] According to a fourth aspect of an embodiment of this specification, a computing device is provided, including:
[0019] Memory and processor;
[0020] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the access control method are implemented.
[0021] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and the computer program / instruction implements the steps of the above-mentioned access control method when executed by a processor.
[0022] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instruction, which implements the steps of the above-mentioned access control method when executed by a processor.
[0023] An embodiment of the present specification is applied to a control node in a cloud computing cluster. The computing nodes in the cloud computing cluster are divided into at least two types of namespaces, and the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other. The buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network, so as to realize receiving an access request sent by an access terminal, wherein the access request includes target access information, and based on the target access information, the access type of the access request is determined. When the access type is an external network access, the access request is forwarded to the buffer namespace for processing, and when the access type is an internal network access, the access request is forwarded to the internal namespace for processing. The control node and the computing node are divided into different namespaces, and the isolation and management of external network access and internal network access are realized in the cloud computing cluster. Through this method, external access and internal access can be effectively distinguished, and requests are forwarded to the corresponding namespace for processing according to the access type, so as to prevent access requests from external networks from accessing internal services, thereby improving the security of the cloud computing cluster and helping to improve the overall operation efficiency and security of the cloud computing cluster. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of an access process of a cloud computing cluster provided by an embodiment of this specification;
[0025] Figure 2 is a flow chart of an access processing method provided by an embodiment of this specification;
[0026] Figure 3 It is a process flow chart of building a cloud native DMZ provided by an embodiment of this specification;
[0027] Figure 4 is a schematic diagram of the structure of an access processing device provided by an embodiment of this specification;
[0028] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0029] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0030] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0031] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0032] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0033] First, the terms involved in one or more embodiments of this specification are explained.
[0034] Cloud native: Cloud native refers to an approach to building and running applications that fully leverages the model and advantages of cloud computing. This approach emphasizes using the elasticity, scalability, automation, and agility of cloud services to build and deploy applications.
[0035] DMZ: Demilitarized Zone. In the field of network security, it refers to a physical or logical subnet that serves as a buffer between the internal network (i.e., local area network or private network) and the external network (usually the Internet). The purpose of DMZ is to provide an additional layer of security to ensure that external users can access open public services without directly contacting the internal network of the enterprise.
[0036] Kubernetes: A cloud computing cluster that provides high scalability and flexibility, allowing for automated deployment, scaling, and management of containerized applications.
[0037] Docker Swarm: A cluster management and orchestration tool that allows users to group multiple hosts into a single virtual host. Provides an easy-to-use way to manage containers.
[0038] Apache Mesos: A distributed systems kernel that abstracts the resources of an entire data center or cloud into a unified resource pool.
[0039] Application container: Container is a lightweight, portable software packaging technology that encapsulates applications and all their dependencies, including code, runtime environment, system tools, library files, etc., so that applications can run in different computing environments. Containerization technology allows developers to isolate applications from their runtime environment, thereby achieving the advantages of rapid deployment, reliable operation, and cross-platform portability.
[0040] Cloud computing is an Internet-based computing model that provides resources (such as computing power and storage space) to users as services. This model allows users to instantly obtain the required computing power and storage space through the network without having to own hardware or software resources locally, greatly improving resource utilization and flexibility, and has become a mainstream trend in today's information technology field.
[0041] However, in cloud computing scenarios, since internal networks usually contain sensitive data or core mission systems, direct exposure to external networks may lead to security risks. Hackers can invade the internal network through external networks, steal sensitive information or conduct destructive attacks, posing serious security threats to the cloud computing environment. Therefore, effective measures must be taken to protect the internal network from the adverse effects of external networks.
[0042] In non-cloud computing scenarios, network security is usually maintained by establishing a DMZ area. The DMZ acts as a buffer between the internal network and the external network (such as the Internet), so that networks with different trust levels are isolated. This layered security strategy can enhance the overall network defense capabilities. Services deployed in the DMZ (such as web servers, mail servers, etc.) can be accessed by external networks without providing direct access to the internal network. This means that even if the services in the DMZ are compromised, it is difficult for attackers to directly enter the internal network. By placing services provided to external users in the DMZ, these services can be isolated from internal critical systems, thereby reducing the risk to internal systems when the services are attacked.
[0043] DMZ allows network administrators to more easily monitor and control traffic in and out of the internal network. Firewalls and other security devices can be configured to allow only specific types of traffic to pass through, and can monitor this traffic to detect anomalies or attack behavior. 5. For some industries, such as finance, healthcare, and retail, user-facing services may be separated from sensitive data based on industry standards or needs. DMZ can help meet these compliance requirements. Servers in the DMZ are usually strictly configured and hardened to reduce the attack surface. This means that even if these servers face direct threats from the Internet, they can provide greater resistance. 7. When the services separated in the DMZ are attacked or have problems, other tasks of the internal network can be run without affecting them, thereby improving task continuity and stability. For organizations that handle sensitive information, DMZ helps protect data in the internal network and prevent data leakage or unauthorized access.
[0044] However, traditional DMZ relies on physical hardware, and updating, managing, and expanding services often requires a lot of manual operations, which makes it difficult to support modern microservice architectures. Resource utilization is usually fixed and inefficient, and resources cannot be flexibly allocated and optimized according to demand, which cannot adapt to the current wave of cloud computing. At the same time, traditional DMZ relies on a large number of hardware devices such as servers, which has a large maintenance cost. Therefore, a DMZ construction method applied to cloud computing scenarios is continued to process access requests from different networks in cloud computing scenarios.
[0045] In response to the above problems, this specification provides an access processing method. This specification also involves an access processing device, a cloud computing cluster, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0046] See also Figure 1 , Figure 1 This is a schematic diagram of the access process of a cloud computing cluster provided by an embodiment of the present specification. The cloud computing cluster specifically includes a control node and a computing node. The computing nodes in the cloud computing cluster are divided into at least two types of namespaces, and the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other. The buffer namespace is deployed with an access service for an external network, and the internal namespace is deployed with an access service for an internal network. The control node is used to receive access requests from external access terminals and access requests from internal access terminals, wherein the access request includes target access information. The control node determines the access type of the access request based on the target access information. When the access type is external network access, the control node forwards the access request to the computing node of the buffer namespace for processing. When the access type is internal network access, the control node forwards the access request to the computing node of the internal namespace for processing.
[0047] Applied to the cloud computing cluster, the computing nodes in the cloud computing cluster are divided into at least two types of namespaces, at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network, and the access request sent by the access end is received, wherein the access request includes target access information, and the access type of the access request is determined based on the target access information. When the access type is an external network access, the access request is forwarded to the buffer namespace for processing, and when the access type is an internal network access, the access request is forwarded to the internal namespace for processing. The control node and the computing node are divided into different namespaces, and the isolation and management of the external network access and the internal network access are realized in the cloud computing cluster. Through this method, the external access request and the internal access request can be effectively distinguished, and the request is forwarded to the corresponding namespace for processing according to the access type, so as to prevent the access request from the external network from accessing the internal service, thereby improving the security of the cloud computing cluster and helping to improve the overall operation efficiency and security of the cloud computing cluster.
[0048] See also Figure 2 , Figure 2 It is a flowchart of an access processing method provided by an embodiment of this specification, which specifically includes the following steps.
[0049] Step 202: Receive an access request sent by an access terminal, wherein the access request includes target access information.
[0050] The access processing request is a request sent by the access end to the control node. The access end includes the access end of the internal network and the access end of the external network. The target access information may include the resource, service, address, port or other identifier of the access request so that the control node can accurately route the request to the corresponding computing node. The computing nodes in the cloud computing cluster are divided into at least two types of namespaces, and the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other. The buffer namespace is deployed with an access service of the external network, and the internal namespace is deployed with an access service of the internal network. The control node is used to coordinate, manage and control communications in the cloud computing cluster.
[0051] In actual applications, before the control node receives the access processing request, in the cloud computing cluster, the computing nodes are divided into at least two types of namespaces, namely the buffer namespace and the internal namespace. These namespaces are isolated from each other to ensure security and isolation. The buffer namespace is deployed with computing nodes of the external network access service to process the access request of the external network. The internal namespace is deployed with the internal network access service to process the access request of the internal network.
[0052] In a specific embodiment of the present specification, a cloud computing cluster is used to provide an online store service as an example. In the cloud computing cluster, computing nodes for processing external network access requests are deployed in the buffer namespace. For example, a node responsible for processing access to the store website from Internet users is located in the buffer namespace and provides external access services. Users can send HTTP requests to this node through a browser to browse the store's product pages. The cloud computing cluster also deploys computing nodes for processing internal network access requests in the internal namespace. For example, a node responsible for processing access to the backend management system by store managers is located in the internal namespace and provides internal access services. Store managers can access this node through the internal network to manage information such as product inventory and orders.
[0053] Step 204: Determine the access type of the access request based on the target access information.
[0054] The access types include internal network access and external network access.
[0055] In actual applications, the control node first parses the target access information in the access request, including the requested resources, services, addresses, etc. The control node determines whether the access request comes from the internal network or the external network based on the address or network identifier involved in the target access information. In addition, the control node can also parse the request data in the access request to determine the service type requested by the access request. If the service type requested by the access request is an external service such as a website access service, an email sending service, etc., then the access type can be determined to be an external network service. If the service type requested by the access request is an internal service such as a database query, etc., then the access type can be determined to be an internal network service.
[0056] In a specific embodiment of the present specification, an access request involves accessing a specific network address and requesting to query a database. The control node first parses the access request and extracts the target access information, including the requested resources, services, addresses, etc. Then, the control node determines whether the access request comes from an internal network or an external network based on the address or network identifier in the target access information. In this example, it is assumed that the target address is a database server in the internal network. Next, the control node further parses the request data in the access request to determine the service type requested by the access request. Since the request is a service type for querying a database, which is an internal service type, the control node can determine that the access type is an internal network service.
[0057] Furthermore, the target access information includes an access terminal identifier; based on the target access information, the access type of the access request is determined, including: when the access terminal identifier represents that the access terminal is an external network access terminal, determining that the access type of the access request is an external network access; when the access terminal identifier represents that the access terminal is an internal network access terminal, determining that the access type of the access request is an internal network access.
[0058] The access point identifier is an identifier that marks the identity of the access point.
[0059] In practical applications, first, the control node needs to extract the target access information from the access request, including the access end identifier. The access end identifier can be information such as the source Internet Protocol Address (IP address), the Media Access Control Address (MAC address), and the user identity identifier, which is used to determine the source of the access request. Based on the extracted access end identifier, the control node can determine whether the access end belongs to the internal network or the external network. For example, if the access end identifier indicates that the access end is an external network access end, the access request can be determined to be an external network access; if the identifier indicates that the access end is an internal network access end, the access request can be determined to be an internal network access. After determining whether the access end belongs to the external network or the internal network, the control node further determines the access type of the access request based on the specific service type involved in the access request. If the request involves external services, such as website access, email sending, etc., the access type is external network access; if the request involves internal services, such as querying a database, accessing an internal system, etc., the access type is internal network access.
[0060] In a specific embodiment of this specification, an access request is taken as an example, in which an internal user initiates a request to query stored data. The user initiates an access request, attempting to query stored data in a cloud computing cluster. The control node extracts an access terminal identifier from the access request, which may be the IP address, MAC address, or personal identification of the user's current device. The control node determines that the access request is from the internal network based on the extracted access terminal identifier, and the access terminal is determined to be an internal network access terminal, so the access type is internal network access.
[0061] Based on this, the control node can effectively determine the access type of the access request based on the access end identifier in the target access information and the service type involved in the request, and thus adopt corresponding security control policies and routing decisions. This process helps ensure that access requests are properly processed and authorized while maintaining network security and data protection.
[0062] Furthermore, the control node is located in an internal network, and the target access information includes target network information of the access request; based on the target access information, the access type of the access request is determined, including: parsing the target access information to obtain the target network information; based on the target network information, identifying whether the access end and the control node are located in the same network; if so, determining that the access type of the access request is internal network access; if not, determining that the access type of the access request is external network access.
[0063] The target network information refers to the information contained in the access request and used to determine the network location of the access end.
[0064] In actual applications, when the control node is deployed in an internal network, after the control node receives an access request, the control node first needs to extract the target access information from the access request, including the target network information, such as parsing the target address, domain name, routing table and other network information in the access request. The control node identifies whether the access terminal and the control node are located in the same network based on the target network information. This can be achieved by comparing the IP address or other network identification information of the access terminal with the range of the network where the control node is located. If the access terminal and the control node are located in the same network, that is, the access terminal is identified as an internal network access terminal, the access type of the access request is internal network access. If the access terminal and the control node are not located in the same network, that is, the access terminal is identified as an external network access terminal, the access type of the access request is external network access.
[0065] In a specific embodiment of the present specification, following the above example, the control node extracts the target access information from the access request, including the IP address of the access terminal. The control node compares the IP address of the access terminal with the range of its own network, confirms that the access terminal is located in the company's internal network, that is, the access terminal is identified as an internal network access terminal, and determines the access type of the access request as internal network access.
[0066] Based on this, the control node can quickly determine the access type of the access request according to its own network information and the target network information.
[0067] Step 206: When the access type is external network access, the access request is forwarded to the buffer namespace for processing.
[0068] In actual applications, the control node determines that the access type of the access request is external network access, that is, the access end is located behind the external network. The control node forwards the access request containing the target access information to the buffer namespace for processing. This means that the access request is sent to a network area dedicated to processing external network access, and the external network access type access request is processed by the computing node in the buffer namespace. After the computing node in the buffer namespace processes the external network access request, the buffer namespace returns the processing result to the control node. The control node then returns it to the access end.
[0069] In a specific embodiment of the present specification, a cloud computing service provider provides cloud services to customers, including network access management and security control. The control node is located in the network of the cloud service provider and is used to manage and monitor access requests. An external user initiates an access request to the cloud service provider's platform via the Internet, hoping to access data or applications stored in the cloud. After the control node confirms that the access type is an external network access based on the target access information in the access request, it forwards the access request containing the target access information to a buffer namespace for processing. This buffer namespace is created in the virtualization environment of the cloud service provider. In the virtualization environment, after the virtual computing node in the buffer namespace receives the external network access request, it will process the access request. After processing the external network access request, the buffer namespace returns the processing result to the control node, and the control node returns the processing result to the external user.
[0070] Furthermore, an application container for executing services is pre-built for the computing node, and the target access information includes request behavior data; before forwarding the access request to the buffer namespace for processing, it also includes: determining the external service type of the access request based on the request behavior data; forwarding the access request to the buffer namespace for processing, including: based on the external service type, forwarding the access request to the application container corresponding to the external service type in the buffer namespace for processing.
[0071] In actual applications, in a cloud computing environment, computing nodes prepare application containers for executing specific services in advance, such as Web server containers, mail server containers, etc. The access request contains the target access information of the request, and also contains the request behavior data, such as the request URL, request method, request parameters, etc. After receiving the access request, the control node determines the external service type of the access request, such as Web service, mail service, etc., based on the request behavior data and the target access information. The control node forwards the access request to the buffer namespace for processing based on the determined external service type. In the buffer namespace, based on the determined external service type, the corresponding application container is selected to process the access request, such as selecting a Web server container to process a Web service request. After receiving the access request, the selected application container executes the corresponding service logic, such as returning the web page content based on the request URL. After the application container processes the access request, it returns the processing result to the control node, and the control node returns the response to the external user.
[0072] In a specific embodiment of this specification, a cloud computing cluster provides online shopping related services as an example. In a cloud computing environment, computing nodes prepare application containers for executing specific services in advance, such as a Web server container for processing web page requests and a database container for processing data access requests. A user visits an online shopping website and initiates a request to browse a product details page. The request contains target access information (user's IP address) and request behavior data (URL of the product details page). The control node determines that the access type of the access request is external network access and the external service type is Web service based on the request behavior data and the target access information. The control node forwards the access request to the buffer namespace. In the buffer namespace, according to the determined Web service type, a Web server container deployed therein is selected to process the request. After receiving the request, the Web server container queries the database to obtain product details information according to the requested URL, and constructs the web page content and returns it to the user. After the Web server container processes the request, it returns the content of the product details page as a response to the control node, and the control node returns the response of the product details page to the visiting user.
[0073] Based on this, the control node can dynamically select the appropriate application container to process the request according to the external service type of the access request, thereby improving the flexibility and efficiency of the cloud computing cluster.
[0074] Step 208: When the access type is internal network access, the access request is forwarded to the internal namespace for processing.
[0075] In actual applications, the control node determines that the access type of the access request is internal network access, that is, the access end is located behind the internal network. The control node forwards the access request containing the target access information to the internal namespace for processing. This means that the access request is sent to the network area dedicated to processing internal network access, and the computing node in the internal namespace processes the internal network access type access request. After the computing node in the buffer namespace processes the internal network access request, the internal namespace returns the processing result to the control node. The control node then returns it to the access end.
[0076] In a specific embodiment of the present specification, a cloud computing service provider provides cloud services to customers, including network access management and security control. An internal user sends an access request to a control node through an internal network. After the control node confirms that the access type is external network access based on the target access information in the request, it forwards the access request containing the target access information to an internal namespace for processing. The internal namespace is created in a virtualized environment of the cloud service provider. In a virtualized environment, after receiving the internal network access request, the virtual computing node in the internal namespace processes the access request. After processing the internal network access request, the namespace returns the processing result to the control node, and the control node returns the processing result to the internal user.
[0077] Furthermore, an application container for executing services is pre-built for the computing node, and the target access information includes request behavior data; before forwarding the access request to the internal namespace for processing, it also includes: determining the internal service type of the access request based on the request behavior data; forwarding the access request to the internal namespace for processing, including: based on the internal service type, forwarding the access request to the application container corresponding to the internal service type in the internal namespace for processing.
[0078] In actual applications, in a cloud computing environment, computing nodes prepare application containers for executing specific services in advance, such as database containers. The access request contains the target access information of the request, and also contains the request behavior data, such as the request URL, request method, request parameters, etc. After receiving the access request, the control node determines the internal service type of the access request, such as database query service, based on the request behavior data and target access information. The control node forwards the access request to the internal namespace for processing based on the determined internal service type. In the internal namespace, based on the determined internal service type, the corresponding application container is selected to process the access request, such as selecting a database container to process a data query request. After receiving the access request, the selected application container executes the corresponding service logic, such as returning specific data based on the query identifier. After the application container processes the access request, it returns the processing result to the control node, and the control node returns the response to the user.
[0079] In a specific embodiment of the present specification, a cloud computing cluster providing online shopping-related services is taken as an example. In a cloud computing environment, computing nodes prepare application containers for executing specific services in advance, such as database containers for processing data access requests. A store manager initiates a request to query the sales of this quarter. The request contains target access information (the IP address of the store manager) and request behavior data (the query identifier of the sales and the query range of this quarter). Based on the request behavior data and the target access information, the control node determines that the access type of the access request is internal network access and the internal service type is data query service. The control node forwards the access request to the internal namespace. In the internal namespace, according to the determined data query service type, a database container deployed therein is selected to process the request. After receiving the request, the database container queries the database to obtain the sales data of this quarter based on the query identifier of the sales and the query range of this quarter, and returns it to the store manager.
[0080] Based on this, the control node can dynamically select the appropriate application container to process the request according to the internal service type of the access request, thereby improving the flexibility and efficiency of the cloud computing cluster.
[0081] Furthermore, before receiving the access request sent by the access terminal, it also includes: collecting the configuration status of each computing node, wherein the computing node is configured by the cloud computing cluster based on the preset configuration information sent by the management terminal, and the preset configuration information includes node information, and the node information is used to characterize the node type of the computing node to be configured; when the configuration status indicates that the configuration of each computing node is successful, sending deployment success information to the management terminal.
[0082] The preset configuration information refers to the specified parameters and data set in advance in the cloud computing environment for configuring the computing nodes.
[0083] In actual applications, the cloud computing management end sends preset configuration information to the cloud computing cluster, including node information of each computing node, which is used to characterize the node type of the computing node to be configured. The computing nodes are configured according to the preset configuration information, and after the configuration is completed, their respective configuration status information is fed back to the control node. Each computing node is configured according to the received preset configuration information, including setting the node type, encapsulating the application container, adjusting resource allocation and other operations. The control node detects the configuration status of each computing node and checks whether all computing nodes have been successfully configured according to the preset configuration information. When all computing nodes are successfully configured, the control node sends a deployment success message to the management end, indicating that the cloud computing cluster is ready to receive access requests.
[0084] Based on this, preset configuration information automates the deployment process, reduces the need for manual intervention, and improves the standardization level of deployment, reduces configuration differences, and reduces error rates. Through preset configuration information, computing nodes can be quickly configured, greatly shortening the deployment time, speeding up the system launch and update speed, and improving task responsiveness. Preset configuration information can be adjusted according to different needs and scenarios to flexibly respond to different deployment needs, while traditional hardware deployment methods may require re-adjusting hardware configuration, which consumes time and resources. Preset configuration information can be used repeatedly, so that the deployment process of the same or similar environment can be repeated, ensuring the consistency and reliability of deployment. Deployment through preset configuration information can more accurately adjust resource allocation, improve resource utilization, reduce resource waste, and thus reduce costs.
[0085] Furthermore, the preset configuration information includes namespace information; the configuration status of each computing node is collected, including: collecting the deployment status of the target computing node, wherein the target computing node is any computing node; collecting the division type of the target computing node, wherein the division type includes a buffer type and an internal type, the buffer type computing node is used to process the access service of the external network, the internal type computing node is used to process the access service of the internal network, the buffer type computing node and the internal type computing node are obtained by dividing the computing nodes based on the cloud computing cluster according to the namespace information, and the buffer type computing node is set to prohibit access to the internal network; determine the buffer namespace based on the buffer type computing node, and determine the internal namespace based on the internal type computing node.
[0086] In actual applications, the preset configuration information includes namespace information, which is used to describe which namespace each computing node belongs to. The system collects the configuration status of each computing node, including the deployment status of the target computing node and the division type. The division types include buffer type and internal type. The buffer type computing node is used to process the access service of the external network, while the internal type computing node is used to process the access service of the internal network. The cloud computing cluster divides the computing nodes according to the namespace information. The buffer type computing node is set to prohibit access to the internal network. The buffer namespace is determined based on the computing node of the buffer type, which is used to process the access service of the external network. The internal namespace is determined based on the computing node of the internal type, which is used to process the access service of the internal network.
[0087] In a specific embodiment of this specification, a cloud computing cluster including the following computing nodes: Node1, Node2, Node3, Node4 is taken as an example. Now the cloud computing cluster needs to configure and divide these computing nodes according to the described process:
[0088] Preset configuration information: The namespace information is as follows:
[0089] Node1 belongs to the buffer namespace.
[0090] Node2 belongs to the internal namespace.
[0091] Node3 belongs to the buffer namespace.
[0092] Node4 belongs to the internal namespace.
[0093] The control node collects the deployment status and classification type of each computing node. Based on the namespace information, the cloud computing cluster divides the computing nodes into buffer type and internal type. Node1 and Node3 are classified as buffer type. Node2 and Node4 are classified as internal type. Node1 and Node3 are respectively determined as buffer namespaces to process access services of external networks. Node2 and Node4 are respectively determined as internal namespaces to process access services of internal networks. The computing nodes of the buffer type (Node1 and Node3) are set to prohibit access to the internal network and can only process access services of the external network.
[0094] Based on this, the control node divides the computing nodes according to the preset configuration information, determines the namespace and sets its access rights to ensure that the computing nodes can handle external and internal network access services according to different types. This process makes the roles and functions of the computing nodes clear and helps improve the security and efficiency of the cloud computing cluster, while better adapting to different types of network access requirements.
[0095] Furthermore, before receiving the access request sent by the access terminal, it also includes: obtaining historical access records of the cloud computing cluster; determining the load status of the cloud computing cluster based on the historical access records; and adjusting the number of computing nodes based on the load status.
[0096] The load state refers to the workload of the computing node when processing tasks or requests.
[0097] In actual applications, the control node obtains the historical access records of the cloud computing cluster, including the access volume, response time, load status and other indicators of each computing node. Based on the historical access records, the load status of the computing nodes is analyzed, including the workload status and performance indicators of the current computing nodes. By analyzing the historical access records, the load status of the cloud computing cluster can be accurately grasped and the working status of each computing node can be understood. According to the current load status, it is decided whether the number of computing nodes needs to be adjusted. If the load of some computing nodes is too high, additional computing nodes can be added to share the load, or some computing nodes can be adjusted to reduce the load. If the load of some computing nodes is too low, the number of computing nodes can be reduced to save resources and improve resource utilization.
[0098] Based on this, we can make timely decisions to adjust the number of computing nodes according to historical access records and real-time load status to ensure the stability, performance and resource utilization of the cloud computing cluster. Such dynamic adjustment can better adapt to different load conditions and improve the efficiency and performance of the cloud computing cluster.
[0099] Furthermore, the load status includes an overload status and a redundant status; based on the load status, the number of computing nodes is adjusted, including: when the load status is an overload status, increasing the computing nodes in the cloud computing cluster; when the load status is a redundant status, reducing the computing nodes in the cloud computing cluster.
[0100] In actual applications, cloud computing clusters monitor the workload and performance indicators of computing nodes to identify the load status of computing nodes, including overload status and redundant status. Overload status refers to the situation where the computing node load is too high and cannot effectively handle the current workload; redundant status refers to the situation where the computing node load is too low and the resource utilization is not high. When the load status is overloaded, the cloud computing cluster will automatically increase the computing nodes in the cloud computing cluster to share the load of the overloaded nodes and improve the overall cloud computing cluster performance and availability. When the load status is redundant, the cloud computing cluster will reduce the computing nodes in the cloud computing cluster accordingly to save resources and improve resource utilization. For computing nodes in the overloaded state, the cloud computing cluster will dynamically increase computing nodes and perform load balancing operations to ensure that tasks can be effectively processed. For computing nodes in the redundant state, the cloud computing cluster will automatically reduce the number of computing nodes to avoid resource waste and improve resource utilization. The cloud computing cluster will continuously monitor the load status of computing nodes and adjust the number of computing nodes at any time according to actual conditions. Such dynamic adjustment can ensure that the cloud computing cluster is always in a suitable load state and improve the efficiency and performance of the cloud computing cluster.
[0101] In a specific embodiment of this specification, the load of computing node A is very high and the response time is long, indicating that it is in an overloaded state; the load of computing node B is low, the resource utilization is not high, and it is in a redundant state; the load of computing node C is within the normal range and works stably. In this case, the cloud computing cluster will make the following dynamic adjustments:
[0102] For computing node A in an overloaded state: the cloud computing cluster will automatically add computing nodes, such as adding a new node D of the same type, and transfer part of the workload from node A to node D.
[0103] For computing nodes B in redundant state: the cloud computing cluster will reduce the number of redundant nodes B, such as shutting down node B, and reallocating its resources to save resources and improve resource utilization.
[0104] Based on this, the number of computing nodes can be adjusted in time according to different load states to optimize the resource utilization of the cloud computing cluster and improve the stability and performance of the cloud computing cluster. This intelligent load state management can better adapt to different workload conditions and maximize resource utilization.
[0105] Furthermore, before receiving the access request sent by the access terminal, it also includes: receiving access failure notification information, and determining the target computing node based on the access failure notification information; obtaining a backup node of the same type as the target computing node, and updating the target computing node to a backup node.
[0106] In actual applications, the monitoring system in the cloud computing cluster receives access failure notification information, which may come from user reports, system logs, or automatic detection by monitoring tools. The system determines the computing node with the problem, that is, the target computing node, based on the access failure notification information. For example, if a user reports that a specific service cannot be accessed, the monitoring system traces the path of the request and determines which computing node is the cause of the access failure. The system obtains a backup node of the same type as the target computing node from the backup resource pool. This backup node should have the same hardware configuration, operating system, and necessary software components to ensure that it can seamlessly take over the tasks of the target computing node. The system starts the backup node and configures it to take over the tasks of the target computing node. This includes updating the network configuration, copying the necessary configuration files and service status to ensure that the backup node can work properly. The system performs a failover operation to transfer the tasks of the target computing node to the backup node. Once the backup node is running stably, the system can troubleshoot and repair the target computing node, or temporarily put it into maintenance status.
[0107] Based on this, the system can be made more flexible and resilient. Even if some nodes or services have problems, the cloud computing cluster can still continue to provide core services and keep the tasks running normally. At the same time, the cloud computing cluster can automatically respond to failures, reduce the need for manual intervention, and reduce the cost of maintenance and operation.
[0108] The following combination Figure 3 , the access processing method is further described. Figure 3 This is a process flow chart of building a cloud-native DMZ provided by an embodiment of this specification, which specifically includes the following steps.
[0109] Step 302: Select a cloud native platform according to the task scenario. Specifically, the cloud native platform (i.e., the aforementioned cloud computing cluster) can be any one of Kubernetes, Docker Swarm, Apache Mesos, and other platforms.
[0110] Step 304: Define independent namespaces. Specifically, taking Kubernetes as an example of a cloud native platform, two or more namespaces are created in Kubernetes, one for services in the DMZ area (i.e., the aforementioned buffer namespace) and the other for internal services (i.e., the aforementioned internal namespace).
[0111] Step 306: Deploy services in each namespace. Specifically, deploy the required services in the corresponding namespace. For example, deploy the externally accessible Web services in the DMZ namespace, and deploy the internal database services in the internal namespace.
[0112] Step 308: Define network policies. Specifically, define network policies to isolate different namespaces. Allow services in the DMZ namespace to be accessed from the outside (Internet), while prohibit services in the DMZ namespace from directly accessing the internal network.
[0113] Step 310: Apply network policy.
[0114] Compared with traditional DMZ, building a cloud-native DMZ can provide automatic expansion capabilities, dynamically increase or decrease the number of service instances according to traffic and resource usage, and support continuous deployment and management through declarative configuration and automated tracks, reducing human errors and operational complexity. At the same time, cloud-native DMZ naturally supports microservice architecture, and containerized microservices can run in an isolated and dynamic environment. Cloud-native DMZ has more optimized resource utilization. For example, Kubernetes can dynamically schedule containers between nodes and allocate resources according to actual needs. It has self-healing capabilities and can automatically replace service instances when they fail, improving the overall resilience of the system. Using namespaces and network policies to provide built-in isolation mechanisms, it is easy to implement multi-tenant environments and improve the portability of applications across cloud and hybrid cloud environments. Security updates and patches can be automatically applied through continuous integration / continuous deployment (CI / CD) pipelines. It is easy to integrate modern monitoring and logging tools. It can run on public cloud providers or use open source technology stacks, usually with lower total cost of ownership.
[0115] Corresponding to the above method embodiment, this specification also provides an access processing device embodiment, Figure 4 1 is a schematic diagram of the structure of an access processing device provided by an embodiment of this specification. Figure 4 As shown, the device comprises:
[0116] The receiving module 402 is configured to receive an access request sent by the access terminal, wherein the access request includes target access information;
[0117] The determination module 404 is configured to determine the access type of the access request based on the target access information;
[0118] The first forwarding module 406 is configured to forward the access request to the buffer namespace for processing when the access type is external network access;
[0119] The second forwarding module 408 is configured to forward the access request to the internal namespace for processing when the access type is internal network access.
[0120] Optionally, the target access information includes an access terminal identifier; the determination module 404 is further configured to: when the access terminal identifier represents that the access terminal is an external network access terminal, determine that the access type of the access request is external network access; when the access terminal identifier represents that the access terminal is an internal network access terminal, determine that the access type of the access request is internal network access.
[0121] Optionally, the control node is located in an internal network, and the target access information includes the target network information of the access request; the determination module 404 is further configured to: parse the target access information to obtain the target network information; based on the target network information, identify whether the access end and the control node are located in the same network; if so, determine that the access type of the access request is internal network access; if not, determine that the access type of the access request is external network access.
[0122] Optionally, an application container for executing the service is pre-built for the computing node, and the target access information includes request behavior data; the access processing device also includes an external service type determination module, which is configured to: determine the external service type of the access request based on the request behavior data; the first forwarding module 406 is further configured to: based on the external service type, forward the access request to the application container corresponding to the external service type in the buffer namespace for processing.
[0123] Optionally, an application container for executing services is pre-built for the computing node, and the target access information includes request behavior data; the access processing device also includes an internal service type determination module, which is configured to: determine the internal service type of the access request based on the request behavior data; the second forwarding module 408 is further configured to: based on the internal service type, forward the access request to the application container corresponding to the internal service type in the internal namespace for processing.
[0124] Optionally, the access processing device also includes a sending module, which is configured to: collect the configuration status of each computing node, wherein the computing node is configured by the cloud computing cluster based on preset configuration information sent by the management end, the preset configuration information includes node information, and the node information is used to characterize the node type of the computing node to be configured; when the configuration status indicates that each computing node is successfully configured, send deployment success information to the management end.
[0125] Optionally, the configuration information includes namespace information; the sending module is further configured to: collect the deployment status of the target computing node, wherein the target computing node is any computing node; collect the division type of the target computing node, wherein the division type includes a buffer type and an internal type, the buffer type computing node is used to process the access service of the external network, the internal type computing node is used to process the access service of the internal network, the buffer type computing node and the internal type computing node are obtained by dividing the computing nodes based on the cloud computing cluster according to the namespace information, and the buffer type computing node is set to prohibit access to the internal network; determine the buffer namespace based on the buffer type computing node, and determine the internal namespace based on the internal type computing node.
[0126] Optionally, the access processing device also includes an adjustment module configured to: obtain historical access records of the cloud computing cluster; determine the load status of the cloud computing cluster based on the historical access records; and adjust the number of computing nodes based on the load status.
[0127] Optionally, the load state includes an overload state and a redundant state; the adjustment module is further configured to: when the load state is an overload state, increase the computing nodes in the cloud computing cluster; when the load state is a redundant state, reduce the computing nodes in the cloud computing cluster.
[0128] Optionally, the access processing device also includes an update module configured to: receive access failure notification information, and determine the target computing node based on the access failure notification information; obtain a backup node of the same type as the target computing node, and update the target computing node to a backup node.
[0129] Applied to the access processing device, the computing nodes in the cloud computing cluster are divided into at least two types of namespaces, at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network, and the access request sent by the access terminal is received by the receiving module 402, wherein the access request includes target access information, and the determination module 404 determines the access type of the access request based on the target access information, and when the access type determined by the determination module 404 is an external network access, the access request is forwarded to the buffer namespace for processing, and when the access type determined by the determination module 404 is an internal network access, the access request is forwarded to the internal namespace for processing. By dividing the control node and the computing node into different namespaces, the isolation and management of external network access and internal network access are realized in the cloud computing cluster. Through this method, external access requests and internal access requests can be effectively distinguished, and the requests are forwarded to the corresponding namespace for processing according to the access type, preventing access requests from the external network from accessing internal services, improving the security of the cloud computing cluster, and helping to improve the overall operation efficiency and security of the cloud computing cluster.
[0130] The above is a schematic scheme of an access processing device of this embodiment. It should be noted that the technical scheme of the access processing device and the technical scheme of the access processing method described above are of the same concept, and the details not described in detail in the technical scheme of the access processing device can be found in the description of the technical scheme of the access processing method described above.
[0131] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.
[0132] The computing device 500 also includes an access device 540, which enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0133] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0134] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 500 may also be a mobile or stationary server.
[0135] The processor 520 is used to execute the following computer program / instruction, which implements the steps of the above-mentioned access processing method when executed by the processor.
[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the access processing method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the access processing method embodiment.
[0137] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned access processing method when executed by a processor.
[0138] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the access processing method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the access processing method embodiment.
[0139] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned access processing method when executed by a processor.
[0140] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the access processing method described above are of the same concept, and the details not described in detail in the technical solution of the computer program product can be found in the description of the technical solution of the access processing method described above.
[0141] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0142] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0143] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0144] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0145] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. An access processing method, applied to a control node in a cloud computing cluster, wherein the computing nodes in the cloud computing cluster are divided into at least two types of namespaces, wherein the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, wherein the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network; the method comprises: Receiving an access request sent by an access terminal, wherein the access request includes target access information; Determining an access type of the access request based on the target access information; In case the access type is external network access, forwarding the access request to the buffer namespace for processing; In the case where the access type is internal network access, the access request is forwarded to the internal namespace for processing.
2. The method according to claim 1, wherein the target access information includes an access terminal identifier; and determining the access type of the access request based on the target access information comprises: In a case where the access end identifier indicates that the access end is an external network access end, determining that the access type of the access request is an external network access; In a case where the access end identifier indicates that the access end is an internal network access end, it is determined that the access type of the access request is internal network access.
3. The method according to claim 1, wherein the control node is located in an internal network, and the target access information includes target network information of the access request; The determining, based on the target access information, the access type of the access request includes: Parsing the target access information to obtain the target network information; Based on the target network information, identifying whether the access terminal and the control node are located in the same network; If yes, determining that the access type of the access request is internal network access; If not, it is determined that the access type of the access request is external network access.
4. The method according to claim 1, wherein an application container for executing a service is pre-built for the computing node, and the target access information includes request behavior data; Before forwarding the access request to the buffer namespace for processing, the method further includes: Determining the external service type of the access request based on the request behavior data; The step of forwarding the access request to the buffer namespace for processing includes: Based on the external service type, the access request is forwarded to an application container corresponding to the external service type in the buffer namespace for processing.
5. The method according to claim 1, wherein an application container for executing a service is pre-built for the computing node, and the target access information includes request behavior data; Before forwarding the access request to the internal namespace for processing, the method further includes: Determining an internal service type of the access request based on the request behavior data; The forwarding the access request to the internal namespace for processing includes: Based on the internal service type, the access request is forwarded to an application container corresponding to the internal service type in the internal namespace for processing.
6. The method according to claim 1, before receiving the access request sent by the access terminal, further comprising: Collecting the configuration status of each computing node, wherein the computing node is configured by the cloud computing cluster based on preset configuration information sent by the management terminal, the preset configuration information includes node information, and the node information is used to characterize the node type of the computing node to be configured; When the configuration status indicates that each computing node is configured successfully, deployment success information is sent to the management end.
7. The method according to claim 6, wherein the preset configuration information includes namespace information; The collecting of the configuration status of each computing node includes: Collecting the deployment status of a target computing node, wherein the target computing node is any of the computing nodes; Collecting the division type of the target computing node, wherein the division type includes a buffer type and an internal type, the computing node of the buffer type is used to process access services of an external network, the computing node of the internal type is used to process access services of an internal network, the computing node of the buffer type and the computing node of the internal type are obtained by dividing the computing node based on the cloud computing cluster according to the namespace information, and the computing node of the buffer type is set to be prohibited from accessing the internal network; A buffer namespace is determined based on the computing nodes of the buffer type, and an internal namespace is determined based on the computing nodes of the internal type.
8. The method according to claim 1, before receiving the access request sent by the access terminal, further comprises: Get historical access records of cloud computing clusters; Determining a load status of the cloud computing cluster based on the historical access records; Based on the load status, the number of the computing nodes is adjusted.
9. The method according to claim 8, wherein the load state comprises an overload state and a redundant state; and adjusting the number of the computing nodes based on the load state comprises: When the load state is an overload state, adding computing nodes in the cloud computing cluster; When the load state is a redundant state, computing nodes in the cloud computing cluster are reduced.
10. The method according to claim 1, before receiving the access request sent by the access terminal, further comprises: receiving access failure notification information, and determining a target computing node based on the access failure notification information; Acquire a backup node of the same type as the target computing node, and update the target computing node to the backup node.
11. An access processing device, comprising: A receiving module, configured to receive an access request sent by an access terminal, wherein the access request includes target access information; a determination module, configured to determine an access type of the access request based on the target access information; A first forwarding module is configured to forward the access request to a buffer namespace for processing when the access type is external network access; The second forwarding module is configured to forward the access request to the internal namespace for processing when the access type is internal network access.
12. The access processing device according to claim 11, wherein the target access information includes an access terminal identifier; and the determination module is further configured to: In a case where the access end identifier indicates that the access end is an external network access end, determining that the access type of the access request is an external network access; In a case where the access end identifier indicates that the access end is an internal network access end, it is determined that the access type of the access request is internal network access.
13. The access processing device according to claim 11, wherein the control node is located in an internal network, the target access information includes target network information of the access request; and the determination module is further configured to: Parsing the target access information to obtain the target network information; Based on the target network information, identifying whether the access terminal and the control node are located in the same network; If yes, determining that the access type of the access request is internal network access; If not, it is determined that the access type of the access request is external network access.
14. The access processing device according to claim 11, wherein an application container for executing a service is pre-built for the computing node, and the target access information includes request behavior data; the access processing device further comprises an external service type determination module configured to: Determining the external service type of the access request based on the request behavior data; The first forwarding module is further configured to: Based on the external service type, the access request is forwarded to an application container corresponding to the external service type in the buffer namespace for processing.
15. The access processing device according to claim 11, wherein an application container for executing a service is pre-built for the computing node, and the target access information includes request behavior data; the access processing device further comprises an internal service type determination module configured to: Determining an internal service type of the access request based on the request behavior data; The second forwarding module is further configured to: Based on the internal service type, the access request is forwarded to an application container corresponding to the internal service type in the internal namespace for processing.
16. The access processing device according to claim 11, further comprising a sending module configured to: Collect the configuration status of each computing node, where: The computing node is configured by the cloud computing cluster based on preset configuration information sent by the management terminal, wherein the preset configuration information includes node information, and the node information is used to characterize the node type of the computing node to be configured; When the configuration status indicates that each computing node is configured successfully, deployment success information is sent to the management end.
17. The access processing device according to claim 16, wherein the preset configuration information includes namespace information; and the sending module is further configured to: Collect the deployment status of the target computing node, where: The target computing node is any of the computing nodes; Collecting the division type of the target computing node, wherein the division type includes a buffer type and an internal type, the computing node of the buffer type is used to process access services of an external network, the computing node of the internal type is used to process access services of an internal network, the computing node of the buffer type and the computing node of the internal type are obtained by dividing the computing node based on the cloud computing cluster according to the namespace information, and the computing node of the buffer type is set to be prohibited from accessing the internal network; A buffer namespace is determined based on the computing nodes of the buffer type, and an internal namespace is determined based on the computing nodes of the internal type.
18. The access processing device according to claim 11, further comprising an adjustment module configured to: Get historical access records of cloud computing clusters; Determining a load status of the cloud computing cluster based on the historical access records; Based on the load status, the number of the computing nodes is adjusted.
19. The access processing device according to claim 18, wherein the load state comprises an overload state and a redundant state; and the adjustment module is further configured to: When the load state is an overload state, adding computing nodes in the cloud computing cluster; When the load state is a redundant state, computing nodes in the cloud computing cluster are reduced.
20. The access processing device according to claim 11, further comprising an update module configured to: receiving access failure notification information, and determining a target computing node based on the access failure notification information; Acquire a backup node of the same type as the target computing node, and update the target computing node to the backup node.
21. A cloud computing cluster, comprising a control node and a computing node, wherein the computing node is divided into at least two types of namespaces, wherein the at least two types of namespaces include a buffer namespace and an internal namespace that are isolated from each other, wherein the buffer namespace is deployed with an access service of an external network, and the internal namespace is deployed with an access service of an internal network; The control node is used to receive an access request sent by an access terminal, wherein: The access request includes target access information; based on the target access information, determining an access type of the access request; if the access type is external network access, forwarding the access request to the buffer namespace for processing; In the case where the access type is internal network access, the access request is forwarded to the internal namespace for processing.
22. A computing device comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the access processing method according to any one of claims 1 to 10 are implemented.
23. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the access processing method according to any one of claims 1 to 10.
24. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the access processing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Network access method and device
CN113014494A
Service request processing method and device and cloud service system
CN114726854A
Service routing method and system of cloud native platform microservice gateway
CN115604199A
Flow control method and platform, electronic equipment and storage medium
CN117176463A
Cited By
Information security protection method, device and equipment
CN119728214A
Information security protection method, device, equipment, storage medium and program product
CN119728214B
