Domain name processing method and device and storage medium

By determining the target service cluster based on the corresponding relationship between the target domain name and the service cluster and the capacity and usage of the service cluster, the problem of resource scheduling between multiple storage clusters is solved, and the rational allocation and efficient utilization of resources are achieved.

CN119520474APending Publication Date: 2025-02-25CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411565113.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Efficient and reasonable scheduling of resources accessed by users among multiple storage clusters has become an urgent problem to be solved, especially when user behavior is unpredictable and uncontrollable, users' use cannot be directly restricted, resulting in a tense situation in the capacity and performance of some clusters.

Method used

By determining the target service cluster based on the correspondence between the target domain name and the service cluster, as well as the capacity and usage of multiple service clusters, the target service cluster is achieved, so as to achieve reasonable allocation and rapid confirmation of resources.

Benefits of technology

It ensures the reasonable allocation of resources, achieves rapid confirmation of the target service cluster, improves the system's work efficiency, and increases resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520474A_ABST
    Figure CN119520474A_ABST
Patent Text Reader

Abstract

The invention provides a domain name processing method and device and a storage medium, relates to the technical field of communication, can determine a target service cluster according to the capacity and use condition of the service cluster and the corresponding relationship between a target domain name and the service cluster, ensures reasonable allocation of resources, realizes quick confirmation of the target service cluster, and improves the user experience. The working efficiency of the system is improved, and the resource utilization rate is increased. The method comprises the following steps: acquiring first indication information, wherein the first indication information is used for indicating a target operation executed on a target domain name; and determining a target service cluster for processing the first indication information. The target service cluster is a service cluster matched with the domain name storage unit corresponding to the target domain name, or is a service cluster determined according to the capacities and use conditions of the plurality of service clusters. And forwarding the first indication information to the target service cluster, so that the target service cluster executes the target operation on the target domain name.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a domain name processing method, device and storage medium. Background Art

[0002] Due to various factors such as resource ownership and marketing orientation, some manufacturers have deployed many small-scale storage clusters. However, as the running time of storage clusters continues to accumulate and the number of users continues to grow, the capacity and performance of some clusters will be strained to varying degrees. Given the unpredictability and uncontrollability of user behavior, it is impossible to directly restrict user usage. Therefore, it is urgent to efficiently and reasonably schedule user-accessed resources between multiple clusters.

[0003] Currently, this problem is usually solved by adding a proxy layer. However, adding a proxy layer module requires the deployment of a large number of machine resources, which increases the hardware resource overhead. Summary of the invention

[0004] The present application provides a domain name processing method, device and storage medium, which can determine a target service cluster according to the corresponding relationship between the target domain name and the service cluster and the capacity and usage of multiple service clusters.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a domain name processing method, the method comprising: obtaining first indication information, the first indication information being used to indicate a target operation to be performed on a target domain name. Determining a target service cluster for processing the first indication information. The target service cluster is a service cluster that matches a domain name storage unit corresponding to the target domain name, or is a service cluster determined based on the capacity and usage of multiple service clusters. Forwarding the first indication information to the target service cluster so that the target service cluster performs the target operation on the target domain name.

[0007] According to the above-mentioned technical means, the present application can determine the target service cluster according to the capacity and usage of the service cluster, as well as the correspondence between the target domain name and the service cluster, thereby ensuring the rational allocation of resources, realizing the rapid confirmation of the target service cluster, improving the working efficiency of the system, and increasing resource utilization.

[0008] In a possible implementation, the target operation includes any one of a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation.

[0009] According to the above-mentioned technical means, the present application can divide the user's target operation request into a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation, so as to facilitate the subsequent specification of different execution processes according to different target operation requests, thereby improving the standardization of the domain name processing process.

[0010] In a possible implementation, when the target domain name has a corresponding domain name storage unit, the target service cluster is determined according to a first preset mapping relationship. The first preset mapping relationship includes multiple domain names and service clusters corresponding to each domain name, and the multiple domain names include the target domain name. When the target domain name does not have a corresponding domain name storage unit, the target service cluster is determined by a scheduling service platform. The scheduling service platform is used to determine the target service cluster according to the capacity and usage of each cluster in the multiple service clusters.

