CN107766091A - Service management and system - Google Patents

Service management and system Download PDF

Info

Publication number
CN107766091A
CN107766091A CN201610666705.6A CN201610666705A CN107766091A CN 107766091 A CN107766091 A CN 107766091A CN 201610666705 A CN201610666705 A CN 201610666705A CN 107766091 A CN107766091 A CN 107766091A
Authority
CN
China
Prior art keywords
configuration
allocation list
service
configuration item
module
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
Application number
CN201610666705.6A
Other languages
Chinese (zh)
Inventor
刘德建
吴玉龙
郭玉湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201610666705.6A priority Critical patent/CN107766091A/en
Publication of CN107766091A publication Critical patent/CN107766091A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The invention provides a kind of service management and system, method includes:The allocation list of service is obtained from database;Change the configuration item and/or configuration parameter in the allocation list;Obtain the operational order of service;The allocation list is traveled through according to operational order dynamic;The configuration of the service is updated according to the configuration item in the allocation list and configuration parameter.During third-party service access server, allocation list can be produced in the database of server, the configuration of service is changed by changing configuration item in allocation list and/or configuration parameter, the characteristic that can be dynamically traveled through due to allocation list, when being operated to service, triggering traversal allocation list, it can be configured so as to service according to the content update in allocation list, server need not be restarted, improve allocative efficiency.

Description

