CN109871267A - A kind of start & shutdown through one key method and system of base priority - Google Patents

A kind of start & shutdown through one key method and system of base priority Download PDF

Info

Publication number
CN109871267A
CN109871267A CN201811596897.3A CN201811596897A CN109871267A CN 109871267 A CN109871267 A CN 109871267A CN 201811596897 A CN201811596897 A CN 201811596897A CN 109871267 A CN109871267 A CN 109871267A
Authority
CN
China
Prior art keywords
shutdown
service
priority
equipment
library
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.)
Granted
Application number
CN201811596897.3A
Other languages
Chinese (zh)
Other versions
CN109871267B (en
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.)
State Grid Gansu Electric Power Co Ltd
Nari Information and Communication Technology Co
Information and Telecommunication Branch of State Grid Gansu Electric Power Co Ltd
Original Assignee
State Grid Gansu Electric Power Co Ltd
Nari Information and Communication Technology Co
Information and Telecommunication Branch of State Grid Gansu Electric Power Co 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 State Grid Gansu Electric Power Co Ltd, Nari Information and Communication Technology Co, Information and Telecommunication Branch of State Grid Gansu Electric Power Co Ltd filed Critical State Grid Gansu Electric Power Co Ltd
Priority to CN201811596897.3A priority Critical patent/CN109871267B/en
Publication of CN109871267A publication Critical patent/CN109871267A/en
Application granted granted Critical
Publication of CN109871267B publication Critical patent/CN109871267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of start & shutdown through one key method and system of base priority, including establish hardware device resources library;Establish generic service script;System information library is established, and establishes the topological relation of system, service script and hardware device resources according to device resource library and system information library;According to Topology generation start & shutdown through one key topological relation tree, the start stop operation of system and equipment is carried out according to the priority of relational tree and service and equipment, the present invention realizes system start & shutdown through one key, automation O&M for information system and device resource provides feasible technical solution, successfully manage in emergency circumstances information system and device resource start and stop and shutdown problem, effectively prevent server application rank failure and caused by system be not easy to restore problem.

Description