[0011] According to the above-mentioned technical means, the present application can determine the forwarding address of the target domain name according to the first preset mapping relationship, and can also determine the target service cluster according to the capacity and usage of the service cluster, so that the service cluster with larger capacity can be fully utilized and the service cluster with smaller capacity can be fully decompressed, thereby improving the utilization rate of resources.

[0012] In a possible implementation, when the target domain name does not have a corresponding domain name storage unit, the target domain name is a wildcard domain name. According to the second mapping relationship, the address information of the scheduling service platform is determined. The second mapping relationship includes the address information of the scheduling service platform corresponding to the wildcard domain name. According to the address information, second indication information is sent to the mobilization service platform, and the second indication information is used to indicate the service cluster corresponding to the target domain name.

[0013] According to the above technical means, this application transfers the workload of domain names that do not have corresponding domain name storage units to the scheduling service platform by introducing the concept of wildcard domain names, thereby reducing the forwarding pressure on the DNS server and uniformly allocating wildcard domain names, thereby improving resource utilization and work efficiency.

[0014] In a possible implementation, processing information is received from a target service cluster, and the processing information is used to reflect the operation result corresponding to the target operation.

[0015] According to the above technical means, the present application can reflect the operation result of the operation request to the user through the processing information of the target cluster, so that the user can clearly understand whether there is a problem in the execution process of the operation request, thereby improving the user experience.

[0016] In a possible implementation manner, when the processing information is used to indicate that the target domain name storage unit is successfully created, the corresponding relationship between the target domain name and the target service cluster is stored.

[0017] According to the above technical means, the present application can save the mapping relationship between the newly created target domain name and the target service cluster, which is convenient for subsequent reading, writing, deletion and other operations, thereby improving work efficiency and user experience.

[0018] In a possible implementation, the target operation includes a read and write operation of a domain name storage unit, and the processing result includes data obtained from a database corresponding to the target domain name.

[0019] According to the above technical means, the present application can obtain the data of the read and write requests or write the data of the read and write requests through the target service cluster, so that users can modify the data of the target domain name conveniently and quickly, improve the domain name processing function, and enhance the user experience.

[0020] In a second aspect, the present application provides a domain name processing device, which includes: a communication unit and a processing unit.

[0021] The communication unit is used to obtain first indication information, where the first indication information is used to indicate a target operation to be performed on a target domain name.

[0022] The processing unit is configured to determine a target service cluster for processing the first indication information. The target service cluster is a service cluster that matches the domain name storage unit corresponding to the target domain name, or is a service cluster determined based on the capacity and usage of multiple service clusters.

[0023] The processing unit is further configured to forward the first indication information to the target service cluster, so that the target service cluster performs a target operation on the target domain name.

[0024] In a possible implementation, the target operation includes any one of a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation.

[0025] In a possible implementation, the processing unit is further used to determine the target service cluster according to a first preset mapping relationship when the target domain name has a corresponding domain name storage unit. The first preset mapping relationship includes multiple domain names and service clusters corresponding to each domain name, and the multiple domain names include the target domain name. When the target domain name does not have a corresponding domain name storage unit, the target service cluster is determined by the scheduling service platform. The scheduling service platform is used to determine the target service cluster according to the capacity and usage of each cluster in the multiple service clusters.

[0026] In a possible implementation, the processing unit is further configured to, when the target domain name does not have a corresponding domain name storage unit, use the target domain name as a wildcard domain name. According to the second mapping relationship, address information of the scheduling service platform is determined. The second mapping relationship includes address information of the scheduling service platform corresponding to the wildcard domain name. According to the address information, second indication information is sent to the mobilization service platform, and the second indication information is used to indicate the service cluster corresponding to the target domain name.

[0027] In a possible implementation, the processing unit is further configured to receive processing information from the target service cluster. The processing information is used to reflect the operation result corresponding to the target operation.

[0028] In a possible implementation manner, the processing unit is further configured to store a correspondence between the target domain name and the target service cluster when the processing information is used to indicate that the target domain name storage unit is successfully created.

[0029] In a possible implementation, the target operation includes a read and write operation of a domain name storage unit, and the processing result includes data obtained from a database corresponding to the target domain name.

