Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Domain name configuration information processing method and device

An information processing method and technology for an information processing device, which are applied in the Internet field, can solve the problems of huge global configuration file capacity, impact on service quality, and long time consumption, and achieve the effects of improving convenience, preventing repeated loading, and improving satisfaction.

Active Publication Date: 2020-01-07
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In services such as HTTP proxy or HTTP cache, it is necessary to provide services for various domain names at the same time. After the network scale gradually increases, the number of domain names that need to be served may reach as many as tens of thousands, and each domain name needs to be set targeted If you follow the setting method in the original technology, the capacity of the global configuration file containing the configuration information of all domain names will be very large. When you need to modify the configuration of a domain name or add or delete the configuration of a domain name, you need to reload and Parsing the entire global configuration file takes a long time and will affect the quality of service

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Domain name configuration information processing method and device
  • Domain name configuration information processing method and device
  • Domain name configuration information processing method and device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0075] domain name www.qq.com For example, the specific execution process is as follows:

[0076] DOMAIN www.qq.com

[0077] logformat %host %timestamp %url %status %resp_size %upstream_addr %upstream_status; the content of this command line is to set the log format as: domain name, request timestamp, requested url, response status code, response size, upstream address, upstream The status code of the response.

[0078] http_access allow all; the content of this command line is: allow all requests to access.

[0079] DOMAIN END

[0080] DOMAIN www.baidu.com

[0081] acl hhh url.*\.mp4\? .* The content of this command line is: define an acl named hhh, this acl matches the request of type mp4.

[0082] logformat %host %timestamp %url %status %resp_size The content of this command line is to set the log format as: domain name, request timestamp, requested url, response status code, and response size.

[0083] http_access allow hhh The content of this command line is: ...

example 2

[0097] first domain name www.qq.com and The second domain name www.baidu.com The corresponding configuration item vector includes 8 configuration items, which are: first parent node configuration information, whether the first parent node can be accessed, second parent node configuration information, whether the second parent node can be accessed, third parent node configuration information , whether the third parent node can be accessed, the configuration information of the fourth parent node, and whether the fourth parent node can be accessed.

[0098] Configuration methods using existing methods include:

[0099] DOMAIN www.qq.com

[0100] cache_peer parent 192.168.100.1 80name=beijing hash

[0101] This configuration indicates that the type of cache_peer is the parent node, the name is beijing, the ip is 192.168.100.1, the port is 80, and the usage method is hash.

[0102] cache_peer_access beijing allow all

[0103] This configuration means that all requests are al...

specific Embodiment

[0177] Set the global file cache.conf to save global general configuration information.

[0178] Send buffer packet size, send_buffer_size 16384

[0179] Maximum object size, maximum_object_size 200GB

[0180] Memory replacement policy, cache_replace_policy lru

[0181] The maximum connection time, connect_timeout 30seconds

[0182] The maximum time for reading, read_timeout 60seconds

[0183] Set the domains folder, and set the domain name configuration file of the first domain name www.qq.com under this domains folder www.qq.com.conf , set the domain name configuration file of the second domain name www.baidu.com under the domains folder www.baidu.com.conf .

[0184] The specific form is:

[0185] domains / www.qq.com.conf

[0186] domains / www.baidu.com.conf

[0187] Start the system, load the global file cache.conf, and load the global common configuration information. At this time, the domain name configuration file of each domain name has not been parsed, and the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a domain name configuration information processing method and device. The method comprises the steps: setting a configuration item vector configuration rule which comprises thesequence setting rule of all configuration items in a configuration item vector; setting global universal configuration information, and setting a domain name configuration file corresponding to thedomain name in a non-memory storage area; loading global universal configuration information; receiving an access request, determining a domain name contained in the access request, and searching whether a domain name configuration file corresponding to the domain name contained in the access request is contained in a loaded and analyzed domain name configuration file set in a memory or not; and if not, loading a domain name configuration file corresponding to the target domain name from the non-memory storage area. The domain name configuration files can be independently set for different domain names, the corresponding domain name configuration files can be loaded only when some domain name settings need to be used, repeated loading of the domain name configuration files of irrelevant domain names can be effectively prevented, and processing resources are saved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and device for processing domain name configuration information. Background technique [0002] In services such as HTTP proxy or HTTP cache, it is necessary to provide services for various domain names at the same time. After the network scale gradually increases, the number of domain names that need to be served may reach as many as tens of thousands, and each domain name needs to be set targeted If you follow the setting method in the original technology, the capacity of the global configuration file containing the configuration information of all domain names will be very large. When you need to modify the configuration of a domain name or add or delete the configuration of a domain name, you need to reload and Parsing the entire global configuration file takes a long time and affects the quality of service. [0003] Therefore, in order to solve the above shortc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12
CPCH04L61/10H04L61/50H04L61/4511
Inventor 陈小钟苗辉
Owner GUIZHOU BAISHANCLOUD TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products