A kind of start & shutdown through one key method and system of base priority
Technical field
The invention belongs to operation system O&M technical field more particularly to power distribution network single-phase high-impedance detection sides Method.
Background technique
With the development of IT application in enterprises, the operation system that enterprise needs is continuously increased, and the hardware environment being related to is gradually Expand, infrastructure device comes into operation time increase, and infrastructure fault gradually increases in operation, for example precision air conditioner failure, stop Electric back brake causes power supply hidden danger etc..When computer room infrastructure occurs such as power loss, air-conditioning failure, emergency measure pair need to be carried out immediately Server carries out shutting down operation.Since data center server is numerous, traditional server, which shuts down mode, needs login system one by one And power-off operation is carried out, it is related to that personnel are more, shutdown is complicated and the duration is long, meets an urgent need ineffective, there are computer room temperatures sharply Server also non-normal shutdown when rising reaches server delay machine critical point, causes the failure of server application rank, system is not Easily restore,.
Summary of the invention
In view of the problems of the existing technology, the present invention provides a kind of start & shutdown through one key method of base priority, can be tight The start and stop of system and device resource are completed in anxious situation.
Above-mentioned technical problem of the invention is mainly to be addressed by following technical proposals:
A kind of start & shutdown through one key method priority-based, comprising:
Establish hardware device resources library;
Establish generic service script;
System information library is established, and system, service script and hardware device are established according to device resource library and system information library The topological relation of resource;
According to Topology generation start & shutdown through one key topological relation tree, the priority according to relational tree and service and equipment is The start stop operation of system and equipment, specifically:
According to Topology generation start stop operation topological tree;
Permission control audit is carried out to operation;
Start stop operation is carried out to the service of each system according to the priority of service, more new system and the shape of service after the completion of operation State;
Equipment operation authority is audited;
The shutoff operation of equipment is carried out according to the priority of equipment, operation is completed to be updated equipment state.
Further, the hardware device resources library includes device name, device class, device IP, place computer room, cabinet Number and equipment owner information.
Further, the system information includes systematic name, system priority, system request address.
Further, the topological relation for telling the system of foundation, service script and hardware device resources includes: to establish system With the corresponding relationship of the corresponding relationship of service, service script and the corresponding relationship of service and service script and equipment.
A kind of start & shutdown through one key system priority-based, comprising:
Topology establishes module:
For establishing hardware device resources library;
Establish generic service script;
System information library is established, and system, service script and hardware device are established according to device resource library and system information library The topological relation of resource;
Start and stop module: it is used for according to Topology generation start & shutdown through one key topological relation tree, according to relational tree and service and equipment Priority carry out system and equipment start stop operation.
Further, start stop operation multi-threaded parallel executes, the mode based on activemq message-oriented middleware.
Further, start stop operation is provided which that operation log is inquired.
The beneficial effects of the present invention are: the invention proposes a kind of information system start and stop method based on two priority classes is simultaneously System start & shutdown through one key is realized, the automation O&M for information system and device resource provides feasible technical solution, effectively The start and stop and shutdown problem for coping in emergency circumstances information system and device resource, effectively prevent the failure of server application rank System caused by and is not easy to restore problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the start & shutdown through one key method of base priority of the present invention.
Specific embodiment
The preferred embodiment of the present invention is described in detail with reference to the accompanying drawing, so that advantages and features of the invention energy It is easier to be readily appreciated by one skilled in the art, so as to make a clearer definition of the protection scope of the present invention
Simple, efficient, the reliable method based on two priority classes that the object of the present invention is to provide a kind of, it is in case of emergency real The now start & shutdown through one key of each information system and device resource based on two priority classes and shutdown successfully manage the event of computer room infrastructure Barrier is influenced caused by device resource and information system, while preventing unordered start stop operation from impacting to information system, is led Loss, the damage of the information such as data, message are caused, or leads to problems such as service processes that can not start.Data center is established simultaneously The information bank of information system, service operations script and device resource realizes the management of unified standard.And it is able to achieve specific information system System, service or the independent start and stop of equipment and power-off operation.
As shown in Figure 1, a kind of start & shutdown through one key method of base priority provided by the present invention comprising the steps of:
One, unified hardware device resources library is established
Unified standard management is carried out to data center's all devices resource, equipment resource information includes device resource title, resource The information such as classification, device IP, place computer room, cabinet number, equipment person liable.It can be convenient accurate dimension by device resource library Protect facility information.
Two, the generic service script of specification is established;
The generic script library of unified standard is provided, centralized and unified management is carried out to script bank, content includes: start and stop object, script Title, action type, perform script, return identifier, version information, execution agreement, operational risk grade, description information etc..
Start and stop object refers to the corresponding operation object of script, including system service is (such as: httpd service, snmpd service Deng), database service (such as: Oracle, Mysql, MongoDB service processes), middleware services (such as: Weblogic, Tomcat, ActiveMQ service processes), the application program program process of exploitation (Java/C/C++), operating system (Windows, Linux, Aix, HP-UNIX etc.) etc..
Action type includes starting script, stops script, restarts script, state acquisition script.
Execute agreement refer to the protocol information that perform script operates with, as SSH, SSH_NET, ZMQ/saltstack, Http agreement etc..
Perform script is specific content information, and the start stop operation of start and stop object is carried out based on the script.Based on different Start and stop service object provides Templated content for script, is identified to variable information therein, the routing information, number of such as service According to library example ID, saltstack client id etc..Variable part is instantiated as the case may be when use.
Three, the information bank of operation system is established, and system, service script are established according to device resource library and system information library And the topological relation of hardware device resources, based on practical business to operation system information, service script information, device resource into Row association.Operation system information includes systematic name, system priority, system request address;Corresponding to operation system information Information on services include service type, service name, start script, stop script, restart script, state obtain script, service it is excellent First grade;Service script is associated with corresponding device resource, realizing has from business system information, service script to device resource Machine series connection.
Four, it according to above Topology generation start & shutdown through one key topological relation tree, is then based on priority and carries out information system The start and stop and power-off operation of system and equipment carry out permission control to start stop operation before information system start and stop execute and operation are examined Core, by way of password authentification, the case where preventing maloperation generation.
The power-off operation of information system start & shutdown through one key and equipment priority-based, is embodied in service priority and equipment is excellent Two aspects of first grade.
Service priority one is embodied by the type of start and stop object, such as start-up operation, by system service, Database service, middleware services, the sequence of application program are started, and for stopping operation, are grasped in the opposite order Make.It in addition can be by defining each service pair if there is the requirement of sequencing for the start and stop object of multiple same types The start and stop sequence of elephant is controlled.
Priority facility refers to, in power-off operation, each information system is closed after completion, for the pass of device resource Closed operation, is first shut off each virtual machine, then turns off physics host.
In addition system is also supported for some service or the independent start and stop and power-off operation of equipment.
The present invention provides a kind of start & shutdown through one key systems priority-based, comprising:
Topology establishes module:
For establishing hardware device resources library;
Establish generic service script;
System information library is established, and system, service script and hardware device are established according to device resource library and system information library The topological relation of resource;
Start and stop module: it is used for according to Topology generation start & shutdown through one key topological relation tree, according to relational tree and service and equipment Priority carry out system and equipment start stop operation.
Since data center information system is numerous, the device resource being related to is even more substantial amounts, is in case of emergency needed Bulk information system and device resource are closed in a short time, therefore start & shutdown through one key system must have parallel executive capability.This Invention realizes that multi-threaded parallel executes by the way of based on activemq message-oriented middleware.Pass through the parallel execution of multithreading The execution efficiency of system is improved, the execution time of system is greatly shortened.
During information system start and stop and device resource power-off operation, need in real time dynamically check each information system and The executive condition of equipment.The log information generated in this system implementation procedure is first stored in shared drive, and foreground is out of share Log execution information is directly read in depositing to be shown, to reduce the frequent operation to database, is held to reach more efficient Row ability.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any The change or replacement expected without creative work, should be covered by the protection scope of the present invention.Therefore, of the invention Protection scope should be determined by the scope of protection defined in the claims.