[0030] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal, the terminal executes the domain name processing method described in any possible implementation of the first aspect.

[0031] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed on a domain name processing device, enables the domain name processing device to execute the domain name processing method as described in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the structure of a domain name processing system provided in an embodiment of the present application;

[0033] Figure 2 A process of a domain name processing method provided in the embodiment of the present application Figure 1 ;

[0034] Figure 3 A process of a domain name processing method provided in the embodiment of the present application Figure 2 ;

[0035] Figure 4 A schematic diagram of a domain name processing method provided in an embodiment of the present application Figure 1 ;

[0036] Figure 5 A process of a domain name processing method provided in the embodiment of the present application Figure 3 ;

[0037] Figure 6 A schematic diagram of a domain name processing method provided in an embodiment of the present application Figure 2 ;

[0038] Figure 7 A process of a domain name processing method provided in the embodiment of the present application Figure 4 ;

[0039] Figure 8 A schematic diagram of a domain name processing method provided in an embodiment of the present application Figure 3 ;

[0040] Fig. 9 A schematic diagram of the structure of a domain name processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The domain name processing method, device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0042] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0043] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0044] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0045] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0046] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0047] The following explains the terms involved in the embodiments of the present application to facilitate the reader's understanding.

[0048] (1) Domain Name Server (DNS): Responsible for converting domain names into corresponding Internet Protocol addresses (IP addresses), so that users can access resources on the Internet through easy-to-remember domain names. The DNS server receives domain name query requests from users and forwards them to the domain name server for processing. The domain name server is responsible for storing and managing the mapping relationship between domain names and IP addresses, and returns the corresponding IP address based on the user's query request.

[0049] In this application, the DNS server is used to store the third-level mapping relationship between the domain name and the storage cluster. The third-level mapping relationship represents the mapping relationship between the third-level domain name and the IP address of the storage cluster. The third-level domain name is composed of the bucket name corresponding to the domain name plus the unified second-level domain name.

[0050] (2) Wildcard domain name: refers to the collection of all unestablished subdomain names under a root domain name. If a subdomain name already exists, it is not included in this list. Wildcard domain names use wildcards (such as *) as subdomain names to ensure that all subdomain names point to the same IP address.

[0051] (3) Storage cluster: also known as service cluster, is a collection of multiple storage devices connected through a network or other means to jointly provide data storage services. The purpose of the cluster is to improve data availability, reliability, and performance. Through redundancy and load balancing, even if some devices in the cluster fail, data can still be accessed and performance will not be seriously affected.

[0052] (4) Bucket: A logical unit in a storage cluster used to store and organize data. Each bucket can be considered an independent namespace, used to store data information of a specific type or domain name. The use of buckets makes data organization and management more flexible and efficient. For example, a bucket can store all the data of a website.

[0053] The above is a brief introduction to some concepts involved in the embodiments of this application.

[0054] Due to various factors such as resource ownership and marketing orientation, some manufacturers have deployed many small-scale storage clusters. However, as the running time of storage clusters continues to accumulate and the number of users continues to grow, the capacity and performance of some clusters will be strained to varying degrees. Given the unpredictability and uncontrollability of user behavior, it is impossible to directly restrict user usage. Therefore, it is urgent to efficiently and reasonably schedule user-accessed resources between multiple clusters.

[0055] Currently, this problem is usually solved by adding a proxy layer. However, adding a proxy layer module requires the deployment of a large number of machine resources, which increases the hardware resource overhead.

[0056] In view of this, an embodiment of the present application provides a domain name processing method. The present application can determine the target service cluster based on the capacity and usage of the service cluster, as well as the correspondence between the target domain name and the service cluster, thereby ensuring the reasonable allocation of resources, realizing rapid confirmation of the target service cluster, improving the system's work efficiency, and increasing resource utilization.

[0057] For example, Figure 1 1 shows a schematic diagram of the structure of a domain name processing system 10 provided in an embodiment of the present application. The domain name processing system may include a client 101, a DNS server 102, a scheduling service platform 103, and multiple service clusters 104. The client 101, the DNS server 102, the scheduling service platform 103, and the multiple service clusters 104 are connected in communication. Figure 1 Only one large-capacity target service cluster is shown in the figure. The embodiment of the present application does not impose any restriction on the number of target service clusters.