Service management and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of service management and system.
Background technology
More and more progressive with system platform, it is more and more to be linked into the third party's service of server, along with exploitation Docking it is more and more flexible, more related contents that service need configuration management, carry out dynamic and solve the problems such as servicing quick control.
Typically configured in the prior art by * .properties configuration files come management service, such as when service management work Tool adjustment, such as:Relevant database management tool interface domain name is changed, and at this moment needs to search out the environment, the * of current service .properties configuration file, domain name addresses is modified, and needs to notify all users, server needs pause one small The section time, restarted, allow * .properties configuration files to come into force.When some service certain environment undercarriage, such as:MySQL takes Business pressure surveys environment temporary transient undercarriage for a period of time, and pause uses, and at this moment needs to find the Java code for docking the service, changes its batch The code created is measured, the establishment code for surveying environment will be pressed to close, then packing deployment, is issued again.But the above method is used, Service configuration is changed each time, is required for restarting server, and allocative efficiency is low, causes user inconvenient for use.
Publication No. CN 103166793A Chinese patent provides a kind of service configuration method based on meta-model.Bag Include:Establish the meta-model of service configuration;The meta-model of instantiating services configuration;First mould of service configuration after deployment examples Type;Server reads parameter as desired by memory module.The program need not will analyze the service that will be developed and study carefully every time Unexpectedly there is any configuration, be all transparent to configuration management module and data memory module, mitigate the workload of exploitation and test, The efficiency of service configuration is improved to a certain extent.But because the program is still to be configured using configuration file, every time Still need to restart server with postponing.
The content of the invention
The technical problems to be solved by the invention are:There is provided a kind of need not restart server and can change service configuration Service management and system.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
A kind of service management, including:
The allocation list of service is obtained from database;
Change the configuration item and/or configuration parameter in the allocation list;
Obtain the operational order of service;
The allocation list is traveled through according to operational order dynamic;
The configuration of the service is updated according to the configuration item in the allocation list and configuration parameter.
Another technical scheme provided by the invention is:
A kind of service management system, including:
First acquisition module, for obtaining the allocation list of service from database;
Modified module, for changing configuration item and/or configuration parameter in the allocation list;
Second acquisition module, for obtaining the operational order of service;
Spider module, for traveling through the allocation list according to operational order dynamic;
Configuration module, for updating the configuration of the service according to the configuration item in the allocation list and configuration parameter.
The beneficial effects of the present invention are:During third-party service access server, it can be produced in the database of server Raw allocation list, the configuration of service is changed by changing configuration item in allocation list and/or configuration parameter, because allocation list is movable The characteristic of state traversal, when being operated to service, triggering traversal allocation list can be according to the content in allocation list more so as to service New configuration, without restarting server, improves allocative efficiency.
Brief description of the drawings
Fig. 1 is the flow chart of the service management of the embodiment of the present invention;
Fig. 2 is the structural representation of the service management system of the embodiment of the present invention;
Fig. 3 is the flow chart of the service management of the embodiment of the present invention one;
Fig. 4 is the flow chart of the service management of the embodiment of the present invention two;
Fig. 5 is the flow chart of the service management of the embodiment of the present invention three;
Fig. 6 is the structural representation of the service management system of the embodiment of the present invention five;
Fig. 7 is the structural representation of the service management system of the embodiment of the present invention six.
Label declaration:
1st, the first acquisition module;2nd, modified module;21st, the first add module;22nd, judge module;23rd, the second addition mould Block;24th, removing module;3rd, the second acquisition module;4th, spider module;5th, configuration module.
Embodiment
To describe the technology contents of the present invention, the objects and the effects in detail, below in conjunction with embodiment and coordinate attached Figure is explained.
The design of most critical of the present invention is:The allocation list serviced in modification database, is traveled through when being operated to service Configuration of the allocation list to service is updated.
Fig. 1 is refer to, the present invention provides:
A kind of service management, including:
The allocation list of service is obtained from database;
Change the configuration item and/or configuration parameter in the allocation list;
Obtain the operational order of service;
The allocation list is traveled through according to operational order dynamic;
The configuration of the service is updated according to the configuration item in the allocation list and configuration parameter.
It was found from foregoing description, the beneficial effect of service management of the present invention is:Configured by changing in database The mode of table changes the configuration of service, and triggering dynamic traversal allocation list, realizes the configuration of service when user operates to service Renewal, without restarting server, allocative efficiency is high.
Further, configuration item in the allocation list is changed, including:
Configuration item is added to the allocation list;
Judge whether the title of the configuration item has existed in the allocation list;
If so, addition mark is into the title of the configuration item.
It was found from foregoing description, modification configuration item includes to need when adding new configuration item, and adding new configuration item Consider synonym.For example MySQL needs a newly-increased pressure to survey environment, then increase a pressure newly in corresponding allocation list and survey environment Configuration record, but press the MySQL for surveying environment and test environment to be all arranged on on same server of computer room, at this moment to prevent Only the MySQL with test environment bears the same name, and can be solved using addition prefix, such as:Added before MySQL library names " test_ " represents test environment, and addition " pressure_ " represents that pressure surveys environment.Add in the corresponding configuration record pressed and survey environment Plus prefix field, then when performing searching loop, this field can be loaded into automatically, is added to automatically before title, used In differentiation varying environment.Meanwhile this prefix field can be used for bearing the same name when verifying and be shown to user in advance, inform that user applies MySQL will add this prefix, facilitate the management and identification of user.
Further, the configuration of the service is updated according to the configuration item in the allocation list and configuration parameter, is specially:
The content of the configuration item is added in the service by configuration item and configuration parameter according to the allocation list.
It was found from foregoing description, after adding configuration item to allocation list, service only needed during config update according to configuration Configuration item and configuration parameter are added in service by table, for example load the configuration record that above-mentioned pressure surveys environment automatically, are opened The corresponding pressure of scheduling that begins surveys the MySQL of environment.
Further, configuration item in the allocation list is changed, including:
Configuration item is deleted from the allocation list.
Further, the configuration of the service is updated according to the configuration item in the allocation list and configuration parameter, is specially:
Record according to the configuration item in service described in the configuration entry deletion in the allocation list.
It was found from foregoing description, modification configuration item also includes deleting configuration item, i.e., directly by the corresponding configuration in allocation list Item content is deleted, and configuration is updated according to the allocation list for having deleted configuration item when service is configured.For example, MySQL pressures survey environment using after a period of time, and user needs undercarriage and closes pressure survey environment, at this moment only needs to mark deletion to match somebody with somebody Put in table pressure and survey environment this record, when performing searching loop, service the automatic record for removing pressure and surveying environment, undercarriage and close should Pressure surveys environment.Except above-mentioned newly-increased and deletion configuration item, the configuration item and/or configuration parameter for changing allocation list have also included modification The configuration parameter of some configuration items, such as, the MySQL management tool PMA addresses of each environment are different, when the pipe of some environment When reason tool address needs change, it is only necessary to change the address field of the management tool of the environment in allocation list, then perform and follow When ring travels through, the new address after change is read, is updated.Certainly, the modification of allocation list is not limited only to the above.
Fig. 2 is refer to, another technical scheme provided by the invention is:
A kind of service management system, including:
First acquisition module 1, for obtaining the allocation list of service from database;
Modified module 2, for changing configuration item and/or configuration parameter in the allocation list;
Second acquisition module 3, for obtaining the operational order of service;
Spider module 4, for traveling through the allocation list according to operational order dynamic;
Configuration module 5, for updating the configuration of the service according to the configuration item in the allocation list and configuration parameter.
It was found from foregoing description, the beneficial effect of service management system of the present invention is:By the first acquisition module from number The allocation list got is modified according to the allocation list of middle acquisition third party's service, then by modified module, second obtains mould After block gets the operational order to service, triggering spider module traversal allocation list, so as to which configuration module can be according to allocation list Content be updated configuration.
Further, the modified module 2 includes:
First add module 21, for adding configuration item to the allocation list;
Judge module 22, for judging whether the title of the configuration item has been present in the allocation list;
Second add module 23, for if so, addition is identified into the title of the configuration item.
It was found from foregoing description, when service needs to add new configuration item, it will need what is added by the first add module Configuration item is added to allocation list, and judge module first judges whether there has been identical title in allocation list during addition, if then Two add modules will be identified added in the title of the configuration item, prevent from bearing the same name, if there is no identical title in allocation list, Configuration item is directly added to allocation list.
Further, the configuration module 5 according to the configuration item and configuration parameter of the allocation list by the configuration item Content is added in the service.
It was found from foregoing description, when traverse with the addition of configuration item in allocation list when, configuration module is by the configuration item of addition It is added in service, completes config update.
Further, the modified module 2 includes:
Removing module 24, for deleting configuration item from the allocation list.
It was found from foregoing description, when service needs to delete existing configuration item, matched somebody with somebody by what removing module to be deleted Put item.
Further, the configuration module 5 according to described in the configuration entry deletion in the allocation list service in described in match somebody with somebody Put the record of item.
It was found from foregoing description, when traverse delete configuration item in allocation list when, configuration module deleted from service should The record of configuration item, complete config update.
Fig. 3 is refer to, embodiments of the invention one are:
A kind of service management, including:
The allocation list of service is obtained from database;Such as obtain MySQL allocation list;
Change the configuration parameter in the allocation list;Such as change the management tool address of test environment in MySQL allocation lists Corresponding address field;
Obtain the operational order of service;Serviced as user clicks on, then obtain click commands;
The allocation list is traveled through according to operational order dynamic;Wherein, the increasing that main flow on the market can be used in mode is traveled through Strong type for is circulated, and general type object is read in circulation, realizes that dynamic travels through;
The configuration of the service is updated according to the configuration item in the allocation list and configuration parameter;If MySQL is according to above-mentioned The address of management tool is updated to amended address by allocation list.
Fig. 4 is refer to, embodiments of the invention two are:
A kind of service management, including:
The allocation list of service is obtained from database;
Configuration item and corresponding configuration parameter are added to the allocation list;Judge the title of the configuration item whether described Exist in allocation list;If so, addition mark is into the title of the configuration item;Pressure is such as surveyed into environment and corresponding configuration parameter Added to MySQL allocation list;Existing test environment is of the same name in pressure survey environment and allocation list, then the pressure in allocation list surveys ring Pressure_ is added before the title of border as prefix;
Obtain the operational order of service;
The allocation list is traveled through according to operational order dynamic;
The content of the configuration item is added in the service by configuration item and configuration parameter according to the allocation list;Such as The configuration for surveying environment will be pressed to be added to MySQL.
Fig. 5 is refer to, embodiments of the invention three are:
A kind of service management, including:
The allocation list of service is obtained from database;
Configuration item and corresponding configuration parameter are deleted from the allocation list;Pressure is such as surveyed into environment and corresponding configuration parameter Deleted from MySQL allocation list;
Obtain the operational order of service;
The allocation list is traveled through according to operational order dynamic;
Record according to the configuration item in service described in the configuration entry deletion in the allocation list;As by MySQL Pressure is surveyed environment record and deleted.
The service management of above-described embodiment one to three, when needing batch to create service management, it is only necessary to modification Batch operation field in database, for example closed during the service of certain environment is created from batch, then complete the batch of the service Delete.
Fig. 2 is refer to, embodiments of the invention four are:
A kind of service management system, including:
First acquisition module 1, for obtaining the allocation list of service from database;
Modified module 2, for changing the configuration parameter in the allocation list;
Second acquisition module 3, for obtaining the operational order of service;
Spider module 4, for traveling through the allocation list according to operational order dynamic;
Configuration module 5, for updating the configuration of the service according to the configuration item in the allocation list and configuration parameter.
Fig. 6 is refer to, embodiments of the invention five are:
A kind of service management system, including:
First acquisition module 1, for obtaining the allocation list of service from database;
Modified module 2, for changing allocation list and corresponding configuration parameter in the allocation list;The modified module 2 Including:First add module 21, for adding configuration item and corresponding configuration parameter to the allocation list;Judge module 22, use Whether exist in the title for judging the configuration item in the allocation list;Second add module 23, for if so, addition Mark is into the title of the configuration item;
Second acquisition module 3, for obtaining the operational order of service;
Spider module 4, for traveling through the allocation list according to operational order dynamic;
Configuration module 5, the content of the configuration item is added for the configuration item according to the allocation list and configuration parameter Into the service.
Fig. 7 is refer to, embodiments of the invention five are:
A kind of service management system, including:
First acquisition module 1, for obtaining the allocation list of service from database;
Modified module 2, for changing allocation list and corresponding configuration parameter in the allocation list;The modified module 2 Including:Removing module 24, for deleting configuration item and corresponding configuration parameter from the allocation list;
Second acquisition module 3, for obtaining the operational order of service;
Spider module 4, for traveling through the allocation list according to operational order dynamic;
Configuration module 5, for the note according to the configuration item in service described in the configuration entry deletion in the allocation list Record.
In summary, service management provided by the invention and system, by changing the method pair configured in database The configuration of access service is managed, when being operated to service triggering dynamic traversal allocation list, so as to service can according to The content for putting table carries out config update, without restarting server, without code is write again, improves allocative efficiency.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include In the scope of patent protection of the present invention.

