CN-122001803-A - Multi-cluster intelligent access method and device based on dynamic domain name mapping
Abstract
The invention provides a multi-cluster intelligent access method and device based on dynamic domain name mapping. The method comprises the steps of maintaining a dynamic domain name mapping system through a master control cluster, mapping a service domain name to a logic cluster identifier by the dynamic domain name mapping system through a hierarchical structure, mapping the logic cluster identifier to a specific access endpoint, receiving service state information reported by member clusters, updating an access endpoint mapping relation in the dynamic domain name mapping system based on the service state information, dynamically generating an optimal access path containing a main access path and a standby access path based on an intelligent analysis engine, caching the optimal access path by utilizing a distributed cache system, and realizing real-time updating and synchronization of the access path through a publish-subscribe mode. The invention can realize dynamic decoupling and intelligent routing of the service domain name and the physical access endpoint, and obviously reduce the configuration complexity and maintenance cost of the client.
Inventors
- DONG WEIBO
Assignees
- 济南浪潮数据技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260210
Claims (10)
- 1. A multi-cluster intelligent access method based on dynamic domain name mapping is characterized by comprising the following steps: s1, maintaining a dynamic domain name mapping system through a main control cluster, wherein the dynamic domain name mapping system adopts a hierarchical structure to map a service domain name to a logic cluster identifier, and then maps the logic cluster identifier to a specific access endpoint; s2, receiving service state information reported by a member cluster, and updating an access endpoint mapping relation in the dynamic domain name mapping system based on the service state information; s3, dynamically generating an optimal access path comprising a main access path and a standby access path based on the intelligent analysis engine and integrating a weight factor, a distance factor, a load factor and a health factor; And S4, caching the optimal access path by using a distributed caching system, and realizing real-time updating and synchronization of the access path through a publish-subscribe mode.
- 2. The method of claim 1, wherein S1 comprises: S11, the mapping relation between the service domain name and the logic cluster identifier supports dynamic configuration of metadata such as weight, region attribute, protocol type and the like; S12, the mapping between the logical cluster identity and the specific access endpoint supports dynamic endpoint selection based on a load balancing policy.
- 3. The method of claim 1, wherein S2 comprises: S21, the service state information comprises availability states of clusters, network delay, load indexes and health check results; S22, after receiving the service state information, the master control cluster verifies the identity validity of the member cluster through multi-factor authentication.
- 4. The method of claim 1, wherein S3 comprises: S31, the intelligent analysis engine preferentially selects an access endpoint closest to the client according to the geographic position information of the client; S32, the intelligent analysis engine generates at least one standby access path based on the health factor and the load factor while generating the main access path.
- 5. The method as recited in claim 1, further comprising: s5, according to a preset elastic capacity expansion strategy, automatically detecting service load and triggering the example capacity expansion or capacity expansion operation of the member cluster; And S6, after the capacity expansion or contraction operation is finished, the member cluster sends an update request to the main control cluster so as to update the access endpoint information in the dynamic domain name mapping system.
- 6. A multi-cluster intelligent access device based on dynamic domain name mapping, comprising: the dynamic domain name mapping maintenance module is used for maintaining a dynamic domain name mapping system through a main control cluster, wherein the dynamic domain name mapping system adopts a hierarchical structure to map a service domain name to a logic cluster identifier, and then the logic cluster identifier is mapped to a specific access endpoint; The service state receiving and updating module is used for receiving service state information reported by the member clusters and updating the mapping relation of the access endpoints in the dynamic domain name mapping system based on the service state information; The optimal access path generation module is used for dynamically generating an optimal access path comprising a main access path and a standby access path based on the intelligent analysis engine, the comprehensive weight factor, the distance factor, the load factor and the health factor; And the access path caching and synchronizing module is used for caching the optimal access path by using a distributed caching system and realizing real-time updating and synchronization of the access path through a publish-subscribe mode.
- 7. The apparatus of claim 6, wherein the dynamic domain name mapping maintenance module is further to: The mapping relation between the service domain name and the logic cluster identifier supports dynamic configuration of metadata such as weight, region attribute, protocol type and the like; The mapping between the logical cluster identities and specific access endpoints supports dynamic endpoint selection based on load balancing policies.
- 8. The apparatus of claim 6, wherein the service status receiving and updating module is further to: Receiving service state information reported by the member clusters, wherein the service state information comprises availability states of the clusters, network delay, load indexes and health check results; and after receiving the service state information, verifying the identity validity of the member cluster through multi-factor authentication.
- 9. The apparatus of claim 6, wherein the optimal access path generation module is further to: According to the geographic position information of the client, the access endpoint closest to the client is preferentially selected; at least one alternate access path is generated based on the health factor and the load factor while the primary access path is generated.
- 10. The apparatus as recited in claim 6, further comprising: the elastic capacity expansion and contraction control module is used for automatically detecting service load and triggering the example capacity expansion or contraction operation of the member cluster according to a preset elastic capacity expansion and contraction strategy; and the access endpoint updating request module is used for receiving the updating request sent by the member cluster after the capacity expansion or contraction operation is completed so as to update the access endpoint information in the dynamic domain name mapping system.
Description
Multi-cluster intelligent access method and device based on dynamic domain name mapping Technical Field The disclosure relates to the field of network communication and distributed system service management, in particular to a multi-cluster intelligent access method and device based on dynamic domain name mapping. Background With the rapid development of cloud computing and micro-service architecture, a distributed storage system has become an indispensable core infrastructure in enterprise-level applications, and is widely applied to industries with strict requirements on high availability and elastic expansion, such as finance, telecommunications, the internet and the like. In the related art, an access control system under a multi-cluster environment is constructed through the collaborative operation of a Domain Name System (DNS), a service registration and discovery mechanism and a load balancing strategy. Specifically, the system covers the whole process from dynamic registration of service instances, domain name resolution to access path optimization, and comprises key links such as cluster state monitoring, routing decision, cache management and the like. Among them, DNS serves as a service discovery portal, and plays an important role in mapping service domain names to physical access endpoints, where resolution efficiency and route intelligence directly affect overall performance and stability of the system. However, in the existing multi-cluster access method, static DNS configuration is directly adopted, and dynamic decoupling of domain names and physical endpoints is not achieved, so that problems of complex client configuration, high maintenance cost, service discovery delay and the like may be caused, or network delay is obviously increased due to multi-level query jump when the multi-cluster access method is used for accessing across an available area, so that service continuity and user experience are affected. In addition, the traditional centralized DNS architecture lacks elastic expansion capability, has single-point fault risk, cannot make intelligent routing decisions according to real-time network conditions, cluster loads and service health states, and limits application potential of the system in a high-concurrency and multi-region deployment scene. Therefore, it is needed to construct a multi-cluster access technology system with dynamic mapping, intelligent routing and high availability characteristics to adapt to the complex business requirements in the modern cloud native environment. Disclosure of Invention The present invention aims to solve at least one of the technical problems in the related art to some extent. The invention provides a multi-cluster intelligent access method based on dynamic domain name mapping. Another object of the present invention is to provide a multi-cluster intelligent access device based on dynamic domain name mapping. To achieve the above objective, an embodiment of a first aspect of the present invention provides a multi-cluster intelligent access method based on dynamic domain name mapping, including: s1, maintaining a dynamic domain name mapping system through a main control cluster, wherein the dynamic domain name mapping system adopts a hierarchical structure to map a service domain name to a logic cluster identifier, and then maps the logic cluster identifier to a specific access endpoint; s2, receiving service state information reported by a member cluster, and updating an access endpoint mapping relation in the dynamic domain name mapping system based on the service state information; s3, dynamically generating an optimal access path comprising a main access path and a standby access path based on the intelligent analysis engine and integrating a weight factor, a distance factor, a load factor and a health factor; And S4, caching the optimal access path by using a distributed caching system, and realizing real-time updating and synchronization of the access path through a publish-subscribe mode. In one embodiment of the present invention, the S1 includes: S11, the mapping relation between the service domain name and the logic cluster identifier supports dynamic configuration of metadata such as weight, region attribute, protocol type and the like; S12, the mapping between the logical cluster identity and the specific access endpoint supports dynamic endpoint selection based on a load balancing policy. In one embodiment of the present invention, the S2 includes: S21, the service state information comprises availability states of clusters, network delay, load indexes and health check results; S22, after receiving the service state information, the master control cluster verifies the identity validity of the member cluster through multi-factor authentication. In one embodiment of the present invention, the S3 includes: S31, the intelligent analysis engine preferentially selects an access endpoint closest to the client according to the geographi