[0058] The client 101 is used to obtain the user's target operation, generate first indication information and send it to the DNS server 102. It is also used to receive processing information and display the processing information to the DNS server 102.

[0059] The DNS server 102 is configured to determine a target service cluster according to a first preset mapping relationship and to send second indication information to the scheduling service platform 103 according to a second preset mapping relationship.

[0060] The scheduling service platform 103 is used to determine the target service cluster of the wildcard domain name and is also used to receive processing information and send the processing information to the client 101 .

[0061] The service cluster 104 is used to perform a target operation on a target domain name and to generate processing information according to the target operation result and send the processing information to the scheduling service platform 103 .

[0062] It should be noted that the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiments of the present application is only an example, and other names can also be used in the specific implementation without limitation.

[0063] The domain name processing method provided in the embodiment of the present application is described below in conjunction with the accompanying drawings. Among them, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiment of the present application is only an example, and other names can also be used in the specific implementation without limitation. The actions involved in the various embodiments of the present application are only an example, and other names can also be used in the specific implementation, such as: "included in" in the embodiment of the present application can also be replaced by "carried on" or "carried in", etc.

[0064] like Figure 2 As shown, the embodiment of the present application proposes a domain name processing method, which includes:

[0065] S201. Obtain first indication information.

[0066] The first indication information is used to indicate that a target operation is to be performed on a target domain name. The target operation includes any one of a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation. The domain name storage unit creation operation may also be referred to as a bucket creation operation. The domain name storage unit deletion operation may also be referred to as a bucket deletion operation. The domain name storage unit read and write operation may also be referred to as a bucket read and write operation.

[0067] In one example, a bucket creation operation means creating a bucket corresponding to a target domain name for a target domain name, and the bucket is used to store data information of the target domain name. A bucket deletion operation means deleting the bucket corresponding to the target domain name and the mapping relationship between the target domain name and the storage cluster stored on the DNS server. A domain name storage unit read and write operation means reading and / or writing data to the bucket corresponding to the target domain name.

[0068] In another example, the client generates first indication information in response to the target domain name input by the user and the operation on the target domain name, and sends the first indication information to the DNS server.

[0069] The client may be a web client, an application client or other client, and is used to implement creation, deletion, reading and writing operations of the bucket of the target domain name.

[0070] S202: Determine a target service cluster for processing the first indication information.

[0071] The target service cluster is a service cluster that matches the domain name storage unit corresponding to the target domain name, or a service cluster determined based on the capacity and usage of multiple service clusters. A service cluster can also be called a storage cluster. The service cluster includes multiple buckets for storing data information of multiple domain names corresponding to multiple buckets. A domain name storage unit is a bucket for storing data information of a domain name. The usage of the service cluster is the load pressure of the service cluster.

[0072] In an example, when the target domain name has a corresponding domain name storage unit, the DNS server determines the target service cluster according to a first preset mapping relationship.

[0073] The first preset mapping relationship is a mapping relationship between a domain name stored in a DNS server and a target service cluster. A domain name storage unit of a domain name belongs to a target service cluster and is used to determine a forwarding address of the first indication information.

[0074] In another example, when the target domain name does not have a corresponding domain name storage unit, the DNS server can determine the IP address information of the scheduling service platform according to the second mapping relationship, and send the second indication information to the mobilization service platform according to the IP address information. The scheduling service platform receives the second indication information from the DNS server, and determines the target service cluster for the target domain name of the second indication information through the scheduling algorithm. The scheduling service platform initiates a target operation request to the target service cluster.

[0075] Among them, the second mapping relationship includes the IP address information of the scheduling service platform corresponding to the wildcard domain name. The second indication information is used to indicate the service cluster corresponding to the target domain name. The scheduling service platform is used to determine the target service cluster of the target domain name, that is, the wildcard domain name, for which the first preset mapping relationship does not exist in the DNS server. The scheduling algorithm determines the target service cluster based on the capacity and usage of each cluster in the multiple service clusters. The target operation included in the target operation request is the same as the target operation of the first indication information.