Claims (10)

  1. A kind of 1. service management, it is characterised in that including:
    The allocation list of service is obtained from database;
    Change the configuration item and/or configuration parameter in the allocation list;
    Obtain the operational order of service;
    The allocation list is traveled through according to operational order dynamic;
    The configuration of the service is updated according to the configuration item in the allocation list and configuration parameter.
  2. 2. service management according to claim 1, it is characterised in that configuration item in the allocation list is changed, including:
    Configuration item is added to the allocation list;
    Judge whether the title of the configuration item has existed in the allocation list;
    If so, addition mark is into the title of the configuration item.
  3. 3. service management according to claim 2, it is characterised in that according to the configuration item in the allocation list and match somebody with somebody The configuration that parameter updates the service is put, is specially:
    The content of the configuration item is added in the service by configuration item and configuration parameter according to the allocation list.
  4. 4. service management according to claim 1, it is characterised in that configuration item in the allocation list is changed, including:
    Configuration item is deleted from the allocation list.
  5. 5. service management according to claim 4, it is characterised in that according to the configuration item in the allocation list and match somebody with somebody The configuration that parameter updates the service is put, is specially:
    Record according to the configuration item in service described in the configuration entry deletion in the allocation list.
  6. A kind of 6. service management system, it is characterised in that including:
    First acquisition module, for obtaining the allocation list of service from database;
    Modified module, for changing configuration item and/or configuration parameter in the allocation list;
    Second acquisition module, for obtaining the operational order of service;
    Spider module, for traveling through the allocation list according to operational order dynamic;
    Configuration module, for updating the configuration of the service according to the configuration item in the allocation list and configuration parameter.
  7. 7. service management system according to claim 6, it is characterised in that the modified module includes:
    First add module, for adding configuration item to the allocation list;
    Judge module, for judging whether the title of the configuration item has been present in the allocation list;
    Second add module, for if so, addition is identified into the title of the configuration item.
  8. 8. service management system according to claim 7, it is characterised in that the configuration module is according to the allocation list The content of the configuration item is added in the service by configuration item and configuration parameter.
  9. 9. service management system according to claim 6, it is characterised in that the modified module includes:
    Removing module, for deleting configuration item from the allocation list.
  10. 10. service management system according to claim 9, it is characterised in that the configuration module is according to the allocation list In configuration entry deletion described in service in the configuration item record.
