Method and device for adjusting configuration file

A technology of configuration files and adjustment methods, applied in special data processing applications, instruments, electrical digital data processing, etc., to achieve the effect of improving user experience and simple operation

Inactive Publication Date: 2016-04-20
RUN TECH CO LTD BEIJING
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention provides a configuration file adjustment method and device to solve the problem that the distributed search program needs to be restarted when the configuration file is adjusted

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
  • Method and device for adjusting configuration file
  • Method and device for adjusting configuration file
  • Method and device for adjusting configuration file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] figure 1 It is a schematic flowchart of a configuration file adjustment method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the configuration file is adjusted, and the method can be executed by the adjustment device of the configuration file, such as figure 1 As shown, a configuration file adjustment method provided in Embodiment 1 of the present invention specifically includes the following operations:

[0020] S110. Monitor the local configuration file.

[0021] Specifically, the detection in this operation may mainly include: monitoring the modification time and file size of the local configuration file (local Schema file).

[0022] S120. When it is detected that the local configuration file has changed and the modification operation on the local configuration file is completed, compare the check value of the local configuration file with the check value of the configuration file in the consistency service ...

Embodiment 2

[0036] figure 2 It is a schematic flowchart of a method for adjusting a configuration file provided in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments, such as figure 2 As shown, a configuration file adjustment method provided in Embodiment 2 of the present invention specifically includes the following operations:

[0037] S210. Monitor the local configuration file.

[0038] S220. When it is detected that the local configuration file has changed and the modification operation on the local configuration file is completed, compare the check value of the local configuration file with the check value of the configuration file in the consistency service program .

[0039] S230. If the verification value of the local configuration file is inconsistent with the verification value of the configuration file in the consistency service program, upload the local configuration file to the consistency service program to overwrit...

Embodiment 3

[0050] image 3 It is a schematic structural diagram of an apparatus for adjusting configuration files provided by Embodiment 3 of the present invention. Such as image 3 As shown, a device for adjusting configuration files provided by Embodiment 3 of the present invention mainly includes:

[0051] A file detection module 310 , a first verification value comparison module 320 and a file reload module 330 .

[0052] Wherein, the file detection module 310 is used to monitor the local configuration file;

[0053] The first verification value comparison module 320 is configured to compare the verification value of the local configuration file with the consistency service program when it is detected that the local configuration file has changed and the modification operation to the local configuration file is completed. Compare the verification value of the configuration file in the local configuration file; if the verification value of the local configuration file is inconsiste...

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 method and device for adjusting a configuration file. The method for adjusting the configuration file includes the steps that the local configuration file is monitored; when it is monitored that the local configuration file is changed and modification operation on the local configuration file is completed, a proof test value of the local configuration file is compared with a proof test value of a configuration file in a consistency service program; if the proof test value of the local configuration file is inconsistent with the proof test value of the configuration file in the consistency service program, the local configuration file is uploaded to the consistency service program to cover the configuration file in the consistency service program; a library list associated with the configuration file in the consistency service program is reloaded. The local configuration file can be dynamically adjusted, and the problem that in the prior art, after the local configuration file is modified, the modification takes effect only by restarting a distributed search program is solved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of software, and in particular to a configuration file adjustment method and device. Background technique [0002] The distributed search program (Solrcloud) is a distributed search program based on the consistency service program (zookeeper). As an open source search engine software, the distributed search program has been widely used in the field of information technology. [0003] The configuration file (Schema file) is the core of the business logic of the distributed search program. Which fields a document contains, the field type, whether the field is stored, whether the field is word-segmented, how to index, how to be queried, etc. are all defined in the configuration file. Currently, after modifying and adjusting the configuration files in the distributed search program, the distributed search program needs to be restarted to take effect. This brings a lot of inconvenience ...

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): G06F17/30
CPCG06F16/182
Inventor 贾高峰田晋坤闫慧丽
Owner RUN TECH CO LTD BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products