[0076] S203: Forward the first indication information to the target service cluster. Accordingly, the target service cluster receives the first indication information and performs a target operation on the target domain name in response to the first indication information.

[0077] In one example, the DNS server forwards the first indication information to the target service cluster, or the scheduling service platform sends the target operation request to the target service cluster. The target service cluster receives the first indication information or the target operation request, and performs the target operation matching the first indication information or the target operation request.

[0078] In one scenario, the target operation is a domain name storage unit creation operation, and the target service cluster can create a corresponding domain name storage unit according to the target domain name. The target service cluster can also generate processing information, that is, a processing response, according to the creation result, and send the processing response to the scheduling service platform. For details, please refer to the description of the following embodiment 2.

[0079] In another scenario, the target operation is a domain name storage unit deletion operation, and the target service cluster can delete the corresponding domain name storage unit according to the target domain name. The target service cluster can also generate a processing response according to the deletion result and send the processing response to the scheduling service platform. Specifically, please refer to the description of the following embodiment three.

[0080] In another scenario, the target operation is a domain name storage unit read and write operation, and the target service cluster can perform a read and write operation on the domain name storage unit corresponding to the target domain name according to the first indication information. The target service cluster can also generate a processing response according to the result of the read and write operation, and send the processing response to the scheduling service platform. Specifically, please refer to the description of the following embodiment 4.

[0081] According to the above-mentioned technical means, the present application can determine the target service cluster according to the capacity and usage of the service cluster, as well as the correspondence between the target domain name and the service cluster, thereby ensuring the rational allocation of resources, realizing the rapid confirmation of the target service cluster, improving the working efficiency of the system, and increasing resource utilization.

[0082] In another embodiment (embodiment 2), the target operation is a domain name storage unit creation operation.

[0083] like Figure 3 As shown, the method includes:

[0084] S301. Get a bucket creation request.

[0085] In one example, the client obtains a bucket creation request from a user, the target domain name of the request is bkt.abc.com, and the creation request is used to instruct the creation of a bucket corresponding to bkt.abc.com. The client sends the creation request to the DNS server, and the DNS server receives the creation request accordingly.

[0086] The bkt in bkt.abc.com represents the bucket name of the target domain name, and abc.com represents a unified second-level domain name. The combination of the two forms the third-level domain name bkt.abc.com.

[0087] S302: Determine a target service cluster and forward a creation request to the target service cluster.

[0088] In one example, Figure 4As shown in the figure, when the target domain name is bkt1.abc.com, after the DNS server receives the creation request, the DNS server can determine that there is a bucket matching the target domain name through the mapping table. The DNS server sends the creation request to the target service cluster where the bucket is located based on the forwarding IP address in the mapping relationship, and the target service cluster returns a processing response.

[0089] The mapping table is used to store a first preset mapping relationship and a second preset mapping relationship.

[0090] In another example, Figure 4 As shown in the figure, when the target domain name is bkt.abc.com, after the DNS server receives the creation request, the DNS server can determine through the mapping table that there is no bucket matching the target domain name, that is, the target domain name is a wildcard domain name. The DNS server sends the creation request to the scheduling service platform based on the forwarding IP address in the mapping relationship of the wildcard domain name. The scheduling service platform can determine the target service cluster based on the scheduling algorithm, and generate a bucket creation request and send it to the target service cluster, which returns a processing response.

[0091] Among them, in the process of determining the target service cluster, the scheduling service platform can check whether there is a deletion record of the bucket corresponding to bkt.abc.com in the work log. If there is a deletion record of the bucket corresponding to bkt.abc.com in the work log, and the deletion duration is less than the first preset time threshold, the service cluster where the original bucket is located is still selected as the target service cluster. If there is no deletion record of the bucket corresponding to bkt.abc.com in the work log, the expected service cluster, that is, the target service cluster, is calculated according to the scheduling algorithm, and a creation request is initiated to the target service cluster, waiting for a processing response.

[0092] Furthermore, the work log is a bucket deletion record, and the bucket deletion record includes record information such as multiple deleted bucket names, target service clusters, and deletion time.

[0093] S303: Create a bucket corresponding to the target domain name, generate and return a processing response.