Claims (8)

1. a kind of start & shutdown through one key method priority-based characterized by comprising
Establish hardware device resources library;
Establish generic service script;
System information library is established, and system, service script and hardware device are established according to device resource library and system information library The topological relation of resource;
According to Topology generation start & shutdown through one key topological relation tree, the priority according to relational tree and service and equipment is The start stop operation of system and equipment.
2. start & shutdown through one key method priority-based according to claim 1, it is characterised in that: the hardware device resources Library includes device name, device class, device IP, place computer room, cabinet number and equipment owner information.
3. start & shutdown through one key method priority-based according to claim 1, it is characterised in that: the system information includes Systematic name, system priority, system request address.
4. start & shutdown through one key method priority-based according to claim 1, it is characterised in that: described to establish system, clothes Business script and the topological relation of hardware device resources include: the corresponding relationship, service script and service of system of establishing and service Corresponding relationship and service script and equipment corresponding relationship.
5. start & shutdown through one key method priority-based according to claim 1, which is characterized in that described according to topological relation Start & shutdown through one key topological relation tree is generated, is grasped according to the start and stop that the priority of relational tree and service and equipment carries out system and equipment Work includes:
According to Topology generation start stop operation topological tree;
Permission control audit is carried out to operation;
Start stop operation is carried out to the service of each system according to the priority of service, more new system and the shape of service after the completion of operation State;
Equipment operation authority is audited;
The shutoff operation of equipment is carried out according to the priority of equipment, operation is completed to be updated equipment state.
6. a kind of start & shutdown through one key system priority-based characterized by comprising
Topology establishes module:
For establishing hardware device resources library;
Establish generic service script;
System information library is established, and system, service script and hardware device are established according to device resource library and system information library The topological relation of resource;
Start and stop module: it is used for according to Topology generation start & shutdown through one key topological relation tree, according to relational tree and service and equipment Priority carry out system and equipment start stop operation.
7. start & shutdown through one key method priority-based according to claim 6, which is characterized in that start stop operation multithreading is simultaneously Row executes, the mode based on activemq message-oriented middleware.
8. start & shutdown through one key method priority-based according to claim 6, which is characterized in that start stop operation is provided which to grasp Make log query.
CN201811596897.3A 2018-12-26 2018-12-26 One-key start-stop method and system for base priority Active CN109871267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811596897.3A CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811596897.3A CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Publications (2)