CN201610666705.6A 2016-08-15 2016-08-15 Service management and system Pending CN107766091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610666705.6A CN107766091A (en) 2016-08-15 2016-08-15 Service management and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610666705.6A CN107766091A (en) 2016-08-15 2016-08-15 Service management and system

Publications (1)

Publication Number Publication Date
CN107766091A true CN107766091A (en) 2018-03-06

Family

ID=61260596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610666705.6A Pending CN107766091A (en) 2016-08-15 2016-08-15 Service management and system

Country Status (1)

Country Link
CN (1) CN107766091A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641678A (en) * 2021-08-25 2021-11-12 杭州每刻科技有限公司 Dynamic service configuration method and system based on multi-dimensional form

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174331A1 (en) * 1999-11-17 2002-11-21 Clifton Malcolm Nock System for reconfiguring an existing server process without ending and restarting
US20090177684A1 (en) * 2008-01-07 2009-07-09 International Business Machines Corporation Automated configuration updater
CN104104701A (en) * 2013-04-08 2014-10-15 腾讯科技(深圳)有限公司 Online service configuration updating method and system
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program
CN104243515A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Method and device for processing configuration information
CN104360853A (en) * 2014-11-03 2015-02-18 中国农业银行股份有限公司 Method and device for configuration information management and information system
CN105138343A (en) * 2015-10-10 2015-12-09 携程计算机技术(上海)有限公司 Management service configuration method and system
CN105512267A (en) * 2015-12-03 2016-04-20 北京锐安科技有限公司 Method and device for adjusting configuration file
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174331A1 (en) * 1999-11-17 2002-11-21 Clifton Malcolm Nock System for reconfiguring an existing server process without ending and restarting
US20090177684A1 (en) * 2008-01-07 2009-07-09 International Business Machines Corporation Automated configuration updater
CN104104701A (en) * 2013-04-08 2014-10-15 腾讯科技(深圳)有限公司 Online service configuration updating method and system
CN104243515A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Method and device for processing configuration information
CN104199666A (en) * 2014-09-09 2014-12-10 北京京东尚科信息技术有限公司 Dynamic configuration method and device for application program
CN104360853A (en) * 2014-11-03 2015-02-18 中国农业银行股份有限公司 Method and device for configuration information management and information system
CN105138343A (en) * 2015-10-10 2015-12-09 携程计算机技术(上海)有限公司 Management service configuration method and system
CN105512267A (en) * 2015-12-03 2016-04-20 北京锐安科技有限公司 Method and device for adjusting configuration file
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641678A (en) * 2021-08-25 2021-11-12 杭州每刻科技有限公司 Dynamic service configuration method and system based on multi-dimensional form