[0094] The processing response indicates the operation result of the target operation.

[0095] In one example, Figure 4As shown, when the target domain name is bkt1.abc.com, the target service cluster receives a request to create a bucket corresponding to the target domain name. The bucket corresponding to the target domain name already exists. A processing response that the bucket corresponding to the target domain name already exists is generated and sent to the scheduling service platform. The scheduling service platform feeds back the processing response to the client.

[0096] In another example, Figure 4 As shown in the figure, when the target domain name is bkt1.abc.com, the target service cluster receives a request to create a bucket corresponding to the target domain name. The bucket corresponding to the target domain name does not exist, and the target cluster creates the bucket. After the creation is completed, the target service cluster initiates the insertion of a new bucket domain name mapping record to the DNS server. A processing response of successful creation is generated and sent to the scheduling service platform, and the scheduling service feeds back the processing response to the user.

[0097] Based on the above technical means, the scheduling service platform can distribute bucket creation requests to service clusters with larger capacity and smaller load according to the capacity and usage of each service cluster, and record the mapping relationship between the bucket domain name and the service cluster where the actual data is located in the DNS configuration, thereby supporting subsequent requests for reading, writing, deleting and other existing bucket data, and balancing the capacity and pressure of multiple clusters.

[0098] In another embodiment (embodiment three), the target operation is a domain name storage unit deletion operation.

[0099] like Figure 5 As shown, the method includes:

[0100] S501: Get a bucket deletion request.

[0101] In one example, the client obtains a user's bucket deletion request, the target domain name of the request is bkt.abc.com, and the deletion request is used to indicate the deletion of the bucket corresponding to bkt.abc.com. The client sends the deletion request to the DNS server, and the DNS server receives the deletion request accordingly. The deletion request includes a deletion request.

[0102] S502: Determine a target service cluster and forward a deletion request to the target service cluster.

[0103] In one example, Figure 6As shown, when the target domain name is bkt1.abc.com, after receiving the deletion request, the DNS server determines that there is a bucket matching the target domain name according to the mapping table, and sends the deletion request to the target service cluster where the bucket is located according to the forwarding IP address in the mapping relationship, and the target service cluster returns a processing response.

[0104] In another example, Figure 6 As shown in the figure, when the target domain name is bkt.abc.com, after receiving the deletion request, the DNS server determines that there is no bucket matching the target domain name according to the mapping table, that is, the target domain name is a wildcard domain name, and sends the deletion request to the scheduling service platform according to the forwarding IP address in the mapping relationship of the wildcard domain name. The scheduling service platform can determine the target service cluster according to the scheduling algorithm, and generate a bucket deletion request to send to the target service cluster, which executes the bucket deletion operation and returns a processing response.

[0105] The scheduling service platform can also check whether there is a service cluster that has executed the bucket deletion operation with the same name according to the work log. If there is a service cluster that has executed the bucket deletion operation with the same name in the work log, the service cluster can be determined as the target service cluster.

[0106] S503: Delete the bucket corresponding to the target domain name, generate and return a processing response.

[0107] In one example, Figure 6 As shown in the figure, when the target domain name is bkt1.abc.com, the target service cluster receives a request to delete the bucket corresponding to the target domain name. The bucket corresponding to the target domain name already exists, so the bucket is deleted. After the deletion is completed, the target service cluster initiates a request to delete the three-level mapping relationship of the bucket to the DNS. When both the bucket and the mapping relationship are deleted, the target service cluster generates a processing response and sends the processing response to the scheduling service platform, which then feeds back the processing response to the user. The processing response indicates that the bucket is successfully deleted.

[0108] In another example, Figure 6 As shown in the figure, when the target domain name is bkt.abc.com, the target service cluster receives a request to delete the bucket corresponding to the target domain name. The bucket corresponding to the target domain name does not exist. The target service cluster generates a processing response and sends it to the scheduling service platform, and the scheduling service feeds back the processing response to the user. The processing response indicates that the bucket does not exist.

[0109] According to the above technical means, the present application can perform a deletion operation based on the bucket corresponding to the existing target domain name. By deleting the mapping relationship during the deletion process, the misjudgment of the target service cluster for subsequent operations with the same target domain name can be reduced, the deletion operation process is improved, and the user can understand the processing result of the operation by processing the response, thereby improving the user experience.

