CN105138343A - Management service configuration method and system - Google Patents
Management service configuration method and system Download PDFInfo
- Publication number
- CN105138343A CN105138343A CN201510652572.2A CN201510652572A CN105138343A CN 105138343 A CN105138343 A CN 105138343A CN 201510652572 A CN201510652572 A CN 201510652572A CN 105138343 A CN105138343 A CN 105138343A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration item
- module
- service
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention discloses a management service configuration method and system. The method comprises the steps that services are introduced into a first module; the first module sends a request of inquiring configuration items to a dynamic configuration service; the dynamic configuration service receives the request and checks whether configuration items matched with the inquired configuration items exist in a database, if so, the values of the matched configuration items in the database are returned, and if no, the configuration items matched with the inquired configuration items are added and the initial values of the added configuration items are set and then are returned; the first module receives the values of the configuration items which are returned by the dynamic configuration service. The method and the system have the effects of making up for the deficiency that the existing service configuration items have complex storage structures and are not beneficial to technicians to manage and maintain and gathering the configuration items distributed in each service for centralized management, thus avoiding extra workloads and damages to service stability caused by managing the configuration items by original methods.
Description
Technical field
The present invention relates to the method and system of a kind of management service configuration.
Background technology
In internet arena, each service as an application deployment on the server, substantially each service has several or tens configuration items to leave in XML (extend markup language) configuration file, when these configuration items are modified, service then needs again to issue.Again the news conference of service brings extra work amount to development& testing personnel, and affects the stable of whole existing system.
Summary of the invention
The technical problem to be solved in the present invention is to overcome existing service configuration item storage organization complexity, being unfavorable for the defect that technician administers and maintains, provide the method and system that a kind of new management service configures.
The present invention solves the problems of the technologies described above by the following technical programs:
The invention provides the method for a kind of management service configuration, be characterized in, described method comprises:
S
1, service introducing first module;
S
2, described first module sends the request of query configuration item to dynamic-configuration service, described request comprises the title of the configuration item be queried;
S
3, described dynamic-configuration service reception described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting;
S
4, described first module receives the value of the configuration item that described dynamic-configuration service returns.
Wherein, described first module can be dll (application program expansion) module; The configuration item matched with the configuration item be queried in database refers to and the configuration item that the AppID of the configuration item be queried (each unique ID (identification number) served) and configuration item title all mate; When the configuration item that the configuration item do not existed be queried matches, S
4described in the value of configuration item that returns of the described dynamic-configuration service that receives of the first module be S
3the initial value of the configuration item of middle interpolation.The configuration item be dispersed in each service is collected by dynamic-configuration service by the technical program, manages concentratedly, avoids additional workload that original mode administration configuration item brings and the infringement to service stability.
Preferably, described method is also included in step S
4perform following steps afterwards:
S
5, the value of the configuration item received carried out buffer memory by described first module.
By the technical program, other service can obtain to high-performance the value of configuration item, improves system effectiveness.
Preferably, S
5also comprise:
The cache-time of the value of the configuration item received is set;
And/or, the value of the configuration item in buffer memory is upgraded by behind thread.
Preferably, described method also comprises: by the value of configuration item in configuration item maintenance site Update Table storehouse.
Even if the value of configuration item is modified in the technical program, service does not need again to issue yet, this is because, in the technical program, inquiry and the value essence of amendment configuration item are by database realizing, namely inquire about the value with configuration item in Update Table storehouse, instead of directly the configuration item of service is operated.Therefore, the technical program can reach the workload reducing development& testing personnel, and ensures the advantage of system stability.
Preferably, described request also comprises the initial value of the configuration item be queried.
The system that the present invention also provides a kind of management service to configure, be characterized in, described system comprises: the first module of an access service and a dynamic-configuration service module;
Described first module is used for the request sending query configuration item to described dynamic-configuration service module, and described request comprises the title of the configuration item be queried;
Described dynamic-configuration service module is for receiving described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting;
Described first module is also for receiving the value of the configuration item that described dynamic-configuration service module returns.
Preferably, described first module also carries out buffer memory for the value of the configuration item that will receive.
Preferably, described first module also for arranging the cache-time of the value received, and/or, upgraded the value of the configuration item in buffer memory by behind thread.
Preferably, described system also comprises: a configuration item maintenance site module;
Described configuration item maintenance site module is used for the value of configuration item in Update Table storehouse.
Preferably, described request also comprises the initial value of the configuration item be queried.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is: the configuration item be dispersed in each service is collected by dynamic-configuration service by the present invention, manage concentratedly, avoid additional workload that original mode administration configuration item brings and the infringement to service stability, by the first module, configuration item is inquired about, by configuration item maintenance site, the value of configuration item in database is modified, avoid issuing service again, decrease the workload of development& testing personnel, and ensure that system stability.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for the management service configuration of the embodiment of the present invention.
Fig. 2 is the structural representation of the system of the management service configuration of the embodiment of the present invention.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Embodiment
A method for management service configuration, as shown in Figure 1, described method comprises:
Step 101, service introducing first module.Described first module is dll module, provides api (application programming interface) to the service of access or website, and technician wants the title of the configuration item inquired about by described first module input, or, title and initial value.
Step 102, described first module send the request of query configuration item to dynamic-configuration service.Wherein, described request is according to the title wanting the configuration item inquired about of input, or title and initial value generate, and comprise the title of the configuration item be queried, or, title and initial value.
Step 103, described dynamic-configuration service reception described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting.Wherein, described database is MySql (Relational DBMS) database.
Step 104, described first module receive the value of the configuration item that described dynamic-configuration service returns.
The value of the described configuration item returned can not buffer memory, also can pass through step 105 buffer memory:
The value received also is carried out buffer memory by the cache-time of the value of the configuration item that step 105, described first module installation receive.Wherein, buffer memory can be convenient to the value of other service acquisition configuration item.
Step 106, described first module are by the value of the configuration item in the buffer memory of thread renewal behind.Wherein, can all existing buffer memorys of disposable renewal during renewal, improve system effectiveness.
The method of the management service configuration of the present embodiment also comprises the value by configuration item in configuration item maintenance site Update Table storehouse.If the first module buffer memory value of configuration item, so after have passed through cache-time, the value of configuration item can be updated to up-to-date value, if the first module does not have the value of cached configuration item, so, the value of configuration item can be updated to up-to-date value at once.
Fig. 2 shows the structural representation of the system of the management service configuration of the present embodiment, which schematically illustrates service A (AppID:1000001) and configuration item 01,02 and 03 thereof, service B (AppID:1000002) and configuration item 01 and 02 thereof, service C (AppID:1000003) and configuration item 01 thereof, described system 2 comprises: the first module (not shown), dynamic-configuration service module 201 and a configuration item maintenance site module 202 of each service of an access.
Described first module is used for the request sending query configuration item to described dynamic-configuration service module 201.Wherein, described request is according to the title wanting the configuration item inquired about of input, or title and initial value generate, and comprise the title of the configuration item be queried, or, title and initial value.
Described dynamic-configuration service module 201 is for receiving described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting.Wherein, described database is the MySql database in Fig. 2.
Described first module is also for receiving the value of the configuration item that described dynamic-configuration service module 201 returns.
The value of the described configuration item returned can not buffer memory, also can by described first module buffer memory:
Described first module is also for arranging the cache-time of the value of the configuration item received and the value of the configuration item received being carried out buffer memory.Wherein, buffer memory can be convenient to the value of other service acquisition configuration item.
Described first module is also for the value by the configuration item in the buffer memory of thread renewal behind.Wherein, can all existing buffer memorys of disposable renewal during renewal, improve system effectiveness.
Described configuration item maintenance site module 202 is for the value of configuration item in Update Table storehouse.If the first module buffer memory value of configuration item, so after have passed through cache-time, the value of configuration item can be updated to up-to-date value, if the first module does not have the value of cached configuration item, so, the value of configuration item can be updated to up-to-date value at once.
First module described in the system of the present embodiment is dll module, provides the api be simple and easy to the service of access or website, and technician wants the title of the configuration item inquired about by described first module input, or, title and initial value;
Dynamic-configuration service module 201 is called by dll module, with C# language exploitation, provides SOA (Services Oriented Achitecture) to serve, supports the various protocols such as SOAP, XML, JSON.
Configuration item maintenance site module 202 is based on ASP.NET (a kind of network technology) technological development, and employ the front end frame such as third party's class libraries ArtDialog, there is provided unified succinct configuration item maintenance interface to exploitation or maintainer, can the value of maintain configuration item.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.
Claims (10)
1. a method for management service configuration, it is characterized in that, described method comprises:
S
1, service introducing first module;
S
2, described first module sends the request of query configuration item to dynamic-configuration service, described request comprises the title of the configuration item be queried;
S
3, described dynamic-configuration service reception described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting;
S
4, described first module receives the value of the configuration item that described dynamic-configuration service returns.
2. the method for management service configuration as claimed in claim 1, it is characterized in that, described method is also included in step S
4perform following steps afterwards:
S
5, the value of the configuration item received carried out buffer memory by described first module.
3. the method for management service configuration as claimed in claim 2, is characterized in that, S
5also comprise:
The cache-time of the value of the configuration item received is set;
And/or, the value of the configuration item in buffer memory is upgraded by behind thread.
4. the method for management service configuration as claimed in claim 1, it is characterized in that, described method also comprises: by the value of configuration item in configuration item maintenance site Update Table storehouse.
5. the method for management service configuration as claimed in claim 1, it is characterized in that, described request also comprises the initial value of the configuration item be queried.
6. a system for management service configuration, it is characterized in that, described system comprises: the first module of an access service and a dynamic-configuration service module;
Described first module is used for the request sending query configuration item to described dynamic-configuration service module, and described request comprises the title of the configuration item be queried;
Described dynamic-configuration service module is for receiving described request, check in database whether there is the configuration item matched with the configuration item be queried, if exist, the value of the configuration item matched described in returning in a database, if do not exist, add the configuration item that matches with the configuration item that is queried and the initial value of the configuration item of interpolation is set, then returning the initial value of setting;
Described first module is also for receiving the value of the configuration item that described dynamic-configuration service module returns.
7. the system of management service configuration as claimed in claim 6, it is characterized in that, described first module also carries out buffer memory for the value of the configuration item that will receive.
8. the system of management service configuration as claimed in claim 7, is characterized in that, described first module also for arranging the cache-time of the value of the configuration item received, and/or, upgraded the value of the configuration item in buffer memory by behind thread.
9. the system of management service configuration as claimed in claim 7, it is characterized in that, described system also comprises: a configuration item maintenance site module;
Described configuration item maintenance site module is used for the value of configuration item in Update Table storehouse.
10. the system of management service configuration as claimed in claim 6, it is characterized in that, described request also comprises the initial value of the configuration item be queried.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510652572.2A CN105138343A (en) | 2015-10-10 | 2015-10-10 | Management service configuration method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510652572.2A CN105138343A (en) | 2015-10-10 | 2015-10-10 | Management service configuration method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105138343A true CN105138343A (en) | 2015-12-09 |
Family
ID=54723701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510652572.2A Pending CN105138343A (en) | 2015-10-10 | 2015-10-10 | Management service configuration method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105138343A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055413A (en) * | 2016-05-10 | 2016-10-26 | 北京奇虎科技有限公司 | Method, device, server and system for transferring application configuration item of intelligent watch |
CN107766091A (en) * | 2016-08-15 | 2018-03-06 | 福建天泉教育科技有限公司 | Service management and system |
CN108156201A (en) * | 2016-12-06 | 2018-06-12 | 北京京东尚科信息技术有限公司 | It is managed collectively the method and apparatus of application system configuration data |
CN112118298A (en) * | 2020-09-03 | 2020-12-22 | 杭州海康威视数字技术股份有限公司 | Configuration management method and device for distributed service |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079763A (en) * | 2006-06-12 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A remote configuration and management system and method of servers |
CN102255752A (en) * | 2011-06-30 | 2011-11-23 | 北京新媒传信科技有限公司 | Configuration management system and method of server cluster |
CN104202383A (en) * | 2014-08-26 | 2014-12-10 | 浪潮软件股份有限公司 | Centralized configuration distribution and management method in distributed cluster environment |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
CN104298733A (en) * | 2014-09-30 | 2015-01-21 | 广州华多网络科技有限公司 | Method and device for realizing service functions |
-
2015
- 2015-10-10 CN CN201510652572.2A patent/CN105138343A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079763A (en) * | 2006-06-12 | 2007-11-28 | 腾讯科技(深圳)有限公司 | A remote configuration and management system and method of servers |
CN102255752A (en) * | 2011-06-30 | 2011-11-23 | 北京新媒传信科技有限公司 | Configuration management system and method of server cluster |
CN104202383A (en) * | 2014-08-26 | 2014-12-10 | 浪潮软件股份有限公司 | Centralized configuration distribution and management method in distributed cluster environment |
CN104199666A (en) * | 2014-09-09 | 2014-12-10 | 北京京东尚科信息技术有限公司 | Dynamic configuration method and device for application program |
CN104298733A (en) * | 2014-09-30 | 2015-01-21 | 广州华多网络科技有限公司 | Method and device for realizing service functions |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055413A (en) * | 2016-05-10 | 2016-10-26 | 北京奇虎科技有限公司 | Method, device, server and system for transferring application configuration item of intelligent watch |
CN106055413B (en) * | 2016-05-10 | 2020-06-05 | 北京奇虎科技有限公司 | Method, device, server and system for transmitting application configuration items of smart watch |
CN107766091A (en) * | 2016-08-15 | 2018-03-06 | 福建天泉教育科技有限公司 | Service management and system |
CN108156201A (en) * | 2016-12-06 | 2018-06-12 | 北京京东尚科信息技术有限公司 | It is managed collectively the method and apparatus of application system configuration data |
CN108156201B (en) * | 2016-12-06 | 2021-01-26 | 北京京东尚科信息技术有限公司 | Method and device for uniformly managing configuration data of application system |
CN112118298A (en) * | 2020-09-03 | 2020-12-22 | 杭州海康威视数字技术股份有限公司 | Configuration management method and device for distributed service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105138343A (en) | Management service configuration method and system | |
CN105224351B (en) | Rapid configuration implementation method and rapid configuration server | |
CN105099761B (en) | A kind of method and system of configuration information that managing client concentratedly | |
CN101252465B (en) | Warning data acquisition method and server and client end in system | |
CN107888666B (en) | Cross-region data storage system and data synchronization method and device | |
US20120110566A1 (en) | Apparatus and method for setting up multi-tenant saas applications | |
CN103209223A (en) | Distributed application conversation information sharing method and system and application server | |
CN103685590B (en) | Obtain the method and system of IP address | |
CN103023857B (en) | A kind of method and system of information resources remote deployment | |
US10609534B2 (en) | Feed service engine | |
CN103268230B (en) | Can the method for cloud computing information management platform of extended theorem for building | |
CN107908521A (en) | A kind of monitoring method of container performance on the server performance and node being applied under cloud environment | |
CN101808051B (en) | Application integration gateway and control method thereof | |
CN103793485A (en) | Method for inquiring network data by client terminal based on cached data | |
CN104168326A (en) | Server load balancing method and system | |
CN103166984B (en) | System that Network Video Surveillance equipment control is controlled and automatically updates, method | |
CN108989390A (en) | User requests retransmission method and device, Reverse Proxy and computer readable storage medium | |
CN107957869A (en) | The fixed office cloud desktop system of one kind | |
CN103179467A (en) | Terminal and information gathering method | |
CN102026228B (en) | Statistical method and equipment for communication network performance data | |
CN104331494B (en) | A kind of method and system of more new data | |
CN103236952A (en) | Blazeds (BS)-based alarm monitoring method | |
CN104410511A (en) | Server management method and system | |
US20100325244A1 (en) | Real time data network | |
CN107682222A (en) | A kind of information monitoring method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151209 |