Similar Documents

Publication Publication Date Title
CN107402992B (en) Distributed NewSQL database system and full-text retrieval establishing method
CN102999369B (en) The method and device of virtual machine upgrading
US8074209B2 (en) Extending native data types
US20110029822A1 (en) Tracking of java objects during request processing
US20130086506A1 (en) Organization and display of tabs and tab groups over hierarchical levels
US7890930B2 (en) Method and system for allowing an eclipse feature to create/remove/update program groups and shortcuts, via an eclipse install handler
CN107357593A (en) Source code file construction method, device, electric terminal and readable storage medium storing program for executing
CN102929597B (en) A kind of Web service based on Java platform supports method and apparatus
CN101286119A (en) Method for determining function point changing through code analysis
CN100489860C (en) Method and apparatus for updating object local attribute to related database
CN101960442B (en) Method and apparatus for inputting/outputting data using virtualization technique
CN111078205B (en) Modularized programming method and device, storage medium and electronic equipment
KR102042230B1 (en) Synchronizing local and remote data
US20050262052A1 (en) Web research tool
CN102073525A (en) Method and device for dynamically upgrading Web service system based on Java platform
CN103544306A (en) Multi-language display supporting method and device of website
US9164872B2 (en) Tracking of program objects during request processing
CN104090958A (en) Semantic information retrieval system and method based on domain ontology
CN106528071A (en) Selection method and device for target code
CN101221504A (en) Test script processing method and its scheduling and executing system
CN104679500A (en) Automatic generation realizing method and device for entity classes
CN112464625A (en) Receipt generation method and device, computer equipment and storage medium
KR100923161B1 (en) Portable storage apparatus for providing working environment migration service, and method for providing working environment migration service in that
CN103107919A (en) Method and system for network resource modeling
KR101512296B1 (en) File associated with application processing terminal and processing method of file associated with application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180306

WD01 Invention patent application deemed withdrawn after publication