[0110] In another embodiment (embodiment 4), the target operation is a domain name storage unit read and write operation.

[0111] like Figure 7 As shown, the method includes:

[0112] S701: Obtain data read and write request.

[0113] In one example, the client obtains a data read / write request from a user, the target domain name of the request is bkt.abc.com, and the data read / write request is used to instruct to read / write the bucket corresponding to bkt.abc.com. The client sends the data read / write request to the DNS server, and the DNS server receives the data read / write request accordingly.

[0114] This step relies on the address written into the DNS mapping table during bucket creation, so that the same domain name can be mapped to different clusters based on different buckets, thus achieving a balanced data writing location.

[0115] S702: Determine a target service cluster and forward a data read / write request to the target service cluster.

[0116] In one example, Figure 8 As shown in the figure, when the target domain name is bkt1.abc.com, after receiving the data read and write request, the DNS server determines that there is a bucket matching the target domain name according to the mapping table, and sends the data read and write request to the target service cluster where the bucket is located according to the forwarding IP address in the mapping relationship, and the target service cluster returns a processing response. The processing response contains all the information required for the user data read and write request or indicates that the write is successful.

[0117] In another example, Figure 8 As shown in the figure, when the target domain name is bkt.abc.com, after receiving the data read and write request, the DNS server determines according to the mapping table that there is no bucket matching the target domain name, that is, when the target domain name is a wildcard domain name, and sends the data read and write request to the scheduling service platform according to the forwarding IP address in the mapping relationship of the wildcard domain name. The scheduling service platform constructs a processing response that the bucket does not exist and sends it to the client.

[0118] S703: Generate and return a processing response according to the data read and write request.

[0119] In one example, Figure 8 As shown, the target service cluster receives a data read / write request and generates a processing response. When the data read / write request is used to indicate reading data, the target service cluster obtains the data from the bucket corresponding to the target domain name and generates a processing response, which contains the data information required to be read by the read request. When the data read / write request indicates writing data, the target service cluster writes the data information contained in the data read / write request to the specified address and generates a processing response. The target service cluster sends the processing response to the scheduling service platform, which then feeds back the processing response to the user. The processing response indicates that the write is successful and / or contains the read data.

[0120] According to the above technical means, this application sends the data information that needs to be read in the data read and write request to the user through the processing response, thus meeting the user's needs. When there is no corresponding bucket for the target domain name, the scheduling service platform directly generates the processing response, which reduces the workload of the service cluster, reduces the load of the service cluster, simplifies the workflow, and improves work efficiency.

[0121] It is understandable that the above-mentioned domain name processing method can be implemented by a domain name processing device. In order to realize the above-mentioned functions, the domain name processing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the embodiments disclosed in this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments disclosed in this application.

[0122] The embodiments disclosed in the present application can divide the functional modules of the domain name processing device generated by the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments disclosed in the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0123] Fig. 9 This is a schematic diagram of the structure of a domain name processing device provided in an embodiment of the present application. Fig. 9As shown, the domain name processing device 90 can be used to execute Figure 1-Figure 8 The domain name processing method shown in the figure. The domain name processing device 90 includes: a communication unit 901 and a processing unit 902.

[0124] The communication unit 901 is used to obtain first indication information, where the first indication information is used to indicate a target operation to be performed on a target domain name.

[0125] The processing unit 902 is configured to determine a target service cluster for processing the first indication information. The target service cluster is a service cluster that matches the domain name storage unit corresponding to the target domain name, or is a service cluster determined based on the capacity and usage of multiple service clusters.

[0126] The processing unit 902 is further configured to forward the first indication information to the target service cluster, so that the target service cluster performs a target operation on the target domain name.

[0127] In a possible implementation, the target operation includes any one of a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation.

[0128] In a possible implementation, the processing unit 902 is further used to determine the target service cluster according to a first preset mapping relationship when the target domain name has a corresponding domain name storage unit. The first preset mapping relationship includes multiple domain names and service clusters corresponding to each domain name, and the multiple domain names include the target domain name. When the target domain name does not have a corresponding domain name storage unit, the target service cluster is determined by the scheduling service platform. The scheduling service platform is used to determine the target service cluster based on the capacity and usage of each cluster in the multiple service clusters.