Publication Number Publication Date
CN109871267A true CN109871267A (en) 2019-06-11
CN109871267B CN109871267B (en) 2023-05-09

Family

ID=66917127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811596897.3A Active CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Country Status (1)

Country Link
CN (1) CN109871267B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307291A1 (en) * 2010-06-14 2011-12-15 Jerome Rolia Creating a capacity planning scenario
CN102769709A (en) * 2012-06-25 2012-11-07 百度在线网络技术(北京)有限公司 Method and device for supplying service contact information to users
CN103401896A (en) * 2013-07-15 2013-11-20 四川公用信息产业有限责任公司 Multi-Android-client service sharing method and system
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN105653401A (en) * 2015-12-28 2016-06-08 中国民生银行股份有限公司 Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN106254534A (en) * 2016-09-22 2016-12-21 南京中新赛克科技有限责任公司 Distributed type assemblies monitoring agent based on mixed architecture and method
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107659423A (en) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 Method for processing business and device
CN107995286A (en) * 2017-11-30 2018-05-04 平安科技(深圳)有限公司 Service automatic start-stop method, server and storage medium based on dubbo platforms
CN108509566A (en) * 2018-03-26 2018-09-07 国家电网公司客户服务中心 One kind is based on 95598 data publication service operation system network topology method for visualizing on cloud

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307291A1 (en) * 2010-06-14 2011-12-15 Jerome Rolia Creating a capacity planning scenario
CN102769709A (en) * 2012-06-25 2012-11-07 百度在线网络技术(北京)有限公司 Method and device for supplying service contact information to users
CN103401896A (en) * 2013-07-15 2013-11-20 四川公用信息产业有限责任公司 Multi-Android-client service sharing method and system
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN105653401A (en) * 2015-12-28 2016-06-08 中国民生银行股份有限公司 Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN107659423A (en) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 Method for processing business and device
CN106254534A (en) * 2016-09-22 2016-12-21 南京中新赛克科技有限责任公司 Distributed type assemblies monitoring agent based on mixed architecture and method
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107995286A (en) * 2017-11-30 2018-05-04 平安科技(深圳)有限公司 Service automatic start-stop method, server and storage medium based on dubbo platforms
CN108509566A (en) * 2018-03-26 2018-09-07 国家电网公司客户服务中心 One kind is based on 95598 data publication service operation system network topology method for visualizing on cloud

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵静等: "电网信息系统智能运维监控云平台的应用", 《大众用电》 *

Also Published As

Publication number Publication date
CN109871267B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN101834890B (en) Intelligent management system and method of distributed system
WO2022088804A1 (en) Message pushing method and apparatus, and electronic device, and storage medium
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
CN102790716A (en) Techniques for securing a virtualized computing environment using a physical network switch
CN111274001B (en) Micro-service management platform
CN109800160B (en) Cluster server fault testing method and related device in machine learning system
CN104079434A (en) Device and method for managing physical devices in cloud computing system
WO2012113336A1 (en) System for managing resources in virtualized environment and implementation method therefor
CN108418711A (en) The storage medium and computer program product of fault management
CN103581322B (en) Method and system for monitoring server and server devices
CN106919485A (en) A kind of system based on configuration hardware testing instrument on server
CN103677858A (en) Method, system and device for managing virtual machine software in cloud environment
US10412190B1 (en) Device multi-step state transitions
CN103595801A (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
CN109309585A (en) A kind of log collecting method, device and equipment
CN109245962A (en) Server monitoring method, system, computer equipment and storage medium
CN110278101A (en) A kind of method for managing resource and equipment
CN111404757A (en) Cloud-based cross-network application integration system
US10122602B1 (en) Distributed system infrastructure testing
CN113672336A (en) K8S container cluster deployment method, device, equipment and readable storage medium
CN110162312B (en) BeeGFS configuration method and device based on IML
CN109871267A (en) A kind of start & shutdown through one key method and system of base priority
CN111147429A (en) Project research and development environment deployment system
CN103106100B (en) The processing method of application of software data information and system based on Intel Virtualization Technology
CN1797385A (en) General management platform system of automatic electric power system, and implementation and development method

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
GR01 Patent grant
GR01 Patent grant