[0129] In a possible implementation, the processing unit 902 is further configured to, when the target domain name does not have a corresponding domain name storage unit, use the target domain name as a wildcard domain name. According to the second mapping relationship, determine the address information of the scheduling service platform. The second mapping relationship includes the address information of the scheduling service platform corresponding to the wildcard domain name. According to the address information, send second indication information to the mobilization service platform, and the second indication information is used to indicate the service cluster corresponding to the target domain name.

[0130] In a possible implementation, the processing unit 902 is further configured to receive processing information from the target service cluster. The processing information is used to reflect the operation result corresponding to the target operation.

[0131] In a possible implementation, the processing unit 902 is further configured to store a correspondence between the target domain name and the target service cluster when the processing information is used to indicate that the target domain name is successfully created.

[0132] In a possible implementation, the target operation includes a read and write operation of a domain name storage unit, and the processing result includes data obtained from a database corresponding to the target domain name.

[0133] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0134] The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the domain name processing method provided by the above-mentioned embodiment of the present disclosure.

[0135] The embodiments of the present disclosure also provide a computer program product including instructions, which, when executed on an electronic device, enables the electronic device to execute the domain name processing method provided by the embodiments of the present disclosure.

[0136] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0137] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A domain name processing method, characterized in that: The method comprises: Acquire first indication information, where the first indication information is used to instruct to perform a target operation on a target domain name; Determine a target service cluster for processing the first indication information; the target service cluster is a service cluster that matches the domain name storage unit corresponding to the target domain name, or is a service cluster determined based on the capacity and usage of multiple service clusters; forward the first indication information to the target service cluster so that the target service cluster performs the target operation on the target domain name.

2. The method according to claim 1, characterized in that The target operation includes any one of a domain name storage unit creation operation, a domain name storage unit deletion operation, and a domain name storage unit read and write operation.

3. The method according to claim 2, characterized in that The determining a target service cluster for processing the first indication information includes: In the case where the target domain name has a corresponding domain name storage unit, determining the target service cluster according to a first preset mapping relationship; wherein the first preset mapping relationship includes a plurality of domain names and a service cluster corresponding to each domain name, and the plurality of domain names includes the target domain name; In the case that the target domain name does not have a corresponding domain name storage unit, the target service cluster is determined by a scheduling service platform; wherein the scheduling service platform is used to determine the target service cluster according to the capacity and usage of each cluster in a plurality of service clusters.

4. The method according to claim 3, characterized in that In the case where the target domain name does not have a corresponding domain name storage unit, the target domain name is a wildcard domain name, and the method further includes: Determine the address information of the scheduling service platform according to the second mapping relationship; the second mapping relationship includes the address information of the scheduling service platform corresponding to the wildcard domain name; According to the address information, second indication information is sent to the mobilization service platform, where the second indication information is used to indicate and determine a service cluster corresponding to the target domain name.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Receive processing information from the target service cluster; the processing information is used to reflect the operation result corresponding to the target operation.

6. The method according to claim 5, characterized in that The target operation includes a domain name storage unit creation operation, and the method further includes: In a case where the processing information is used to indicate that the target domain name storage unit is successfully created, a corresponding relationship between the target domain name and the target service cluster is stored.

7. The method according to claim 5, characterized in that The target operation includes a read and write operation of a domain name storage unit, and the processing result includes data obtained from a database corresponding to the target domain name.

8. A domain name processing device, characterized in that: The device comprises: a communication unit and a processing unit; The communication unit is used to obtain first indication information, where the first indication information is used to indicate a target operation to be performed on a target domain name; The processing unit is used to determine a target service cluster for processing the first indication information; the target service cluster is a service cluster that matches the domain name storage unit corresponding to the target domain name, or is a service cluster determined according to the capacity and usage of multiple service clusters; The processing unit is further configured to forward the first indication information to the target service cluster, so that the target service cluster performs the target operation on the target domain name.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the domain name processing method as claimed in any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the domain name processing method as claimed in any one of claims 1 to 7 is implemented.